Button Press Activating Two Events

Hi,

It often happens that while trying to activate one event, my player activates another one with the same button press. So, for example, if I try to open Double Doors (and opening either leads to a dialogue), then my player will walk up to the doors, click, go through the dialogue and then immediately be entered into it again. What's the most efficient way of avoiding this? I could make it so that completing the dialogue changes a switch, and that both doors check the switch before entering the dialogue, but it feels like there has to be an easier way. Thanks,

Laurence
I think Self Switches are the only way I can think of, as no other way will make sure the event doesn't replay (Erase Event only works once and will still replay every time you re-enter that room).
Self Switches won't work, because Door A's Self Switch wouldn't affect Door B. The problem is both doors get activated by the same press.
That should only be possible if you set both to autorun (which is *never* advised). Try setting them up another way to activate, like for instance have one door set the other door's move route to simulate it being opened (and vice versa).
Can you provide screenshots of the two events that are being activated? It'll be MUCH easier for us to help you if we can SEE what you're doing rather than just getting your description, which could well be leaving out a lot of important information.


And are you saying you WANT both events to be activated? Are the double doors meant to open at the same time, and do you have one event controlling each side? Maybe a screenshot of the map (in the editor) showing where the two events are would be helpful too.
Can you provide screenshots of the two events that are being activated? It'll be MUCH easier for us to help you if we can SEE what you're doing rather than just getting your description, which could well be leaving out a lot of important information.

And are you saying you WANT both events to be activated? Are the double doors meant to open at the same time, and do you have one event controlling each side? Maybe a screenshot of the map (in the editor) showing where the two events are would be helpful too.
No, having both events being activated is very easy. My problem is, as I said, that a button press activated event opens a text box. The same text box opens if you open either door, along the lines of 'Enter?' So your character walks up to double doors, each a separate event, and presses interact. He is then asked, twice, if he wants to open the door. 

Regarding the Screenshot: A screenshot of a map would literally show a house with two doors side by side, each one side of a double door. 

The event logic is simply Trigger: Action Button. Show choice? Enter, Don't Enter. If Enter, transfer player. If don't Enter, nothing. 

The problem is simply that one click triggers both events, I want it to only trigger one. I don't care which one, since they both do the same thing.
Screenshots please? I want to see these doors and the text event. Make sure you include the whole event window in the screenshot, so we can also see conditions & triggers.


If your events have multiple pages, please also include each page.
Screenshots please? I want to see these doors and the text event. Make sure you include the whole event window in the screenshot, so we can also see conditions & triggers.

If your events have multiple pages, please also include each page.
I have literally just described what is two lines of eventing. This is not an issue with the actual event, it happens in multiple different screens and on multiple different maps. I just want to know how to prevent two Button Press events from activating with a single click. What the events do is irrelevant - multiple different events with different functions all do the same thing on different maps. The issue is that one click activates two events, and I would like an easier way to prevent that from happening than having both change a switch, and perform a check at the start of the event, so that whichever is the second event sees the switch is already activated and doesn't bother running.

Edit: This could be, for the sake of the question, 'Button Press' event where pressing the button means you get a message saying 'Hi'. The player presses the button next to two of these events which are side by side, and gets back the message 'Hi' twice. I want him to receive it only once.
I have literally just described what is two lines of eventing. This is not an issue with the actual event, it happens in multiple different screens and on multiple different maps. I just want to know how to prevent two Button Press events from activating with a single click. What the events do is irrelevant - multiple different events with different functions all do the same thing on different maps. The issue is that one click activates two events, and I would like an easier way to prevent that from happening than having both change a switch, and perform a check at the start of the event, so that whichever is the second event sees the switch is already activated and doesn't bother running.
It sounds like you're using the same switches that are used elsewhere, don't do that(It's messy, and it leads to bad things happening). 
It sounds like you're using the same switches that are used elsewhere, don't do that. 
I must be explaining myself exceptionally badly today. There are no switches involved at present. I could include one to fix this problem, but I thought there might be an easier solution. The only problem is that 'Button Press' events can activate if you are in the next square over, so sometimes you activate two at once.

Edit: Just so we're clear, I suspect that this happens because of Victor's pixel movement script. My question isn't 'why are two events activating', but rather 'is there an easier way to prevent it than putting a switch at the end of the event and checking for it at the beginning'?
I must be explaining myself exceptionally badly today. There are no switches involved at present. I could include one to fix this problem, but I thought there might be an easier solution. The only problem is that 'Button Press' events can activate if you are in the next square over, so sometimes you activate two at once.

Edit: Just so we're clear, I suspect that this happens because of Victor's pixel movement script. My question isn't 'why are two events activating', but rather 'is there an easier way to prevent it than putting a switch at the end of the event and checking for it at the beginning'?
Oh ok, now I get it, I forget exactly how It's suppose to be done, but I vaguely remember you can format multiple tile event objects like the big doors, to work off of  only a single event, instead of copying/pasting the same event on both spaces.
Oh ok, now I get it, I forget exactly how It's suppose to be done, but I vaguely rember you can format multiple tile objects like the big doors, with only a single event, instead of copying/pasting the same event on both spaces.
Thanks, I'll look into that.
Can you recreate the same event setup on a brand new project with no scripts? Just to determine whether it IS a script issue or not.
Please can you just provide screenshots.

A picture can say a thousand words and you are NOT providing all the information we need in your description. Trying to figure out the problem just based on your descriptions alone is confusing and time consuming. Screenshots may well show us what we need to know straight away.

Why are you so reluctant to give us what we need in order to help you?
Frankly, because you're not listening to me. I agree screenshots can be helpful tools in events of high or even medium complexity. This would be the screenshot of a single event with one text message command and trigger set to 'Action Button'. I can literally make that event in 2 seconds, go ahead and open up RPG Maker and do so. That's what I'm looking at. 

What would actually help, and what I should have provided in the first place, is a link to Victor's pixel movement script, which is causing this issue. However, since my problem is not with the actual fact of two events being caused by one button press, but rather a request to know if there's some kind of command to close all open events, it didn't really seem that important either.

Here's the screenshot of an event that causes this issue. On the map, it is in the square next to another event. 

wlIUEpx.png
Can you recreate the same event setup on a brand new project with no scripts? Just to determine whether it IS a script issue or not.
Yes, but it'd take an extremely long time and other people have reported the same issue with the script, so I don't really feel like it's a valid use of that time.

Just to be clear, I do genuinely appreciate you taking the time to moderate the forum and to try to help scripting newbies such as myself. It's a frustrating situation, that's all. 
ah, if it's a known issue then ...


Are you using a mouse script? Which one? I did have an issue with MY mouse script some time ago when it would activate two events under certain circumstances, but I've got a resolution to that.
It´s not a mouse script, but this is it: 

https://victorscripts.wordpress.com/rpg-maker-vx-ace/utility-scripts/pixel-movement/

Some guy got a workaround in the comments. I´ve managed to get mine working by removing one of the events and extending the size of the other´s collision box to 48 pixels by using a comment call. However, that wouldn´t work for situations where the two events perform separate functions (unlike two doors into the same room). In that case, Id be tempted to try reducing the size of both collision boxes, but I havent tried that yet.
I was just going to ask if you were using a Pixel Movement script 🙂


Try using mine instead, there's a config that lets you decide if you want that behavior or not.


http://forums.rpgmakerweb.com/index.php?/topic/39588-orange-movement-3/
Thanks for the offer, but Victors is the basis for other scripts such as his Free Jump which are crucial for me. :/

Original thread: https://forums.rpgmakerweb.com/threads/button-press-activating-two-events.45742/