[PATCH] Gameplay Scripting: Entity and Actor coding for Secondary Attacks
This could (should?) be separated into multiple tasks.
Essentially some units, usually Super Units and Heroes, have the ability to use a "secondary" attack. For instance, the Persian Super Unit 1 "The Immortal" has a melee (spear) primary attack and a ranged (bow) secondary attack. What I suggest is that we use the 'Alt' key to toggle between attack types, similar to Rome:Total War. What we will need (that I can foresee) are these changes/features:
- Actor support for this. A way to dictate in the actor when to switch between animations and props for each attack type (I suspect very similar to the way we now tell the actor how to switch animations and props for various resource gathering methods).
- Entity code support. A way to dictate in the unit's entity XML file the difference between the primary and secondary attacks (the stats, as well as which attack is which).