• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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