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
mvalle3_map.w3x
Variables
Initialization
Optional quests
Defeat Tichondrius
Defeat Archimonde
Reinforcements
Periodic portal reinforcements
Periodic player reinforcements
Periodic player resources
General game rules
Melee Initialization
Revive heroes
Earn money
Item creation
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
numPeonUnits
integer
No
numUnits
integer
No
peonUnitType
unitcode
No
qArchimonde
quest
No
qTichondrius
quest
No
unitType
unitcode
No
Defeat Tichondrius
Events
Unit - Dreadlord 0035 <gen> Dies
Conditions
Actions
Quest - Mark qTichondrius as Completed
Defeat Archimonde
Events
Unit - Warlock 0586 <gen> Dies
Conditions
Actions
Quest - Mark qArchimonde as Completed
Periodic portal reinforcements
Events
Time - Every 110.00 seconds of game time
Conditions
(Number of units in (Units owned by Neutral Hostile.)) Less than or equal to 4
Actions
Unit - Create 2 . (Random level (Random integer number between ((Hero level of Blood Mage 0123 <gen>) / 2) and (Hero level of Blood Mage 0123 <gen>)) creep unit-type) for Neutral Hostile at (Position of Way Gate 0372 <gen>) facing Default building facing degrees
Unit Group - Pick every unit in (Units owned by Neutral Hostile.) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack . (Random unit from (Units owned by (Random player from (All players controlled by a Computer player)) matching (((Matching unit) is A structure) Equal to True).))
Game - Display to (All players) the text: More invaders came thought the portal
Periodic player reinforcements
Events
Time - Every 120.00 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players controlled by a Computer player) and do (Actions)
Loop - Actions
If ((Race of (Picked player)) Equal to Human) then do (Set VariableSet unitType = "hfoo") else do (If ((Race of (Picked player)) Equal to Night Elf) then do (Set VariableSet unitType = "earc") else do (If ((Race of (Picked player)) Equal to Orc) then do (Set VariableSet unitType = "ogru") else do (Set VariableSet unitType = "ucry")))
If ((Race of (Picked player)) Equal to Human) then do (Set VariableSet peonUnitType = "hpea") else do (If ((Race of (Picked player)) Equal to Night Elf) then do (Set VariableSet peonUnitType = "ewsp") else do (If ((Race of (Picked player)) Equal to Orc) then do (Set VariableSet peonUnitType = "opeo") else do (Set VariableSet peonUnitType = "uaco")))
Set Variable Set numUnits = (Number of units in (Units owned by (Picked player) of type unitType))
Set Variable Set numPeonUnits = (Number of units in (Units owned by (Picked player) of type peonUnitType))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units owned by (Picked player).)) Greater than or equal to 6
numUnits Less than or equal to 16
Then - Actions
Unit - Create 5 . unitType for (Picked player) at ((Picked player) start location) facing Default building facing degrees
Game - Display to (All players) the text: ((Name of (Picked player)) + received 5 more units!)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units owned by (Picked player).)) Greater than or equal to 3
numPeonUnits Less than or equal to 8
Then - Actions
Game - Display to (All players) the text: ((Name of (Picked player)) + received 5 more peon units!)
Unit - Create 2 . peonUnitType for (Picked player) at ((Picked player) start location) facing Default building facing degrees
Else - Actions
Periodic player resources
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Item - Create Ivory Tower at (Position of Circle of Power 0385 <gen>)
Player Group - Pick every player in (All players controlled by a Computer player) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) Current lumber) Less than or equal to 500
Then - Actions
Game - Display to (All players) the text: ((Name of (Picked player)) + received some lumber)
Player - Add 150 to (Picked player) . Current lumber
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) Current gold) Less than or equal to 1000
Then - Actions
Game - Display to (All players) the text: ((Name of (Picked player)) + received some gold)
Player - Add 200 to (Picked player) . Current gold
Else - Actions
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Quest - Create a Optional quest titled Defeat Archimonde with the description Defeat this demon to help your allies , using icon path UI\Glues\ScoreScreen\scorescreen-hero-tichondrius.blp
Set Variable Set qArchimonde = (Last created quest)
Quest - Create a Optional quest titled Defeat Tichondrius with the description Defeat this demon to help your allies , using icon path UI\Glues\ScoreScreen\scorescreen-hero-tichondrius.blp
Set Variable Set qTichondrius = (Last created quest)
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (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)
Player Group - Pick every player in (All players controlled by a Computer player) and do (Actions)
Loop - Actions
Melee Game - Create (Race of (Picked player)) starting units for (Picked player) at ((Picked player) start location) ( Include Heroes)
AI - Start campaign AI script for (Picked player) : map.ai (Unexpected type: 'aiscript')
Melee Game - Enforce victory/defeat conditions (for all players)
Revive heroes
Events
Unit - A unit Dies
Conditions
((Triggering unit) is in (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True).).) Equal to True
Actions
Game - Display to (All players) the text: hero will revive in 60 seconds
Wait 60.00 game-time seconds
Hero - Instantly revive (Triggering unit) at (Position of Circle of Power 0385 <gen>) , Hide revival graphics
Unit - Move (Triggering unit) instantly to ((Random player from (All players matching (((Player 1 (Red) controller) Equal to Computer) and (((Matching player) is an ally of Player 1 (Red).) Equal to True)).)) start location)
Hero - Set (Triggering unit) Hero-level to (Max(1, ((Level of (Triggering unit)) - 1))) , Hide level-up graphics
Game - Display to (All players) the text: a hero has revived, but lost a level
Earn money
Events
Unit - A unit Dies
Conditions
((Triggering unit) belongs to an enemy of Player 1 (Red).) Equal to True
Actions
Player - Add 5 to Player 1 (Red) . Current gold
Player - Add 2 to Player 1 (Red) . Current lumber
Item creation
Events
Unit - A unit Dies
Conditions
(Random integer number between 1 and 10) Less than or equal to 2
((Triggering unit) is in (Units owned by Neutral Hostile.).) Equal to True
Actions
Item - Create (Random level (Level of (Triggering unit)) item-type) at (Position of (Triggering unit))
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.