Forewarner of the Black Wind
- Jul 2, 2014
- Reaction score
- First Language
- Primarily Uses
It is, but you have multiple statements. You don't need it before an "else," but you do need it before doing another "if" unless that's supposed to be nested inside the first condition.Hmm...so I need to have 'end' in several places? I thought end was only used at the very end of the statement.
You don't want this (and every place like this), because you have an "else" for this condition.Code:
//This changes the animation if it's critical if target.result().critical animation 98: target jump target: 100, 60 end
Right here is where you have an error, because if you were following your indentation and your "ends," all of the code after this is still inside your first condition of skill mastery level >=1.//Skill hits twice at this mastery level
Which means this is going to have unexpected behavior, because you didn't have the correct number of "ends" from the beginning, so you're saying//This is the single hit version if it's mastery level zero
"if skill mastery is greater than 1, and now if skill mastery is <= 0," which will never evaluate to true.
So, again, the correct format is:
if stuff end
if stuff else if other stuff else if other different stuff else yet more stuff end
if stuff if (still needs the first if to be true to see this!) other stuff end end