Hi - I've been a lurker for a few weeks, as I've begun learning the editor, and this forum has been an incredible resource, so thanks!
I have a question about Veterancy Behaviors that I haven't been able to find the answer to elsewhere.
Is it possible to modify 'Behavior - Experience Fraction,' or possibly another field that will allow a unit to gain experience points for actions besides combat? For example: can a medic unit gain exp for healing?
Thanks for any help!
This event fires when a unit uses an ability. Use "Triggering Ability" to get the ability that was used. Use "Triggering Ability Stage" to get the stage the ability was in when the event fired. Use "Triggering Ability Target Point" to get the target point for the ability. Use "Triggering Ability Target Unit" to get the target unit for the ability. Use "Triggering Player" to get the player that used the ability. Use "Triggering Unit" to get the unit that used the ability.
Use that event and then award the exp for if.
If you're having trouble awarding EXP, there's one work around I can think of, it's sloppy but it should work.
When the healer triggers his heal ability, have it spawn a custom Unit that is invisible and passive, when the heal ends, have the medic trigger a kill action on that unit, it should award exp to the medic.
Wow, one of my suggestions worked? Glad I could be of help, I noticed alot of posts asking about this, so I wracked my brains over a solution that didn't include external sources. And all I could come up with was the fact that kills = exp, so why not just award kills for every action thats not a kill, and i'll be damned if it worked. :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi - I've been a lurker for a few weeks, as I've begun learning the editor, and this forum has been an incredible resource, so thanks! I have a question about Veterancy Behaviors that I haven't been able to find the answer to elsewhere. Is it possible to modify 'Behavior - Experience Fraction,' or possibly another field that will allow a unit to gain experience points for actions besides combat? For example: can a medic unit gain exp for healing? Thanks for any help!
@smashbox: Go
I'm no genius, but I think:
Unit Uses Ability
This event fires when a unit uses an ability. Use "Triggering Ability" to get the ability that was used. Use "Triggering Ability Stage" to get the stage the ability was in when the event fired. Use "Triggering Ability Target Point" to get the target point for the ability. Use "Triggering Ability Target Unit" to get the target unit for the ability. Use "Triggering Player" to get the player that used the ability. Use "Triggering Unit" to get the unit that used the ability.
Use that event and then award the exp for if.
If you're having trouble awarding EXP, there's one work around I can think of, it's sloppy but it should work.
When the healer triggers his heal ability, have it spawn a custom Unit that is invisible and passive, when the heal ends, have the medic trigger a kill action on that unit, it should award exp to the medic.
Thanks for the help - this worked great. To others with the same issue, check out this post for a handy library that will solve this problem simply and effectively. Along with the above post, it made the process very easy: http:forums.sc2mapster.com/resources/trigger-libraries/5069-library-add-experience-to-unit/
@smashbox: Go
Wow, one of my suggestions worked? Glad I could be of help, I noticed alot of posts asking about this, so I wracked my brains over a solution that didn't include external sources. And all I could come up with was the fact that kills = exp, so why not just award kills for every action thats not a kill, and i'll be damned if it worked. :)