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
Bushido.w3x
Variables
Time
Melee
Camera
Occupation
City capture
Wealth
Gold
Tax
Morale
Unit decrease Mana
Unit Increase Mana
Flee
Unit Timer
Ally System
Setup
Ally
War
Arrows
Mana loss
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
Ally_Command
string
No
Color
string
Yes
NumberOfPlayers
integer
No
PlayerName
string
Yes
String
string
No
TempLoc
location
No
Unally_Command
string
No
Units_Without_Mana
group
No
Melee
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Quest - Create a Required quest titled Credits with the description Models: antihero, BlinkBoy, republicola, Kitabatake, minkeun0806, Callahan, em!, killst4r, paulHSystems: Hashjie, cHeRoL , using icon path ReplaceableTextures\CommandButtons\BTNScrollOfProtection.blp
Melee Game - Enforce victory/defeat conditions (for all players)
Camera
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Camera - . Apply . gg_cam_red for Player 1 (Red) over 0 seconds
Camera - . Apply . gg_cam_blue for Player 2 (Blue) over 0 seconds
Camera - . Apply . gg_cam_teal for Player 3 (Teal) over 0 seconds
Camera - . Apply . gg_cam_purple for Player 4 (Purple) over 0 seconds
Camera - . Apply . gg_cam_yellow for Player 5 (Yellow) over 0 seconds
Camera - . Apply . gg_cam_orange for Player 6 (Orange) over 0 seconds
Camera - . Apply . gg_cam_green for Player 7 (Green) over 0 seconds
Camera - . Apply . gg_cam_pink for Player 8 (Pink) over 0 seconds
Camera - . Apply . gg_cam_gray for Player 9 (Gray) over 0 seconds
Camera - . Apply . gg_cam_light_blue for Player 10 (Light Blue) over 0 seconds
City capture
Events
Unit - A unit Dies
Conditions
((Dying unit) is A town-hall-type unit) Equal to True
Actions
Unit - Create 1 . (Unit-type of (Dying unit)) for (Owner of (Killing unit)) at (Position of (Dying unit)) facing Default building facing degrees
Gold
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Player - Set Player 1 (Red) . Current gold to 8000
Player - Set Player 2 (Blue) . Current gold to 8000
Player - Set Player 3 (Teal) . Current gold to 8000
Player - Set Player 4 (Purple) . Current gold to 8000
Player - Set Player 5 (Yellow) . Current gold to 8000
Player - Set Player 6 (Orange) . Current gold to 8000
Player - Set Player 7 (Green) . Current gold to 8000
Player - Set Player 8 (Pink) . Current gold to 8000
Player - Set Player 9 (Gray) . Current gold to 8000
Player - Set Player 10 (Light Blue) . Current gold to 8000
Player - Set Player 11 (Dark Green) . Current gold to 8000
Player - Set Player 12 (Brown) . Current gold to 8000
Tax
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units of type Castle) and do (Actions)
Loop - Actions
Player - Add 100 to (Owner of (Picked unit)) . Current gold
Unit decrease Mana
Events
Unit - A unit Dies
Conditions
Actions
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to (Player((Integer A)))
Then - Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units owned by (Player((Integer A))).) and do (Actions)
Loop - Actions
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - 5.00)
Else - Actions
Unit Increase Mana
Events
Unit - A unit Dies
Conditions
Actions
Unit - Set mana of (Killing unit) to ((Mana of (Killing unit)) + 5.00)
Flee
Events
Time - Every 0.30 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Set Variable Set Units_Without_Mana = (Units in (Playable map area) matching (((Mana of (Matching unit)) Less than or equal to 1.00) and ((Custom value of (Matching unit)) Equal to 0)))
Unit Group - Pick every unit in Units_Without_Mana and do (Actions)
Loop - Actions
Unit - Set the custom value of (Picked unit) to 5
Unit - Order (Picked unit) to Stop .
Set Variable Set TempLoc = (Random point in (Playable map area))
Unit - Order (Picked unit) to Move To . TempLoc
Custom script: call RemoveLocation(udg_TempLoc)
Unit Timer
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Picked unit)) Not equal to 0
Then - Actions
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 1)
Else - Actions
Setup
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
-------- Edit if you must. --------
Set Variable Set NumberOfPlayers = "9"
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)
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
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 NumberOfPlayers , 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
Mana loss
Events
Unit - A unit Is attacked
Conditions
((Attacked unit) has buff Cold Arrows (Stacking)) Equal to True
Actions
Unit - Set mana of (Attacked unit) to ((Mana of (Attacked unit)) - 10.00)
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.