Re: [WE]自已寫的一個失敗的技能,希望大家能幫忙쀠…
※ 引述《ericssson (笑任)》之銘言:
: Unit Group -_Pick every unit in (Units within 300) of Abductpoint matching
: 是英雄是敵人是活的
: 迴圈-動作
: If(ALL Conditions are True) then do(Then Actions) else do(ElseActions)
: 若符合這些條件
: Last created unit group is empty 等於真
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
按照你技能的原意 這個判斷不適合直接放在迴圈裡用
應該要搬出來 等迴圈跑完再做判斷
所以變成這樣寫...
set TempPoint = (Target point of ability being cast)
unit group - pick every unit in (units within 300) of TempPoint Matching
Matching Unit is hero / is enemy / is alive (這行是只是簡寫)
迴圈-動作
do nothing
If(ALL Conditions are True) then do(Then Actions) else do(ElseActions)
若符合這些條件
Last created unit group is empty 等於真
就執行這些動作
unit - move (Triggering Unit) instantly to TempPoint
另外
這樣還會造成技能無CD的情況
所以可以把 unit - move (Triggering Unit) instantly to TempPoint
放在 wait 0.01 game-time seconds 之後來使用
至於其中記綠變數的方式就隨自己習慣來用吧~
或是直接在最開頭直接就從 wait 之後開始也可以
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.115.195.30
※ 編輯: svcchaos 來自: 59.115.195.30 (04/16 11:51)
推
04/16 12:34, , 1F
04/16 12:34, 1F
→
04/16 12:56, , 2F
04/16 12:56, 2F
→
04/16 13:12, , 3F
04/16 13:12, 3F
→
04/16 13:27, , 4F
04/16 13:27, 4F
→
04/16 13:27, , 5F
04/16 13:27, 5F
→
04/16 13:28, , 6F
04/16 13:28, 6F
推
04/16 14:49, , 7F
04/16 14:49, 7F
推
04/16 15:27, , 8F
04/16 15:27, 8F
→
04/16 15:59, , 9F
04/16 15:59, 9F
推
04/16 16:01, , 10F
04/16 16:01, 10F
推
04/16 16:51, , 11F
04/16 16:51, 11F
推
04/17 09:27, , 12F
04/17 09:27, 12F
推
04/17 13:03, , 13F
04/17 13:03, 13F
WarCraftChat 近期熱門文章
PTT遊戲區 即時熱門文章
19
41