Gold variable?

Status
Not open for further replies.

diypunx366

Warper
Member
Joined
Jan 12, 2018
Messages
2
Reaction score
0
First Language
German
Primarily Uses
RMMV
First off: Hi, I'm new to rpg maker forums!

I dont know if I posted in the right thread but I've run into a little problem.
I made a mini game in a bar using Galv's wheel of fortune plug-in. It costs money in my game but I'm not sure how to set variables so you can't play if you have under 20 gold. There should be an easy answer to that but I can't seem to figure it out right now. Can anyone tell me how to do this?

diypunx
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV
Set the variable equal to the amount of gold. Use a conditional branch to check if that variable is above or equal to 20.
 

diypunx366

Warper
Member
Joined
Jan 12, 2018
Messages
2
Reaction score
0
First Language
German
Primarily Uses
RMMV
Thanks! I figured it out. Thread can be closed.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
Or just use a conditional check for $gameParty._gold < 20;
 

Llareian

Jack of All Trades, Master of None
Veteran
Joined
Jan 26, 2017
Messages
604
Reaction score
1,421
First Language
English
Primarily Uses
RMMV
@mlogan Happily, the conditional branch page 4 has Gold as an option. So you don't need to set a variable equal to the amount of gold first, just use the conditional branch, go to page 4, select Gold >= 20.

When making the conditional, you can also check the box for "Create Else Branch" if you want to give the player a message when they don't have enough gold.

Edit: Curse you ninja @Poryg !
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
@Llareian KISS rule: Keep it simple, silly :p
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV
@Poryg and @Llareian Thanks for the added info! I was on my phone at the time, so I couldn't confirm if there were other ways to check it.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top