Conditional Global Switch NOT Working

Before anyone says it: yes, I have tried to put the switch in a different slot in case of plugin interference, have the switch-on event on the page with the largest number, and re-did from memory it in case I was messing something up. It's just not working.

To summarize, in a common event there is a global switch which remains OFF until the player's MP hits 0:

Screenshot 2024-03-21 051346.png


What's SUPPOSED to happen is that when the MP is 0, a switch is turned ON and is reflected in subsequent interactions on the event page with the highest number:


Planned event if player HAS mp:
Screenshot 2024-03-21 052109.png


Planned event if player DOESN'T have mp:
Screenshot 2024-03-21 052147.png


...Yet despite NOT having MP, the other event plays. I'm losing my mind LOL
Screenshot 2024-03-21 051546.png
Screenshot 2024-03-21 051553.png


I've tried every angle and solution so far but have yet to find it. It's likely a dumb mistake that's flying over my head, but regardless, I just can't seem to find the solution. Thank you in advance for any help 🙂
A parallel process common event requires a switch to be turned on before it will start running. In this case, you've selected your test switch as that switch. But because it's off, the event doesn't run, so the line you've put in to turn it on will never execute.
I wouldn't recommend it to run it every 60 frames a second, but set a wait
frame for 25-60 frames there as well, so it wouldn't lag if its constant running.

I wouldn't go the way you set this up either, but give an invisible state.
if mp >= 1 give it the state, else remove the state if not or vice versa
give a state if its < 1 and check this condition instead.
A more optimized solution is to just check the MP in a conditional branch and change the text based on it with just one event (action button trigger). It seems like only the message needs to be changed so only check for the condition when you interact with this event.

There is no need for a parallel common event or switches here unless you want to activate a global switch to use for something else (in which case, just turn it on/off in the conditional branch).

JavaScript:
◇If : Script : $gameActors.actor(1).mp > 0
  ◇Text : None, None, Window, Bottom
      : Looks like you have some kind of MP.
  ◇
: Else
  ◇Text : None, None, Window, Bottom
      : Y U NO MP???
  ◇
: End
◇
A more optimized solution is to just check the MP in a conditional branch and change the text based on it with just one event (action button trigger). It seems like only the message needs to be changed so only check for the condition when you interact with this event.

There is no need for a parallel common event or switches here unless you want to activate a global switch to use for something else (in which case, just turn it on/off in the conditional branch).

JavaScript:
◇If : Script : $gameActors.actor(1).mp > 0
  ◇Text : None, None, Window, Bottom
      : Looks like you have some kind of MP.
  ◇
: Else
  ◇Text : None, None, Window, Bottom
      : Y U NO MP???
  ◇
: End
◇
Thank you! Maybe I should specify since I don't know which one would be more optimized---the plan is that once the player uses up their MP in the game, their are locked in an MPless route where they can't attain any MP-revival items/they don't have that effect anymore, and subsequent interactions are completely altered to reflect this. I was thinking a parallel event which constantly checks this would work as at the same time in the "if" conditional I could change the parameters of the items, include the initial cutscene, then add a loop to verify the MP for the rest of the game.

I don't know if starting every altered event with a conditional would be better than a switch verification, but I'm not adjusted to the engine yet so I wouldn't know LOL.
I don't see what the logical point is of the parallel event.

Since every place where this matters would have to include a conditional branch anyway (is the no-MP switch on?), just use the actor's MP being 0 as the condition.

Saves you a switch, saves you a parallel event.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-global-switch-not-working.167022/