I have a skill (based on Taunt of the Mountain Giant) in a unit to provoke nearby enemy units. In level 1, provoke the nearest enemy unit by adding (200 x Skill Level) points of the Threat System that I have implemented (Zwiebelchen's Threat System 2.7), in level 2 it provokes the two closest enemies and in level 3 to the three enemies closest.
What I have is this:
provoke
Then I set out to do it using Triggers, but I do not know how to pick up more than one enemy unit closer for add the threat points, so I hope you can give me a hand with this.
What I have is this:
-
Provoke
-
Events
-
Unit - A unit owned by Player 1 (Red) Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Provoke (Guerrero)
-
-
Actions
-
Wait 0.50 seconds
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Triggering unit)) matching ((Owner of (Matching unit)) Equal to Neutral Hostile)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Provoked ) Equal to True
-
-
Then - Actions
-
Custom script: call ZTS_ModifyThreat( GetTriggerUnit(), GetEnumUnit(), 200*GetUnitAbilityLevel(GetTriggerUnit(), GetSpellAbilityId()), true)
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
provoke
Then I set out to do it using Triggers, but I do not know how to pick up more than one enemy unit closer for add the threat points, so I hope you can give me a hand with this.
Last edited: