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
Plants vs Zombies v1.3.w3x
Variables
Initialization
Melee Initialization
Untitled Trigger 008
Untitled Category
round 11
round 12
---------------------------
change round
---------------------------
round 21
round 22
---------------------------
Huge wave1
---------------------------
change round 2
---------------------------
round 31
round 32
---------------------------
Huge wave2
---------------------------
Huge wave1 Copy 2
---------------------------
Untitled Trigger 001
Untitled Category
Untitled Trigger 003 Copy Copy
Untitled Trigger 003 Copy
Untitled Trigger 003
Suns
Untitled Category
Untitled Trigger 004
Untitled Trigger 005
Untitled Category
Move1
Move2
Untitled Category
Untitled Trigger 006
Untitled Category
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
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Game - Set the time of day to 12
Game - Turn the day/night cycle Off
Player - Set Player 1 (Red) . Current gold to 200
Player - Turn Gives bounty On for Player 2 (Blue)
Unit - Make Crazy man! 0002 <gen> Invulnerable
Game - Display to (All players) the text: |cffffcc00Kill 500 Zombies to WIN!!!|rAmateur Zombie: 1 pointProfessional Zombie: 3 pointsAmored Zombie: 5 pointsYou will be defeated |cffffcc00when the farm is destroyed....|r(created by |cffffcc00Wij|r at: |[email protected]|r)
Sound - Set the music list to preview_2 <gen> , starting with a random song
Environment - Set sky to Blizzard Sky
Unit - Pause Crazy man! 0002 <gen>
Untitled Trigger 008
Events
Time - Elapsed game time is 10.00 seconds
Conditions
Actions
Game - Display to (All players) the text: |cffffcc00READY...|r
Wait 2 seconds
Game - Display to (All players) the text: |cffffcc00SET...|r
Wait 2 seconds
Game - Display to (All players) the text: |cffffcc00PLANT!!!|r
Trigger - Turn on round_11 <gen>
Trigger - Turn on round_12 <gen>
Trigger - Turn on Move1 <gen>
Trigger - Turn on Move2 <gen>
Trigger - Turn on Suns <gen>
Unit - Unpause Crazy man! 0002 <gen>
round 11
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create 1 . amateur Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit Group - Order (Units in Region_003 <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
round 12
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Unit - Create 1 . professional Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 2 . amateur Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit Group - Order (Units in zombie <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Unit Group - Order (Units in Region_003 <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
change round
Events
Time - Elapsed game time is 150.00 seconds
Conditions
Actions
Trigger - Turn on round_21 <gen>
Trigger - Turn on round_22 <gen>
Trigger - Turn off round_11 <gen>
Trigger - Turn off round_12 <gen>
Game - Set the time of day to 18.00
Game - Turn the day/night cycle Off
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Random point in Garden <gen>) facing (Random angle) with scale 1 and variation 0
round 21
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create 1 . professional Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Game - Display to (All players) the text: New wave of zombies!
Unit Group - Order (Units in zombie <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
round 22
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Unit - Create 2 . amored Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit Group - Order (Units in zombie <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Unit Group - Order (Units in Region_003 <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Huge wave1
Events
Time - Elapsed game time is 300.00 seconds
Conditions
Actions
Game - Display to (All players) the text: Here comes a new |cffffcc00A HUGE WAVE OF ZOMBIES!!!!!|r
Unit - Create 2 . amored Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 3 . professional Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 5 . amateur Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit Group - Order (Units in Region_003 <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
change round 2
Events
Time - Elapsed game time is 300.00 seconds
Conditions
Actions
Trigger - Turn on round_21 <gen>
Trigger - Turn on round_22 <gen>
Trigger - Turn off round_11 <gen>
Trigger - Turn off round_12 <gen>
Game - Set the time of day to 24.00
Game - Turn the day/night cycle Off
Environment - Create at Garden <gen> the weather effect Ashenvale Rain (Heavy)
Sound - Clear the music list
Sound - Set the music list to preview <gen> , starting with a random song
round 31
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create 2 . professional Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 5 . amateur Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Game - Display to (All players) the text: New wave of zombies!
Unit Group - Order (Units in zombie <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Unit Group - Order (Units in Region_003 <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
round 32
Events
Time - Every 40.00 seconds of game time
Conditions
Actions
Unit - Create 3 . amored Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 3 . amateur Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit Group - Order (Units in zombie <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Unit Group - Order (Units in Region_003 <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Huge wave2
Events
Time - Elapsed game time is 500.00 seconds
Conditions
Actions
Game - Display to (All players) the text: Here comes a new |cffffcc00A HUGE WAVE OF ZOMBIES!!!!!|r
Unit - Create 3 . amored Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 5 . professional Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 10 . amateur Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit Group - Order (Units in zombie <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Unit Group - Order (Units in Region_003 <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Huge wave1 Copy 2
Events
Time - Every 200.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: Here comes a new |cffffcc00A HUGE WAVE OF ZOMBIES!!!!!|r
Unit - Create 3 . amored Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 5 . professional Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 10 . amateur Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit Group - Order (Units in zombie <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Unit Group - Order (Units in Region_003 <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Untitled Trigger 001
Events
Player - Player 1 (Red) 's Current lumber becomes Equal to 450.00
Conditions
Actions
Game - Display to (All players) the text: Here comes the final |cffffcc00A HUGE WAVE OF ZOMBIES!!!!!|r
Unit - Create 5 . amored Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 10 . professional Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit - Create 20 . amateur Zombie for Player 2 (Blue) at (Random point in zombie <gen>) facing Default building facing degrees
Unit Group - Order (Units in zombie <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Unit Group - Order (Units in Region_003 <gen>) to Attack-Move To . (Position of Farm 0000 <gen>)
Untitled Trigger 003 Copy Copy
Events
Unit - A unit owned by Player 2 (Blue) . Dies
Conditions
(Unit-type of (Triggering unit)) Equal to amored Zombie
Actions
Player - Add 5 to Player 1 (Red) . Current lumber
Unit - Create 1 . Sun for Neutral Passive at (Random point in Sun <gen>) facing Default building facing degrees
Unit - Create 1 . Sun for Neutral Passive at (Random point in Sun <gen>) facing Default building facing degrees
Unit - Create 1 . Sun for Neutral Passive at (Random point in Sun <gen>) facing Default building facing degrees
Unit - Create 1 . Sun for Neutral Passive at (Random point in Sun <gen>) facing Default building facing degrees
Unit - Create 1 . Sun for Neutral Passive at (Random point in Sun <gen>) facing Default building facing degrees
Untitled Trigger 003 Copy
Events
Unit - A unit owned by Player 2 (Blue) . Dies
Conditions
(Unit-type of (Triggering unit)) Equal to professional Zombie
Actions
Player - Add 3 to Player 1 (Red) . Current lumber
Unit - Create 1 . Sun for Neutral Passive at (Random point in Sun <gen>) facing Default building facing degrees
Unit - Create 1 . Sun for Neutral Passive at (Random point in Sun <gen>) facing Default building facing degrees
Unit - Create 1 . Sun for Neutral Passive at (Random point in Sun <gen>) facing Default building facing degrees
Untitled Trigger 003
Events
Unit - A unit owned by Player 2 (Blue) . Dies
Conditions
(Unit-type of (Triggering unit)) Equal to amateur Zombie
Actions
Player - Add 1 to Player 1 (Red) . Current lumber
Unit - Create 1 . Sun for Neutral Passive at (Random point in Sun <gen>) facing Default building facing degrees
Suns
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Sun for Neutral Passive at (Random point in Sun <gen>) facing Default building facing degrees
Untitled Trigger 004
Events
Player - Player 1 (Red) 's Current lumber becomes Greater than or equal to 500.00
Conditions
Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Untitled Trigger 005
Events
Unit - Farm 0000 <gen> Dies
Conditions
Actions
Game - Defeat Player 1 (Red) with the message: The Zombies ate your brains!!!
Move1
Events
Unit - A unit owned by Player 1 (Red) . Is issued an order targeting a point
Conditions
Actions
Unit - Move (Triggering unit) instantly to (Target point of issued order)
Move2
Events
Unit - A unit owned by Player 1 (Red) . Is issued an order targeting an object
Conditions
Actions
Unit - Move (Triggering unit) instantly to (Position of (Target item of issued order))
Untitled Trigger 006
Events
Player - Player 1 (Red) Selects a unit
Conditions
(Unit-type of (Triggering unit)) Equal to Sun
Actions
Player - Add 50 to Player 1 (Red) . Current gold
Unit - Kill (Triggering unit)
Untitled Trigger 002
Events
Unit - A unit owned by Neutral Hostile . Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Frozen tree
Actions
Animation - Change (Triggering unit) 's animation speed to 0.00 % of its original speed
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.