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
Peon Wars 1.1.w3x
Variables
Initialization
Melee Initialization
Quest
Quest
Death Tower
Notify
Color
CP Color
CP income
Start
Top
Mid
Bot
Camera
Game Start
Time Bonus Money
Five
Ten
Fifteen
Twenty
Defeat
Team
Team Copy
Individual
Top Tips
Top tips
Hero
Level 6
Hero Limit
Hero Limit
Demolish
Destroy
Resources
Lumber
Gold
Zombie
Spawn
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
Timer
timer
Yes
Timerwindow
timerdialog
Yes
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Quest
Events
Time - Elapsed game time is 5 seconds
Conditions
Actions
Quest - Create a Required quest titled Peon Wars with the description -Select a Peon at your Altar-Gain income by killing enemy towers and taking over the Control Points-Build towers to destroy the enemy's Main Tower-Your team's Main Tower must survive , using icon path ReplaceableTextures\CommandButtons\BTNPeon.blp
Quest - Create a Required quest titled Control Points with the description -Capture Control Points in the middle of the map using your Peon's Capture ability-Control Points grant income and a global aura for your team-The top Control Point grants a global health regeneration aura-The middle Control Point grants a global speed aura-The bottom Control Point grants a global mana regeneration aura , using icon path ReplaceableTextures\CommandButtons\BTNCOP.blp
Notify
Events
Unit - A unit Begins construction
Conditions
Death Tower Equal to Footman
Actions
Game - Display to (All players) the text: A Death Tower is being constructed.
Cinematic - Ping minimap for (All players) at (Position of (Constructing structure)) for 5.00 seconds
CP Color
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Capture
Actions
If ((Target unit of ability being cast) Equal to Control Point (Might) 0087 <gen>) then do (Change color of (Target unit of ability being cast) to Red) else do (Do nothing)
If ((Target unit of ability being cast) Equal to Control Point (Swiftness) 0086 <gen>) then do (Change color of (Target unit of ability being cast) to Green) else do (Do nothing)
If ((Target unit of ability being cast) Equal to Control Point (Wisdom) 0085 <gen>) then do (Change color of (Target unit of ability being cast) to Blue) else do (Do nothing)
Start
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Countdown Timer - Start Timer[1] as a Repeating timer that will expire in 60.00 seconds
Countdown Timer - Create a timer window for (Last started timer) with title CP Income
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Set (Picked player) . Current gold to 1
Player - Set (Picked player) . Current lumber to 1
Top
Events
Time - Timer[1] expires
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of Control Point (Might) 0087 <gen>) Equal to Player 1 (Red)
(Owner of Control Point (Might) 0087 <gen>) Equal to Player 2 (Blue)
(Owner of Control Point (Might) 0087 <gen>) Equal to Player 3 (Teal)
(Owner of Control Point (Might) 0087 <gen>) Equal to Player 4 (Purple)
(Owner of Control Point (Might) 0087 <gen>) Equal to Player 5 (Yellow)
Then - Actions
Player Group - Pick every player in (All allies of Player 1 (Red).) and do (Actions)
Loop - Actions
Player - Add 3 to (Picked player) . Current gold
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of Control Point (Might) 0087 <gen>) Equal to Player 6 (Orange)
(Owner of Control Point (Might) 0087 <gen>) Equal to Player 7 (Green)
(Owner of Control Point (Might) 0087 <gen>) Equal to Player 8 (Pink)
(Owner of Control Point (Might) 0087 <gen>) Equal to Player 9 (Gray)
(Owner of Control Point (Might) 0087 <gen>) Equal to Player 10 (Light Blue)
Then - Actions
Player Group - Pick every player in (All allies of Player 6 (Orange).) and do (Actions)
Loop - Actions
Player - Add 3 to (Picked player) . Current gold
Else - Actions
Do nothing
Mid
Events
Time - Timer[1] expires
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of Control Point (Swiftness) 0086 <gen>) Equal to Player 1 (Red)
(Owner of Control Point (Swiftness) 0086 <gen>) Equal to Player 2 (Blue)
(Owner of Control Point (Swiftness) 0086 <gen>) Equal to Player 3 (Teal)
(Owner of Control Point (Swiftness) 0086 <gen>) Equal to Player 4 (Purple)
(Owner of Control Point (Swiftness) 0086 <gen>) Equal to Player 5 (Yellow)
Then - Actions
Player Group - Pick every player in (All allies of Player 1 (Red).) and do (Actions)
Loop - Actions
Player - Add 3 to (Picked player) . Current gold
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of Control Point (Swiftness) 0086 <gen>) Equal to Player 6 (Orange)
(Owner of Control Point (Swiftness) 0086 <gen>) Equal to Player 7 (Green)
(Owner of Control Point (Swiftness) 0086 <gen>) Equal to Player 8 (Pink)
(Owner of Control Point (Swiftness) 0086 <gen>) Equal to Player 9 (Gray)
(Owner of Control Point (Swiftness) 0086 <gen>) Equal to Player 10 (Light Blue)
Then - Actions
Player Group - Pick every player in (All allies of Player 6 (Orange).) and do (Actions)
Loop - Actions
Player - Add 3 to (Picked player) . Current gold
Else - Actions
Do nothing
Bot
Events
Time - Timer[1] expires
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of Control Point (Wisdom) 0085 <gen>) Equal to Player 1 (Red)
(Owner of Control Point (Wisdom) 0085 <gen>) Equal to Player 2 (Blue)
(Owner of Control Point (Wisdom) 0085 <gen>) Equal to Player 3 (Teal)
(Owner of Control Point (Wisdom) 0085 <gen>) Equal to Player 4 (Purple)
(Owner of Control Point (Wisdom) 0085 <gen>) Equal to Player 5 (Yellow)
Then - Actions
Player Group - Pick every player in (All allies of Player 1 (Red).) and do (Actions)
Loop - Actions
Player - Add 3 to (Picked player) . Current gold
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of Control Point (Wisdom) 0085 <gen>) Equal to Player 6 (Orange)
(Owner of Control Point (Wisdom) 0085 <gen>) Equal to Player 7 (Green)
(Owner of Control Point (Wisdom) 0085 <gen>) Equal to Player 8 (Pink)
(Owner of Control Point (Wisdom) 0085 <gen>) Equal to Player 9 (Gray)
(Owner of Control Point (Wisdom) 0085 <gen>) Equal to Player 10 (Light Blue)
Then - Actions
Player Group - Pick every player in (All allies of Player 6 (Orange).) and do (Actions)
Loop - Actions
Player - Add 3 to (Picked player) . Current gold
Else - Actions
Do nothing
Game Start
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Camera - Pan camera for Player 1 (Red) to (Position of Great Hall 0004 <gen>) over 0 seconds
Camera - Pan camera for Player 2 (Blue) to (Position of Great Hall 0007 <gen>) over 0 seconds
Camera - Pan camera for Player 3 (Teal) to (Position of Great Hall 0001 <gen>) over 0 seconds
Camera - Pan camera for Player 4 (Purple) to (Position of Great Hall 0010 <gen>) over 0 seconds
Camera - Pan camera for Player 5 (Yellow) to (Position of Great Hall 0005 <gen>) over 0 seconds
Camera - Pan camera for Player 6 (Orange) to (Position of Great Hall 0011 <gen>) over 0 seconds
Camera - Pan camera for Player 7 (Green) to (Position of Great Hall 0017 <gen>) over 0 seconds
Camera - Pan camera for Player 8 (Pink) to (Position of Great Hall 0018 <gen>) over 0 seconds
Camera - Pan camera for Player 9 (Gray) to (Position of Great Hall 0019 <gen>) over 0 seconds
Camera - Pan camera for Player 10 (Light Blue) to (Position of Great Hall 0020 <gen>) over 0 seconds
Five
Events
Time - Elapsed game time is 300.00 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add 25 to (Picked player) . Current gold
Game - Display to (All players) the text: Five minutes have passed. All players have received 25 gold.
Ten
Events
Time - Elapsed game time is 600.00 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add 50 to (Picked player) . Current gold
Game - Display to (All players) the text: Ten minutes have passed. All players have received 50 gold.
Fifteen
Events
Time - Elapsed game time is 900.00 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add 50 to (Picked player) . Current gold
Game - Display to (All players) the text: Fifteen minutes have passed. All players have received an additional 50 gold.
Twenty
Events
Time - Elapsed game time is 1200.00 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add 75 to (Picked player) . Current gold
Player - Set the current research level of R004 (Unexpected type: 'techcode') to 1 for (Picked player)
Game - Display to (All players) the text: Twenty minutes have passed. All players have received 75 gold and can build Death Towers regardless of research. Time to end the game!
Team
Events
Unit - Main Tower 0037 <gen> Dies
Conditions
Actions
Player Group - Pick every player in (All allies of Player 6 (Orange).) and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Player Group - Pick every player in (All allies of Player 1 (Red).) and do (Actions)
Loop - Actions
Game - Victory (Picked player) ( Show dialogs, Show scores)
Team Copy
Events
Unit - Main Tower 0036 <gen> Dies
Conditions
Actions
Player Group - Pick every player in (All allies of Player 1 (Red).) and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Player Group - Pick every player in (All allies of Player 6 (Orange).) and do (Actions)
Loop - Actions
Game - Victory (Picked player) ( Show dialogs, Show scores)
Individual
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Great Hall
Actions
Game - Defeat (Owner of (Dying unit)) with the message: Defeat!
Top tips
Events
Time - Every 45.00 seconds of game time
Conditions
Actions
If ((Random integer number between 1 and 20) Equal to 1) then do (Display to (All players) the text: Tip 1: At the start of the game, several tomes spawn in the middle of the map. Get there fast!) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 2) then do (Display to (All players) the text: Tip 2: Take note of high-ground advantages. You can only capture the Control Points on the low ground, but your towers have a chance to miss when shooting uphill.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 3) then do (Display to (All players) the text: Tip 3: The Mighty Peon has high health but low speed, the Nimble peon has high speed but low mana and the Wise Peon has high mana but low health. Take care of your Peon's disadvantages and make use of the advantages.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 4) then do (Display to (All players) the text: Tip 4: You get 1 lumber every second, but Gold is gained by killing enemy towers and Peons and by controlling the Control points in the center of the map.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 5) then do (Display to (All players) the text: Tip 5: Take over Control Points with the Capture ability, then defend them with Towers. Each CP grants income and a special aura: Top for HP regeneration, Mid for speed and Bot for MP regeneration.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 6) then do (Display to (All players) the text: Tip 6: There are 2 ways to win: Either destroy the opponent team's Main Tower or destroy all their individual bases.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 7) then do (Display to (All players) the text: Tip 7: Your Main Tower sells several useful items. Always carry a Teleport Scroll around, because reviving your Peon after it dies is expensive.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 8) then do (Display to (All players) the text: Tip 8: Your Altar can use the Wrath of Storms ability to deter incoming attackers. It has a long cooldown, so use it wisely.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 9) then do (Display to (All players) the text: Tip 9: Ultimate abilities are learned at level 10, while the Peon-specific tower can be built at level 6.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 10) then do (Display to (All players) the text: Tip 10: Using your Peon's Ultimate ability will leave it vulnerable, but if executed well, the rewards are great.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 11) then do (Display to (All players) the text: Tip 11: Multiple Wise Peons can co-ordinate their Fire Blasts to quickly kill off your Peon. Carry around some Healing Potions or, even better, an Eternal Scepter!) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 12) then do (Display to (All players) the text: Tip 12: The Death Tower is the most powerful tower in the game, bar the Main Tower. It requires an expensive research or 20 minutes of time to elapse, and the enemy will be notified once you start building it, but if you protect it during the construction, you will reap the benefits.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 13) then do (Display to (All players) the text: Tip 13: Have your team members build towers around a Control Point while you capture it, securing it for your entire team.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 14) then do (Display to (All players) the text: Tip 14: There are two kinds of summoned units: Zombies, which are summoned from Witch Doctor towers when they kill enemies, and Spirit Wolves, which are summoned by Wise Peons or with the Feral Charm item.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 15) then do (Display to (All players) the text: Tip 15: At 5,10,15 and 20 minutes into the game, all players will receive additional gold. Use it wisely!) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 16) then do (Display to (All players) the text: Tip 16: Rushing is not advised as the Main Tower is difficult to take down without the proper items and tactics, and even the player's bases can retaliate with Wrath of Storms.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 17) then do (Display to (All players) the text: Tip 17: Magic immunity from the Eternal Scepter will protect you from the Wise Peon's Fireblast and Flame Strike and from the Witch Doctor Tower's attack.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 18) then do (Display to (All players) the text: Tip 18: Your base food capacity is 25, but it can be increased by training Pigs and Pack Kodos. Kodos are tough, but more expensive than Pigs. Protect your food producers from sneaking Peons and Wolves!) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 19) then do (Display to (All players) the text: Tip 19: You can sneak your peon or some of the Feral Charm's Wolves down to your enemies' base to kill their Pigs. The Nimble Peon's Cloak makes this easier.) else do (Do nothing)
If ((Random integer number between 1 and 20) Equal to 20) then do (Display to (All players) the text: Tip 20: Pooling gold and lumber to an ally to let them do tower upgrades/Death Tower Research is a great way to gain an upgrade advantage.) else do (Do nothing)
Level 6
Events
Unit - A unit Gains a level
Conditions
((Triggering unit) is A Hero) Equal to True
(Hero level of (Leveling Hero)) Equal to 6
Actions
Player - Set the current research level of R005 (Unexpected type: 'techcode') to 1 for (Owner of (Leveling Hero))
Hero Limit
Events
Unit - A unit Finishes training a unit
Conditions
((Trained unit) is A Hero) Equal to True
Actions
Unit - Replace (Triggering unit) with a Altar of Storms (new) using The old unit's relative life and mana
Destroy
Events
Unit - A unit Finishes casting an ability
Conditions
Demolish Equal to (Ability being cast)
Actions
Unit - Remove (Triggering unit) from the game
Lumber
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Player - Add 1 to Player 1 (Red) . Current lumber
Player - Add 1 to Player 2 (Blue) . Current lumber
Player - Add 1 to Player 3 (Teal) . Current lumber
Player - Add 1 to Player 4 (Purple) . Current lumber
Player - Add 1 to Player 5 (Yellow) . Current lumber
Player - Add 1 to Player 6 (Orange) . Current lumber
Player - Add 1 to Player 7 (Green) . Current lumber
Player - Add 1 to Player 8 (Pink) . Current lumber
Player - Add 1 to Player 9 (Gray) . Current lumber
Player - Add 1 to Player 10 (Light Blue) . Current lumber
Gold
Events
Unit - A unit Dies
Conditions
(((Dying unit) is A structure) Equal to True) or (((Dying unit) is A Hero) Equal to True)
Actions
Player - Add (Point-value of (Dying unit)) to (Owner of (Killing unit)) . Current gold
Spawn
Events
Unit - A unit Dies
Conditions
And - All (Conditions) are true
Conditions
(((Dying unit) is A structure) Equal to True) or (((Dying unit) is A Hero) Equal to True)
Witch Doctor Tower Equal to (Unit-type of (Killing unit))
Actions
Unit - Create 1 . Zombie for (Owner of (Killing unit)) at (Position of (Dying unit)) 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.