Is it possible to add a "Last Strike" ability?

Junuxx

Emperor
Joined
Sep 6, 2005
Messages
1,154
Is it possible to add a unit ability "Last Strike" similar to "First Strike"?

This ability should damage the enemy when the unit is about to die (the same moment the 'retreat' ability is activated. This implicitly implies that flanking and last strike should exclude each other).

I'd love to see this. It could be used to represent the fierce resistance of a determined but doomed troop, or the attitude of a berserker. Or the kind of damage dealt by a cruise missile, kamikaze or suicide bomber.

I have no idea where abilities are encoded. I fear it's not accessible. But I'd like to hear your ideas & opinions :)

Junuxx
 
Yes call it Kamakazie ability, gives a unit a big bonus in combat but the unit is destroyed imediatly after combat. This could hypotheticaly be done in Python with the onCombatResult event querrying for the Promotion and killing any victorious unit that has the ability. The promotions XML would just reflect a realy strong bonus with no downside, this would probaly cause the AI to use the promotion a lot as it cant see that its going to lose the units (ofcorse AI's dont realy have much of a problem with sending suicidal units at you anyway)
 
Lord Olleus said:
then i guess it would be a combat where both people die. Wierd.

Well, two people killing each other simultaneously is pretty unlikely, but a battle between two army units resulting in both units being reduced to a non-operational level is much more reasonable, I think.

@Impaler:

How do you mean? A lot of promotions don't have a downside, it seems to me?
To avoid the trouble with the AI choosing the promotion too much, you could make this promotion unavailable for choosing. Just tag it to some units for starters, like Mech Inf gets 'March'.
 
Back
Top Bottom