I use Hime's Casting time script, which makes one skill take more turns, during which the caster is in a casting state and can't do anything. My tester reported an issue when trying to cancel actors' actions. The caster is the third party member, and when the fourth was supposed to choose an action, the tester wanted to go back to the second one, but cancel didn't work. The choice stayed with the fourth member, presumably being unable to skip the one casting. I'd greatly appreciate it if someone had the time to have a look at the script and help me with this issue.
Hime's Casting time script problem
RGSSx Script SupportLooks like it right there on line 203.
When the player presses back or x to go back to the previous actor, it does this check.
If the actor is casting? do the next command action, which goes to the next actor.
So, yes actor 4 is selected and you want to go back to actor 2 then there would have to be some changes.
Probably is the next and previous commands, but then a question comes to mind, do you want the player to be able to change the caster's action? If so then what I'm thinking is a new command window to give the option.
Another option is to just comment this part out, but then the actor casting would get their casting overwritten and then it might not work or cause other issues.
Ruby:
alias :th_cast_time_start_actor_command_selection :start_actor_command_selection
def start_actor_command_selection
if BattleManager.actor.casting?
next_command
else
th_cast_time_start_actor_command_selection
end
end
If the actor is casting? do the next command action, which goes to the next actor.
So, yes actor 4 is selected and you want to go back to actor 2 then there would have to be some changes.
Probably is the next and previous commands, but then a question comes to mind, do you want the player to be able to change the caster's action? If so then what I'm thinking is a new command window to give the option.
Another option is to just comment this part out, but then the actor casting would get their casting overwritten and then it might not work or cause other issues.
I think I found the root of the problem, and it's my fault. I tried commenting out, that crashed the game after the battle finished, so I looked at the "casting" state, to see how it's different from stun, for example, which works fine with cancel. The only difference was that stun is set to cannot move and my casting state wasn't. I guess it's clear to other people that it should be set like this, but since the script doesn't specifically say, I didn't do that. Now the cancelling works. Thanks, Roninator, for indirectly nudging me in the right direction 

Original thread: https://forums.rpgmakerweb.com/threads/himes-casting-time-script-problem.161176/