Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Ranged Cowards.w3x
Variables
Initialization
Unit Range Move Back
Unit Range Move Back 2
Untitled Trigger 001
Readme
Untitled Trigger 002
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
Unit Range Move Back
Events
Unit - A unit Is attacked
Conditions
(Distance between (Position of (Attacking unit)) and (Position of (Attacked unit))) Less than 300.00
((Attacking unit) is A ranged attacker) Equal to True
((Attacking unit) is A flying unit) Equal to False
((Attacking unit) is A melee attacker) Equal to False
(Owner of (Attacking unit)) Not equal to Neutral Passive
Actions
Trigger - Turn off (This trigger)
Unit - Order (Attacking unit) to Stop .
Wait 0.03 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain pathing at ((Position of (Attacking unit)) offset by 600.00 towards (180.00 + (Facing of (Attacking unit))) degrees.) of type Walkability is off) Equal to False
Then - Actions
Unit - Order (Attacking unit) to Move To . ((Position of (Attacked unit)) offset by 800.00 towards (180.00 + (Facing of (Attacking unit))) degrees.)
Else - Actions
Unit - Order (Attacking unit) to Move To . ((Position of (Attacked unit)) offset by 800.00 towards (0.00 + (Facing of (Attacking unit))) degrees.)
Wait 2.00 seconds
Unit - Order (Attacking unit) to Attack . (Attacked unit)
Trigger - Turn on (This trigger)
Unit Range Move Back 2
Events
Unit - A unit Is attacked
Conditions
(Distance between (Position of (Attacking unit)) and (Position of (Attacked unit))) Less than 300.00
((Attacked unit) is A ranged attacker) Equal to True
((Attacked unit) is A flying unit) Equal to False
((Attacking unit) is A melee attacker) Equal to True
(Owner of (Attacking unit)) Not equal to Neutral Passive
Actions
Trigger - Turn off (This trigger)
Unit - Order (Attacked unit) to Stop .
Floating Text - Create floating text that reads Interupted ! at (Position of (Attacked unit)) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Show (Last created floating text) for (All players)
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the fading age of (Last created floating text) to 4 seconds
Wait 0.03 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain pathing at ((Position of (Attacked unit)) offset by 800.00 towards (180.00 + (Facing of (Attacked unit))) degrees.) of type Walkability is off) Equal to False
Then - Actions
Unit - Order (Attacked unit) to Move To . ((Position of (Attacked unit)) offset by 800.00 towards (180.00 + (Facing of (Attacked unit))) degrees.)
Else - Actions
Unit - Order (Attacked unit) to Move To . ((Position of (Attacked unit)) offset by 800.00 towards (0.00 + (Facing of (Attacked unit))) degrees.)
Wait 2.00 seconds
Unit - Order (Attacked unit) to Attack . (Attacking unit)
Trigger - Turn on (This trigger)
Untitled Trigger 001
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (Playable map area)
This not much of a system just a Melee Guyz night mare.
Used this in my map thought why not just upload it.
pathing movement direction is not crutial any where far from attacking melee guy is fine
Untitled Trigger 002
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Game - Display to (All players) the text: The general Idea behind is ranged unit cannot attack in close ranged and channeling spells are interupted when attacked by melee guy
Wait 5.00 seconds
Wait 2 seconds
Cinematic - Clear the screen of text messages for (All players) .
Game - Display to (All players) the text: Especially those annoying life suck spells... which is stupid... like I would beating the life out of him and he is cooly channeling spells as if nothings happening
Wait 10.00 seconds
Wait 2 seconds
Cinematic - Clear the screen of text messages for (All players) .
Game - Display to (All players) the text: This system is designed to prevent melee unit from AOEing creeps.
Wait 5.00 seconds
Wait 2 seconds
Cinematic - Clear the screen of text messages for (All players) .
Game - Display to (All players) the text: This system is not intended for User controlled heros
Wait 5.00 seconds
Wait 2 seconds
Cinematic - Clear the screen of text messages for (All players) .
Game - Display to (All players) the text: If you want it to use for user controlled unit then add a condition that unit is not selected by user
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.