Hi all.
Using RMMV with Yanfly action sequences and buff and states core
In my game when a character is attacked they are always moved to a location by action sequences where the animation takes place. If they are suffering from a state that includes the "cannot move" status they aren't moved even with manual movement control in an action sequence. I'd rather the "cannot move" status prevent a player from making an attack and automatically prevent attack/skill selection without restricting actual movement.
So I'm hoping someone can help me with a work around. I'm happy to edit the plug in or core JS if needed but I don't know where to look and what to replace it with. ChatGPT suggested putting this in the state notetag but it didn't help: ```
<Custom Restriction>
if (this.isActor() && BattleManager._phase === 'input') {
value = true; // Prevent action selection during input phase.
} else {
value = false; // Allow movement during the action sequence phase.
}
</Custom Restriction>```
Using RMMV with Yanfly action sequences and buff and states core
In my game when a character is attacked they are always moved to a location by action sequences where the animation takes place. If they are suffering from a state that includes the "cannot move" status they aren't moved even with manual movement control in an action sequence. I'd rather the "cannot move" status prevent a player from making an attack and automatically prevent attack/skill selection without restricting actual movement.
So I'm hoping someone can help me with a work around. I'm happy to edit the plug in or core JS if needed but I don't know where to look and what to replace it with. ChatGPT suggested putting this in the state notetag but it didn't help: ```
<Custom Restriction>
if (this.isActor() && BattleManager._phase === 'input') {
value = true; // Prevent action selection during input phase.
} else {
value = false; // Allow movement during the action sequence phase.
}
</Custom Restriction>```