04-01-2013, 05:49 AM
I've been playing around with a horror style RPG Maker XP game, and thinking about how to make traps for the monster's chasing the player. Is there any way to make an event trigger when another event steps on it?
Any way to make events trigger other events?
|
04-01-2013, 05:49 AM
I've been playing around with a horror style RPG Maker XP game, and thinking about how to make traps for the monster's chasing the player. Is there any way to make an event trigger when another event steps on it?
04-01-2013, 07:49 AM
You can use conditional branches like...
Code: @> Condition : Event A's X == Event B's X You most likely have to send the X/Y coordinates of both events to a variable, and check using those. From there on, you'll have to figure out the best way to make A trigger B. Having Event A set a switch, and Event B using a parallel process with the page condition checking for said switch would probably be the best method. Example : Event A is "Monster" and Event B is "Pit Trap". Checking if "Monster"'s coordinates match up with "Pit Trap"'s coordinates, the "Monster" event would set Switch #???? : Monster Trapped. When that switch is on, the "Pit Trap" event is activated, an animation plays, then the self switch of both events is turned on (so they don't happen again.) I hope that helps some.
04-01-2013, 03:27 PM
that would probably be the easiest way. otherwise you'd have to mess around with switches and set move routes and custom movement definitions. it's a pain.
04-01-2013, 11:54 PM
I can probably get an events X and Y by doing something like;
Code: $game_map.events[event_id].x |
« Next Oldest | Next Newest »
|