VX ACE Event triggering another event

Hello all, I cant figure this one out yet again.


Yes I did do some googling etc, but I must be missing something again.


I have this setup as follows.


Actor walks into map, moves up a bit and activates a player touch event. This event shoots out a bunch of dialogue and some animation. It ends with the NPC char joining my pt and im TRYING to get it to remove the NPC's event. I feel like ive tried it all with switches/ conditional, but i must be missing it.


In the attached photo. 1 is where my even triggers by touch and 2 is where my NPC bear character is sitting. 


I have tried creating a switch that I add on the end and then on my bear NPC I have that switch turned to "on" under conditions, but it looks like the switch from event 1 triggers it as soon as the event begins.


Im trying to get it so after all this dialogue NPC joins me and his own event (2) ends and dissapears.


*Event 1 ending event 2 after dialogue etc


Event-1.PNG
Don't use set move route to operate switches - use either control switch or (better) control self-switch.


And show the second page - if the switch doesn't work, then the mistake is on the second event page, the one you try to switch to.
Don't use set move route to operate switches - use either control switch or (better) control self-switch.


And show the second page - if the switch doesn't work, then the mistake is on the second event page, the one you try to switch to.

Thanks for the reply.


Ok I wont use routes for that. I was more or less just trying to see if it would work.


Im not sure what to put for the 2nd page, thats why im asking here. Ive tried numerous things but I cannot get it to end event 2. 


Even if I have a self switch on event 1 to go to page 2 then a switch that runs, how do I get event 2 to see this AFTER all my dialogue and then end?
If you want a different event to react to the same switch, you use a normal switch instead of a self-switch.


And the rest is the condition - always remember that a switch alone can do nothing, it always needs something to react to that switch.


It's like the switches in your rooms - they can't make light unless they're connected to a lamp.


To disable page one, page 2 needs to be conditioned to the switch you control on page 1.
If you want a different event to react to the same switch, you use a normal switch instead of a self-switch.


And the rest is the condition - always remember that a switch alone can do nothing, it always needs something to react to that switch.


It's like the switches in your rooms - they can't make light unless they're connected to a lamp.


To disable page one, page 2 needs to be conditioned to the switch you control on page 1.

Thanks for the reply.


Ok so I have tried "Control Switches" from my understanding "control self switches" are only for the event they are apart of, and "Control Switches" are map wide? 


So at the end of event page 1 I have a "control switch" turned on and page 2 I have top left corner the 1'st "Switch" box checked and set to my page 1 condition. I'll attach SS so you can see. 


So when I do this, my NPC dissapears as soon as I load in, he is setup as follows:


Conditions, 1'st "Switch" is on 


I dont want it to work this way. I want this event with my NPC to dissapear AFTER he joins my pt from the first even. 


Im not sure if maybe im not following you or what, or maybe you dont get what im trying to do?


Thanks!

1-1.PNG

2-2.PNG

3-3.PNG
Higher page number = higher priority - which means that the if several pages have their conditions fulfilled, only the page with the highest number will be executed.


The bear event can only appear if the second page has a condition that is not automatically fulfilled, and then only after the switch is ON - but if there is no condition on the second page (which you didn't display) then it will never appear.
Higher page number = higher priority - which means that the if several pages have their conditions fulfilled, only the page with the highest number will be executed.


The bear event can only appear if the second page has a condition that is not automatically fulfilled, and then only after the switch is ON - but if there is no condition on the second page (which you didn't display) then it will never appear.

Can you show me an example please? I can't get this one. 
Right now, as you have it set up, the grass will show up until the bear joins your party, and the bear will only show up after the bear joins your party. If you want that bear to show on the screen before it joins, you need to not have the condition for the event being switch 7 is active.


Also, I have no idea what is your 2nd event's page 2 as you didn't post it.
Right now, as you have it set up, the grass will show up until the bear joins your party, and the bear will only show up after the bear joins your party. If you want that bear to show on the screen before it joins, you need to not have the condition for the event being switch 7 is active.


Also, I have no idea what is your 2nd event's page 2 as you didn't post it.

Im not following any of these replies ;_; . I have posted ALL The events and pages that had something on them. Only the bears event page 2 is not shown, because there is nothing there. How do I get my first event, the grass one, to go through the dialogue, the animation, join the bear to my pt and then end the OTHER bear event that is on screen. I cannot figure this one out.


I feel so lost... How do I end my grass event page 1, what do I put on page 2 and what do I do with my bear?
First...always post every page, even if blank. Most times the error is there was something there that you thought wasn't relevant, but it was.


Also, note that events *always* run the highest numbered page that is valid. So if you have an event say with text on page 1, and nothing on page 2, if page 2 is valid the text will *never* show, ever. Keep that in mind when setting things up.


To do what you want:


Grass event: Page 1: Put all your dialogue. At the end add the bear to the party. Turn on your switch.


Page 2: Set to run if that switch is on, do *nothing* with it. This disables the dialogue running another time.


Bear event: Page 1 is as you have it, but turn off the part that requires the switch to be ON. That is why it was showing up late, as you didn't turn on the switch until the dialogue event was over.


Page 2: Make it blank, but set it to run once the switch is on.
First...always post every page, even if blank. Most times the error is there was something there that you thought wasn't relevant, but it was.


Also, note that events *always* run the highest numbered page that is valid. So if you have an event say with text on page 1, and nothing on page 2, if page 2 is valid the text will *never* show, ever. Keep that in mind when setting things up.


To do what you want:


Grass event: Page 1: Put all your dialogue. At the end add the bear to the party. Turn on your switch.


Page 2: Set to run if that switch is on, do *nothing* with it. This disables the dialogue running another time.


Bear event: Page 1 is as you have it, but turn off the part that requires the switch to be ON. That is why it was showing up late, as you didn't turn on the switch until the dialogue event was over.


Page 2: Make it blank, but set it to run once the switch is on.

Sorry about that.


And thank you very much I appreciate your help, and from the others in this thread too. It's working now.


I guess im just getting confused on how these properly execute. Like when does the switch execute etc, I understand that the highest page priority goes first, but I think thats what confuses me too. So, because I have the control switch on my grass event at the end of the event page, does that mean it will run only when it gets to that part in the event? It seems like it ran the switch as soon as I activated the event.


And with my bear, I have event page 1 setup with nothing but the graphic(which just makes him appear, correct?)and then event page 2 setup with condition switch "bear in pt" and the event page is blank, which would make his event dissapear. Which I want. 


So I guess, will control switches etc only turn on when it gets to there line in the event page?


Thanks again!!!
Yep, control switches only turn on when it is hit on the event page. You can use that for neat tricks too, as I use that to make NPC's disappear when I want them to in a cut scene, or even to change the graphic to represent a body or injured NPC.


Variables work the same way too...something to note for later on.


And don't feel too bad, I remember going a week before I understood what self switches were. Until then, my treasure chests kept giving the rewards over and over again.
I think what you're missing is that a switch alone does nothing - similiar to a real switch you purchase at an electrician's shop.


If you control (turn) that switch while holding it in your hand, nothing will happen - because it's not connected to anything yet.


For a switch in your room to turn on the light, it needs to be connected to the lamp first...


Similiarly, turning a switch on in the project will do nothing unless you somewhere have a condition that reacts to that switch. So turning on the switch 7 means that at that moment when you turn the switch on, the page that has the condition of that switch may become active (if everything else is correct), but not before.

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-event-triggering-another-event.55719/