事件(Event)

General/Destructible/Dialog

事件 內容 說明
Map Initialization Map initialization 地圖初始化事件,在Loading時執行

*這個事件只觸發一次
Destructible Dies Destructible dies 指定的可毀物被摧毀

*可使用 "Event Response - Dying Destructible" 指代被摧毀的可毀物
Destructible Within Region Dies A destructible within Region dies 指定區域中的任一可毀物被摧毀

*只有64個最早初始化的可毀物能夠觸發這個事件,最好只把這個事件用在僅含有少量可毀物的區域上
Dialog Button Click A dialog button is clicked for Dialog 指定對話框中的任意按鈕被按下

Game

事件 內容 說明
Time Of Day The in-game time of day becomes Operation Time 遊戲的日夜時間 大於/等於/小於 指定數值

*遊戲時間的換算方法如下: 6:30 = 6.50;21:00 = 21.00
*遊戲時間要由不合變成合才會觸發。例如你的事件是The in-game time of day becomes Greater than or equal to 12.0
遊戲時間從11.99=>12.00--觸發
遊戲時間從11.99=>12.01--觸發
遊戲時間從12.00=>12.01--不觸發
遊戲時間從12.01=>12.01--不觸發
Value Of Real Variable Variable becomes Operation Value 指定實數變數 大於/等於/小於 指定數值

*這個事件只適用於非陣列的實數變數
*只要你用Set Variable設定變數值使它符合條件就會觸發,無論其先前值為何。例如你的事件是x becomes Less than or equal to 100.0
x從101.0=>100.0--觸發
x從101.0=>90.0--觸發
x從100.0=>90.0--觸發
x從90.0=>90.0--觸發
Game Load A saved game is loaded 讀取存檔時執行,在Loading時執行
Game Save The game is about to be saved 遊戲存檔時,在儲存之前執行
Hero Abilities Button Clicked The 'Hero Abilities' button is clicked 英雄選技能的按鈕被按下時觸發。b社建議我們只把它用在單人模式中
Build Structure Button Clicked The 'Build Structure' button is clicked 工人的建築按鈕被按下時觸發。b社建議我們只把它用在單人模式中

Player

事件 內容 說明
Chat Message Player types a chat message containing Text as Match Type 指定玩者發送了一個 完全符合/含有 指定字串的聊天訊息

*可使用 "Event Response - Entered/Matched Chat Message" 指代 輸入/修改過 的字串。
*可使用 "Event Response - Triggering Player" 指代發送訊息的玩者
Cinematic Skipped Player skips a cinematic sequence 指定玩者按下ESC鍵

*本來設計的ESC是略過電影模式的按鈕;然而,在沒有電影模式的時候,只要指定的玩者按下ESC鍵還是能觸發事件
Selection Event Player Selects/Deselects a unit 指定玩者 選取/取消選取 一個以上的部隊

*可使用 "Event Response - Triggering Unit" 指代被選取/取消選取 的部隊
*如果玩家同時選取了多個部隊,會個別觸發事件
Keyboard Event Player Presses/Releases the Key key 指定玩者 按下/放開 按鍵

*僅限上、下、左、右方向鍵
Properties Player's Property becomes Operation Value 指定玩者的指定資源大於/等於/小於指定數值

*玩者資源要經過改變才會觸發。例如你的事件是Player 1 (Red)'s Current Gold becomes Greater than or equal to 100
資源從90=>100--觸發
資源從90=>110--觸發
資源從100=>110--觸發
資源從110=>110--不觸發
Alliance Change (Any) Player changes alliance settings 指定玩者改變了同盟設定
Alliance Change (Specific) Player changes Alliance Type settings 指定玩者改變了對盟友的指定同盟設定
Victory Player leaves the game with a victory 指定玩者因勝利而離開遊戲
Defeat Player leaves the game with a defeat 指定玩者因失敗而離開遊戲
Leaves Game Player leaves the game 指定玩者離開遊戲 (包含一般離線及斷線)

Time

事件 內容 說明
Time Elapsed Elapsed game time is Time seconds 遊戲計時達給定秒數時觸發事件

*這個事件只觸發一次
*如果你使用Add Event,那麼它會在被加入的X秒後觸發 例如在10秒時Add ( Elapsed game time is 15 seconds) Event,那麼它會在25秒時被觸發,而不是15秒時
Periodic Event Every Time seconds of game time 遊戲計時每經過給定秒數就觸發事件

*如果你使用Add Event,那麼它會在被加入的X秒後開始觸發。 例如在10秒時Add ( Every 15 seconds of game time),那麼它會在25、40、55…秒時被觸發,而不是15、30、45…秒時
*如果這個Trigger被Turn off再Turn On,那麼它的計時不會受影響。 例如事件 ( Every 15 seconds of game time)在10秒時Turn off,25秒時Turn on,那麼它會在30、45、60…秒時被觸發,而不是40、55、70…秒時
Timer Expires Timer expires 指定的計時器歸零

*可使用 "Event Response - Expiring Timer" 指代歸零的計時器 *如果是One-Shot計時器,就只在歸零的那一刻執行一次;如果是Repeating計時器,每次歸零時 都會執行一次

Unit

事件 內容 說明
Specific Unit Event Unit Event 指定的部隊發生事件
Player-Owned Unit Event A unit owned by Player Event 玩者的部隊發生事件
Unit Event A unit Event 任意部隊發生事件
Unit Enters Region A unit enters Region 一個部隊進入指定區域

*可使用 "Event Response - Entering Unit" 指代正進入區域的部隊
*這個事件的觸發範圍很廣,只要指定的區域中增加了一個原本沒有的部隊,就會觸發事件,例如:
-使用Blink進入區域
-某建築生產了一個部隊在指定的區域內
-召喚一個部隊在指定的區域內
-用 "Move Unit" 動作將一個外面的部隊移入區域內
都能觸發這個事件
*在事件建立後用 "Region - Move" 移動此一區域並不會改變這個事件。
Unit Leaves Region A unit leaves Region 一個部隊離開指定區域

*可使用 "Event Response - Leaving Unit" 指代正離開區域的部隊
*只要指定的區域中減少了一個原本沒有的部隊,就會觸發事件,例如用Blink離開區域也能觸發這個事件。但部隊死亡不會觸發這個事件
*在事件建立後用 "Region - Move" 移動此一區域並不會改變這個事件。
Unit Within Range A unit comes within Range of Unit 一個部隊進入了距離指定部隊一定半徑的圓形區域中(傳送、生產出來、傭兵等皆有效)

*可使用 "Event Response - Triggering Unit" 指代進入的部隊;但不能使用 "Event Response - Entering Unit" !
Life Unit's life becomes Operation Value 指定部隊的生命值 大於/等於/小於指定數值

*部隊生命值必須由不合變成合才會觸發。例如你寫: Archmage 0012 <gen>'s life becomes Greater than or equal to 100
生命值從50.0=>100.00--觸發
生命值從50.0=>100.01--觸發
生命值從100.00=>100.01--不觸發
生命值從100.01=>100.01--不觸發
Mana Unit's mana becomes Operation Value 指定部隊的法力值 大於/等於/小於 指定數值

*主要邏輯同上
中英對照/事件.txt · 上一次變更: 2010年09月01日 7:00 am 來自 crassorz
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0