Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Calculations on RP2K3...
« previous next »
  • Print
Pages: [1]

Author Topic: Calculations on RP2K3...  (Read 1896 times)

Offline loftyD

  • Member
  • Associate
  • *
  • Posts: 150
Calculations on RP2K3...
« 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
Logged

Offline Moosetroop11

  • Sage
  • *
  • Posts: 7,398
(No subject)
« Reply #1 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
Logged
Maaaaaaaaaaaaaaaaaaaaaaaaaaan I missed this place.

Quote from: drenrin2120
Maaaaaaaaaaaaaaaaaaan I missed you.

Quote from: fruckert
Maaaaaaaaaaaaaaan I missed that welcome.

Offline Dragoon de Sol

  • Common sense isn't very common
  • Agent
  • *
  • Posts: 800
(No subject)
« Reply #2 on: September 23, 2007, 06:23:32 PM »
Condition branch


Branch is Currency is less than XXXX
> You need more money to stay, sir.
Logged

Offline loftyD

  • Member
  • Associate
  • *
  • Posts: 150
(No subject)
« Reply #3 on: September 23, 2007, 06:30:28 PM »
Moosetrap11: Thanks
Dragoon: I wanted something a bit better than that...
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Calculations on RP2K3...
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum