Main Menu
  • Welcome to The RPG Maker Resource Kit.

Help with a switch

Started by NickDark, September 14, 2008, 07:46:58 PM

0 Members and 1 Guest are viewing this topic.

NickDark

Okay in my game the hero talks to a character by talking to the character the event starts the hero has to kill all monsters and return back to the character.... how do i get the even to end after i kill the monsters where do i place the switches?

tSwitch

#1
it'd be easier done with a variable.
Every time one of the monsters is killed, add 1 to an empty variable.

when the time comes to check and see if all the monsters are dead, check to see if the variable is equal to the number of monsters they have to kill :)

edit: belongs in troubleshooting, not tutorials ;)


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon