Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: WindGuts on January 31, 2012, 03:27:13 PM

Title: Killing the event, bro.
Post by: WindGuts on January 31, 2012, 03:27:13 PM
How do you stop an event from reappearing every time you re enter a room?
Title: Re: Killing the event, bro.
Post by: A Forgotten Legend on January 31, 2012, 06:55:35 PM
Switches!

When making an event -- make another page in the event.  On that page, check the switch box and create a switch.  Go back to the first page of the event and go to the end of the event.  Turn on the switch you just created.  I can go into more detail if you want.
Title: Re: Killing the event, bro.
Post by: Prpl_Mage on January 31, 2012, 09:20:22 PM
Basically, add a condition at the start of that one event that doesn't make it start again. Anything from an event precondition to a conditional branch at the top of the event commands. Just make sure that the event is erased if it's an auto start.
Title: Re: Killing the event, bro.
Post by: WindGuts on February 01, 2012, 01:17:49 AM
Explain more, please?
Title: Re: Killing the event, bro.
Post by: Moosetroop11 on February 01, 2012, 01:29:21 AM
Each event has pages, right? You've probably only ever used one.  You can create 'page 2'.  Then put in the conditions for that page (to the left of the screen) that you want a switch, say SWITCH 1, ON.  That means that the page will only happen if switch 1 is on.

Then at the end of the first page's events, in which the event does everything you want it to do, make it turn switch 1 ON.  That'll make it choose the second page instead of the first.  Then leave the secon page blank and you have an event that no longer does anything.

If you don't understand, have a play with switches and conditions.  You should be able to find switches after a little look through the events list (the place where you click 'message' or 'move event' or whatever)
Title: Re: Killing the event, bro.
Post by: Prpl_Mage on February 01, 2012, 04:53:06 PM
Yeah what moose said.

Gonna look something like this:

Event 1:
page 1-
Autostart
Play bgm - great intro song
show faceset - morgan freeman
show message - my my, this is one catchy intro song. gotta get me some ice cream.
move event - morgan freeman, left
show message - you there! don't just stand around without getting me some ice cream!
move event - hero, face left, face right, face right
show faceset - totally generic hero
show message - i will bring you ice cream by the power of the light!
turn switch ON : switch[0001:introplayed]
erase event.
-----------------------
page2:
precondition: switch - 1 is ON.
action key
event commands - empty
OR
auto start
event commands -
erase event.
Title: Re: Killing the event, bro.
Post by: WindGuts on February 01, 2012, 05:00:01 PM
It worked. Thanks a daffodil, folks.