multiplication with variables
#1
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]
Reply }
#2
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.
Reply }
#3
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!
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
  RPGMXP - Issue with variables (that most likely can be solved using scripts) DPhoenix29 4 10,005 01-23-2012, 06:06 AM
Last Post: DPhoenix29



Users browsing this thread: 1 Guest(s)