重拳腳的範例

其實沒什麼特別的東西, 與輕攻擊不同的就是收招較慢, 因此示能作為截擊技, ai 方面只是一點點不同:
; Standing hard punch (close) 來自neokyo
[State -1,52]
type = ChangeState
value = 221
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = P2bodydist X <= 25
trigger1 = command = "y"
trigger2 = Var(59);<----ai 的部份.
trigger2 = P2BodyDist X = [20,25];<---進入攻擊範圍就發動.
trigger2 = random = [0,200];加入 random.
正常情況下, 重打之後就會觸發連技的 ai, 一個完整的連技 ai 就完成.
因為是近身重打, 所以要有前跑的 ai 去走近敵人:
[state -1]
type = changestate
triggerall = ctrl
triggerall = statetype = s
trigger1 = command = "ff"
trigger2 = var(59)
trigger2 = p2bodydist x >= 150;當距離敵人太遠就向前跑.
value = 100
在 state 100 中, 會有一句東西如下:
[state 100];雖然不一定有, 作用是把人物轉回 state 0
type = changestate
trigger1 = !var(59);<---ai 開啟後由 ai 決定何時停跑 trigger1 = command != "holdfwd"
trigger2 = var(59)
trigger2 = p2bodydist x <= 100;跑近就好停了, 否則在跑步中行難作出防禦.
value = 0


重拳腳的範例完. 回首頁
Make your own free website on Tripod.com