Problem with Resetting events

IM unsure where to post this, so ill try here. Can someone help me with my game? I got my potion stirring game to work (the first time you initialize it)

The Game shows the cauldron image and when the arrow keys are pressed/triggered the stick stirs. It counts the stirs (which makes the cauldron bubble more( new images show that have bubbles on it) and sets a random number to see if the potion failed or succeeded. If succeed, you get the potion you crafted. If not well, you don't.

The problem,
1)I need the stick image before you hit the arrow keys.
2)The whole process doesn't work the second time. I go get ingredients and the whole process SHOULD HAVE reset but it doesn't.( i have a common event to turn off everything and set it all to 0, i just added this ad it doesn't seem to work) It just shows the image of the cauldron, but no stick stirring and no bubbling or the ability to leave the screen. I need this process to repeat every time you have the ingredients and click on the cauldron, eventually, I will add more potions but im working with one at the moment to get it working. What can I do to reset the whole process, I tried a loop but it gets stuck and TBH i don't know how to use loops.

CAULDRON_CODE_1.pngCOUNTER_PAGE_CODE.pngRESET EVERYTHING COMMON EVENT.png
I didn't read it all, but you seem to have 'control self switch' commands on a switch activated common event? I don't think those do anything. Put 'trigger: none' and call the common event from the cauldron event, and those should apply (EDIT: or use script calls). Also, if you need the stick image to show before the player presses the arrow keys, just show it before? With show picture or with an edited cauldron sprite?
I dont think $gameScreen.maxPictures() is a thing though.
either use a number here (use 100 for all or clear all pictures)
or use maxPictures.length as you dont use a length, it will fail there.

I dont know why left, right, up, down all speed up the stirring as well,
so there are a few more that is troublesome how you set it up.

its also harder to see what works, how it works or supposed to work
as some of those details are missing as well to help you fully and how
to fix them.

I can only guess which wont work or might work.
I managed to get it working with some help, i took the common event out completely and moved the show picture.. THIS thread can be closed. 🙂
I didn't read it all, but you seem to have 'control self switch' commands on a switch activated common event? I don't think those do anything. Put 'trigger: none' and call the common event from the cauldron event, and those should apply (EDIT: or use script calls). Also, if you need the stick image to show before the player presses the arrow keys, just show it before? With show picture or with an edited cauldron sprit
Thank you, i took the whole common event out and removed the self switch completely as well as a page and it works now .

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-resetting-events.164294/