Math Equations in Text Scripts?

● ARCHIVED · READ-ONLY
Started by iskillzi 3 posts View original ↗
  1. Hello, I'm trying to figure out how to add math equations in text scripts so for example if they talk to a guy who wants 250 gold for something and the player has 140 gold he'll say:

    "You need 110 more gold for this item."

    Which would basically be doing "You need [itemprice]-[playergold] more gold for this item." or something like that.

    So is there any way to do this with or without external script? (I don't mind if the script is for free games only cause this will be a free game)
  2. you can get a variable displayed with default text codes (hover the mouse over the text input window of the show text command to see all codes), so you make the calculation with control variable command before displaying the text, and then use the text code to display the value.


    But what we're talking about is pure eventing, scripting is something else in RM and has nothing to do with your problem.
  3. Thanks, typo on the text events* was my bad. :p