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
HongKongCivilWar V1.5C.w3x
Variables
初始化
Melee Initialization
Untitled Trigger 003
十八區
Untitled Trigger 002
進入和離開區域
先以變數記錄區域
新觸發 001
新觸發 001 Copy
部隊進入區域
新觸發 002
部隊離開區域
新觸發 003
區域內部隊死亡,自動找兇手取替
新觸發 005
Victory
新觸發 004
money
Untitled Trigger 072
money2
Untitled Trigger 109
leave
Untitled Trigger 097
time
新觸發 006
新觸發 007
在下面輸入地圖特定的自訂程式碼腳本,這個腳本會被包含於地圖腳本中,在宣告變數之後,觸發初始化以前。
Name
Type
is_array
initial_value
integer
integer
No
player
player
Yes
rect
rect
Yes
rect_2
rect
Yes
time
timer
No
預設為所有玩者設定的正規戰初始化
Melee Initialization
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Quest - Create a Required quest titled 玩法 with the description 佔領屋村,每佔領一座屋村增加3$,佔領十八區全部屋村就勝利! , using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
Quest - Create a Required quest titled 回合 with the description 35秒一回合,每回增加10$ , using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
Untitled Trigger 003
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Floating Text - Create floating text that reads 青馬大橋 at (Center of b20 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Untitled Trigger 002
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Floating Text - Create floating text that reads 北區 at (Center of b1 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 離島 at (Center of b6 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 南區 at (Center of b10 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 東區 at (Center of b1 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 灣仔 at (Center of b8 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 中西區 at (Center of b7 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 西貢 at (Center of b19 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 觀塘 at (Center of b18 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 九龍城 at (Center of b17 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 油尖旺 at (Center of b15 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 黃大仙 at (Center of b16 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 深水涉 at (Center of b14 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 葵青 at (Center of b12 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 沙田 at (Center of b13 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 荃灣 at (Center of b11 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 屯門 at (Center of b4 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 元朗 at (Center of b3 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads 大埔 at (Center of b2 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
新觸發 001
Events
Map initialization
Conditions
Actions
Set Variable Set rect[1] = 1 <gen>
Set Variable Set rect[2] = 2 <gen>
Set Variable Set rect[3] = 3 <gen>
Set Variable Set rect[4] = 4 <gen>
Set Variable Set rect[5] = 5 <gen>
Set Variable Set rect[6] = 6 <gen>
Set Variable Set rect[6] = 6 <gen>
Set Variable Set rect[7] = 7 <gen>
Set Variable Set rect[8] = 8 <gen>
Set Variable Set rect[9] = 9 <gen>
Set Variable Set rect[10] = 10 <gen>
Set Variable Set rect[11] = 11 <gen>
Set Variable Set rect[12] = 12 <gen>
Set Variable Set rect[13] = 13 <gen>
Set Variable Set rect[14] = 14 <gen>
Set Variable Set rect[15] = 15 <gen>
Set Variable Set rect[16] = 16 <gen>
Set Variable Set rect[17] = 17 <gen>
Set Variable Set rect[18] = 18 <gen>
Set Variable Set rect[19] = 19 <gen>
Set Variable Set rect[20] = 20 <gen>
Set Variable Set rect[21] = 21 <gen>
Set Variable Set rect[22] = 22 <gen>
Set Variable Set rect[23] = 23 <gen>
Set Variable Set rect[24] = 24 <gen>
Set Variable Set rect[25] = 25 <gen>
Set Variable Set rect[26] = 26 <gen>
Set Variable Set rect[27] = 27 <gen>
Set Variable Set rect[28] = 28 <gen>
Set Variable Set rect[29] = 29 <gen>
Set Variable Set rect[30] = 30 <gen>
Set Variable Set rect[31] = 31 <gen>
Set Variable Set rect[32] = 32 <gen>
Set Variable Set rect[33] = 33 <gen>
Set Variable Set rect[34] = 34 <gen>
Set Variable Set rect[35] = 35 <gen>
Set Variable Set rect[36] = 36 <gen>
Set Variable Set rect[37] = 37 <gen>
Set Variable Set rect[38] = 38 <gen>
Set Variable Set rect[39] = 39 <gen>
Set Variable Set rect[40] = 40 <gen>
Set Variable Set rect[41] = 41 <gen>
Set Variable Set rect[42] = 42 <gen>
Set Variable Set rect[43] = 43 <gen>
Set Variable Set rect[44] = 44 <gen>
Set Variable Set rect[45] = 45 <gen>
Set Variable Set rect[46] = 46 <gen>
Set Variable Set rect[47] = 47 <gen>
Set Variable Set rect[48] = 48 <gen>
Set Variable Set rect[49] = 49 <gen>
Set Variable Set rect[50] = 50 <gen>
Set Variable Set rect[51] = 51 <gen>
Set Variable Set rect[52] = 52 <gen>
Set Variable Set rect[53] = 53 <gen>
Set Variable Set rect[54] = 54 <gen>
Set Variable Set rect[55] = 55 <gen>
Set Variable Set rect[56] = 56 <gen>
Set Variable Set rect[57] = 57 <gen>
Set Variable Set rect[58] = 58 <gen>
Set Variable Set rect[59] = 59 <gen>
Set Variable Set rect[60] = 60 <gen>
Set Variable Set rect[61] = 61 <gen>
Set Variable Set rect[62] = 62 <gen>
Set Variable Set rect[63] = 63 <gen>
Set Variable Set rect[64] = 64 <gen>
Set Variable Set rect[65] = 65 <gen>
Set Variable Set rect[66] = 66 <gen>
Set Variable Set rect[67] = 67 <gen>
Set Variable Set rect[68] = 68 <gen>
新觸發 001 Copy
Events
Map initialization
Conditions
Actions
Set Variable Set rect_2[1] = a1 <gen>
Set Variable Set rect_2[2] = a2 <gen>
Set Variable Set rect_2[3] = a3 <gen>
Set Variable Set rect_2[4] = a4 <gen>
Set Variable Set rect_2[5] = a5 <gen>
Set Variable Set rect_2[6] = a6 <gen>
Set Variable Set rect_2[7] = a7 <gen>
Set Variable Set rect_2[8] = a8 <gen>
Set Variable Set rect_2[9] = a9 <gen>
Set Variable Set rect_2[10] = a10 <gen>
Set Variable Set rect_2[11] = a11 <gen>
Set Variable Set rect_2[12] = a12 <gen>
Set Variable Set rect_2[13] = a13 <gen>
Set Variable Set rect_2[14] = a14 <gen>
Set Variable Set rect_2[15] = a15 <gen>
Set Variable Set rect_2[16] = a16 <gen>
Set Variable Set rect_2[17] = a17 <gen>
Set Variable Set rect_2[18] = a18 <gen>
Set Variable Set rect_2[19] = a19 <gen>
Set Variable Set rect_2[20] = a20 <gen>
Set Variable Set rect_2[21] = a21 <gen>
Set Variable Set rect_2[22] = a22 <gen>
Set Variable Set rect_2[23] = a23 <gen>
Set Variable Set rect_2[24] = a24 <gen>
Set Variable Set rect_2[25] = a25 <gen>
Set Variable Set rect_2[26] = a26 <gen>
Set Variable Set rect_2[27] = a27 <gen>
Set Variable Set rect_2[28] = a28 <gen>
Set Variable Set rect_2[29] = a29 <gen>
Set Variable Set rect_2[30] = a30 <gen>
Set Variable Set rect_2[31] = a31 <gen>
Set Variable Set rect_2[32] = a32 <gen>
Set Variable Set rect_2[33] = a33 <gen>
Set Variable Set rect_2[34] = a34 <gen>
Set Variable Set rect_2[35] = a35 <gen>
Set Variable Set rect_2[36] = a36 <gen>
Set Variable Set rect_2[37] = a37 <gen>
Set Variable Set rect_2[38] = a38 <gen>
Set Variable Set rect_2[39] = a39 <gen>
Set Variable Set rect_2[40] = a40 <gen>
Set Variable Set rect_2[41] = a41 <gen>
Set Variable Set rect_2[42] = a42 <gen>
Set Variable Set rect_2[43] = a43 <gen>
Set Variable Set rect_2[44] = a44 <gen>
Set Variable Set rect_2[45] = a45 <gen>
Set Variable Set rect_2[46] = a46 <gen>
Set Variable Set rect_2[47] = a47 <gen>
Set Variable Set rect_2[48] = a48 <gen>
Set Variable Set rect_2[49] = a49 <gen>
Set Variable Set rect_2[50] = a50 <gen>
Set Variable Set rect_2[51] = a51 <gen>
Set Variable Set rect_2[52] = a52 <gen>
Set Variable Set rect_2[53] = a53 <gen>
Set Variable Set rect_2[54] = a54 <gen>
Set Variable Set rect_2[55] = a55 <gen>
Set Variable Set rect_2[56] = a56 <gen>
Set Variable Set rect_2[57] = a57 <gen>
Set Variable Set rect_2[58] = a58 <gen>
Set Variable Set rect_2[59] = a59 <gen>
Set Variable Set rect_2[60] = a60 <gen>
Set Variable Set rect_2[61] = a61 <gen>
Set Variable Set rect_2[62] = a62 <gen>
Set Variable Set rect_2[63] = a63 <gen>
Set Variable Set rect_2[64] = a64 <gen>
Set Variable Set rect_2[65] = a65 <gen>
Set Variable Set rect_2[66] = a66 <gen>
Set Variable Set rect_2[67] = a67 <gen>
Set Variable Set rect_2[68] = a68 <gen>
For each (Integer A) from 1 to 68 , do (Actions)
Loop - Actions
Trigger - Add to __________002 <gen> the event (A unit enters rect[(Integer A)])
Trigger - Add to __________003 <gen> the event (A unit leaves rect[(Integer A)])
新觸發 002
Events
Conditions
Actions
For each (Integer A) from 1 to 68 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(rect_2[(Integer A)] contains (Triggering unit)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in rect[(Integer A)] matching ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) Not equal to (Owner of (Triggering unit))) and ((Unit-type of (Matching unit)) Not equal to 區域))))) Equal to 0
Then - Actions
Unit Group - Pick every unit in (Units in rect_2[(Integer A)] matching (((Matching unit) is A structure) Equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Not equal to (Owner of (Triggering unit))
Then - Actions
Player - Add 3 to (Owner of (Triggering unit)) . Current gold
Unit - Change ownership of (Picked unit) to (Owner of (Triggering unit)) and Change color
Floating Text - Create floating text that reads (UNKNOWN PRESET: StringColor06 + +3) at (Position of (Triggering unit)) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Else - Actions
Else - Actions
Else - Actions
新觸發 003
Events
Conditions
Actions
For each (Integer A) from 1 to 68 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(rect_2[(Integer A)] contains (Triggering unit)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in rect[(Integer A)] matching (((Matching unit) is alive) Equal to True))) Equal to 1
Then - Actions
Unit - Move (Triggering unit) instantly to (Center of rect[(Integer A)]) , facing Default building facing degrees
Else - Actions
Else - Actions
新觸發 005
Events
Unit - A unit Dies
Conditions
((Killing unit) is A structure) Equal to False
Actions
For each (Integer A) from 1 to 68 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(rect_2[(Integer A)] contains (Triggering unit)) Equal to True
Then - Actions
Unit Group - Pick every unit in (Units in rect[(Integer A)] matching ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit)))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is dead) Equal to True
((Picked unit) is A structure) Not equal to True
Then - Actions
Unit - Move (Killing unit) instantly to (Center of rect[(Integer A)]) , facing Default building facing degrees
Else - Actions
Else - Actions
新觸發 004
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Variable Set integer = "0"
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A structure) Equal to True)) and do (Actions)
Loop - 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 (Picked unit)) Equal to (Player((Integer A)))
Then - Actions
Set Variable Set integer = (integer + 1)
Set Variable Set player[integer] = (Player((Integer A)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
integer Equal to 1
Then - Actions
Game - Victory player[integer] ( Show dialogs, Show scores)
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
(Player((Integer A))) Not equal to player[1]
Then - Actions
Game - Defeat (Player((Integer A))) with the message: 戰敗 !
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
integer Equal to 2
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(player[1] is an ally of player[2].) Equal to True
Then - Actions
Game - Victory player[1] ( Show dialogs, Show scores)
Game - Victory player[2] ( Show dialogs, Show scores)
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
(Player((Integer A))) Not equal to player[1]
(Player((Integer A))) Not equal to player[2]
Then - Actions
Game - Defeat (Player((Integer A))) with the message: 戰敗 !
Else - Actions
Else - Actions
Else - Actions
Untitled Trigger 072
Events
Time - Every 35.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
Player - Add 10 to (Player((Integer A))) . Current gold
Untitled Trigger 109
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
Player - Add 10 to (Player((Integer A))) . Current gold
Untitled Trigger 097
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Player - Player 11 (Dark Green) leaves the game
Player - Player 12 (Brown) leaves the game
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + 已退出黨爭,是個叛徒!)
新觸發 006
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Countdown Timer - Start time as a Repeating timer that will expire in 35.00 seconds
Countdown Timer - Create a timer window for time with title 距離下一回合
Countdown Timer - Missing string for 'TimerDialogDisplay'
新觸發 007
Events
Time - time expires
Conditions
Actions
Game - Display to (All players) for 3.00 seconds the text: 下一回合
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.