• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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