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
Knight's Clashing.w3x
Variables
Initialization
Hero spawn
Gate Triggers
Gate Trigger Red Side
Close Red Gate
Gate Trigger Greens Side
Close Green Gate
Gate Trigger Purples Side
Close Purple Gate
Gate Trigger Light Blue Side
Close Light Blue Gate
Unit Spawn
Red Attack
Red Move
Light Blue Attac
LB Move
Green Attack
green Move
Purp Attack
Purp Move
Hero Revive
Hero Revive Team Red
Hero Revive Team Green
Hero Revive Team Purpl
Hero Revive Team LB
Hero Change
Hero Change
Hero Change2
Hero heal
Hero heal 2
Hero heal 3
Hero heal 4
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
GreenUnitGroup
group
No
LightBlueUnitGroup
group
No
PurpleUnitGroup
group
No
RedUnitGroup
group
No
Hero spawn
Events
Map initialization
Conditions
Actions
Unit - Create 1 . Sergeant for Player 2 (Blue) at (Center of Hero_Spawn1 <gen>) facing Default building facing degrees
Unit - Create 1 . Sergeant for Player 3 (Teal) at (Center of Hero_Spawn1 <gen>) facing Default building facing degrees
Unit - Create 1 . Sergeant for Player 5 (Yellow) at (Center of Hero_Spawn2 <gen>) facing Default building facing degrees
Unit - Create 1 . Sergeant for Player 6 (Orange) at (Center of Hero_Spawn2 <gen>) facing Default building facing degrees
Unit - Create 1 . Sergeant for Player 8 (Pink) at (Center of Hero_Spawn3 <gen>) facing Default building facing degrees
Unit - Create 1 . Sergeant for Player 9 (Gray) at (Center of Hero_Spawn3 <gen>) facing Default building facing degrees
Unit - Create 1 . Sergeant for Player 11 (Dark Green) at (Center of Hero_Spawn4 <gen>) facing Default building facing degrees
Unit - Create 1 . Sergeant for Player 12 (Brown) at (Center of Hero_Spawn4 <gen>) facing Default building facing degrees
Gate Trigger Red Side
Events
Unit - A unit enters Red_Gate_Open <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Entering unit)) Equal to Player 1 (Red)
(Owner of (Entering unit)) Equal to Player 2 (Blue)
(Owner of (Entering unit)) Equal to Player 3 (Teal)
Actions
Destructible - Open Iron Gate 0017 <gen>
Close Red Gate
Events
Unit - A unit leaves Red_Gate_Open <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Leaving unit)) Equal to Player 1 (Red)
(Owner of (Leaving unit)) Equal to Player 2 (Blue)
(Owner of (Leaving unit)) Equal to Player 3 (Teal)
Actions
Destructible - Close Iron Gate 0017 <gen>
Gate Trigger Greens Side
Events
Unit - A unit enters Green_Gate_Open <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Entering unit)) Equal to Player 7 (Green)
(Owner of (Entering unit)) Equal to Player 8 (Pink)
(Owner of (Entering unit)) Equal to Player 9 (Gray)
Actions
Destructible - Open Iron Gate 0481 <gen>
Close Green Gate
Events
Unit - A unit leaves Green_Gate_Open <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Leaving unit)) Equal to Player 7 (Green)
(Owner of (Leaving unit)) Equal to Player 8 (Pink)
(Owner of (Leaving unit)) Equal to Player 9 (Gray)
Actions
Destructible - Close Iron Gate 0481 <gen>
Gate Trigger Purples Side
Events
Unit - A unit enters Purple_Gate_Open <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Entering unit)) Equal to Player 4 (Purple)
(Owner of (Entering unit)) Equal to Player 5 (Yellow)
(Owner of (Entering unit)) Equal to Player 6 (Orange)
Actions
Destructible - Open Iron Gate 0459 <gen>
Close Purple Gate
Events
Unit - A unit leaves Purple_Gate_Open <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Leaving unit)) Equal to Player 4 (Purple)
(Owner of (Leaving unit)) Equal to Player 5 (Yellow)
(Owner of (Leaving unit)) Equal to Player 6 (Orange)
Actions
Destructible - Close Iron Gate 0459 <gen>
Gate Trigger Light Blue Side
Events
Unit - A unit enters Light_Blue_Region_Oopen <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Entering unit)) Equal to Player 10 (Light Blue)
(Owner of (Entering unit)) Equal to Player 11 (Dark Green)
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Destructible - Open Iron Gate 1894 <gen>
Close Light Blue Gate
Events
Unit - A unit leaves Light_Blue_Region_Oopen <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Leaving unit)) Equal to Player 10 (Light Blue)
(Owner of (Leaving unit)) Equal to Player 11 (Dark Green)
(Owner of (Leaving unit)) Equal to Player 12 (Brown)
Actions
Destructible - Close Iron Gate 1894 <gen>
Red Attack
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Unit - Create 4 . Footman for Player 1 (Red) at (Center of Red_Unit_Spawn <gen>) facing Default building facing degrees
Unit - Create 2 . Mortar Team for Player 1 (Red) at (Center of Red_Unit_Spawn <gen>) facing Default building facing degrees
Unit - Create 1 . Priest for Player 1 (Red) at (Center of Red_Unit_Spawn <gen>) facing Default building facing degrees
Red Move
Events
Unit - A unit enters Red_Unit_Spawn <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 1 (Red)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of Light_Blue_Unit_Spawn <gen>)
Light Blue Attac
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Unit - Create 4 . Footman for Player 10 (Light Blue) at (Center of Light_Blue_Unit_Spawn <gen>) facing Default building facing degrees
Unit - Create 2 . Mortar Team for Player 10 (Light Blue) at (Center of Light_Blue_Unit_Spawn <gen>) facing Default building facing degrees
Unit - Create 1 . Priest for Player 10 (Light Blue) at (Center of Green_Unit_Spawn <gen>) facing Default building facing degrees
LB Move
Events
Unit - A unit enters Light_Blue_Unit_Spawn <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 10 (Light Blue)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of Red_Unit_Spawn <gen>)
Green Attack
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Unit - Create 4 . Footman for Player 7 (Green) at (Center of Green_Unit_Spawn <gen>) facing Default building facing degrees
Unit - Create 2 . Mortar Team for Player 7 (Green) at (Center of Green_Unit_Spawn <gen>) facing Default building facing degrees
Unit - Create 1 . Priest for Player 7 (Green) at (Center of Green_Unit_Spawn <gen>) facing Default building facing degrees
green Move
Events
Unit - A unit enters Green_Unit_Spawn <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 7 (Green)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of Purple_Unit_Spawn <gen>)
Purp Attack
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Unit - Create 4 . Footman for Player 4 (Purple) at (Center of Purple_Unit_Spawn <gen>) facing Default building facing degrees
Unit - Create 2 . Mortar Team for Player 4 (Purple) at (Center of Purple_Unit_Spawn <gen>) facing Default building facing degrees
Unit - Create 1 . Priest for Player 4 (Purple) at (Center of Purple_Unit_Spawn <gen>) facing Default building facing degrees
Purp Move
Events
Unit - A unit enters Purple_Unit_Spawn <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 4 (Purple)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of Green_Unit_Spawn <gen>)
Hero Revive Team Red
Events
Unit - A unit Dies
Conditions
((Owner of (Dying unit)) is an ally of Player 1 (Red).) Equal to True
Actions
Hero - Instantly revive (Dying unit) at (Center of Hero_Spawn1 <gen>) , Show revival graphics
Hero Revive Team Green
Events
Unit - A unit Dies
Conditions
((Owner of (Dying unit)) is an ally of Player 7 (Green).) Equal to True
Actions
Hero - Instantly revive (Dying unit) at (Center of Hero_Spawn3 <gen>) , Show revival graphics
Hero Revive Team Purpl
Events
Unit - A unit Dies
Conditions
((Owner of (Dying unit)) is an ally of Player 4 (Purple).) Equal to True
Actions
Hero - Instantly revive (Dying unit) at (Center of Hero_Spawn2 <gen>) , Show revival graphics
Hero Revive Team LB
Events
Unit - A unit Dies
Conditions
((Owner of (Dying unit)) is an ally of Player 10 (Light Blue).) Equal to True
Actions
Hero - Instantly revive (Dying unit) at (Center of Hero_Spawn4 <gen>) , Show revival graphics
Hero Change
Events
Unit - A unit Gains a level
Conditions
((Triggering unit) is A Hero) Equal to True
(Hero level of (Triggering unit)) Equal to 10
Actions
If ((Owner of (Triggering unit)) Equal to Player 2 (Blue)) then do (Create 1.Commander for Player 2 (Blue) at (Center of Hero_Spawn1 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 3 (Teal)) then do (Create 1.Commander for Player 3 (Teal) at (Center of Hero_Spawn1 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 5 (Yellow)) then do (Create 1.Commander for Player 5 (Yellow) at (Center of Hero_Spawn2 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 6 (Orange)) then do (Create 1.Commander for Player 6 (Orange) at (Center of Hero_Spawn2 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 8 (Pink)) then do (Create 1.Commander for Player 8 (Pink) at (Center of Hero_Spawn3 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 9 (Gray)) then do (Create 1.Commander for Player 9 (Gray) at (Center of Hero_Spawn3 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 11 (Dark Green)) then do (Create 1.Commander for Player 11 (Dark Green) at (Center of Hero_Spawn4 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 12 (Brown)) then do (Create 1.Commander for Player 12 (Brown) at (Center of Hero_Spawn4 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
Hero Change2
Events
Unit - A unit Gains a level
Conditions
((Triggering unit) is A Hero) Equal to True
(Hero level of (Triggering unit)) Equal to 20
Actions
If ((Owner of (Triggering unit)) Equal to Player 2 (Blue)) then do (Create 1.High General for Player 2 (Blue) at (Center of Hero_Spawn1 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 3 (Teal)) then do (Create 1.High General for Player 3 (Teal) at (Center of Hero_Spawn1 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 5 (Yellow)) then do (Create 1.High General for Player 5 (Yellow) at (Center of Hero_Spawn2 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 6 (Orange)) then do (Create 1.High General for Player 6 (Orange) at (Center of Hero_Spawn2 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 8 (Pink)) then do (Create 1.High General for Player 8 (Pink) at (Center of Hero_Spawn3 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 9 (Gray)) then do (Create 1.High General for Player 9 (Gray) at (Center of Hero_Spawn3 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 11 (Dark Green)) then do (Create 1.High General for Player 11 (Dark Green) at (Center of Hero_Spawn4 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
If ((Owner of (Triggering unit)) Equal to Player 12 (Brown)) then do (Create 1.High General for Player 12 (Brown) at (Center of Hero_Spawn4 <gen>) facing Default building facing degrees) else do (Do nothing)
Unit - Remove (Triggering unit) from the game
Hero heal
Events
Unit - A unit enters Heal1 <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Entering unit)) Equal to Player 2 (Blue)
(Owner of (Entering unit)) Equal to Player 3 (Teal)
Actions
Unit - Set life of (Triggering unit) to (Max life of (Triggering unit))
Hero heal 2
Events
Unit - A unit enters Heal2 <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Entering unit)) Equal to Player 5 (Yellow)
(Owner of (Entering unit)) Equal to Player 6 (Orange)
Actions
Unit - Set life of (Triggering unit) to (Max life of (Triggering unit))
Hero heal 3
Events
Unit - A unit enters Heal3 <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Entering unit)) Equal to Player 8 (Pink)
(Owner of (Entering unit)) Equal to Player 9 (Gray)
Actions
Unit - Set life of (Triggering unit) to (Max life of (Triggering unit))
Hero heal 4
Events
Unit - A unit enters Heal4 <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Entering unit)) Equal to Player 11 (Dark Green)
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Set life of (Triggering unit) to (Max life of (Triggering unit))
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.