Posting this here cause I am STILL unable to make new posts cause of that CP error thing...
I have this as a common event to drain SP (energy in my game) when you run. (I also set this to parallel and it still gives the same issue bellow)
Now all and all it works fine! When running it drains, when walking it increases.
Until you drain the bar completely, once fully drained to 0, it will not regen at all, it will remain at zero.
It has to do with the variable that tells it if SP is below 3 disable running, otherwise allow running. I know this as I tested it with out that snip of code. With out that, player can run all over and SP bar will drain and increase when they stop... but with noting to disable running, the SP bar can be fully empty and player can still run, though if they stop, the SP bar starts to refill again.
But with the small snip that tells it to disable running, the SP bar stoops refilling after it gets to zero.
I'm unsure what is causing this. It ONLY stops increasing once you fully drain the SP bar with the turn off running branch is present.
Additionally, did something change in the last build? When I add the branches to check if an arrow key is also being pressed before it starts doing the drain (so you don't drain energy while standing in place) I get
thats with using call script
Input.pressed?(Input::Key['Arrow Up'])
and so on. But it gives that error. It use to work! I have a demo of another game that uses the last version of the battle system and it also uses the same means and it don't throw an error back.