I have a mime class in my game. it *functions* just fine surface level. it gives a state to itself that has a restriction that it cannot move and it gives a state to its mime target that forces it to use the same skills/items its mimic target uses to the same target. additionally, i have 3 passive states (yanflys auto passive states) on the class with the purpose of checking the mime's target's stateMotionIndex() so that it performs the same SV state motion as its target.
Issue is that it's a little jank visually.
the "cannot move" restriction makes it stay still while ideally it should be looping through its idle motion. I know i can work around it by removing the restriction and clearing the battler's actions at the start of its turn, but i dont intend on the allowing the player to directly control the actor while the state is active. allowing the player to input commands just to never use them sounds bad.
then the passives to mirror the state SV motions seemingly only update at the end of every turn, but i cannot identify a function i can use to be able to force it when the target is deselected for a skill and the state motion indices between the mime and target dont match
any ideas?
EDIT: the passives arent just for visual benefit either. they do serve a mechanical purpose, so id like to keep them
Issue is that it's a little jank visually.
the "cannot move" restriction makes it stay still while ideally it should be looping through its idle motion. I know i can work around it by removing the restriction and clearing the battler's actions at the start of its turn, but i dont intend on the allowing the player to directly control the actor while the state is active. allowing the player to input commands just to never use them sounds bad.
then the passives to mirror the state SV motions seemingly only update at the end of every turn, but i cannot identify a function i can use to be able to force it when the target is deselected for a skill and the state motion indices between the mime and target dont match
any ideas?
EDIT: the passives arent just for visual benefit either. they do serve a mechanical purpose, so id like to keep them