I've created two separate movement-affecting states, each of which I control with its own switch and parallel common event (not the actual "States" page of the database). One is "slowed", which only affects the speed of movement but not the frequency. The other is "hobbled", which only affects the frequency of movement but not the speed (however with the Altimit Movement plugin, directly changing the player movement frequency didn't really do anything, so I manually recreated the effect of having a delayed frequency of movement within the "hobbled" common event - so that's what's going on there).
The effects work great. But the timing of how long it takes these effects to "wear off" is being inconsistent and I don't understand why?? At the same time that I turn on the respective switch for either "state", I also set a respective variable to = current playtime + duration of effect (i.e. creating a "target playtime" when combined). Then within each state's common event, I use a conditional branch to check for when the actual playtime becomes equal to or greater than its respective "target playtime" variable, to then turn off the switch (and thus stop the common event and effect).
For testing purposes, I'm setting each state's "target time" variable to "$gameSystem.playtime() + 3". The "hobbled" event's timing is perfectly fine, as it correctly "wears off" in about 3 seconds. But when I test the "slowed" event, I can count to about 7 or 8 before it finally wears off, despite its duration being set to 3, exactly the same as the "hobbled" event?? I even created another test event in which I set both "target time" variables simultaneously and then had it display the value of those variables back to me, just to make sure they are actually the same value. They are.
So why would it be taking longer for the "slowed" common event to detect that the actual playtime has reached the target time? "On paper", both events should be timed exactly the same. But in practice, they aren't. Don't tell me that movement speed affects the rate that playtime is updated or something??
Thank you for any ideas as to why this might be happening 😐
The effects work great. But the timing of how long it takes these effects to "wear off" is being inconsistent and I don't understand why?? At the same time that I turn on the respective switch for either "state", I also set a respective variable to = current playtime + duration of effect (i.e. creating a "target playtime" when combined). Then within each state's common event, I use a conditional branch to check for when the actual playtime becomes equal to or greater than its respective "target playtime" variable, to then turn off the switch (and thus stop the common event and effect).
For testing purposes, I'm setting each state's "target time" variable to "$gameSystem.playtime() + 3". The "hobbled" event's timing is perfectly fine, as it correctly "wears off" in about 3 seconds. But when I test the "slowed" event, I can count to about 7 or 8 before it finally wears off, despite its duration being set to 3, exactly the same as the "hobbled" event?? I even created another test event in which I set both "target time" variables simultaneously and then had it display the value of those variables back to me, just to make sure they are actually the same value. They are.
So why would it be taking longer for the "slowed" common event to detect that the actual playtime has reached the target time? "On paper", both events should be timed exactly the same. But in practice, they aren't. Don't tell me that movement speed affects the rate that playtime is updated or something??
Thank you for any ideas as to why this might be happening 😐