Okay, maybe this isn't really Javascript? Maybe it is? I dunno because I'm a complete chump when it comes to programming (and math in general), but I think this might be the correct section of the forums to ask this. At least most people on this board probably know how to do what I'm asking.
So, I want to do some simple math calculations using the values I got stored in different variables, and put the answer into a new variable. Basically math similar to what you could do in the damage formulas (add, subtract, multiply, divide). I think this should be doable with a script call, correct?
What I don't know is how to do it. I've never really done something like it before in MV and it's probably pretty straight forward but after googling for a while, I couldn't find an answer to how to write the formulas.
Here's one of my non-working stabs at doing some math with the control variable and script call commands:
$gameVariables.value(105)-$gameVariables.value(104)*10-$gameVariables.value(103)
...didn't work.
Thanks in advance.
So, I want to do some simple math calculations using the values I got stored in different variables, and put the answer into a new variable. Basically math similar to what you could do in the damage formulas (add, subtract, multiply, divide). I think this should be doable with a script call, correct?
What I don't know is how to do it. I've never really done something like it before in MV and it's probably pretty straight forward but after googling for a while, I couldn't find an answer to how to write the formulas.
Here's one of my non-working stabs at doing some math with the control variable and script call commands:
$gameVariables.value(105)-$gameVariables.value(104)*10-$gameVariables.value(103)
...didn't work.
Thanks in advance.
