Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I might be grasping at straws but from what I understand that first function tracks your FMs from an arguments to a number.
- So:
- [Code]local fm_count = 0[/CODE]
- Our local variable called fm_count is with a value of 0 without any modification.
- [CODE] for i, v in pairs(buffactive) do
- ---
- ---
- ---
- end[/CODE]
- This is setting up the argument that an iterator pairs a value to the variable which is the buffactive table.
- [CODE] if tostring(i):startswith('finishing move') or tostring(i):startswith('フィニシングムーブ') then
- fm_count = tonumber(string.match(i, '%d+')) or 1
- end[/CODE]
- The function is to then convert the iterator into a string. It looks for a buffactive named finishing move. Followed by fm_count being amended! tonumber converts the following string that matches the iterator and '%d+' (but I have no clue what that means) or 1
- [CODE] if spell.type == 'Step' and fm_count < 6 then
- ---
- ---
- ---
- end[/CODE]
- And like you said, if the action is a step and the amended fm_count is less than 6 then the following code is executed.
- Is that what I am understanding how this whole thing works? I normally use https://www.lua.org/manual/5.0/manual.html#format to help understand some of the functions you have used. :>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement