Event not moving, despite being programmed the same as others

I have some NPCs that walk towards a certain point, and if the player closes a door, they will jump back to where they started.
If they reach that certain point, they activate a self-switch, which does work as far as I am aware.

Two out of these 3 NPCs work fine. But one of them won't move at all. Their movement is sort of set to be a little random, but for the one that won't move, it should be like a 45% chance to move forward.

I don't quite understand what's going on, as the other two move as expected (or at least as expected as random movement can be). I'll provide the code for one of the two that work, and for the one that does not.

This is the one that is working,
aaaworking.png


and this is the one that is not.
aaaNot working.png
Where and how are you setting BonnieAI and ChicaAI? Also you don't need to put that in a loop, a parallel process is already looping 60 times a second.
Where and how are you setting BonnieAI and ChicaAI? Also you don't need to put that in a loop, a parallel process is already looping 60 times a second.
I guess I should have clarified, an earlier point in the game sets those variables. BonnieAi is set to 8 while ChicaAi is set to 9.

As far as I am aware, "Control Variables: Bonnie Move/Chica Move = Math.randomInt(20) + 1" sets the Move variable for each of them to a random number from 1 to 20. If, for example, Bonnie Move is 14 while Bonnie Ai is 8, Bonnie does not move forward on that loop. But if Bonnie Move is 6 while Bonnie Ai is 8, Bonnie will take a step forward.
This, at least theoretically, should be the same or similar for Chica.

Also thank you for the reminder that parallel processes loop automatically, I think I briefly heard that that was the case before but did not process the information at the time
I guess I should have clarified, an earlier point in the game sets those variables. BonnieAi is set to 8 while ChicaAi is set to 9.

As far as I am aware, "Control Variables: Bonnie Move/Chica Move = Math.randomInt(20) + 1" sets the Move variable for each of them to a random number from 1 to 20. If, for example, Bonnie Move is 14 while Bonnie Ai is 8, Bonnie does not move forward on that loop. But if Bonnie Move is 6 while Bonnie Ai is 8, Bonnie will take a step forward.
This, at least theoretically, should be the same or similar for Chica.

Also thank you for the reminder that parallel processes loop automatically, I think I briefly heard that that was the case before but did not process the information at the time
Could you press F9 during your playtest to confirm that the variable you defined as ChicaAI is the value you set it as?
Could you press F9 during your playtest to confirm that the variable you defined as ChicaAI is the value you set it as?
I just did, because I didn't know I could do that until now.
And
Thank you so much
It turns out that, while there is an event in my game that sets ChicaAi to 9, the Save File that I was using must have been created before I added that specific part to that event.
On that Save File, ChicaAi is at 0
So once again, thank you, both for teaching me how to look at Switches and Variables during playtesting, and also for letting me know that parallel events loop on their own. ^^
As far as I am aware, "Control Variables: Bonnie Move/Chica Move = Math.randomInt(20) + 1" sets the Move variable for each of them to a random number from 1 to 20.
This is unnecessary, there's a Random Range field right on the first tab of Control Variable.
This is unnecessary, there's a Random Range field right on the first tab of Control Variable.
Hm
I'm beginning to see that I'm making a lot of mistakes.
But at the very least, asking for help is not one of them. Thank you for pointing this out. I will try to remember that that's there now.

Original thread: https://forums.rpgmakerweb.com/threads/event-not-moving-despite-being-programmed-the-same-as-others.161224/