【Foxy's】Money Management

Was it useful?

  • Yes

    Votes: 2 100.0%
  • No

    Votes: 0 0.0%

  • Total voters
    2

FoxySeta

Cleric, script kiddie and fudanshi
Veteran
Joined
May 6, 2017
Messages
270
Reaction score
110
First Language
Italian
Primarily Uses
RMMV
Tutorial topic: how to let the player have a variable amount of money at their disposal
Brief description
Even if I'm not into tutorials about something an extension/studying documentation could do just fine, I've recieved an offer for doing this, so… here comes nothing. Check this tutorial if you'd like to let your player's action influence their amount of money.

Template used for this tutorial: Sample Scripted-based UI, 720 x 1280 (my patron wants to develop a mobile game)
Requirements
  • Having read the Beginner's Guide. I can't help you either otherwise.​

Tutorial body
  • Giving the player an initial amount of money (not necessary)
    1. First, let's decide which kind of variable we should use for storing the current amount of money. It is obviously bound to be a number variable, and since we may need to use it at any point of the game it should also be global.​
    2. Here's a possible setup:
      Setup 0.PNG Screenshot 0.PNG Setup 0.PNG
  • Setting up your common events (in the database)
  1. Go to the Database's "Common Events" section and create three new records called "Show current money", "Change money amount" and "Hide current money"​
  2. Set them up like this (pay attention: copy both the parameters and the scene content):
    Setup 1.PNG Setup 2.PNG Setup 3.PNG
  3. If you want to customize these common events at your heart's content, this is the good time to do it​
  4. Please note that "Change money amount" ADDS Factor to Money, so if you want to make the player pay for something instead of getting paid, pass a negative number as parameter​
  5. If for some reason the player's money amount goes under 0, the first common event automatically sets it to zero. Still, you should check if the player has enough money before letting them buy something anyway.​
  • Setting up your scene (in the scene editor)
  1. Here's a possible setup:
    Setup 4.PNG Setup 5.PNG
Patron: @Valadilene
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Husband has roped me into playing one of his PSO2 characters. Productivity is now negative.
Tileset A is lava! Don't burn D:
as MZ come out what you guys think about.....Some particles engine :3c?
Who wants to sing this song with me?~

Decided to submit my games to the Monday Night Stream. Figured it might be a fun way to get some traction.

Forum statistics

Threads
100,703
Messages
978,534
Members
132,319
Latest member
ZlayerDragg
Top