Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Variables ( Exp )

(RPG maker XP)
In a mission in my game, the player has to get a certain amount of XP before going on. When the player reaches that XP, I want to transfer him and continue, etc, etc. Is there a variable or some sort of command where you can choose to do something to him when he gets that amount of XP?

thx in advance
 

khmp

Sponsor

Make a common event. Set the trigger to parallel process. Set the condition switch to a switch of your choice. Inside the event as the first line use 'Control Variables...'. Set a single variable to Actor's 'Your Hero' EXP. Then below this make a conditional branch. If the variable you set to the hero's experience(the variable mentioned above) is greater than or equal to the number you want. Do something. And turn the switch off. Picture of what I did:

http://i229.photobucket.com/albums/ee314/khmp/common_event_expchk.jpg[/IMG]

The only other thing you need to do is set that switch to on when you want to check the experience.

Good luck with it eskuppe! :thumb:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top