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
[1] Giant Attack.w3x
Variables
Initialization
Melee Initialization
Win
Lose
Gate
Gate
Giant Rejection
Giant Rejection Copy
Giants
Death
This should work
Spawn Giant
Spawn Giant Early
Spawn Quil Giant
Spawn Sea Giant
Spawn Giant Warlock
Spawn Giant Bear
Spawn Death Giant
Spawn Giant Giant
Humans
Fun
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
GiantSpawn
integer
No
2
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Quest - Create a Required quest titled Destroy the Monolith with the description There is a mysterious monolith teleporting in these giants. It must be destroyed in order to stop this! , using icon path ReplaceableTextures\CommandButtons\BTNResStone.blp
Quest - Create a Optional quest titled Hotkeys with the description If you want to use a hotkey, press the first letter of it's name (i.e, Fireball would be F). , using icon path ReplaceableTextures\WorldEditUI\DoodadPlaceholder.blp
Player - Set Player 1 (Red) . Current gold to 500
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Fog of war across Monolith <gen>
Win
Events
Unit - Titan Monolith 0010 <gen> Dies
Conditions
Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Lose
Events
Unit - Royal Castle 0009 <gen> Dies
Conditions
Actions
Game - Defeat Player 1 (Red) with the message: Defeat!
Gate
Events
Unit - A unit enters Teleport <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 1 (Red)
Actions
Unit - Move (Entering unit) instantly to (Random point in Humans <gen>)
Giant Rejection
Events
Unit - A unit enters WayGate <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 2 (Blue)
Actions
Special Effect - Create a special effect at (Position of (Entering unit)) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Unit - Move (Entering unit) instantly to (Center of WayGate_Copy <gen>)
Game - Display to (All players) the text: |c006969FFThe waygate's mysterious powers repel the giant...|r
Unit - Order (Entering unit) to Attack-Move To . (Center of WayGate_Copy_Copy <gen>)
Giant Rejection Copy
Events
Unit - A unit enters WayGate_Copy_Copy <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 2 (Blue)
Actions
Unit - Order (Entering unit) to Attack-Move To . (Center of Giant_Attack <gen>)
Death
Events
Unit - A unit owned by Player 2 (Blue) . Dies
Conditions
Actions
Player - Add 100 to Player 1 (Red) . Current lumber
This should work
Events
Time - Every (Random real number between 2.00 and 10.00) seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units owned by Player 2 (Blue) matching ((Unit-type of (Matching unit)) Not equal to Iron Giant).) and do (Order (Picked unit) to Attack-Move To.(Center of Giant_Attack <gen>))
Spawn Giant
Events
Time - Every (Random real number between 90.00 and 150.00) seconds of game time
Conditions
Actions
Unit - Create (GiantSpawn / 2) . Giant for Player 2 (Blue) at (Random point in Giant_Spawn <gen>) facing Default building facing degrees
Set Variable Set GiantSpawn = (GiantSpawn + 1)
Spawn Giant Early
Events
Time - Elapsed game time is 60.00 seconds
Conditions
Actions
Unit - Create (GiantSpawn / 2) . Giant for Player 2 (Blue) at (Random point in Giant_Spawn <gen>) facing Default building facing degrees
Game - Display to (All players) the text: Spawned.
Spawn Quil Giant
Events
Time - Every (Random real number between 120.00 and 165.00) seconds of game time
Conditions
GiantSpawn Greater than or equal to 3
Actions
Unit - Create (GiantSpawn / 3) . Quil Giant for Player 2 (Blue) at (Random point in Giant_Spawn <gen>) facing Default building facing degrees
Spawn Sea Giant
Events
Time - Every (Random real number between 120.00 and 165.00) seconds of game time
Conditions
GiantSpawn Greater than or equal to 6
Actions
Unit - Create (GiantSpawn / 5) . Sea Giant for Player 2 (Blue) at (Random point in Giant_Spawn <gen>) facing Default building facing degrees
Spawn Giant Warlock
Events
Time - Every (Random real number between 100.00 and 145.00) seconds of game time
Conditions
GiantSpawn Greater than or equal to 8
Actions
Unit - Create (GiantSpawn / 10) . Giant Warlock for Player 2 (Blue) at (Random point in Giant_Spawn <gen>) facing Default building facing degrees
Spawn Giant Bear
Events
Time - Every (Random real number between 135.00 and 180.00) seconds of game time
Conditions
GiantSpawn Greater than or equal to 15
Actions
Unit - Create (GiantSpawn / 20) . Giant Bear for Player 2 (Blue) at (Random point in Giant_Spawn <gen>) facing Default building facing degrees
Spawn Death Giant
Events
Time - Every (Random real number between 180.00 and 300.00) seconds of game time
Conditions
GiantSpawn Greater than or equal to 35
Actions
Unit - Create 1 . Death Giant for Player 2 (Blue) at (Random point in Giant_Spawn <gen>) facing Default building facing degrees
Spawn Giant Giant
Events
Time - Every (Random real number between 150.00 and 200.00) seconds of game time
Conditions
GiantSpawn Greater than or equal to 15
Actions
Unit - Create 1 . Giant Giant for Player 2 (Blue) at (Random point in Giant_Spawn <gen>) facing Default building facing degrees
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.