Switch turns itself off (Solved)

Ok so I have this bug and I can't figure out where the issue is.

I made my quests but now I have a switch seems to self switch off: TQ 1-1
Spoiler: Spoiler
upload_2019-1-22_17-32-7.png



Here is the Event sheets:
upload_2019-1-22_17-32-38.png

It goes into this one afterwards:
View attachment 107882
upload_2019-1-22_17-32-56.png

So far no issues

And when you flip this switch, it turns off the previous:
upload_2019-1-22_17-33-28.png


Is there something Missing? I mean the quest still progresses, but when you go back to the quest giver she just says go to the temple. even when the quest is completed. It's annoying because I wanted to add a side quest from her when the player finds his party member. Advice?
:
First up, you should check your Plugins and see if any of them uses Switch 0003 by default. This happened to me a few times while using Scripts in Vx Ace and I was searching like a mole on speed until I finally found out what's going on.

Greetings,
Tw0Face
I don't see any Switches being turned off anywhere. You might want to check your conditions on all your events. Unfortunately these screens don't tell us the whole story. You may want to post a screen where the issue occurs.
Wow ok so @Tw0Face thank you but its not a plug in. But I checked:
Spoiler
upload_2019-1-22_18-45-53.png
@OmnislashXX thank you I found it:
Spoiler
upload_2019-1-22_18-25-8.png
upload_2019-1-22_18-36-28.png

This is an optional part of the quest. it goes to self switch A.
upload_2019-1-22_18-36-49.png

upload_2019-1-22_18-37-0.png

I didn't even think of it (I have been skipping her to test the cutscene events right after this). I am sorry I am still a novice at this. But how would I fix it?

Edit no thats not the problem its the priest:
Spoiler
upload_2019-1-22_18-44-30.png

upload_2019-1-22_18-44-45.png
Screenshots of the events are more useful than screenshots of the game.

Are you certain it's not a plugin using that switch as one of its default parameters? That usually IS the cause when a switch or variable is being changed and you don't know where. Did you check all the parameters before saying it wasn't a plugin?
Screenshots of the events are more useful than screenshots of the game.
I gave the screenshots. Are they not enough? Its all the ones that are affected by the switch
Those shots tell us nothing. For starters, what is page 4 and 5? Remember the engine runs the highest numbered page so if page 4 or 5 is always valid the other pages cannot run. Also remember other events can turn off a switch too. So you may need to check all events and see what they are doing too.
@bgillisp 4@5 do not affect the switches. It trips before they come on but here:

Spoiler
upload_2019-1-22_20-10-10.png

upload_2019-1-22_20-10-27.png

upload_2019-1-22_20-10-51.png

upload_2019-1-22_20-13-29.png

upload_2019-1-22_20-14-29.png

Priest
Spoiler
upload_2019-1-22_20-8-22.png

upload_2019-1-22_20-8-34.png

upload_2019-1-22_20-8-50.png

upload_2019-1-22_20-9-9.png

Here is all the event sheets. when I interact with these 2 the 3rd event switch flips off.
Two things I see:

Page 3 has a different switch than page 2, so page 2 will keep looping for a while.

You didn't post page 4 of the first event (it just says the file name, so probably an error in that upload). Please post just page 4 in the next reply though, it will make it easier for those on their phones to be able to access the page.

On another note, I really don't get why you want to use all these switches. Why not just use one variable and keep increasing it at each step of the quest? That will be so much easier and a lot less to keep track of.

Also have you checked the parameters of the quest plug-in? You are calling it in those commands, so if you set those parameters to say use switch 3 somewhere...
Two things I see:

Page 3 has a different switch than page 2, so page 2 will keep looping for a while.

You didn't post page 4 of the first event (it just says the file name, so probably an error in that upload). Please post just page 4 in the next reply though, it will make it easier for those on their phones to be able to access the page.

On another note, I really don't get why you want to use all these switches. Why not just use one variable and keep increasing it at each step of the quest? That will be so much easier and a lot less to keep track of.
Spoiler
upload_2019-1-22_20-39-54.png

ok I see tht now here is page 4. to be honest I don't know how to set it as a variable. I used a Yanfly video here.
Control variable: Set to value. I usually set it to 1 when I start using it, then 2 at the next step, then 3 and so on. Then I just use the page conditions if >= variable to run the event when it is at that point. Self switches can be used to stop it from repeating.

I think you will want to check into how to use them though as learning how to do variables will be required to make a decent game at some point. There's a link in my signature for the tutorials on that, though it was written for ACE the same ideas apply in MV.

Back to the switch. I don't see what would cause it, but remember any event can cause that switch to turn off. So you may need to check every single event in the game, see if maybe you accidentally used it again somewhere.
Well, for now, I just got done moving all the event switches away from 3. it worked. I labeled it as do not use. when I do find it I can address it.

Thank you for the tip. I saw the post in your link before but turned away at the VXA tag. I'll be sure to read it (I don't want a plethora of switches anyways).
Add this to your project, then choose the Cross Reference option from the title screen when you test play (it'll take a while to load, so disable it again when you're done).

There's got to be something that's turning that switch off again - maybe it's a common event, maybe it's a completely different event on the map.



It will show anything that uses or changes the switch, as long as you do it through an event command. If you do it via a script call, it won't pick it up.
Add this to your project, then choose the Cross Reference option from the title screen when you test play (it'll take a while to load, so disable it again when you're done).

There's got to be something that's turning that switch off again - maybe it's a common event, maybe it's a completely different event on the map.



It will show anything that uses or changes the switch, as long as you do it through an event command. If you do it via a script call, it won't pick it up.


This worked! It's caused by my torch in my debug cell from pre level mapping (Im going to slap myself for not checking database CEs now). This plugin is very useful! Thanks!
yeah, keep it handy 😉 Glad it helped you.
Oh its an essential plugin next to Yanfly now.
Most of your screenshots are broken links anyway.

EDIT: Glad to see that it worked.
They all worked for me. Sometimes I can't see screenshots (broken links) and later I can. Could be where I'm accessing the page from, how long it's taking to load, or a number of other things.

its an essential plugin next to Yanfly now.
Just make sure you remove it before distributing your game - it's a dev tool only and not required for deployment.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/switch-turns-itself-off-solved.104783/