Any way to make events trigger other events?
#1
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?
Reply }
#2
You can use conditional branches like...

Code:
@> Condition : Event A's X == Event B's X
  @> Condition : Event A's Y == Event B's Y
    @> Comment : STUFF HAPPENS HERE.
  Branch End
Branch End

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.
[Image: Button-BOTB.png]
[Image: Save-Point.gif][Image: Button-You-Tube2.png][Image: Button-Sound-Cloud2.png][Image: Button-Audio-Mack2.png]
[Image: LS-Banner.gif]
NEW ALBUM OUT NOW!

Reply }
#3
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.
Reply }
#4
I can probably get an events X and Y by doing something like;
Code:
$game_map.events[event_id].x
and then use those in a conditional branch. Thanks!
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
Photo  How to make check if there's a message window? Pelip 6 8,854 11-04-2019, 04:37 AM
Last Post: DerVVulfman
  [REQUEST] Anyone know how to make a professional looking world map? fgsfds 15 26,050 04-11-2015, 06:17 AM
Last Post: JayRay
  VXA question regarding off-screen events JayRay 2 5,851 11-18-2013, 03:05 AM
Last Post: JayRay
  How to make a Final Fantasy styled cutscene JWCaisa 3 7,840 06-15-2012, 02:40 PM
Last Post: Kain Nobel
  Lag from Erased/deleted events Taylor 3 7,122 06-01-2012, 06:05 AM
Last Post: Taylor
  [Ask]how to make our own Tileset ? felicalexa 2 6,365 05-26-2012, 04:11 AM
Last Post: MetalRenard
  how do i sequence a chain of events? shintashi 5 9,463 01-05-2012, 01:42 AM
Last Post: KasperKalamity
  how to make an event touch another event mangamaniacs2064 2 6,374 08-24-2011, 01:55 PM
Last Post: RosyPosy
  777 with events Ace 2 6,712 01-23-2011, 12:29 PM
Last Post: Ace
  How do i make a trap? kikonami123 5 8,801 03-24-2010, 11:04 PM
Last Post: kikonami123



Users browsing this thread: 2 Guest(s)