精華區beta WarCraft 關於我們 聯絡資訊
: If (All Conditions are True) then do (Then Actions) else do (Else : Actions) : 若符合這些條件 : (Level of 骨牢 for (Triggering unit)) 等於 1 : 就執行這些動作 : For each (Integer B) from 1 to 12, do (Actions) : 迴圈 - 動作 : Unit - Create 1 骨牢(Lv1) for 中立額外 at : Kurau[(Integer B)] facing 預設建築面對方向 : degrees : 否則執行這些動作 : If (All Conditions are True) then do (Then Actions) else do : (Else Actions) : 若符合這些條件 : (Level of 骨牢 for (Triggering unit)) 等於 2 : 就執行這些動作 : For each (Integer B) from 1 to 12, do (Actions) : 迴圈 - 動作 : Unit - Create 1 骨牢(Lv2) for 中立額外 at : Kurau[(Integer B)] facing : 預設建築面對方向 degrees : 否則執行這些動作 : If (All Conditions are True) then do (Then Actions) : else do (Else Actions) : 若符合這些條件 : (Level of 骨牢 for (Triggering unit)) 等於 3 : 就執行這些動作 : For each (Integer B) from 1 to 12, do (Actions) : 迴圈 - 動作 : Unit - Create 1 骨牢(Lv3) for 中立額外 : at Kurau[(Integer B)] facing : 預設建築面對方向 degrees : 否則執行這些動作 : For each (Integer B) from 1 to 12, do (Actions) : 迴圈 - 動作 : Unit - Create 1 骨牢(Lv4) for 中立額外 : at Kurau[(Integer B)] facing : 預設建築面對方向 degrees 我想試著做你的那個技能 但是在創造單位時指定位置不能弄的和你一樣 integer B 不知道在做什麼用的 只能指定它出現在一堆怪地方 已經困擾我很久了 希望有人能幫我解答 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.223.75
wix3000:integer B是指迴圈變數B,(Integer B) from 1 to 12意指下 01/14 00:56
wix3000:一層的觸發會執行12次,第一次執行Integer B=1,第二次=2 01/14 00:57
wix3000:以此類推 01/14 00:58
Mlkazuki:請問一下 我在創造出單位後 指定放置的位置函數找不到你 01/14 01:06
Mlkazuki:用的那個東西 01/14 01:07
Mlkazuki:順帶請問一下 您設的位置變數是用點吧 名字後面有[x]我也 01/14 01:12
Mlkazuki:不能打上去 01/14 01:13
wix3000:1.哪個東西= =a 2.那是陣列,在創造時打勾就可以了 01/14 01:14
Mlkazuki:就是你放的位置 你設kurau[(integer B)] 我找不到類似的 01/14 01:15
wix3000:Kurau是點變數,陣列12。integer代表從Kurau1放到Kurau12 01/14 01:17
Mlkazuki:喔喔 謝謝你 我會了 那如果要像信長一樣做出18方手裡劍 01/14 01:19
Mlkazuki:要怎麼給單位技能 01/14 01:20
wix3000:Add Ability= = 01/14 03:47