Adding abilities and charges via items

Status
Not open for further replies.
Level 10
Joined
Sep 29, 2006
Messages
447
How would add abilities, and add charges for that ability to units via picking up an item. I want exactly what they do in the Castanar mission (secret mission) from campaign.

Basically this is what happens:
-You have a unit with no abilities
-Your unit picks up a grenade item
-The grenade ability is added to your unit with 3 charges
-If you pick up another grenade item, the charges of your grenade ability increases by 3
-If you use the grenade ability, your charges decrease by 1 (obviously)
-When you use all of the charges, the ability is grayed out (or possibly removed, I haven't decided which yet)

This sort of thing has to happen for several different item-types.

Does anybody know how to do something like this? I want to make a survival-type map that uses this kind of system.
 
Status
Not open for further replies.
Top