Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: Ardith on September 20, 2007, 01:24:00 AM

Title: event help
Post by: Ardith on September 20, 2007, 01:24:00 AM
In RPG maker 2k3, after a teleportation event to go inside houses and the like all my events keep replaying. How can I stop them from replaying themselves?
Title:
Post by: DragonBlaze on September 20, 2007, 01:29:08 AM
You have to be a little more specific. Do you mean you have autostart events or parallel process events on the first map, that play again when you go back on that map from the teleport event. Do the events from the first map keep playing after you teleport, or do the events on the map you teleport to keep playing, and what do you mean by replaying exactly?

Anyway I should be able to help, its most likely something simple like you need to turn an event off or switch it off.
Title:
Post by: Ardith on October 30, 2007, 11:30:18 PM
When I come back to the first map, the events are not erased and are still operating when I trigger them after I leave a house. Basically I want to know how to end an event so that it will not be triggered again.

In the very beginning, my main character says something and when it is over, I go into a house. When I leave the parallel system would replay the exact same words.  
Title:
Post by: Melch on October 31, 2007, 02:52:36 AM
Keep in mind only one map exists at a time. Any time you leave one map and go to another map, it is redrawn from scratch, including events.

So, when you go back into the house, it is drawn from scratch as if you have never been there. To stop the events from happening again, use Switches. After the event has happen, set a Switch (usually helps to name them similarly) to the ON position. Then on a new page, set it so that if that switch is ON, that the events graphic is blank, and there are no commands in the event list.

EDIT:
Just a note, something I learned with switches, they take effect IMMEDIATELY... So if you set a switch to ON, then the rest of the code under that switch will not happen because that new page, with the precondition of that switch set to on, is now playing.