is there a way to trigger an ability?
Cause I want to add experience points to a hero with a trigger. Or how would you solve this problem? Is there any other solution, maybe?
In the "Modify Unit" effect type there is a field called "Experience". So you could use a ability, either "Effect - Instant" or "Effect - Target" to call a "Modify Unit" effect which has the Experience field set to however much xp you wish to give.
I expect that this will work, but I am supposed to be working and haven't tested it.
You need to go to the "Effect" Tab and create an effect of type "Modify Unit", and then go back to the ability and in the "Effect" field select the effect you just created.
It doesn't look like you can order unit to use a custom ability through the GUI atm. Another potential way is create a Behavior of type "Buff". Change its duration to something small, say 0.1 seconds. In the "Expire Effect" set it to the effect you created earlier. Then in your trigger use "Add Behavior" to apply the new behavior. I am not sure I like this solution, its feels wrong to me, but it will probably do what you want until something better can be found.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi,
is there a way to trigger an ability? Cause I want to add experience points to a hero with a trigger. Or how would you solve this problem? Is there any other solution, maybe?
Thx for any help
M0rt3
@m0rte: Go
Create a "grant experience" ability that grants the amount of XP you want. Then, cast that ability on unit from player with a trigger.
@rrowland: can u explain me which "abilty typ" and "bades on" i need for this ability?
m0rt3
In the "Modify Unit" effect type there is a field called "Experience". So you could use a ability, either "Effect - Instant" or "Effect - Target" to call a "Modify Unit" effect which has the Experience field set to however much xp you wish to give.
I expect that this will work, but I am supposed to be working and haven't tested it.
Hm, ty for your answer but im stupid. I cant find the "Modify Unit" when i create an ability as "Effect - Instant" or "Effect - Target".
o.0
Edit: okay i found it. But now i cant add this ability in my trigger.
Unit - Order Extra XP [93.00, 149.00] to ("""Ability Command""" HeroinFlagLocal) (Replace Existing Orders)
You need to go to the "Effect" Tab and create an effect of type "Modify Unit", and then go back to the ability and in the "Effect" field select the effect you just created.
Ah super! Ty.
okay i found it. But now i cant add this ability in my trigger.
Unit - Order Extra XP [93.00, 149.00] to ("""Ability Command""" HeroinFlagLocal) (Replace Existing Orders)
EDIT: Trigger dont go. Unit - Order Extra XP [93.00, 149.00] to ( Blink Ambiter [18.99, 103.75]) (Replace Existing Orders)
Blink ist my GrantExperience Ability!!!
The Ability work fine. I test it! But the trigger dont go!!!
M0rt3
It doesn't look like you can order unit to use a custom ability through the GUI atm. Another potential way is create a Behavior of type "Buff". Change its duration to something small, say 0.1 seconds. In the "Expire Effect" set it to the effect you created earlier. Then in your trigger use "Add Behavior" to apply the new behavior. I am not sure I like this solution, its feels wrong to me, but it will probably do what you want until something better can be found.