HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Add Ablity Trigger Question

04-26-2003, 02:41 PM#1
rockinairfoce1z
Is there a trigger that adds a regular unit ability like load, heal, repair, etc. I'm not talking bout Hero abilities. If you know how to or the name of the Trigger, please tell me.. Thank You!
04-26-2003, 03:12 PM#2
SektorGaza
I don't think it's possible. Maybe I just lack knowledge about that.
You could learn a new skill for a hero.
04-26-2003, 03:24 PM#3
rockinairfoce1z
hmmm thats strange cuz theres a Remove Unit Ability Triger...
Anybody else know?
04-26-2003, 04:21 PM#4
FyreDaug
Let me explain this.

Firstly you cannot add abilities through triggers.
Yes there is a trigger to remove abilities, but that doesn't remove it from one unit, it removes it for all the units controlled by player X.

You will need to make multiple copies of units in order for it to look like an ability was added.
04-26-2003, 06:31 PM#5
ChrydGod
The trigger action :

Unit - Remove (chosen ability) from (unit x)

Actually removes the chosen ability from the unit x only.

That trigger action differs from Player - Enable/Disable ability for player

What you could do is simply give the unit all the possible abilities and remove then unwanted one, but then the problem would be : that change is permanent.

Then ?

Well
If you want to reenable that ability, just replace that unit with a unit of the same type with the current old unit's life and mana and then disable the unwanted abilities but the one you want your unit to have.

Thats all.

I hope this helped you.

Regards.
04-26-2003, 06:43 PM#6
layzie86988
I've done it like ChrydGod said, where I gave the unit all the possible abilities, then disabled them at the beginning and re-enabled them again later. It worked just fine - the disabling wasn't permanent.
05-03-2003, 06:25 AM#7
rockinairfoce1z
how did u get the abilities to comeback??
05-03-2003, 05:32 PM#8
layzie86988
When you want the ability back, use the trigger action: Enable (some ability) for (some player).
05-03-2003, 05:37 PM#9
layzie86988
You also have to make sure that the ability is researched, which you can do with the trigger action: Player - Set the current research level of (some ability) for (some player).