So I'm trying to give potions a cooldown of 25 steps. Meaning, once you drink a potion, you need to walk 25 steps before you are able to drink another one.
-I made a common event "Use Potion" which is triggered whenever the player uses a potion.
-This common event sets a variable "Drank Potion" to 25.
-I plan on using a Use Condition script to require that the "Drank Potion" variable be at 0, in order to use the potion item.
-I figure now all I have to do is have each step give minus 1 to the "Drank Potion" variable, so once it hits 0, voila. This is where I'm stuck. I know there are ways to track player steps since game start (maybe I'd link this to another variable and then set it to 0 every time the player drinks a potion or joins a new map?) and X/Y coordinates change, but I can't wrap my head around how to accomplish this step.
Any help appreciated! Thanks.
-I made a common event "Use Potion" which is triggered whenever the player uses a potion.
-This common event sets a variable "Drank Potion" to 25.
-I plan on using a Use Condition script to require that the "Drank Potion" variable be at 0, in order to use the potion item.
-I figure now all I have to do is have each step give minus 1 to the "Drank Potion" variable, so once it hits 0, voila. This is where I'm stuck. I know there are ways to track player steps since game start (maybe I'd link this to another variable and then set it to 0 every time the player drinks a potion or joins a new map?) and X/Y coordinates change, but I can't wrap my head around how to accomplish this step.
Any help appreciated! Thanks.