Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: loftyD on September 23, 2007, 05:20:37 PM

Title: Calculations on RP2K3...
Post by: loftyD on September 23, 2007, 05:20:37 PM
When the message box comes up, is it possible to do calculations of numbers and displaying of how much Cash you have.

eg: Say, Staying at an Inn is 50 G. You have 65 G.

Money is less than 50.

Message: Man: You need another {50-y} G to stay here.

"y" = ammount of money


Cheers

LoftyD
Title:
Post by: Moosetroop11 on September 23, 2007, 06:05:00 PM
(backward slash)$ shows your current money. To do calculations, you need to use variable operations though...

Say you have 41G...

Name a variable "Amount needed". Then set that variable to however much money is needed for the entire thing, in this instance 50.

Then, open variable operation again, set it to "Amount needed" and minus "Total money" or whatever it is.

Then use (backward slash)V[n] but make n the variable number of "Amount needed".

That... might work. XD
Title:
Post by: Dragoon de Sol on September 23, 2007, 06:23:32 PM
Condition branch


Branch is Currency is less than XXXX
> You need more money to stay, sir.
Title:
Post by: loftyD on September 23, 2007, 06:30:28 PM
Moosetrap11: Thanks
Dragoon: I wanted something a bit better than that...