The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: soccerdude240 on December 04, 2010, 07:46:20 PM

Title: Event help
Post by: soccerdude240 on December 04, 2010, 07:46:20 PM
I have a spot where you can only walk into the NPC, and that causes a fight. After the fight, I want the NPC to die or disappear allowing the character to walk by. But after the fight the NPC still stays at the spot. I used to have a teleport after you win the fight, but I was wondering if there was a better way of doing it and having 3 copies of the world map. Thanks
Edit. RPG2k3
Title: Re: Event help
Post by: Sirius on December 09, 2010, 12:06:52 AM
I'm not entirely sure I understand your question, but I'll give it a shot anyway...

Okay, this is my basic understanding (please correct me if I'm wrong :)). You want to fight an NPC blocking your path, and when you win, he disappears with a magical flourish of wonder and majesty. But when you come back, he's back too, and you have to fight him again.

There's a very easy fix for this: you could either assign that monster to a switch which toggles back on when you leave the map, or you could use the wonderfully obscure Erase Event command (although you should almost never use that command; make sure you clearly understand how switches work if you want to take this shortcut). So say you run into the NPC (maybe with a set by collision event where he says "You... Shall not... Pass!" like Gandalf), then initiate the battle. The very next line should just say Erase Event, and *poof*, no more monster. The good thing about Erase Event, though, is that the event reappears when you leave & come back.

Again, correct me if I misunderstood your question...
Title: Re: Event help
Post by: soccerdude240 on December 13, 2010, 02:35:23 AM
Thats about all thanks. I'll try it and say my results