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
King Quest.w3x
Variables
Initialization
Initialization
Triggers
Trigger 001
Trigger 002
Trigger 003
Trigger 004
Trigger 005
Trigger 006
Quests
Quest Trigger 001
Quest Trigger 002
Quest Trigger 003
Quest Trigger 004
Quest Trigger 005
Quest Trigger 006
Quest Trigger 007
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
FinalOfUndead
quest
No
FindAnNewEmpier
quest
No
SaveKingSon
quest
No
UndeadEscapes
quest
No
WarWithUndead
quest
No
Default melee game initialization for all players
Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Use melee time of day (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Enforce victory/defeat conditions (for all players)
Unit - Make Shrine 0052 <gen> Invulnerable
Unit - Make Wagon 0073 <gen> Invulnerable
Unit - Make King's son 0112 <gen> Invulnerable
Unit - Create 3 . Granite Golem for Neutral Hostile at (Center of Region_002 <gen>) facing Default building facing degrees
Animation - Play Kel'Thuzad 0053 <gen> 's Stand Channel animation
Animation - Play Kel'Thuzad 0054 <gen> 's Stand Channel animation
Animation - Play Kel'Thuzad 0055 <gen> 's Stand Channel animation
Animation - Play Kel'Thuzad 0056 <gen> 's Stand Channel animation
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from (Center of Region_003 <gen>) to a radius of 512 .
Trigger 001
Events
Unit - A unit enters Region_001 <gen>
Conditions
(King 0037 <gen> is alive) Equal to True
Actions
Unit - Explode Ancient Protector 0030 <gen> .
Unit - Explode Ancient Protector 0029 <gen> .
Unit - Explode Ancient Protector 0028 <gen> .
Unit - Explode Ancient Protector 0027 <gen> .
Unit - Explode Ancient Protector 0026 <gen> .
Unit - Explode Ancient Protector 0025 <gen> .
Unit - Explode Ancient Protector 0024 <gen> .
Unit - Explode Ancient Protector 0023 <gen> .
Unit - Explode Ancient Protector 0022 <gen> .
Unit - Explode Ancient Protector 0021 <gen> .
Unit - Explode Ancient Protector 0020 <gen> .
Unit - Explode Ancient Protector 0019 <gen> .
Unit - Explode Ancient Protector 0018 <gen> .
Unit - Explode Ancient Protector 0017 <gen> .
Unit - Explode Ancient Protector 0016 <gen> .
Unit - Explode Ancient Protector 0015 <gen> .
Unit - Explode Ancient Protector 0014 <gen> .
Unit - Explode Ancient Protector 0033 <gen> .
Unit - Explode Ancient Protector 0034 <gen> .
Unit - Explode Ancient Protector 0035 <gen> .
Unit - Explode Ancient Protector 0036 <gen> .
Unit - Explode Ancient Protector 0038 <gen> .
Unit - Explode Ancient Protector 0039 <gen> .
Unit - Explode Ancient Protector 0040 <gen> .
Unit - Explode Ancient Protector 0041 <gen> .
Unit - Explode Ancient Protector 0042 <gen> .
Unit - Explode Ancient Protector 0043 <gen> .
Unit - Explode Ancient Protector 0044 <gen> .
Unit - Explode Ancient Protector 0045 <gen> .
Unit - Explode Ancient Protector 0046 <gen> .
Unit - Explode Ancient Protector 0047 <gen> .
Unit - Explode Ancient Protector 0048 <gen> .
Unit - Explode Ancient Protector 0032 <gen> .
Unit - Explode Ancient Protector 0031 <gen> .
Trigger - Turn off Trigger_001 <gen>
Trigger 002
Events
Unit - King 0037 <gen> Dies
Conditions
Actions
Game - Defeat Player 1 (Red) with the message: You Lose!
Trigger 003
Events
Time - Every 10.00 seconds of game time
Conditions
(Shrine 0052 <gen> is dead) Equal to True
(King 0037 <gen> is alive) Equal to True
Actions
Unit - Create 1 . Dreadlord for Player 2 (Blue) at (Center of Region_006 <gen>) facing Default building facing degrees
Unit - Create 8 . Warlock for Player 2 (Blue) at (Center of Region_006 <gen>) facing Default building facing degrees
Unit - Create 16 . Kel'Thuzad (Necromancer) for Player 2 (Blue) at (Center of Region_006 <gen>) facing Default building facing degrees
Unit - Create 32 . Zombie for Player 2 (Blue) at (Center of Region_006 <gen>) facing Default building facing degrees
Unit - Make Wagon 0073 <gen> Vulnerable
Destructible - Kill Magical Pen 2498 <gen>
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from (Center of Region_006 <gen>) to a radius of 512 .
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from (Center of Region_007 <gen>) to a radius of 512 .
Unit Group - Order (Units in Region_006 <gen>) to Hold Position
Unit Group - Order (Units in Region_006 <gen>) to Patrol To . (Center of Region_007 <gen>)
Trigger - Turn off Trigger_003 <gen>
Trigger 004
Events
Time - Every 1.00 seconds of game time
Conditions
(Kel'Thuzad 0053 <gen> is dead) Equal to True
(Kel'Thuzad 0054 <gen> is dead) Equal to True
(Kel'Thuzad 0055 <gen> is dead) Equal to True
(Kel'Thuzad 0056 <gen> is dead) Equal to True
(King 0037 <gen> is alive) Equal to True
Actions
Unit - Make Shrine 0052 <gen> Vulnerable
Trigger - Turn off Trigger_004 <gen>
Trigger 005
Events
Time - Elapsed game time is 300.00 seconds
Conditions
(Shrine 0052 <gen> is alive) Equal to True
(King 0037 <gen> is alive) Equal to True
Actions
Destructible - Create a OTsp (Unexpected type: 'destructablecode') at (Center of Region_005 <gen>) facing 90.00 with scale 1.00 and variation 0
Unit - Create 1 . Warlock for Player 2 (Blue) at (Center of Region_008 <gen>) facing Default building facing degrees
Unit Group - Order (Units in Region_009 <gen>) to Hold Position
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from (Center of Region_009 <gen>) to a radius of 512.00 .
Trigger 006
Events
Time - Every 7.00 seconds of game time
Conditions
(King 0037 <gen> is alive) Equal to True
Actions
Unit Group - Pick every unit in (Units in Region_009 <gen>) and do (Play (Picked unit)'s Spell Slam animation)
Quest Trigger 001
Events
Map initialization
Conditions
Actions
Quest - Create a Required quest titled FindAnNewEmpier with the description Go talk with the teal empire.King canot die. , using icon path ReplaceableTextures\CommandButtons\BTNCastle.blp
Set Variable Set FindAnNewEmpier = (Last created quest)
Quest - Display to (All players) the Quest Discovered message: Required Quest Discovered:Go talk with the teal empire.King canot die.
Quest - Create a Optional, undiscovered quest titled SaveKingSon with the description Save King's son.King canot die. , using icon path ReplaceableTextures\CommandButtons\BTNVillagerKid.blp
Set Variable Set SaveKingSon = (Last created quest)
Quest - Create a Required, undiscovered quest titled WarWithUndead with the description Kill the Kel'thuzads to the Shirne become vunerable.King canot die. , using icon path ReplaceableTextures\CommandButtons\BTNUndeadShrine.blp
Set Variable Set WarWithUndead = (Last created quest)
Quest - Create a Required, undiscovered quest titled FinalOfUndead with the description Destroy the Shirne.King canot die. , using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
Set Variable Set FinalOfUndead = (Last created quest)
Quest - Create a Required, undiscovered quest titled UndeadEscapes with the description Destroy the wagon.King canot die. , using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
Set Variable Set UndeadEscapes = (Last created quest)
Quest Trigger 002
Events
Unit - A unit enters Region_003 <gen>
Conditions
(King 0037 <gen> is alive) Equal to True
Actions
Quest - Mark FindAnNewEmpier as Completed
Quest - Display to (All players) the Quest Completed message: Required Quest Complete:Go talk with the teal empire.King canot die.
Quest - Mark WarWithUndead as Discovered
Quest - Display to (All players) the Quest Discovered message: Required Quest Discovered:Kill the Kel'thuzads to the Shirne become vunerable.King canot die.
Quest - Mark SaveKingSon as Discovered
Quest - Display to (All players) the Quest Discovered message: Optional Quest Discovered:Save King's son.King canot die.
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from (Center of Region_004 <gen>) to a radius of 512 .
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from (Center of Region_010 <gen>) to a radius of 512 .
Trigger - Turn off Quest_Trigger_002 <gen>
Quest Trigger 003
Events
Destructible - Magical Pen 2497 <gen> dies
Conditions
(King's son 0112 <gen> is alive) Equal to True
(King 0037 <gen> is alive) Equal to True
Actions
Unit - Make King's son 0112 <gen> Vulnerable
Quest - Mark SaveKingSon as Completed
Quest - Display to (All players) the Quest Completed message: Optional Quest Complete:Save King's Son.King canot die.
Quest Trigger 004
Events
Time - Every 1.00 seconds of game time
Conditions
(Kel'Thuzad 0053 <gen> is dead) Equal to True
(Kel'Thuzad 0054 <gen> is dead) Equal to True
(Kel'Thuzad 0055 <gen> is dead) Equal to True
(Kel'Thuzad 0056 <gen> is dead) Equal to True
(King 0037 <gen> is alive) Equal to True
Actions
Quest - Mark WarWithUndead as Completed
Quest - Display to (All players) the Quest Completed message: Required Quest Complete:Kill the Kel'thuzads to the Shirne become vunerable.King canot die.
Quest - Mark FinalOfUndead as Discovered
Quest - Display to (All players) the Quest Discovered message: Required Quest Discovered:Destroy the Shirne.King canot die.
Trigger - Turn off Quest_Trigger_004 <gen>
Quest Trigger 005
Events
Unit - Shrine 0052 <gen> Dies
Conditions
(King 0037 <gen> is alive) Equal to True
Actions
Quest - Mark FinalOfUndead as Completed
Quest - Display to (All players) the Quest Completed message: Required Quest Complete:Destroy the Shirne.King canot die.
Quest Trigger 006
Events
Time - Every 10.00 seconds of game time
Conditions
(Shrine 0052 <gen> is dead) Equal to True
(King 0037 <gen> is alive) Equal to True
Actions
Quest - Mark UndeadEscapes as Discovered
Quest - Display to (All players) the Quest Discovered message: Required Quest Discovered:Destroy the wagon.King canot die.
Trigger - Turn off Trigger_003 <gen>
Quest Trigger 007
Events
Unit - Wagon 0073 <gen> Dies
Conditions
(King 0037 <gen> is alive) Equal to True
Actions
Quest - Mark UndeadEscapes as Completed
Quest - Display to (All players) the Quest Completed message: Required Quest Discovered:Destroy the wagon.King canot die.
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
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.