This event won't work no matter what I try

errorMiyaria.png


The "tech:Aril" comes on whenever I use a certain item (a fire spell), it calls the common event to turn the switch on. I've used it many times before and it has worked fine; impacted the environment in the way it is supposed to.

This particular event, on map ID 133, simply will not work no matter what I try. I have tried:
- moving the event's location
- changing the region number
- moving the "tech:Aril" turn off into an else statement, as seen here
- putting the event's commands in another parallel process event (I used the Galv Move Route Extras script to facilitate the self switch on in that case)
- changing the trigger to "Player Touch" and having the player stand on the event

It should be noted that on the other side of the map is a similar event, with the same commands (except different region number) that works perfectly. And I once tried having the self switch turn on without the other commands when the player touches it, and that worked.

Please help me with this. Thanks in advance!
What's on the other pages?
What's on the other pages?
errorMiyaria2.png
errorMiyaria3.png


As you can see, it's supposed to change the graphic and it doesn't. It also doesn't play the water sound it's supposed to.
OK, so what I want you to try here is putting a text box in each conditional branch. Use different text for each text box so you will know in game which one is working.
Next, look at the status of your switch and the region player variable by pressing F9 in the game. If everything works, it may be an engine error.
Try putting some text boxes in and see what the output is. Ninja'd by HexMozart88
text can be "region \V[11]" then it will show the value for that variable and you can see what it is while you play.
And just like HexMozart88 said, other text to see at what point it doesn't work.
Thanks HexMozart and Roninator, I'll try that.
add an "Exit event processing" block right at the end of page 1.
add an "Exit event processing" block right at the end of page 1.
Thanks, I'll try that.

EDIT: That didn't work, but the text thing helped me figure out that something is making the switch turn off before the other commands can happen (I don't why it's not doing it to the other one, though).
If you have another event like that on the same map with a different region id, then that other event is constantly running the else branch and turning the switch off, since you are only standing on one type of region ID?

EDIT: The other event maybe works, because the code there is executed before the code on the event that isn't working, because of some priorities?
If you have another event like that on the same map with a different region id, then that other event is constantly running the else branch and turning the switch off, since you are only standing on one type of region ID?

EDIT: The other event maybe works, because the code there is executed before the code on the event that isn't working, because of some priorities?
Thanks, I will check that out!
that something is making the switch turn off
have you configured your scripts correctly?

a lot of people add scripts or plugins without configuring them, and what you describe is the classic effect of what happens if a switch is configured to be used by a script.
which is why you always check if a script uses a switch or variable and if yes, configure it to an unused one and name it to make sure you don't use it in an event
have you configured your scripts correctly?

a lot of people add scripts or plugins without configuring them, and what you describe is the classic effect of what happens if a switch is configured to be used by a script.
which is why you always check if a script uses a switch or variable and if yes, configure it to an unused one and name it to make sure you don't use it in an event
Thank you! I will see if that is what's going on.

Original thread: https://forums.rpgmakerweb.com/threads/this-event-wont-work-no-matter-what-i-try.149631/