I have a Hero that I made that has an ability that gives the hero a behavior that spawns a second, invunerable hero beside it for 20 seconds (duration of the behavior). The problem is whenever this new duplicate kills an enemy, it takes half of the xp away from the original hero. What I've been attempting to accomplish is having both the hero and duplicate get the same amount of xp. Right now I have the xp range at 8. What I have as my trigger is
event: Any Unit dies.Condition: Unit type = HeroAction:If (I have conditions stating that the duplicate killed the unit, and there is another hero in the area) Then This is where I am stuck. I would like it so that I can add another 1/2 of the kill experience of the dying unit to both the duplicate and the hero. I can't seem to find a way to do that. If someone knows please let me know. Thanks!
@SoulTaker916: Go I did what you said, and it's close. The problem is, when I click unit resources it doesn't let you chose what resource. So it looks like
unit - Set Hero Experience to ((Hero Experience (current)) + ((Triggering unit) (Current)).
I can't find what option there is so you can pick the "bounty xp".
I have a Hero that I made that has an ability that gives the hero a behavior that spawns a second, invunerable hero beside it for 20 seconds (duration of the behavior). The problem is whenever this new duplicate kills an enemy, it takes half of the xp away from the original hero. What I've been attempting to accomplish is having both the hero and duplicate get the same amount of xp. Right now I have the xp range at 8. What I have as my trigger is
event: Any Unit dies. Condition: Unit type = Hero Action: If (I have conditions stating that the duplicate killed the unit, and there is another hero in the area) Then This is where I am stuck. I would like it so that I can add another 1/2 of the kill experience of the dying unit to both the duplicate and the hero. I can't seem to find a way to do that. If someone knows please let me know. Thanks!
Wassup my hometown homie!
use code and /code to make ur stuff look cleaner
as for your answer you would want to unit property action, heres an example
Unit - Set Hero Experience to ((Hero Experience (Current)) + ((Triggering unit) Bounty (XP) (Current)))
@SoulTaker916: Go I did what you said, and it's close. The problem is, when I click unit resources it doesn't let you chose what resource. So it looks like unit - Set Hero Experience to ((Hero Experience (current)) + ((Triggering unit) (Current)). I can't find what option there is so you can pick the "bounty xp".
im using unit property on the arithmitic, im also currently in irc
Sorry, but I still don't get it, for I too am using an arithmetic function, but unit property is not a function that can be used.
u need to use REAL not integer arithmitic
Works great. Thanks!