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
Clash of Races.w3m
Variables
Income
IncomeUpgrade
Gold
Selection
Select Race
Lose
Utility
MountainG
GoldMine
Shrines
Shrines Upgraded
Initialization
Start
Map Initialization
Selection Easy
Selection Normal
Selection Hard
BotRace
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 except Custom Script Item. Custom Script Item will merge into map script after globals variables declaration with the list order in trigger view.
Name
Type
is_array
initial_value
BotRace
integer
Yes
IncomeValue
integer
Yes
TimerStart
timer
No
IncomeUpgrade
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to u000 (Unexpected type: 'techcode')
Actions
Set Variable Set IncomeValue[(Player number of (Owner of (Researching unit)))] = (IncomeValue[(Player number of (Owner of (Researching unit)))] + 2)
Gold
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Player - Set Player 1 (Red) . Current gold to ((Player 1 (Red) Current gold) + IncomeValue[1])
Player - Set Player 2 (Blue) . Current gold to ((Player 2 (Blue) Current gold) + IncomeValue[2])
Player - Set Player 3 (Teal) . Current gold to ((Player 3 (Teal) Current gold) + IncomeValue[3])
Player - Set Player 4 (Purple) . Current gold to ((Player 4 (Purple) Current gold) + IncomeValue[4])
Select Race
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
If ((Ability being cast) Equal to Choose Human) then do (Replace (Casting unit) with a Fort using The new unit's max life and mana) else do (Do nothing)
If ((Ability being cast) Equal to Choose Orc) then do (Replace (Casting unit) with a Stronghold using The new unit's max life and mana) else do (Do nothing)
If ((Ability being cast) Equal to Choose Undead) then do (Replace (Casting unit) with a Graveyard using The new unit's max life and mana) else do (Do nothing)
If ((Ability being cast) Equal to Choose Elf) then do (Replace (Casting unit) with a Ancient Tree using The new unit's max life and mana) else do (Do nothing)
Lose
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Dying unit)) Equal to Ancient Tree
(Unit-type of (Dying unit)) Equal to Fort
(Unit-type of (Dying unit)) Equal to Graveyard
(Unit-type of (Dying unit)) Equal to Stronghold
Actions
Game - Defeat (Owner of (Dying unit)) with the message: ((Name of (Owner of (Dying unit))) + has been destroyed!)
MountainG
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Mountain Giant
Actions
Item - Create Heart of Mountain Giant at (Position of (Dying unit))
Unit - Create 3 . Mountain Golem for Neutral Hostile at (Position of (Dying unit)) facing (Facing of (Dying unit)) degrees
GoldMine
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Gold Mine
Actions
Player - Set (Owner of (Killing unit)) . Current gold to (((Owner of (Killing unit)) Current gold) + 1500)
Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + has destroyed a gold mine!)
Game - Display to (All players) the text: He/She is rewarded with a 1500 gold!
Shrines
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Blood Shrine
Actions
Unit - Create 1 . Blood Shrine for (Owner of (Killing unit)) at (Position of (Dying unit)) facing (Facing of (Dying unit)) degrees
Shrines Upgraded
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Blood Shrine (Upgraded)
Actions
Unit - Create 1 . Blood Shrine (Upgraded) for (Owner of (Killing unit)) at (Position of (Dying unit)) facing (Facing of (Dying unit)) degrees
Start
Events
Time - TimerStart expires
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 3) Equal to 1
Then - Actions
Game - Display to (All players) the text: |cff00ff00Difficulty set: Easy!|r
Player Group - Pick every player in (All players) and do (Set (Picked player).Current gold to 250)
Player Group - Pick every player in (All players controlled by a User player) and do (Create 1.Select Race for (Picked player) at ((Picked player) start location) facing Default building facing degrees)
Player Group - Pick every player in (All players) and do (Set the max research level of u001 (Unexpected type: 'techcode') to 10 for (Picked player))
Player Group - Pick every player in (All players) and do (Set the max research level of u002 (Unexpected type: 'techcode') to 10 for (Picked player))
Player Group - Pick every player in (All players) and do (Set (Picked player) handicap to 200.00%)
Player Group - Pick every player in (All players) and do (Make (Picked player)'s units deal 200.00% of normal damage)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 3) Equal to 2
Then - Actions
Game - Display to (All players) the text: |cffffff00Difficulty set: Normal|r
Player Group - Pick every player in (All players) and do (Set (Picked player).Current gold to 100)
Player Group - Pick every player in (All players controlled by a User player) and do (Create 1.Select Race for (Picked player) at ((Picked player) start location) facing Default building facing degrees)
Player Group - Pick every player in (All players) and do (Set the max research level of u001 (Unexpected type: 'techcode') to 5 for (Picked player))
Player Group - Pick every player in (All players) and do (Set the max research level of u002 (Unexpected type: 'techcode') to 5 for (Picked player))
Player Group - Pick every player in (All players) and do (Set (Picked player) handicap to 100.00%)
Player Group - Pick every player in (All players) and do (Make (Picked player)'s units deal 100.00% of normal damage)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 3) Equal to 3
Then - Actions
Game - Display to (All players) the text: |cffff0000Difficulty set: Hard|r
Player Group - Pick every player in (All players) and do (Set (Picked player).Current gold to 0)
Player Group - Pick every player in (All players controlled by a User player) and do (Create 1.Select Race for (Picked player) at ((Picked player) start location) facing Default building facing degrees)
Player Group - Pick every player in (All players) and do (Set the max research level of u001 (Unexpected type: 'techcode') to 2 for (Picked player))
Player Group - Pick every player in (All players) and do (Set the max research level of u002 (Unexpected type: 'techcode') to 2 for (Picked player))
Player Group - Pick every player in (All players) and do (Set (Picked player) handicap to 75.00%)
Player Group - Pick every player in (All players) and do (Make (Picked player)'s units deal 75.00% of normal damage)
Else - Actions
Map Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Countdown Timer - Start TimerStart as a One-shot timer that will expire in 30 seconds
Countdown Timer - Create a timer window for TimerStart with title Time until start
Game - Display to (All players) the text: Select your difficulty:-|cff00ff00easy|r-|cffffff00normal|r-|cffff0000hard|r
Selection Easy
Events
Player - Player 1 (Red) types a chat message containing -easy (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: |cff00ff00Difficulty set: Easy!|r
Player Group - Pick every player in (All players) and do (Set (Picked player).Current gold to 250)
Player Group - Pick every player in (All players controlled by a User player) and do (Create 1.Select Race for (Picked player) at ((Picked player) start location) facing Default building facing degrees)
Player Group - Pick every player in (All players) and do (Set the max research level of u001 (Unexpected type: 'techcode') to 10 for (Picked player))
Player Group - Pick every player in (All players) and do (Set the max research level of u002 (Unexpected type: 'techcode') to 10 for (Picked player))
Player Group - Pick every player in (All players) and do (Set (Picked player) handicap to 200.00%)
Player Group - Pick every player in (All players) and do (Make (Picked player)'s units deal 200.00% of normal damage)
Trigger - Turn off Start <gen>
Selection Normal
Events
Player - Player 1 (Red) types a chat message containing -normal (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: |cffffff00Difficulty set: Normal|r
Player Group - Pick every player in (All players) and do (Set (Picked player).Current gold to 100)
Player Group - Pick every player in (All players controlled by a User player) and do (Create 1.Select Race for (Picked player) at ((Picked player) start location) facing Default building facing degrees)
Player Group - Pick every player in (All players) and do (Set the max research level of u001 (Unexpected type: 'techcode') to 5 for (Picked player))
Player Group - Pick every player in (All players) and do (Set the max research level of u002 (Unexpected type: 'techcode') to 5 for (Picked player))
Player Group - Pick every player in (All players) and do (Set (Picked player) handicap to 100.00%)
Player Group - Pick every player in (All players) and do (Make (Picked player)'s units deal 100.00% of normal damage)
Trigger - Turn off Start <gen>
Selection Hard
Events
Player - Player 1 (Red) types a chat message containing -hard (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) the text: |cffff0000Difficulty set: Hard|r
Player Group - Pick every player in (All players) and do (Set (Picked player).Current gold to 0)
Player Group - Pick every player in (All players controlled by a User player) and do (Create 1.Select Race for (Picked player) at ((Picked player) start location) facing Default building facing degrees)
Player Group - Pick every player in (All players) and do (Set the max research level of u001 (Unexpected type: 'techcode') to 2 for (Picked player))
Player Group - Pick every player in (All players) and do (Set the max research level of u002 (Unexpected type: 'techcode') to 2 for (Picked player))
Player Group - Pick every player in (All players) and do (Set (Picked player) handicap to 75.00%)
Player Group - Pick every player in (All players) and do (Make (Picked player)'s units deal 75.00% of normal damage)
Trigger - Turn off Start <gen>
BotRace
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players controlled by a Computer player) and do (Actions)
Loop - Actions
Set Variable Set IncomeValue[(Player number of (Picked player))] = (Random integer number between 1 and 4)
If (BotRace[(Player number of (Picked player))] Equal to 1) then do (Create 1.Ancient Tree for (Picked player) at (Center of (Playable map area)) facing Default building facing degrees) else do (Do nothing)
If (BotRace[(Player number of (Picked player))] Equal to 2) then do (Create 1.Fort for (Picked player) at (Center of (Playable map area)) facing Default building facing degrees) else do (Do nothing)
If (BotRace[(Player number of (Picked player))] Equal to 3) then do (Create 1.Graveyard for (Picked player) at (Center of (Playable map area)) facing Default building facing degrees) else do (Do nothing)
If (BotRace[(Player number of (Picked player))] Equal to 4) then do (Create 1.Stronghold for (Picked player) at (Center of (Playable map area)) facing Default building facing degrees) else do (Do nothing)
Unit - Order (Last created unit) to research u000 (Unexpected type: 'techcode')
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.