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
Spawn Tutorial.w3x
Variables
Initialization
This map shows how to spawn creeps
Spawn
Text for Testing
Auto
Manual
Auto Move
Dialog
Dialog1
Footman
Footman
Knight
Knight
Paladin
Paladin
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
Dialog_Unit
dialog
No
Dialog_Unit_Buttons
button
Yes
Spawn
Events
Time - Every 12.00 seconds of game time
Conditions
Actions
Unit - Create 2 . Footman for Player 2 (Blue) at (Center of Creep_Spawn <gen>) facing Default building facing degrees
Text for Testing
Events
Map initialization
Conditions
Actions
Game - Display to (All players) for 1000000000.00 seconds the text: Type(-auto) Auto Creep Spawn(-manual)Manual Creep Spawn Manual Creep Spawn:Type(-Select) You will select an Enemy Spawn's
Auto
Events
Player - Player 1 (Red) types a chat message containing -Auto (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: Autol has been chosen.
Trigger - Turn on Spawn <gen>
Trigger - Turn off Manual <gen>
Trigger - Turn off (This trigger)
Manual
Events
Player - Player 1 (Red) types a chat message containing -Manual (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: Manual has been chosen.
Trigger - Turn on Dialog1 <gen>
Trigger - Turn off Auto <gen>
Trigger - Turn off (This trigger)
Auto Move
Events
Unit - A unit enters Creep_Spawn <gen>
Conditions
Actions
Wait 2 seconds
Unit - Order (Entering unit) to Attack-Move To . (Center of Enemy_Attack_Point <gen>)
Dialog1
Events
Player - Player 1 (Red) types a chat message containing -select (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Dialog - Change the title of Dialog_Unit to Who is attacking to your base.
Dialog - Create a dialog button for Dialog_Unit labelled Footman
Set Variable Set Dialog_Unit_Buttons[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog_Unit labelled Knight
Set Variable Set Dialog_Unit_Buttons[2] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog_Unit labelled Paladin
Set Variable Set Dialog_Unit_Buttons[3] = (Last created dialog Button)
Dialog - Show Dialog_Unit for Player 1 (Red)
Footman
Events
Dialog - A dialog button is clicked for Dialog_Unit
Conditions
(Clicked dialog button) Equal to Dialog_Unit_Buttons[1]
Actions
Game - Display to (All players) the text: Footman has been chosen!
Unit - Create 2 . Footman for Player 2 (Blue) at (Center of Creep_Spawn <gen>) facing Default building facing degrees
Dialog - Clear Dialog_Unit
Dialog - Hide Dialog_Unit for Player 1 (Red)
Knight
Events
Dialog - A dialog button is clicked for Dialog_Unit
Conditions
(Clicked dialog button) Equal to Dialog_Unit_Buttons[2]
Actions
Game - Display to (All players) the text: Knight has been chosen!
Unit - Create 1 . Knight for Player 2 (Blue) at (Center of Creep_Spawn <gen>) facing Default building facing degrees
Dialog - Clear Dialog_Unit
Dialog - Hide Dialog_Unit for Player 1 (Red)
Paladin
Events
Dialog - A dialog button is clicked for Dialog_Unit
Conditions
(Clicked dialog button) Equal to Dialog_Unit_Buttons[3]
Actions
Game - Display to (All players) the text: Paladin has been chosen!
Unit - Create 1 . Paladin for Player 2 (Blue) at (Center of Creep_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.