Legend_of_the_Invincibles icon indicating copy to clipboard operation
Legend_of_the_Invincibles copied to clipboard

Animation missing error

Open arobinson opened this issue 4 years ago • 3 comments

image

LotI2-Across the Barren Land-Auto-Save48.gz

To reproduce advance Miry to a chaos rider in the cave

arobinson avatar Oct 26 '20 18:10 arobinson

I believe the cause is that the item Overdrawer gives you a bonus attack which is a clone of the original crossbow attack. Since the chaos rider has no crossbow attack, there is no attack to clone, thus no animation to clone, and thus you get that error. Not easy to fix.

dalong76 avatar Nov 24 '20 13:11 dalong76

Yeah, I didn't think about leftover items when designing the bonus attacks. There are basically two solution to this:

  1. If no attack to derive the bonus from is found, the bonus attack does not appear
  2. Add a basic attack animation to every unit that can have leftover items The first option is far easier to implement. The second option would be much more interesting from the point of allowing players to create interesting units, however, it leads to additional problems like liches (and everything they can advance to) that can have leftover items from pretty much any type due to the necromancy ability.

What do you guys think about it?

Dugy avatar Nov 24 '20 16:11 Dugy

I don't think your second is worth the effort. A third possibility is to create a generic animation for the bonus attack. In this case, the generic animation would be just the missile. The unit doesn't move, but the missile flies, so there is animation. It isn't perfect, but it is far easier. A melee attack could be just a generic weapon swinging around.

dalong76 avatar Nov 25 '20 03:11 dalong76