- Joined
- Sep 20, 2015
- Messages
- 385
Hello,
I need help for my map. Basically in this map every player controls a hero with 0 abilities. With an RNG system whenever the heroes pick up a specific object they learn 1 random ability. After they cast the ability it disappear. A hero can use an ability one time. I'm using this trigger to remove the ability after the cast :
So my question is there is a way to detect when an ability is casted with an item??
I tried disabling the triggers whenever a hero used an item, but didn't work as well.
Please tell me i dnt have to check for all abilities type one by one.
Thanks in advance
I need help for my map. Basically in this map every player controls a hero with 0 abilities. With an RNG system whenever the heroes pick up a specific object they learn 1 random ability. After they cast the ability it disappear. A hero can use an ability one time. I'm using this trigger to remove the ability after the cast :
-
Events
-
Units - A unit finishes casting an ability
-
-
Conditions
-
Actions
-
Set CastedAbility (PlayerNumberOf (owner of (Casting unit))) = (Ability being cast)
-
Unit - Remove CastedAbility (PlayerNumberOf (owner of (Casting unit))) from (Casting unit)
-
-
So my question is there is a way to detect when an ability is casted with an item??
I tried disabling the triggers whenever a hero used an item, but didn't work as well.
Please tell me i dnt have to check for all abilities type one by one.
Thanks in advance