I need to create a passive aura that will have a chance to taunt nearby creep and order him to attack you.
Now the general idea is what I have.
1st Trigger
2nd trigger
I guess this will work but 2 things I'm having problem with.
1) Since this other trigger will start working since you learn the skill it will check every X (x-time ) seconds for the entire game and set a variable. Will this cause a lag and do you guys have any other idea how this might work? I was thinking adding first a trigger (Unit is attacked) but I don't know then how should I turn off and on the 2nd trigger
2) Is there a way a could disable a taunted enemy hero control much like Axe does in dota with Berseker Call.
Thanks.
Now the general idea is what I have.
1st Trigger
Code:
Shining Armor
Events
Unit - A unit Learns a skill
Conditions
(Level of Shining Armor for (Learning Hero)) Equal to 1
Actions
Set ArcaneKnight = (Learning Hero)
Trigger - Turn on Shining Armor effect <gen>
2nd trigger
Code:
Shining Armor effect
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set ArcaneKnightArea = (Units within 600.00 of (Position of ArcaneKnight) matching ((((Triggering unit) belongs to an enemy of Player 2 (Blue)) Equal to True) and (((Triggering unit) is alive) Equal to True)))
Unit Group - Pick every unit in ArcaneKnightArea and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 30
Then - Actions
Unit - Order (Picked unit) to Attack ArcaneKnight
Custom script: call DestroyGroup (udg_ArcaneKnightArea)
Else - Actions
Custom script: call DestroyGroup (udg_ArcaneKnightArea)
I guess this will work but 2 things I'm having problem with.
1) Since this other trigger will start working since you learn the skill it will check every X (x-time ) seconds for the entire game and set a variable. Will this cause a lag and do you guys have any other idea how this might work? I was thinking adding first a trigger (Unit is attacked) but I don't know then how should I turn off and on the 2nd trigger
2) Is there a way a could disable a taunted enemy hero control much like Axe does in dota with Berseker Call.
Thanks.