• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Removing Abilities

Status
Not open for further replies.
Level 10
Joined
Oct 2, 2014
Messages
215
In a map i'm making, it has ammo, and that ammo for one weapon is gold. The weapon is also a ability. I mad it so when all gold runs out, the weapons will be removed from their abilities bar. And when they get gold again it would reappear. But the problem is when i remove the ability i cant move or use anymore abilities, does anyone know why?
 
Level 23
Joined
Feb 6, 2014
Messages
2,466
To Remove

  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • Ability being Cast = Fire (Your ability)
  • Actions
    • If (All Conditions are true then) do Actions else do Else Actions
      • Triggering Player current gold equal to 0
    • Then - Actions
      • Unit - Remove Ability from (TriggeringUnit)
    • Else

  • Events
    • Player - Player 1's current gold becomes greater than 1
    • Player - Player 2's current gold becomes greater than 1
    • Player - Player 3's current gold becomes greater than 1
  • Conditions
  • Actions
    • Unit - Add Ability to (yourUnit)
(yourUnit) is the unit with the ability of Firing and the Event needs to have all players not just player 1,2 and 3.
 
Last edited:
Status
Not open for further replies.
Top