Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED]10 logs

Started by Mortar, October 28, 2007, 01:52:10 PM

0 Members and 1 Guest are viewing this topic.

Mortar

In my game, I want the character to collect 10 logs. So far, everything is done correctly except for one thing: I can only make the player need 1 log to move to the next map, instead of 10.

Is there a way to make the player need 10 logs instead of 1 to move to the next map? I'm using a conditional branch for this.

Thanks in advance,

Mortar.

Reives

Name a spare variable log #, initialize to 0 if needed.
Every time you pick up a log, add 1 to log #. When checking with conditional branch, simply check if the log # variable is > 10.


And if you don't want to do the variable way, here's a more advanced way that might help you learn the use of loops that would be useful elsewhere:



Mortar