Help with Variables and Common Event?

I'm trying to make a "Running" minigame in which : 

- When the character still has the stamina to run, the speed would be set to 5.

- Every step the character makes would decrease the stamina by 1

- After the stamina reaches 0, a text "Out of stamina" will be shown and the character's speed would decrease to 4. Then, every step the character makes would increase the stamina by 1.

System implemented :

- In every tile, I put an event such as this : 

[IMG]http://puu.sh/gvCrQ/f2cfb196ae.png[/IMG]

- In the common events, I put this event :

[IMG]http://puu.sh/gvCzD/97e834f764.png[/IMG]

....in where Filler Up is a switch that activates when the variable stamina reaches 0.

....in where NPC Run is a switch that activates when the running minigame starts.

Problems :

However, when I test the minigame, the event that should play when the stamina reaches 0 didn't play, and the stamina kept on decreasing instead. Resulting in this : [IMG]http://puu.sh/gvCGF/9cec827050.jpg[/IMG]

Is there anyone who can help me here?
Why not put the code that in/decreases stamina that's on every tile in a common event? Would make it way easier in case you need to edit something.

I can't really see anything directly wrong with the two events, but two things I'd check for first: When the mini-game starts, is the switch really turned on? When the mini-game starts, are you sure the stamina isn't set to a value below 0?

I just re-created a simplified version of these events and no problem activating the parallel event.
I don't know, I still can't get it to work.

Well, I don't know how to do that if I were to put the code in a Common Event. 
Milennin means put your branch in the common event. Then delete all your map events since they will be unecessary.
Can't see the images.
Ah, then should I use Conditional Branch if left, right, up, down arrows are pressed, too? Wouldn't it be more complex?

Shaz, should I upload the pictures somewhere else? I can't upload it in imgur nor photobucket...
Ah, then should I use Conditional Branch if left, right, up, down arrows are pressed, too? Wouldn't it be more complex?


Shaz, should I upload the pictures somewhere else? I can't upload it in imgur nor photobucket...
Put what you now have in the floor tiles in a single common event and have each floor tile call that common event instead.
Definitely put the tile commands into a common event as well and just have the tile you step on call that common event. But try adding an exit event processing command at the end of both conditionals.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-variables-and-common-event.37663/