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
CHOPCH5.w3x
Variables
Initialization
stuff
Melee Initialization
Untitled Trigger 001
set exp
Setup
War
Ally
initialization2
Name
Type
is_array
initial_value
Ally_Command
string
No
Color
string
Yes
NumberOfPlayers
integer
No
PlayerName
string
Yes
String
string
No
Unally_Command
string
No
stuff
Events
Time - Elapsed game time is 12.00 seconds
Conditions
Actions
Quest - Display to (All players) the Quest Update message: Press F9 ... if you want to
Quest - Create a Optional quest titled First Timer? with the description -Acolytes/ghouls can chop trees-wisps chop too -you do not need to haunt or entangle a gold mine.basicly keep ur gaurd up kill everyone and chop trees , using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
Quest - Create a Optional quest titled Creator with the description Wc3 version created By Blueogre , using icon path ReplaceableTextures\PassiveButtons\PASBTNGenericSpellImmunity.blp
Quest - Create a Optional quest titled Ally and War with the description |CFF540081Ally sytem installedType|r -war <#>|CFF540081 or |r-ally <#>|CFF540081to ally someone or wage war with someoneBasiclyif you want to ally blue you must ype -ally 2if you want to wage war on yellow type -war 5trigger credit to cHeRoL from hiveworkshop. , using icon path ReplaceableTextures\CommandButtons\BTNControlMagic.blp
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)
Untitled Trigger 001
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Vulture
Actions
Unit - Create 1 . Vulture for Neutral Passive at (Position of (Dying unit)) facing Default building facing degrees
set exp
Events
Map initialization
Conditions
Actions
Hero - Make Player 1 (Red) Heroes gain 200.00 % experience from future kills
Hero - Make Player 2 (Blue) Heroes gain 200.00 % experience from future kills
Hero - Make Player 3 (Teal) Heroes gain 200.00 % experience from future kills
Hero - Make Player 4 (Purple) Heroes gain 200.00 % experience from future kills
Hero - Make Player 5 (Yellow) Heroes gain 200.00 % experience from future kills
Hero - Make Player 6 (Orange) Heroes gain 200.00 % experience from future kills
Hero - Make Player 7 (Green) Heroes gain 200.00 % experience from future kills
Hero - Make Player 8 (Pink) Heroes gain 200.00 % experience from future kills
Setup
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
-------- Edit if you must. --------
Set Variable Set NumberOfPlayers = "8"
Set Variable Set Ally_Command = "-ally"
Set Variable Set Unally_Command = "-war"
Set Variable Set Color[1] = "red"
Set Variable Set Color[2] = "blue"
Set Variable Set Color[3] = "teal"
Set Variable Set Color[4] = "purple"
Set Variable Set Color[5] = "yellow"
Set Variable Set Color[6] = "orange"
Set Variable Set Color[7] = "green"
Set Variable Set Color[8] = "pink"
Set Variable Set Color[9] = "gray"
Set Variable Set Color[10] = "light blue"
Set Variable Set Color[11] = "dark green"
Set Variable Set Color[12] = "brown"
For each (Integer A) from 1 to NumberOfPlayers , do (Actions)
Loop - Actions
Set Variable Set PlayerName[(Integer A)] = (String((Name of (Player((Integer A))))) as Lower case.)
For each (Integer A) from 1 to NumberOfPlayers , do (Actions)
Loop - Actions
Trigger - Add to Ally <gen> the event ((Player((Integer A))) types a chat message containing Ally_Command as A substring)
Trigger - Add to War <gen> the event ((Player((Integer A))) types a chat message containing Unally_Command as A substring)
War
Events
Conditions
Actions
-------- DO NOT EDIT ANYTHING BELOW THIS LINE IF YOU DO NOT KNOW WHAT YOU'RE DOING --------
Set Variable Set String = (String((Entered chat string)) as Lower case.)
For each (Integer A) from 1 to 8 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
String Equal to ((Unally_Command + ) + (String((Integer A))))
Then - Actions
Player - Make (Triggering player) treat (Player((Integer A))) as an Enemy
Game - Display to (All players) the text: ((Name of (Triggering player)) + ( |cffFF0000has declared a war with |r + ((Name of (Player((Integer A)))) + !)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
String Equal to ((Unally_Command + ) + PlayerName[(Integer A)])
Then - Actions
Player - Make (Triggering player) treat (Player((Integer A))) as an Enemy
Game - Display to (All players) the text: ((Name of (Triggering player)) + ( |cffFF0000has declared a war with |r + ((Name of (Player((Integer A)))) + !)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
String Equal to ((Unally_Command + ) + Color[(Integer A)])
Then - Actions
Player - Make (Triggering player) treat (Player((Integer A))) as an Enemy
Game - Display to (All players) the text: ((Name of (Triggering player)) + ( |cffFF0000has declared a war with |r + ((Name of (Player((Integer A)))) + !)))
Else - Actions
Ally
Events
Conditions
Actions
-------- DO NOT EDIT ANYTHING BELOW THIS LINE IF YOU DO NOT KNOW WHAT YOU'RE DOING --------
Set Variable Set String = (String((Entered chat string)) as Lower case.)
For each (Integer A) from 1 to NumberOfPlayers , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
String Equal to ((Ally_Command + ) + (String((Integer A))))
Then - Actions
Player - Make (Triggering player) treat (Player((Integer A))) as an Ally with shared vision
Game - Display to (All players) the text: ((Name of (Triggering player)) + ( |cff00FF00has declared an alliance with |r + ((Name of (Player((Integer A)))) + !)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
String Equal to ((Ally_Command + ) + PlayerName[(Integer A)])
Then - Actions
Player - Make (Triggering player) treat (Player((Integer A))) as an Ally with shared vision
Game - Display to (All players) the text: ((Name of (Triggering player)) + ( |cff00FF00has declared an alliance with |r + ((Name of (Player((Integer A)))) + !)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
String Equal to ((Ally_Command + ) + Color[(Integer A)])
Then - Actions
Player - Make (Triggering player) treat (Player((Integer A))) as an Ally with shared vision
Game - Display to (All players) the text: ((Name of (Triggering player)) + ( |cff00FF00has declared an alliance with |r + ((Name of (Player((Integer A)))) + !)))
Else - Actions
initialization2
Events
Map initialization
Conditions
Actions
Visibility - Enable black mask
Visibility - Enable fog of war
Player - Set Player 1 (Red) . Current gold to 65535
Player - Set Player 2 (Blue) . Current gold to 65535
Player - Set Player 3 (Teal) . Current gold to 65535
Player - Set Player 4 (Purple) . Current gold to 65535
Player - Set Player 5 (Yellow) . Current gold to 65535
Player - Set Player 6 (Orange) . Current gold to 65535
Player - Set Player 7 (Green) . Current gold to 65535
Player - Set Player 8 (Pink) . Current gold to 65535
Player - Set Player 1 (Red) . Current lumber to 65535
Player - Set Player 2 (Blue) . Current lumber to 65535
Player - Set Player 3 (Teal) . Current lumber to 65535
Player - Set Player 4 (Purple) . Current lumber to 65535
Player - Set Player 5 (Yellow) . Current lumber to 65535
Player - Set Player 6 (Orange) . Current lumber to 65535
Player - Set Player 7 (Green) . Current lumber to 65535
Player - Set Player 8 (Pink) . Current lumber to 65535
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.