The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: gotix on December 28, 2006, 12:52:15 AM

Title: problem with my battle system (resolved)
Post by: gotix on December 28, 2006, 12:52:15 AM
I have a bunch of enemies walking around with a colision trigger and this code:

<>Enemy Encounter: Ghost*2
:  Victory Handler
   <>Switch: [0020: monster_1]= ON
   <>
:  Defeat Handler
   <>
:  End
<>

After the switch monster_1 is turned on, it makes the ghost disappear. Now, the problem is that when one dies, they all disapear. Also, i want them to, once they've died, appear somewhere else, so that you don't kill all of the bad guys in a room, and leave it empty.
Title: Re: problem with my battle system
Post by: Reives on December 28, 2006, 12:59:16 AM
Well instead of using the switch, simply put Erase Event command where the switch turn on command is at. It'll erase the event for the time you're on the map, and if you go to another map and go back to it it'll be there again so I think you can pass on making ghost appearing somewhere else as well.

Or, if you still want it to appear somewhere else after it's killed, simply put a Set Event Location' command in the victory branch instead of the erase event one.
Title: Re: problem with my battle system
Post by: gotix on December 28, 2006, 01:08:19 AM
YESSSS thank you.
Title: Re: problem with my battle system
Post by: feildmaster on December 28, 2006, 06:44:29 AM
*whispers to gotix, "Help the mods out... put [resolved] and lock the topic in a edit on first post... ^^"*