Hi! I'm finding a way to change the animation based on variables as it would be very helpful in a lot of scenarios in my game.
Example of things I wanna achieve through this:
1. Having different idle animation based on combatant's hp (as per rpgs like FF9 or Chrono Cross), whereby when the hp is low the combatant will show injure idle animation, or when the combatant is confused it will dance around and stuff.
2. In my game, combatant will play cast animation (mecanim) upon casting. But the problem occurs whereby if they're attacked by an enemy when they're casting, damage animation will play and the damage animation will link them into idle state (even though they're still casting). So I hope there's a way to switch the idle animation from default battle idle animation into casting idle animation depending on variables.
Thanks a bunch!