[ WE ] 請問中立怪物重生寫法錯誤的問題...
雖然下面有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
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
WarCraftChat 近期熱門文章
PTT遊戲區 即時熱門文章
106
197
13
22