The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: mark on December 12, 2005, 05:19:07 PM

Title: Create an event,Hero hides behind a rock while a guard comes
Post by: mark on December 12, 2005, 05:19:07 PM
Hey people,
I need help creating this event.It always comes out wrong.
I created a map were the hero is trying to get out wihtou being noticed.
She comes to a part where she says"someone is coming i better hide".
There are a couple rocks in the landscape.If she doesn't hide behind them and goes to the end of the map,a battle will occur.If she does(this is where i have problems)a guard will come up,say he thougth he heard something,and go back out.
Now what i need is to be able to freeze the hero on that spot while the guard is out,and be able to make the guard walk up a little,say is message,and walk back to the end of the map,dissapear,and then the hero will resume.
Thanks in advance!
Title: Create an event,Hero hides behind a rock while a guard comes
Post by: blueXx on December 12, 2005, 08:18:07 PM
easy...
when the guard comes use a switch and a preconditioned para process, in it put wait X frames (note there are something berween 10 and 20 frames per sec, changes if the map is loaded with events or empty) after that period of time (say 5sec) if the switch wasn't turned off (hero touch event behind the rocks that turns off the para) the guard will come for you, else it will do his stuff

should go something like:

precondition- switch(guard is coming)
trigger para process

wait 100frames
enemy encounter

and the buttons go like:
trigger hero touch
switch(guard is coming) = off
*guard move event*

if you wanna make it more interesting cover the hero touch triggered events with hero touch triggered events that look like:

if switch(guard is coming)= off then
 if switch(guardgone) = off then
   enemy encounter

this way any movement while the guard is around will trigger a fight
don't forget that if you use it you need to finish the move event of the guard with guardgone=on

and then make a teleport event somewhere...

hope it helps
Title: Create an event,Hero hides behind a rock while a guard comes
Post by: mark on December 13, 2005, 04:20:38 AM
Thanks blueXx.
I already had my "event maker"(?),take a look at your note,and he's working on it.
Good looking out  :wink: