Been testing my options and whats possible within the editor
for the past hour or so ive been messing around with Heroes and Veterancey.
What im trying to do is have it that when 2 heroes are within each others radius to multiply the experience gain by 1.25 or 25%.
reason for doing so is to make players to want to group up and level together.
so far, i made a buff behavior called PartyXP for testing and put a value of 8 within the Kill Bonus to see if it would actually do anything.
which it didnt.
so now i believe im forced to apply the Multiplier by triggers but nothing seems to be able to make this work.
Heres the idea i started going with.
Events
Unit - -Zealot [24.05, 224.76] Enters a distance of 12.0 from -Karass [44.31, 197.18]
Actions
Unit - Add 1 PartyXP to -Zealot [24.05, 224.76] from -Karass [44.31, 197.18]
Now i recieve the buff perfectly the only problem is the Kill Bonus within the Behavior, since it doesnt do anything.
Would anyone have any ideas on how this would be possible or something that would be somewhat similar to this?
Make a trigger with events dependent upon how your heroes gain exp. If they gain exp on unit death, use the Unit Dies event (otherwise use Unit Takes Damage or whatever.) In conditions, check if the Killing Unit (or damaging unit) has the bonus exp buff. Then use a behavior to apply the bonus exp accordingly. You will probably need to check which unit was killed or, more simply, use Catalog Field Value Get to find the triggering unit's exp score and multiply that by 0.25.
It might be best to create a behavior which applies +1 exp, then use the Repeat function and loop it by the amount of bonus EXP the killing unit should get.
Party Buff Player 1
Events
Unit - Any Unit Enters a distance of 12.0 from -Karass [41.51, 204.28]
Local Variables
Conditions
(Owner of (Triggering unit)) == 1
Actions
Unit - Add 1 Party Bonus to (Triggering unit) from player 2
-
-Karass [41.51, 204.28] was put into the map through the editor so im able to easily select him.
what i need to do now is have it so when the players select their heroes through my dialog for this to work.
and since Karass wouldnt be already on the map how would i be able to put it so the buff gets applied when Player 1 gets in range of Player 2?
Hey all
Been testing my options and whats possible within the editor
for the past hour or so ive been messing around with Heroes and Veterancey. What im trying to do is have it that when 2 heroes are within each others radius to multiply the experience gain by 1.25 or 25%. reason for doing so is to make players to want to group up and level together.
so far, i made a buff behavior called PartyXP for testing and put a value of 8 within the Kill Bonus to see if it would actually do anything. which it didnt.
so now i believe im forced to apply the Multiplier by triggers but nothing seems to be able to make this work.
Heres the idea i started going with.
Events Unit - -Zealot [24.05, 224.76] Enters a distance of 12.0 from -Karass [44.31, 197.18]
Actions Unit - Add 1 PartyXP to -Zealot [24.05, 224.76] from -Karass [44.31, 197.18]
Now i recieve the buff perfectly the only problem is the Kill Bonus within the Behavior, since it doesnt do anything.
Would anyone have any ideas on how this would be possible or something that would be somewhat similar to this?
-Projekton
@Projekton: Go
Hmm, still having issues. The reason i know this is possible, is because its used within Hero Attack. when one team has more players then another.
just cant figure out exactly went down to making this work.
Make a trigger with events dependent upon how your heroes gain exp. If they gain exp on unit death, use the Unit Dies event (otherwise use Unit Takes Damage or whatever.) In conditions, check if the Killing Unit (or damaging unit) has the bonus exp buff. Then use a behavior to apply the bonus exp accordingly. You will probably need to check which unit was killed or, more simply, use Catalog Field Value Get to find the triggering unit's exp score and multiply that by 0.25.
It might be best to create a behavior which applies +1 exp, then use the Repeat function and loop it by the amount of bonus EXP the killing unit should get.
Love, BasharTeg
Self-quoted like a boss.
@BasharTeg: Go
alright, i got that working. thanks.
one more question tho.
Party Buff Player 1 Events Unit - Any Unit Enters a distance of 12.0 from -Karass [41.51, 204.28] Local Variables Conditions (Owner of (Triggering unit)) == 1 Actions Unit - Add 1 Party Bonus to (Triggering unit) from player 2 -
-Karass [41.51, 204.28] was put into the map through the editor so im able to easily select him. what i need to do now is have it so when the players select their heroes through my dialog for this to work. and since Karass wouldnt be already on the map how would i be able to put it so the buff gets applied when Player 1 gets in range of Player 2?
okay, awsome got it working now. thanks for the help.