I keep getting an error with the following section of a script and I'm not entirely sure why.
I'm assuming its because I've done something wrong in the mix of the .chop's and switching between strings and integers but due to my lack of scripting skills and the fact it seemed to work in the fxri, I'm not quite sure whats wrong.
Thanks for any help =)
I'm assuming its because I've done something wrong in the mix of the .chop's and switching between strings and integers but due to my lack of scripting skills and the fact it seemed to work in the fxri, I'm not quite sure whats wrong.
Code:
atk = attacker.atk.to_s
D = atk.chop.chop.to_i # ~these two
S = atk[-2,2].to_i # ~
self.damage = D * S
Thanks for any help =)