Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p1mod = GAMESTATE:GetPlayerState(PLAYER_1):GetPlayerOptions('ModsLevel_Song')
- local p2mod = GAMESTATE:GetPlayerState(PLAYER_2):GetPlayerOptions('ModsLevel_Song')
- for i,v in pairs(mods) do
- --get parts of the mod
- local modName = string.match(v[3],'%u%a%a+') or string.match(v[3],'%No%s%u%a+') or string.match(v[3],'%C%d+') or string.match(v[3],'%d...')
- local modValue = string.match(v[3],'%d+%%') or string.match(v[3],'%-%d+%%')
- local modApproach = string.match(v[3],'%*%d+')
- --fix nil
- if modValue == nil or modValue == "?" then modValue = "100%" end
- if modApproach == nil then modApproach = "*1" end
- --rid of % and * and No
- modValue = string.match(modValue,'%d+') or string.match(modValue, '%-%d+')
- modApproach = string.match(modApproach,'%d+')
- if modName == string.match(v[3],'%No%s%u%a+') then
- modName = string.match(string.match(modName,'%s%u%a+'),'%u%a+')
- modValue = "0"
- end
- modValue = tonumber(modValue/100)
- if rob_time >=v[1] then
- if (v[4] == 'len' and rob_time <=v[1]+v[2]) or (v[4] == 'end' and rob_time <=v[2]) then
- --if modName == string.match(v[3],'%C%d+') then
- -- modValue = string.match(modName,'%d+')
- -- p1mod:CMod(modValue,1)
- if modName == string.match(v[3],'%d.%d%x') then
- modValue = string.match(modName,'%d...')
- p1mod:XMod(modValue,1)
- else
- p1mod[modName](p1mod,modValue,modApproach)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement