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
channel based training system.w3x
Variables
Initialization
Melee Initialization
unit
take over
unit empty
test 2
test 3
spirit touch
test
training
training Copy
training Copy 2
training Copy 3
peon becoming grunt
multiboard
skeleton summon
tree replacer
movement speed increase
creep resurrect
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
fhhffgf
ordercode
No
grunts
group
No
roll
group
No
taurenwarrior
group
No
temp_unit
unitcode
No
trolls
group
No
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 - Limit Heroes to 1 per Hero-type (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 - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)
Unit Group - Add Forest Troll 0006 <gen> to roll
unit
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Gold Mine ability
Actions
Unit - Change ownership of (Triggering unit) to Player 2 (Blue) and Change color
take over
Events
Unit - A unit Is issued an order targeting an object
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Peon
(Unit-type of (Target unit of issued order)) Equal to Burrow
Actions
Unit - Change ownership of (Target unit of issued order) to Player 1 (Red) and Change color
Unit - Order (Ownership-changed unit) to Load . (Ordered unit)
unit empty
Events
Time - Every 2 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Great Hall) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Number of living Great Hall units owned by (Owner of (Picked unit))) x 10) Greater than (Number of living Peon units owned by (Owner of (Picked unit)))
(((Number of living Great Hall units owned by (Owner of (Picked unit))) + (Number of living Stronghold units owned by (Owner of (Picked unit)))) + ((Number of living Fortress units owned by (Owner of (Picked unit))) x 10)) Greater than (Number of living Peon units owned by (Owner of (Picked unit)))
(((Number of living Fortress units owned by (Owner of (Picked unit))) + (Number of living Stronghold units owned by (Owner of (Picked unit)))) + ((Number of living Great Hall units owned by (Owner of (Picked unit))) x 10)) Greater than (Number of living Peon units owned by (Owner of (Picked unit)))
Then - Actions
Unit - Create 1 . Peon for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees
Else - Actions
Unit Group - Pick every unit in (Units of type Great Hall) and do (Create 1.Peon for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees)
test 2
Events
Time - Every 2 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Stronghold) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Number of living Great Hall units owned by (Owner of (Picked unit))) x 10) Greater than (Number of living Peon units owned by (Owner of (Picked unit)))
(((Number of living Fortress units owned by (Owner of (Picked unit))) + (Number of living Stronghold units owned by (Owner of (Picked unit)))) + ((Number of living Great Hall units owned by (Owner of (Picked unit))) x 10)) Greater than (Number of living Peon units owned by (Owner of (Picked unit)))
Then - Actions
Unit - Create 1 . Peon for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees
Else - Actions
test 3
Events
Time - Every 2 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Fortress) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Number of living Great Hall units owned by (Owner of (Picked unit))) x 10) Greater than (Number of living Peon units owned by (Owner of (Picked unit)))
(((Number of living Fortress units owned by (Owner of (Picked unit))) + (Number of living Stronghold units owned by (Owner of (Picked unit)))) + ((Number of living Great Hall units owned by (Owner of (Picked unit))) x 10)) Greater than (Number of living Peon units owned by (Owner of (Picked unit)))
Then - Actions
Unit - Create 1 . Peon for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees
Else - Actions
spirit touch
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Spirit Touch
Actions
Unit - Change ownership of (Casting unit) to Player 2 (Blue) and Change color
test
Events
Time - Every 2 seconds of game time
Conditions
((Region((Position of (Picked unit)), ((Position of (Picked unit)) offset by (100.00, 100.00)))) contains (Matching unit)) Equal to True
Actions
training
Events
Unit - A unit Stops casting an ability
Conditions
And - All (Conditions) are true
Conditions
((Casting unit) is in grunts.) Equal to True
(Ability being cast) Equal to basic unit training
Actions
Unit - Replace (Casting unit) with a Grunt using The old unit's relative life and mana
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Ability being cast) Equal to basic unit training
Then - Actions
Else - Actions
training Copy
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to improved unit training
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Casting unit) is in trolls.) Equal to True) and ((Ability being cast) Equal to improved unit training)
Then - Actions
Unit - Replace (Casting unit) with a Headhunter using The old unit's relative life and mana
Else - Actions
training Copy 2
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Advanced unit training
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Casting unit) is in taurenwarrior.) Equal to True
((Unit-type of (Target unit of ability being cast)) Equal to Fortress) or ((Unit-type of (Target unit of ability being cast)) Equal to Barracks)
Then - Actions
Unit - Replace (Triggering unit) with a Tauren using The old unit's relative life and mana
Else - Actions
training Copy 3
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to basic unit training
Actions
Unit - Replace (Triggering unit) with a Grunt using The old unit's relative life and mana
peon becoming grunt
Events
Unit - A unit Is issued an order targeting an object
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Unit-type of (Target unit of issued order)) Equal to Great Hall) or ((Unit-type of (Target unit of issued order)) Equal to Barracks)
(Issued order) Equal to (Order(channel))
Then - Actions
Unit Group - Add (Ordered unit) to grunts
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Unit-type of (Target unit of issued order)) Equal to Stronghold) or ((Unit-type of (Target unit of issued order)) Equal to Barracks)
(Issued order) Equal to (Order(charm))
Then - Actions
Unit Group - Add (Ordered unit) to trolls
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Unit-type of (Target unit of issued order)) Equal to Great Hall) or ((Unit-type of (Target unit of issued order)) Equal to Barracks)
(Issued order) Equal to (Order(curse))
Then - Actions
Unit Group - Add (Ordered unit) to grunts
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Unit-type of (Target unit of issued order)) Equal to Tauren) or ((Unit-type of (Target unit of issued order)) Equal to Tauren Totem)
(Issued order) Equal to (Order(curse))
Then - Actions
Unit Group - Add (Ordered unit) to taurenwarrior
Else - Actions
multiboard
Events
Time - Every 2 seconds of game time
Conditions
Actions
Multiboard - Create a multiboard with 1 columns and 1 rows, titled grunts .
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 1 to (String((Number of units in roll)))
skeleton summon
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Summoned unit)) Equal to Skeleton Warrior
Actions
Unit - Replace (Summoned unit) with a Skeleton Warrior using The old unit's relative life and mana
tree replacer
Events
Destructible - disguised tree 0000 <gen> dies
Conditions
Actions
Destructible - Resurrect disguised tree 0000 <gen> with (Max life of disguised tree 0000 <gen>) life and Show birth animation
movement speed increase
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Triggering unit)) Equal to Graveyard
Actions
Player - Set the current research level of R001 (Unexpected type: 'techcode') to 1 for (Owner of (Triggering unit))
creep resurrect
Events
Unit - A unit Dies
Conditions
((Dying unit) is in roll.) Equal to True
Actions
Unit - Replace (Dying unit) with a Forest Troll using The new unit's max life and mana
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.