[ WE ] 請問中立怪物重生寫法錯誤的問題...

看板WarCraftChat作者 (dpple)時間16年前 (2009/07/02 18:28), 編輯推噓-2(132)
留言6則, 3人參與, 最新討論串1/1
雖然下面有WE聊天室 但須附原觸發還是自己發了一篇@@ 這是參考三國地圖寫的中立生物復活的東東 但卻不能發揮效用 想請問各位高手是錯在哪@@? creeps01 事件 時間 - Elapsed game time is 0.00 seconds 狀況 行動 部隊群組 - Pick every unit in (Units in (Playable map area) matching (((Owner of (Picked unit)) controller) 等於 敵對)) and do (Actions) 迴一行動 Set Integer = (Integer + 1) 部隊 - Set the custom value of (Picked unit) to Integer 部隊群組 - Add (Picked unit) to Creeps_Group Set Creeps_Type[Integer] = (Unit-type of (Picked unit)) Set Point_Creeps[Integer] = (Position of (Picked unit)) ////遊戲開始時將全地圖的中立敵對生物編序、記錄位置與類型, 並加入"中立生物群組"。 creeps02 事件 部隊 - A unit 死亡 狀況 ((Dying unit) is in Creeps_Group) 等於 真 ////當屬於"中立生物群組"之部隊死亡。 行動 Custom script: local integer N Custom script: set N = GetUnitUserData(GetDyingUnit()) ////將所需要的變數(死亡生物序號)記錄。 部隊群組 - Remove (Dying unit) from Creeps_Group ////移除生物於"中立生物群組"。 Custom script: call CreateNUnitsAtLoc( 1, udg_Creeps_Type[N], Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_Point_Creeps[N], bj_UNIT_FACING ) ////創造一個先前類型之生物於先前位置(因為測試就不等待直接重生了)。 部隊群組 - Add (Last created unit) to Creeps_Group ////將之加入"中立生物群組" Custom script: call SetUnitUserData( GetLastCreatedUnit(), N ) ////給與先前序號。 請各位幫個忙了 謝謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.116.201.214

07/02 21:14, , 1F
matching owner of (matching unit)
07/02 21:14, 1F

07/02 22:21, , 2F
謝謝解答.. 一直把重點放在第二個觸發
07/02 22:21, 2F

07/02 22:22, , 3F
而忽略了前面的小錯誤 剛剛測試的確就是它! 再次感謝..
07/02 22:22, 3F

11/09 16:39, , 4F
11/09 16:39, 4F

11/09 16:39, , 5F
11/09 16:39, 5F

11/09 16:39, , 6F
11/09 16:39, 6F
文章代碼(AID): #1AJ8lW0k (WarCraftChat)
文章代碼(AID): #1AJ8lW0k (WarCraftChat)