PDA

View Full Version : Delaying an ability


Daishi
07-30-2007, 12:50 AM
I'm hoping this doesn't require massive cross-modding to do, but here's my plan. The Demo general's Rebel Ambush is deadly and quite overpowered after the Demolitions upgrade is complete. To fix this, I propose that the suicide ability become the same as the Capture Building Upgrade in terms of time limitations.

In other words, I want the Suicide ability, on all of Demo's units and base defenses, be enabled if-

1) the unit has been existent for 10 seconds.
2) the upgrade has been complete for just as long.

The outcome should be exactly like the Capture Building ability: only clickable after the unit and the upgrade have been around for a set amount of time. This way, the demo rebels, having only just spawned, will have to wait for a small amount of time before they are allowed to detonate themselves, just as they always have had to wait before they can capture buildings, allowing anti-infantry units like gatts and quads to react before the big kaboom owns the whole mix.

Someone tell me how to code this please?