Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

How do you refernce a variable in the damage formula?

Status
Not open for further replies.
In vx ace you can use ( v[#] ) to call a variable into the damage Formula, # being the variable place number...
However when I use my skills that reference a variable in this way through mv the game crashes. Any ideas?
I get a:
Type Error
Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2d': float parameter 3 is non-finite.
[doublepost=1445681718,1445680844][/doublepost]Update, ive changed v[#] into $gameVariables.value(#) and it's no longer crashing, but its not calculating dmg right, infact no matter what the variable is its outputting 0... weird.
[doublepost=1445685357][/doublepost]Fixed it, the problem was you no longer need to use ( ) in the damage formula... in fact it screws it all up.
 
Last edited:
Status
Not open for further replies.
Top