Neeb here! Question about events.

Tylerullery

Warper
Member
Joined
Aug 11, 2017
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
I use Rpgmaker MV and I have integrated an API that lets me award trophies to players. I can award trophies via common events and want to make a trophy for if the player collects 1,000 currency. Is there a way to set an event to auto run when a certain condition such as currency reaching a certain amount?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
'Game Mechanics Design' is for looking at aspects of game play from a more conceptual level. "How do I...?" questions (implementation) go to the Support forum for the engine you are using.
[move]RPGMaker MV[/move]

Have a Common Event, with parallel process.
Select a new variable switch (and name it so that you don't accidentally use it for something else as well)
Select Game Data (near the bottom) and click on the ... at the end.
On the new tab select Other and then Gold from the drop down menu.
Click OK
[That variable switch now keeps track of how much gold the party has.]

I assume you only want this to run once, so you need a way to ensure that.
Conditional Branch
Create a new Switch and name it e.g. Gold Award
Choose OFF (because this is what you want to happen if the award has not been given).

Next line, new Conditional Branch (i.e. it is inside the first Conditional)
Select Variable and choose the variable switch you just set up
Select the drop down box (shows 'Equal to'[ by default) and choose 'Greater than or equal to' from the drop down menu.
Type in the amount you want in the 'Constant' box
The conditional now checks how much money the party has by looking at the variable.
Next line put the command to give the award.
Turn the Gold Award switch ON so that the award is not given a second time.

Leave the 'Else' sections blank because you don't want anything to happen if the gold is less than the amount.
Alternatively, when you create these conditionals, uncheck the 'Set handling conditions...' box, as you don't need an Else for these.

This is basic eventing. I strongly recommend that you look at Andar's compilation of info. In particular, he gives a link to a playable tutorial for the Event Menu Command which teaches what all the various possibilities are and how to use them.
 

Tylerullery

Warper
Member
Joined
Aug 11, 2017
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
Thank you so much for your help! Also, thank you for moving my question to the right spot, it was my first time ever posting on the forum so I was not entirely sure. I am completely new to using RPGMaker and keep getting amazing about how much power it has. I watched a few tutorials before I got started which is obviously not enough.

Again thank you for all your help!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
If you use a common event with parallel processing, make sure you put a Wait as the first command. You really don't need to check how much gold you have 60 times a second.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,584
Latest member
Faustus2501
Top