J
Jethro
Guest
I want to make an abiltity to use as a button to fire a trigger. Then imidiately disable that ability for that player. I tried windwalk because thats what I used for sell tower but when i click the ability it disables the wrong ability. I have 4 abilities to click and I only what the user to be able to choose 2. (Earth, Wind, Water, Fire)
EX:
Earth Enable
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Earth Element
ElementsChosen[(Player number of (Owner of (Casting unit)))] Less than or equal to 1
Actions
Player - Disable Earth Element for (Owner of (Casting unit))
Set ElementsChosen[(Player number of (Owner of (Casting unit)))] = (ElementsChosen[(Player number of (Owner of (Casting unit)))] + 1)
Player - Set the current research level of Earth Elements to 1 for (Owner of (Casting unit))
When Ability (Earth Element) is click it should end up disabling itself and researching Upgrade (Earth Elements). :banghead:
EX:
Earth Enable
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Earth Element
ElementsChosen[(Player number of (Owner of (Casting unit)))] Less than or equal to 1
Actions
Player - Disable Earth Element for (Owner of (Casting unit))
Set ElementsChosen[(Player number of (Owner of (Casting unit)))] = (ElementsChosen[(Player number of (Owner of (Casting unit)))] + 1)
Player - Set the current research level of Earth Elements to 1 for (Owner of (Casting unit))
When Ability (Earth Element) is click it should end up disabling itself and researching Upgrade (Earth Elements). :banghead:


