View Full Version : Is it possible to add a "Last Strike" ability?


Junuxx
Dec 17, 2005, 08:08 PM
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

vbraun
Dec 17, 2005, 08:54 PM
Wait till the SDK.

panzooka
Dec 18, 2005, 04:40 AM
what if the last strike kills your enemy?

Lord Olleus
Dec 18, 2005, 05:06 AM
then i guess it would be a combat where both people die. Wierd.

Kinseek
Dec 18, 2005, 05:35 AM
"Kamikaze!"

Impaler[WrG]
Dec 18, 2005, 09:18 AM
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)

Junuxx
Dec 18, 2005, 09:44 AM
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'.