Save-Point
multiplication with variables - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: General Support (https://www.save-point.org/forum-18.html)
+--- Thread: multiplication with variables (/thread-738.html)



multiplication with variables - zubin73 - 02-16-2010

It may be silly,but I can't seem to implement it.The players inputs a number and that is being multiplied by a random number to yield a resulting number.that number is the amount of gold that is gained.The following is the picture of my event page.Everything else is fine but the multiplication is not working.lease help.

[Image: multiplyo.jpg]


[Resolved] multiplication with variables - Jaberwocky - 02-16-2010

Wow, good job Enterbrain, VX's control variable thing is busted. >_>;
Let's see... Line 840 of Game_Interpreter:
Code:
when 3  # Mul
  $game_variables[i] = value
...yeaaaaah. >_>
Just change that to
Code:
when 3  # Mul
  $game_variables[i] *= value
And it should work for you.


[Resolved] multiplication with variables - zubin73 - 02-16-2010

Thanks,I couldn't find the game_interpreter first,so when I googled to find it's location,I found RMVX has posted an entire bug fix for the game interpreter.simple copy pasted it and it works now!