星际地图编辑触发器简介
要想編輯一幅單人地圖就一定要用到觸發器(Triggers),否則你會發現所有的電腦玩家都和死了一樣,什么也不會做,只是傻傻的站在屏幕上.此外要使電腦進行一些"有智商"的行動也同樣離不開觸發器的使用.下面我就來為大家簡單的介紹一下這個星際爭霸戰役編輯器的核心工具--觸發器.
打開觸發器可以看到上下兩個窗口.上面的窗口列出了游戲所有用到的玩家,點擊該玩家可以在下面的窗口看到關于該玩家的觸發設置.上面窗口的右側是關閉和幫助按鈕,下面窗口的右側分別是新建.修改.拷貝.刪除按鈕以及讀入觸發及保存觸發.觸發器由三部分構成--執行觸發的玩家.發生觸發的條件.發生何種觸發.如果新建一個觸發器,首先選擇執行該觸發的玩家(Players),分為玩家1-8.全部玩家以及隊伍1-4.然后是引發觸發的條件(Conditions),最后是觸發后的行動(Actions).條件和行動的搭配可以實現各種各樣你想到的效果.本文就是要將條件和行動向大家做一些簡單的介紹.
條件(Conditions)
ACCUMULATE Player accumulates quantity resources. 該玩家積累多少資源時
ALWAYS Always. 總是
BRING Player brings quantity units to location. 該玩家帶多少單位到特定區域時
COMMAND Player commands quantity units. 該玩家控制多少單位時
COMMAND THE LEAST Current player commands the least units. 當前玩家最少控制多少單位時
COMMAND THE LEAST AT Current player commands the least units at location. 當前玩家在特定區域最少控制多少單位時
COMMAND THE MOST Current player commands the most units. 當前玩家最多控制多少單位時
COMMAND THE MOST AT Current player commands the most units at location. 當前玩家在特定區域最多控制多少單位時
COUNTDOWN TIMER Countdown timer is duration game seconds. 游戲時間倒數計時多少秒時
DEATHS Player has suffered quantity deaths of unit. 該玩家損失多少單位時
ELAPSED TIME Elapsed scenario time is duration game seconds. 游戲時間經過多少秒時(游戲時間)
HIGHEST SCORE Current player has highest score points. 當前玩家得分最高時
KILL Player kills quantity units. 該玩家殺死一定數量的單位時
LEAST KILLS Current player has least kills of unit. 當前玩家殺死單位最少時
LEAST RESOURCES Current player has least resources. 當前玩家積累資源最少時
LOWEST SCORE Current player has lowest score points. 當前玩家得分最低時
MOST KILLS Current player has most kills of unit. 當前玩家殺死單位最多時
MOST RESOURCES Current player has most resources. 當前玩家積累資源最多時
NEVER Never. 從不
OPPONENTS Player has quantity opponents remaining in the game. 該玩家在游戲擁有多少對手時
SCORE Player score type score is quantity. 該玩家得分是多少時
SWITCH Switch is set. 開關被設置或清除時
行動(Actions)
CENTER VIEW Center view for current player at location. 將畫面轉至某特定區域
COMMENT Comment: comment. 對觸發器加以說明,使之便于閱讀
CREATE UNITS Create quantity unit at location for player 在特定區域為玩家創造一定數量的單位
CREATE UNITS WITH
PROPERTIES Create quantity unit at location for player. Apply properties 在特定區域為玩家創造一定數量的具有一定屬性(如隱形,鉆地等)的單位
DEFEAT End scenario in defeat for current player. 當前玩家任務失敗
DISPLAY TEXT MESSAGE Display for current player: text. 為當前玩家顯示一些交代文字
DRAW End the scenario in a draw for all players. 所有玩家平手
GIVE UNITS TO PLAYER Give quantity units owned by player at location to player. 將特定區域的一個玩家(前者)的一定數量的部隊給另一個玩家(后者)
KILL UNIT Kill all units for player. 殺死玩家的所有單位
KILL UNITS AT LOCATION Kill quantity units for player at location. 殺死玩家的在特定區域的一定數量的單位
LEADER BOARD (CONTROL ATLOCATION) Show Leader Board for most control of units at location. Display label: label 顯示目前特定區域里的單位控制情況
LEADER BOARD (CONTROL) Show Leader Board for most control of unit. Display label: label 顯示目前單位控制情況
LEADER BOARD (GREED) Show Greed Leader Board for player closest to accumulation of number ore and gas. 顯示目前總的資源收集情況
LEADER BOARD (KILLS) Show Leader Board for most kills of unit. Display label: label 顯示目前殺死單位的情況
LEADER BOARD (POINTS) Show Leader Board for most points. Display label: label 顯示目前得分情況
LEADER BOARD (RESOURCES) Show Leader Board for accumulation of most resource. Display label: label 顯示目前資源收集情況
LEADER BOARD GOAL(CONTROL AT LOCATION) Show Leader Board for player closest to control of number of units at location. Display label: label 顯示還需在特定區域里控制多少單位可達目標
LEADER BOARD GOAL(CONTROL) Show Leader Board for player closest to control of number of unit. Display label: label 顯示還需控制多少單位可達目標
LEADER BOARD GOAL (KILLS) Show Leader Board for player closest to number kills of unit. Display label: label 顯示還需殺死多少單位可達目標
LEADER BOARD GOAL (POINTS) Show Leader Board for player closest to number points. Display label: label 顯示距離目標得分還差多少
LEADER BOARD GOAL(RESOURCES) Show Leader Board for player closest to accumulation of number resource. Display label: label 顯示還需收集資源可達目標
LEADER BOARD COMPUTER PLAYERS Set use of computer players in leaderboard calculations. 關閉或打開電腦的情況顯示
MINIMAP PING Show minimap ping for current player at location. 當前玩家的小地圖顯示警告框
MODIFY UNIT ENERGY Set energy points for quantity units owned by player at location to percent%. 修改特定區域里一定數量的玩家控制單位的能量
MODIFY UNIT HANGAR COUNT Add at most quantity to hangar for quantity units at location owned by player. 修改特定區域里一定數量的玩家控制單位的彈藥(如航母,金甲蟲)
MODIFY UNIT HIT POINTS Set hit points for quantity units owned by player at location to percent%. 修改特定區域里一定數量的玩家控制單位的生命值
MODIFY UNIT RESOURCE AMOUNT Set resource amount for quantity resource sources owned by player at location to quantity. 修改特定區域里一定數量的玩家控制單位的能量
MODIFY UNIT SHIELD POINTS Set shield points for quantity units owned by player at location to percent%. 修改特定區域里一定數量的玩家控制單位的護盾
MOVE LOCATION Center location labeled location on units owned by player at location. 將一個特定區域移動到另一個特定區域
MOVE UNITS Move quantity units for player at location to destination. 將玩家一定數量的單位由一個特定區域移動到另一個特定區域
MUTE UNIT SPEECH Mute all non-trigger unit sounds for current player. 關閉當前玩家所有非觸發單位的聲音
ORDER Issue order to all units owned by player at location: order to destination. 命令玩家的單位在從一個特定區域里移動.攻擊.巡邏到另一個特定區域
PAUSE GAME Pause the game. 暫停游戲
PAUSE TIMER Pause the countdown timer. 暫停倒計時
PLAY WAV Play WAV file 播放一段聲音
PRESERVE TRIGGER Preserve Trigger. 循環執行當前觸發
REMOVE UNIT Remove all units for player. 移除玩家所有單位
REMOVE UNITS AT LOCATION Remove quantity units for player at location. 移除玩家在特定區域里的一定數量的單位
RUN AI SCRIPT Execute AI script script. 運行一個人工智能
RUN AI SCRIPT AT LOCATION Execute AI script script at location. 在特定區域運行一個人工智能
SET ALLIANCE STATUS Set Player to Ally status. 設置當前玩家與另一個玩家同盟或敵對
SET COUNTDOWN TIMER Modify Countdown Timer: Set duration seconds. 設置倒計時時間
SET DEATHS Modify death counts for player: Set quantity for unit. 設置玩家的死亡單位計數
SET DOODAD STATE Set doodad state for units for player at location. 特定區域里小物件的設置
SET INVINCIBILITY Set invincibility for units owned by player at location 設置特定區域里的玩家單位無敵
SET MISSION OBJECTIVES Set Mission Objectives to: text. 設定本關任務
SET NEXT SCENARIO Load scenario after completion of current game. 設定當前任務結束后讀取的地圖
SET RESOURCES Modify resources for player: Set quantity resource. 為玩家設定一定數量的資源
SET SCORE Modify score for player: Set quantity points. 設定玩家得分
SET SWITCH Set switch. 開關設置
TALKING PORTRAIT Show unit talking to current player for duration milliseconds. 為當前玩家顯示單位肖像一段時間
TRANSMISSION Send transmission to current player from unit at location.Play WAV file.Modify transmission duration: Set number milliseconds.Display the following text: Text 設置一段對話。包括小地圖上單位的地點顯示,伴隨的聲音及文字
UNMUTE UNIT SPEECH Unmute all non-trigger unit sounds for current player. 解除當前玩家所有非觸發單位的聲音的關閉
UNPAUSE GAME Unpause the game. 解除游戲暫停
UNPAUSE TIMER Unpause the countdown timer. 解除倒計時暫停
VICTORY End scenario in victory for current player. 當前玩家任務勝利
WAIT Wait for duration milliseconds. 等待一段時間(千分之一秒)
由于是簡介所以不是很具體,對地圖編輯的高手可能一點用也沒有,但對剛剛開始接觸地圖編輯的玩家還是有些用的,今后將對其中的細節做進一步的介紹.如果你在地圖編輯時遇到什么不明之處,歡迎你提出來,我們共同討論討論.
總結
以上是生活随笔為你收集整理的星际地图编辑触发器简介的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 映宇宙发布财报:2022年总营收63亿元
- 下一篇: on duplicate key upd