stan0033
Banned
- Joined
- Jun 27, 2010
- Messages
- 2,683
Hey everyone, here I'm trying to trigger bounty from heroes and non-heroes.
if the killed unit is hero then give level of unit x 500 gold to each player nearby and if it's not a hero give level of hero x 10 to each player nearby.
Also I don't knwo what is th path of the gold bounty animation.
I post here to see you opinion on the trigger, see if there's somethign wrong
if the killed unit is hero then give level of unit x 500 gold to each player nearby and if it's not a hero give level of hero x 10 to each player nearby.
Also I don't knwo what is th path of the gold bounty animation.
I post here to see you opinion on the trigger, see if there's somethign wrong
-
Bounty
-
Events
- Unit - A unit Dies
- Conditions
-
Actions
- Set Bounty_Loc = (Position of (Killing unit))
- Set Bounty_Gr = (Units within 900.00 of Bounty_Loc matching (((Picked unit) belongs to an ally of (Owner of (Killing unit))) Equal to True))
-
Unit Group - Pick every unit in Bounty_Gr and do (Actions)
-
Loop - Actions
- Player Group - Add (Owner of (Picked unit)) to Bounty_Pl
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Then - Actions
-
Player Group - Pick every player in Bounty_Pl and do (Actions)
-
Loop - Actions
- Player - Add ((Level of (Triggering unit)) x 500) to (Picked player) Current gold
- Special Effect - Create a special effect attached to the overhead of Hero[(Player number of (Picked player))] using UI\Feedback\Confirmation\Confirmation.mdl
-
Loop - Actions
-
Player Group - Pick every player in Bounty_Pl and do (Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) is A Hero) Equal to False
-
Then - Actions
-
Player Group - Pick every player in Bounty_Pl and do (Actions)
-
Loop - Actions
- Player - Add ((Level of (Triggering unit)) x 10) to (Picked player) Current gold
- Special Effect - Create a special effect attached to the overhead of Hero[(Player number of (Picked player))] using UI\Feedback\Confirmation\Confirmation.mdl
-
Loop - Actions
-
Player Group - Pick every player in Bounty_Pl and do (Actions)
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_Bounty_Loc)
- Custom script: call DestroyGroup(udg_Bounty_Gr)
- Player Group - Remove all players from Bounty_Pl
-
Events