Action - Pick Each Player in Active Players{
if ((picked player = owner of (killing unit)) or (picked player ally of player(owner of (killing unit)) ) then ( give xp to units in region(convert point(position of dying Unit) to region radius 10)
}
I havent worked out xp on any of my maps yet but if i was gonna give units xp with a trigger I would do it like this.
Im not sure if the units in the data editor have a value on them for how much xp they give. Possibly if they dont I would set up and array that hold every units in game's xp value and Then i would pull the units xp value from this array to apply that specific ammount of xp.
Though I really dont see why you would need to do it this way. I swear Ive seen people have XP sharing working properly on thier maps.
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
To post a comment, please login or register a new account.
@Jinxxx123: Go
Well if your doing this by trigger you do a
Event - Unit Dies
Action - Pick Each Player in Active Players{
if ((picked player = owner of (killing unit)) or (picked player ally of player(owner of (killing unit)) ) then ( give xp to units in region(convert point(position of dying Unit) to region radius 10)
}
I havent worked out xp on any of my maps yet but if i was gonna give units xp with a trigger I would do it like this.
Im not sure if the units in the data editor have a value on them for how much xp they give. Possibly if they dont I would set up and array that hold every units in game's xp value and Then i would pull the units xp value from this array to apply that specific ammount of xp.
Though I really dont see why you would need to do it this way. I swear Ive seen people have XP sharing working properly on thier maps.