========
AI Guard
========
Created by The Necromancer

;---------------------------------------------------------------------------
AI Guard -- A simple method to increase an AI's fighting difficulty. This can 
only work when the AI has been triggered. In this case, it is with a VarSet.
;---------------------------------------------------------------------------
Please refer to Kenshin's "AI Activation" codes before using this. 

"Var(0) = 1" is used as the AI Activation trigger. 

Alternatively, you can use the CMD file to insert the codes. 
(With some format change.)

[State -3, StandGuard]
type = ChangeState
triggerall = (Var(0) = 1) && (StateType = S) && (Pos Y >= 0) && (P2BodyDist Y <= 0)
triggerall = (P2BodyDist Y >= -120) && (P2StateType != C) && (P2MoveType = A)
trigger1 = (P2BodyDist X <= 120) && (Random <= 799) && (Ctr1)
trigger2 = (StateNo = [140, 155]) || (StateNo = [100, 105])
value = 130

[State -3, CrouchGuard]
type = ChangeState
triggerall = (Var(0) = 1) && (StateType != A) && (Pos Y >= 0) && (P2BodyDist Y <= 0)
triggerall = (P2BodyDist Y >= -50) && (P2StateType = C) && (P2MoveType = A)
trigger1 = (P2BodyDist X <= 120) && (Random <= 799) && (Ctrl)
trigger2 = (StateNo = [140, 155]) || (StateNo = [100, 105])
value = 131

[State -3, AirGuard]
type = ChangeState
triggerall = (Var(0) = 1) && (StateType = A) && (Pos Y < 0) && (P2BodyDist Y >= -120) 
triggerall = (StateType = A) && (P2MoveType = A)
trigger1 = ((P2BodyDist X <= 120) && (Ctrl)) || (StateNo = [140, 155])
value = 132
