State that increase the movement speed

Hello!


I need some help!


I would like to create a state that increase the hero movement speed for X steps.


I did this:


When the hero use a "speed potion", a common event is activated increasing the hero's movement speed and activating the state.


Then, this state will remain for 12 steps.


But, when the 12 steps ends, and the state ends, I can't return the movement speed to 4 again.


I couldn't find a solution to this. I know it must be easy, but I can't figure out.


Thank you in advance! And sorry for english mistakes!
when the common event is processed, activate (with a switch) a second common event that is a parallel process for checking if the state is still applied.


If not, switch the parallel process off and change the speed back.


don't forget a wait(5) or so in the parallel process checking the state.


This does not need a plugin


I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.
Thank you very much!


It works perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/state-that-increase-the-movement-speed.72610/