
;--------------------------------------------------------------------------
;	AIスイッチコマンド

[Command]
Name = "AI01"
Command = ~D,U,D,U,D,U,D,U,D,U,a
Time = 1

[Command]
Name = "AI02"
Command = ~D,U,D,U,D,U,D,U,D,U,b
Time = 1

[Command]
Name = "AI03"
Command = ~D,U,D,U,D,U,D,U,D,U,c
Time = 1

[Command]
Name = "AI04"
Command = ~D,U,D,U,D,U,D,U,D,U,x
Time = 1

[Command]
Name = "AI05"
Command = ~D,U,D,U,D,U,D,U,D,U,y
Time = 1

[Command]
Name = "AI06"
Command = ~D,U,D,U,D,U,D,U,D,U,z
Time = 1

[Command]
Name = "AI07"
Command = ~U,D,U,D,U,D,U,D,U,D,a
Time = 1

[Command]
Name = "AI08"
Command = ~U,D,U,D,U,D,U,D,U,D,b
Time = 1

[Command]
Name = "AI09"
Command = ~U,D,U,D,U,D,U,D,U,D,c
Time = 1

[Command]
Name = "AI10"
Command = ~U,D,U,D,U,D,U,D,U,D,x
Time = 1

[Command]
Name = "AI11"
Command = ~U,D,U,D,U,D,U,D,U,D,y
Time = 1

[Command]
Name = "AI12"
Command = ~U,D,U,D,U,D,U,D,U,D,z
Time = 1

[Command]
Name = "AI13"
Command = ~B,F,B,F,B,F,B,F,B,F,a
Time = 1

[Command]
Name = "AI14"
Command = ~B,F,B,F,B,F,B,F,B,F,b
Time = 1

[Command]
Name = "AI15"
Command = ~B,F,B,F,B,F,B,F,B,F,c
Time = 1

[Command]
Name = "AI16"
Command = ~B,F,B,F,B,F,B,F,B,F,x
Time = 1

[Command]
Name = "AI17"
Command = ~B,F,B,F,B,F,B,F,B,F,y
Time = 1

[Command]
Name = "AI18"
Command = ~B,F,B,F,B,F,B,F,B,F,z
Time = 1

[Command]
Name = "AI19"
Command = ~F,B,F,B,F,B,F,B,F,B,a
Time = 1

[Command]
Name = "AI20"
Command = ~F,B,F,B,F,B,F,B,F,B,b
Time = 1

[Command]
Name = "AI21"
Command = ~F,B,F,B,F,B,F,B,F,B,c
Time = 1

[Command]
Name = "AI22"
Command = ~F,B,F,B,F,B,F,B,F,B,x
Time = 1

[Command]
Name = "AI23"
Command = ~F,B,F,B,F,B,F,B,F,B,y
Time = 1

[Command]
Name = "AI24"
Command = ~F,B,F,B,F,B,F,B,F,B,z
Time = 1


;------------------------------
;	AI用コマンド

[Command]
Name = "236236236236C"
Command = ~D, DF, F, D, DF, F, D, DF, F, D, DF, F, c
Time = 1

[Command]
Name = "214214214214C"
Command = ~D, DB, B, D, DB, B, D, DB, B, D, DB, B, c
Time = 1

[Command]
Name = "4123641236C"
Command = ~B, DB, D, DF, F, B, DB, D, DF, F, c
Time = 1

[Command]
Name = "6321463214C"
Command = ~F, DF, D, DB, B, F, DF, D, DB, B, c
Time = 1

;------------------------------
;	超必殺技コマンド

[Command]
Name = "214Z"
Command = ~D, DB, B, z
Time = 20

[Command]
Name = "236Z"
Command = ~D, DF, F, z
Time = 20

[Command]
Name = "623Z"
Command = ~F, D, DF, z
Time = 20

[Command]
Name = "421Z"
Command = ~B, D, DB, z
Time = 20

[Command]
name = "22Z"
command = ~D, D, z
Time = 20

;------------------------------
;	必殺技コマンド

[Command]
Name = "pitfall"
Command = ~F, DF ,D, DB, B, b
Time = 20
[Command]
Name = "box"
Command = ~F, D, DF, c
Time = 20

[Command]
Name = "214A"
Command = ~D, DB, B, a
Time = 15
[Command]
Name = "214B"
Command = ~D, DB, B, b
Time = 15
[Command]
Name = "214C"
Command = ~D, DB, B, c
Time = 15

[Command]
Name = "236A"
Command = ~D, DF, F, a
Time = 15
[Command]
Name = "236B"
Command = ~D, DF, F, b
Time = 15
[Command]
Name = "236C"
Command = ~D, DF, F, c
Time = 15

[Command]
Name = "623A"
Command = ~F, D, DF, a
Time = 15
[Command]
Name = "623B"
Command = ~F, D, DF, b
Time = 15
[Command]
Name = "623C"
Command = ~F, D, DF, c
Time = 15

[Command]
Name = "421A"
Command = ~B, D, DB, a
Time = 15
[Command]
Name = "421B"
Command = ~B, D, DB, b
Time = 15
[Command]
Name = "421C"
Command = ~B, D, DB, c
Time = 15

;------------------------------
;	クラッシュコマンド

[Command]
Name = "22A"
Command = ~D, D, a
Time = 15
[Command]
Name = "22B"
Command = ~D, D, b
Time = 15
[Command]
Name = "22C"
Command = ~D, D, c
Time = 15


;------------------------------

[Command]
name = "gc_a"
command = ~B, D, DB, a

[Command]
name = "gc_b"
command = ~B, D, DB, b

[Command]
name = "gc_c"
command = ~B, D, DB, c


;------------------------------
;	ダッシュコマンド

[Command]
Name = "66"     
Command = F, F
Time = 15
[Command]
Name = "44"     
Command = B, B
Time = 15

;------------------------------
;	受身コマンド

[Command]
Name = "recovery"
Command = x+y

[Command]
Name = "recoveryA"
Command = /F,a
[Command]
Name = "recoveryA"
Command = /F,b
[Command]
Name = "recoveryA"
Command = /F,c

[Command]
Name = "recoveryB"
Command = /B,a
[Command]
Name = "recoveryB"
Command = /B,b
[Command]
Name = "recoveryB"
Command = /B,c

;------------------------------
;	移動起き上がり用コマンド

[Command]
Name = "holda"
Command = /$a
Time = 1
[Command]
Name = "holdb"
Command = /$b
Time = 1
[Command]
Name = "holdc"
Command = /$c
Time = 1

[Command]
Name = "holdx"
Command = /$x
Time = 1
[Command]
Name = "holdy"
Command = /$y
Time = 1
[Command]
Name = "holdz"
Command = /$z
Time = 1

;------------------------------
;	単発コマンド

[Command]
Name = "2"
Command = D
Time = 1

;------------------------------

[Command]
Name = "a"
Command = a
Time = 1
[Command]
Name = "b"
Command = b
Time = 1
[Command]
Name = "c"
Command = c
Time = 1

[Command]
Name = "x"
Command = x
Time = 1
[Command]
Name = "y"
Command = y
Time = 1
[Command]
Name = "z"
Command = z
Time = 1

[Command]
Name = "start"
Command = s
Time = 1

;------------------------------

[Command]
Name = "holdfwd"
Command = /$F
Time = 1
[Command]
Name = "holdback"
Command = /$B
Time = 1

[Command]
Name = "holdup" 
Command = /$U
Time = 1
[Command]
Name = "holddown"
Command = /$D
Time = 1

[Command]
Name = "holda"
Command = /$a
Time = 1
[Command]
Name = "holdb"
Command = /$b
Time = 1
[Command]
Name = "holdc"
Command = /$c
Time = 1

;==============================
[StateDef -1]

;■■■■■■■■■■■■■■■■■■■■■■■■■
;	プレイヤー操作用（アレンジモード）
;--------------------------------------------------
;------------------------------　プレイヤースペルカード攻撃（アレンジ）
[State -1, PlayerSpell_M]
Type = ChangeState
Value = IfElse((Command="236Z"),3240,3220)
TriggerAll = (Command = "236Z") || (Command = "623Z")
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(46) = 0;	ストーリーモード時無効
TriggerAll = Var(58) = 1;	アレンジモード時
TriggerAll = Power >= 1000;	パワー有り
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,249]) && MoveContact
Trigger4   = (StateNo = [400,449]) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)
Trigger10  = (Var(12) = [1100,1119]) && (StateNo = 119) && MoveContact
Trigger11  = (StateNo = [1120,1122]) && (AnimElem=5,>0)
Trigger12  = (StateNo = 1160) && (Time > 42)

;------------------------------　デーモンロードバレット地上
[State -1, 1140_1145]
Type = ChangeState
Value = IfElse((Command="623A"),1140,1145)
TriggerAll = (Command = "623A") || (Command = "623B")
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 1;	アレンジモード時
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,239]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)

;------------------------------　デーモンロードバレット空中
[State -1, 1150_1155]
Type = ChangeState
Value = IfElse((Command="623A"),1150,1155)
TriggerAll = (Command = "623A") || (Command = "623B")
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 1;	アレンジモード時
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType = A
Trigger1   = Ctrl
Trigger2   = (StateNo = 101) && (Time > 5)
Trigger3   = (StateNo = [110,119]) && (StateNo%5 = 1) && (Time > 9)
Trigger4   = (StateNo = [600,629]) && MoveContact
Trigger5   = (StateNo = 521) && (AnimElem = 5, >0)
Trigger6   = (StateNo = [700,749]) && (StateNo%5 > 0)

;------------------------------　デーモンロードステップ
[State -1, 1100_1110]
Type = ChangeState
Value = IfElse((Command="236A"),1100,1110)
TriggerAll = (Command = "236A") || (Command = "236B")
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 1;	アレンジモード時
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,239]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)

;------------------------------　レプリカントサーヴァント
[State -1, 1120_1121_1122]
Type = ChangeState
Value = IfElse((Command="214A"),1120,IfElse((Command="214B"),1121,1122))
TriggerAll = (Command = "214A") || (Command = "214B") || (Command = "214C")
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 1;	アレンジモード時
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = NumHelper(6330) = 0; 既に呼び出していないとき
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,239]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)

;------------------------------　デーモンロードレイ
[State -1, 1160]
Type = ChangeState
Value = 1160
TriggerAll = Command = "236C"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 1;	アレンジモード時
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,239]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)

;■■■■■■■■■■■■■■■■■■■■■■■■■
;	プレイヤー操作用（萃夢想モード）
;--------------------------------------------------

;------------------------------　デバック用
[State -1, Test]
Type = Null;ChangeState
Value = 3590
TriggerAll = Command = "x"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType != A
Trigger1   = Ctrl

;------------------------------　兎符「開運大紋」
[State -1, 3040]
Type = ChangeState
Value = 3040
TriggerAll = Command = "623Z"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(46) = 0;	ストーリーモード時無効
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Power >= 1000;	パワー有り
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,249]) && MoveContact
Trigger4   = (StateNo = [400,449]) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)
Trigger10  = (Var(12) = 1000) && (StateNo = 119) && MoveContact && (AnimElem =9, >0)
Trigger11  = (StateNo = 1001) && MoveContact
Trigger12  = (Var(12) = 1010) && (StateNo = 119) && MoveContact && (AnimElem =7, >0)
Trigger13  = (StateNo = 1012) && MoveContact
Trigger14  = (StateNo = 1049) && MoveContact
Trigger15  = (StateNo = 1060) && (Time > 35)

;------------------------------　脱兎「フラスターエスケープ」
[State -1, 3070]
Type = ChangeState
Value = 3070
TriggerAll = Command = "421Z"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(46) = 0;	ストーリーモード時無効
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Power >= 1000;	パワー有り
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
;Trigger1   = Ctrl
trigger1 = stateno = [150,153]
trigger1 = Anim != 6650 && Anim != 6651

;------------------------------　「エンシェントデューパー」
[State -1, 3060]
Type = ChangeState
Value = 3060
TriggerAll = Command = "214Z"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(46) = 0;	ストーリーモード時無効
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Power >= 3000;	パワー有り
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
triggerAll = life <= 300;	ライフ３０％以下
TriggerAll = PalNo = [11,12]
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,249]) && MoveContact
Trigger4   = (StateNo = [400,449]) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)
Trigger10  = (Var(12) = 1000) && (StateNo = 119) && MoveContact && (AnimElem =9, >0)
Trigger11  = (StateNo = 1001) && MoveContact
Trigger12  = (Var(12) = 1010) && (StateNo = 119) && MoveContact && (AnimElem =7, >0)
Trigger13  = (StateNo = 1012) && MoveContact
Trigger14  = (StateNo = 1049) && MoveContact
Trigger15  = (StateNo = 1060) && (Time > 35)

;------------------------------　「エンシェントデューパー」
[State -1, 3060]
Type = ChangeState
Value = 3060
TriggerAll = Command = "214Z"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(46) = 0;	ストーリーモード時無効
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Power >= 3000;	パワー有り
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
triggerAll = life <= 300;	ライフ３０％以下
TriggerAll = Var(51) = 1;	１ラウンド負けている
TriggerAll = PalNo != [11,12]
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,249]) && MoveContact
Trigger4   = (StateNo = [400,449]) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)
Trigger10  = (Var(12) = 1000) && (StateNo = 119) && MoveContact && (AnimElem =9, >0)
Trigger11  = (StateNo = 1001) && MoveContact
Trigger12  = (Var(12) = 1010) && (StateNo = 119) && MoveContact && (AnimElem =7, >0)
Trigger13  = (StateNo = 1012) && MoveContact
Trigger14  = (StateNo = 1049) && MoveContact
Trigger15  = (StateNo = 1060) && (Time > 35)

;------------------------------　兎符「因幡の素兎」
[State -1, 3020]
Type = ChangeState
Value = 3020
TriggerAll = Command = "236Z"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(46) = 0;	ストーリーモード時無効
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Power >= 2000;	パワー有り
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,249]) && MoveContact
Trigger4   = (StateNo = [400,449]) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)
Trigger10  = (Var(12) = 1000) && (StateNo = 119) && MoveContact && (AnimElem =9, >0)
Trigger11  = (StateNo = 1001) && MoveContact
Trigger12  = (Var(12) = 1010) && (StateNo = 119) && MoveContact && (AnimElem =7, >0)
Trigger13  = (StateNo = 1012) && MoveContact
Trigger14  = (StateNo = 1049) && MoveContact
Trigger15  = (StateNo = 1060) && (Time > 35)

;------------------------------　借符「大穴牟遅様の薬」
[State -1, 3050]
Type = ChangeState
Value = 3050
TriggerAll = Command = "22Z"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(46) = 0;	ストーリーモード時無効
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Power >= 2000;	パワー有り
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,249]) && MoveContact
Trigger4   = (StateNo = [400,449]) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)
Trigger10  = (Var(12) = 1000) && (StateNo = 119) && MoveContact && (AnimElem =9, >0)
Trigger11  = (StateNo = 1001) && MoveContact
Trigger12  = (Var(12) = 1010) && (StateNo = 119) && MoveContact && (AnimElem =7, >0)
Trigger13  = (StateNo = 1012) && MoveContact
Trigger14  = (StateNo = 1049) && MoveContact
Trigger15  = (StateNo = 1060) && (Time > 35)

;------------------------------　罠符「ピットフォール」
[State -1, 1800];投げ技
type = ChangeState
value = 1800
triggerall = command = "b"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "pitfall"
;trigger1 = p2bodydist X < 10
;trigger1 = (p2statetype = S) || (p2statetype = C)
;trigger1 = p2movetype != H
triggerall = NumHelper(1801) < 1

;------------------------------　罠符「ピットフォール」
[State -1, 1080]
type = ChangeState
value = 1080
triggerall = command = "c"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Var(41) = 0;	霊力有り
triggerall = statetype != A
triggerall = stateno != 100
triggerall = command = "box"
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,239]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)


;------------------------------　因幡クレイドル
[State -1, 1020_1030]
Type = ChangeState
Value = IfElse((Command="623A"),1020,1030)
TriggerAll = (Command = "623A") || (Command = "623B")
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,239]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)

;------------------------------　因幡タイフーン
[State -1, 1000_1010]
Type = ChangeState
Value = IfElse((Command="236A"),1000,1010)
TriggerAll = (Command = "236A") || (Command = "236B")
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,239]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)

;------------------------------　因幡タイフーン（空中）
[State -1, 1005_1015]
Type = ChangeState
Value = IfElse((Command="236A"),1005,1015)
TriggerAll = (Command = "236A") || (Command = "236B")
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType = A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [600,639]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact
Trigger5   = (StateNo = [700,709]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [700,709]) && (StateNo%5=2)
Trigger7   = (StateNo = [720,749]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)

;------------------------------　因幡アロー
[State -1, 1040_1041_1042]
Type = ChangeState
Value = IfElse((Command="214A"),1040,IfElse((Command="214B"),1041,1042))
TriggerAll = (Command = "214A") || (Command = "214B") || (Command = "214C")
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,239]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)

;------------------------------　二兎追
[State -1, 1060]
Type = ChangeState
Value = 1060
TriggerAll = Command  = "236C"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(58) = 0;	萃夢想モード時
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)
Trigger3   = (StateNo = [200,239]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact
Trigger5   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger6   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger7   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger8   = (StateNo = 500) && (AnimElem =5, >0)
Trigger9   = (StateNo = 540) && (AnimElem =4, >0)

;■■■■■■■■■■■■■■■■■■■■■■■■■
;	プレイヤー操作用（全モード共通）
;--------------------------------------------------

;------------------------------　霊撃（通常）
[State -1, 800]
Type = ChangeState
Value = 800
TriggerAll = Command = "22C"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(43) > 0;	ボム有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [100,109]) && (StateNo%5 = 2) && (Time > 0)

;------------------------------　霊撃（攻撃キャンセル）
[State -1, 801]
Type = ChangeState
Value = 801
TriggerAll = Command = "22C"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(43) > 0;	ボム有り
TriggerAll = StateType != A
Trigger1   = (StateNo = [200,249]) && MoveContact
Trigger2   = (StateNo = [400,449]) && MoveContact
Trigger3   = (StateNo = [300,309]) && (StateNo%5=1) && (Time>0)
Trigger4   = (StateNo = [300,309]) && (StateNo%5=2)
Trigger5   = (StateNo = [320,349]) && (AnimElem =6, >0)
Trigger6   = (StateNo = 500) && (AnimElem =5, >0)
Trigger7   = (StateNo = 540) && (AnimElem =4, >0)
Trigger8   = (Var(12) = 1000) && (StateNo = 119) && MoveContact && (AnimElem =9, >0)
Trigger9   = (StateNo = 1001) && MoveContact
Trigger10  = (Var(12) = 1011) && (StateNo = 119) && MoveContact && (AnimElem =7, >0)
Trigger11  = (StateNo = 1012) && MoveContact
Trigger12  = (StateNo = 1049) && MoveContact
Trigger13  = (StateNo = 1060) && (Time > 35)
Trigger14  = (Var(12) = [1100,1119]) && (StateNo = 119) && MoveContact
Trigger15  = (StateNo = [1120,1122]) && (AnimElem=5,>0)
Trigger16  = (StateNo = 1160) && (Time > 42)

;------------------------------　霊撃（ガードキャンセル）
[State -1, 802]
Type = ChangeState
Value = 802
TriggerAll = Command = "22C"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(43) > 0;	ボム有り
TriggerAll = StateType != A
Trigger1   = StateNo = 151 || StateNo = 153
Trigger2   = StateNo = 150 || StateNo = 152
Trigger2   = Time > 0
Trigger3   = StateNo = [130, 131]
Trigger3   = PrevStateNo = [150, 153]
Trigger4   = StateNo = 140 && StateType != A
Trigger4   = PrevStateNo = [150, 153]

;------------------------------　狡兎三窟 (左出現)
[State -1, 930]
type = ChangeState
value = 930
triggerall = command = "gc_a"
trigger1 = stateno = [150,153]
trigger1 = Anim != 6650 && Anim != 6651

;------------------------------　狡兎三窟 (中央出現)
[State -1, 931]
type = ChangeState
value = 931
triggerall = command = "gc_b"
trigger1 = stateno = [150,153]
trigger1 = Anim != 6650 && Anim != 6651

;------------------------------　狡兎三窟 (右出現)
[State -1, 932]
type = ChangeState
value = 932
triggerall = command = "gc_c"
trigger1 = stateno = [150,153]
trigger1 = Anim != 6650 && Anim != 6651


;------------------------------　↓↓攻撃（竹）
[State -1, 240_440]
Type = ChangeState
Value = IfElse((Command="22A"),240,440)
TriggerAll = (Command = "22A") || (Command = "22B")
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [200,239]) && MoveContact
Trigger3   = (StateNo = 400) && MoveContact
triggerall = NumHelper(241) < 1

;------------------------------　↓弱ショット　ドリ符「伝統と実績の金ダライ」
[State -1, 500]
Type = ChangeState
Value = 500
TriggerAll = Command = "a"
TriggerAll = Command = "holddown"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = P2Dist X > 100;	遠距離
TriggerAll = StateType != A
Trigger1   = Ctrl
triggerall = NumHelper(503) < 3

;------------------------------　↓強ショット
[State -1, 520]
Type = ChangeState
Value = 520
TriggerAll = Command = "b"
TriggerAll = Command = "holddown"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = P2Dist X > 200;	遠距離
TriggerAll = StateType != A
Trigger1   = Ctrl

;------------------------------　↓射撃「兎玉」
[State -1, 540]
Type = ChangeState
Value = 540
TriggerAll = Command = "c"
TriggerAll = Command = "holddown"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [200,239]) && MoveContact
Trigger3   = (StateNo = [400,409]) && MoveContact

;------------------------------　立ち弱ショット
[State -1, 300_305]
Type = ChangeState
Value = IfElse((Command="holdfwd"),305,300)
TriggerAll = Command = "a"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = P2Dist X > 160;	遠距離
TriggerAll = StateType != A
Trigger1   = Ctrl

;------------------------------　立ち強ショット
[State -1, 320]
Type = ChangeState
Value = 320
TriggerAll = Command = "b"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = P2Dist X > 160;	遠距離
TriggerAll = StateType != A
Trigger1   = Ctrl

;------------------------------　立ち射撃「兎玉」
[State -1, 340_345]
Type = ChangeState
Value = IfElse((Command="holdfwd"),345,340)
TriggerAll = Command = "c"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [200,239]) && MoveContact
Trigger3   = (StateNo = [400,409]) && MoveContact

;------------------------------　空中弱ショット
[State -1, 700_705]
Type = ChangeState
Value = IfElse((Command="holddown"),705,700)
TriggerAll = Command = "a"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = P2Dist X > 200;	遠距離
TriggerAll = StateType = A
Trigger1   = Ctrl
Trigger2   = (StateNo = 101) && (Time > 3)
Trigger3   = (StateNo = [110,119]) && (StateNo%5 = 1) && (Time > 9)

;------------------------------　空中強ショット
[State -1, 720_725]
Type = ChangeState
Value = IfElse((Command="holddown"),725,720)
TriggerAll = Command = "b"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = P2Dist X > 200;	遠距離
TriggerAll = StateType = A
Trigger1   = Ctrl
Trigger2   = (StateNo = 101) && (Time > 3)
Trigger3   = (StateNo = [110,119]) && (StateNo%5 = 1) && (Time > 9)

;------------------------------　空中射撃
[State -1, 740_745]
Type = ChangeState
Value = IfElse((Command="holddown"),745,740)
TriggerAll = Command = "c"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(41) = 0;	霊力有り
TriggerAll = StateType = A
Trigger1   = Ctrl
Trigger2   = (StateNo = 101) && (Time > 3)
Trigger3   = (StateNo = [110,119]) && (StateNo%5 = 1) && (Time > 9)
Trigger4   = (StateNo = [600,629]) && MoveContact

;------------------------------　↓弱攻撃
[State -1, 400]
Type = ChangeState
Value = 400
TriggerAll = Command = "a"
TriggerAll = Command = "holddown"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = 400) && MoveContact
Trigger3   = (StateNo = 200) && MoveContact

;------------------------------　↓強攻撃
[State -1, 420]
Type = ChangeState
Value = 420
TriggerAll = Command = "b"
TriggerAll = Command = "holddown"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = 400) && MoveContact

;------------------------------　→弱攻撃
[State -1, 210]
Type = ChangeState
Value = 210
TriggerAll = Command = "a"
TriggerAll = Command = "holdfwd"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = 200) && MoveContact
Trigger3   = (StateNo = 400) && MoveContact

;------------------------------　→強攻撃（中段）
[State -1, 230]
Type = ChangeState
Value = 230
TriggerAll = Command = "b"
TriggerAll = Command = "holdfwd"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType != A
Trigger1   = Ctrl
;Trigger2   = (StateNo = 200) && MoveContact
;Trigger3   = (StateNo = [210,211]) && MoveContact
;Trigger4   = (StateNo = 400) && MoveContact

;------------------------------　立ち弱攻撃
[State -1, 200]
Type = ChangeState
Value = 200
TriggerAll = Command = "a"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = 200) && MoveContact

;------------------------------　立ち強攻撃
[State -1, 220]
Type = ChangeState
Value = 220
TriggerAll = Command = "b"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = 200) && MoveContact
Trigger3   = (StateNo = [210,211]) && MoveContact
Trigger4   = (StateNo = 400) && MoveContact

;------------------------------　空中弱攻撃
[State -1, 600]
Type = ChangeState
Value = 600
TriggerAll = Command = "a"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType = A
Trigger1   = Ctrl
Trigger2   = (StateNo = 101) && (Time > 3)
Trigger3   = (StateNo = [110,119]) && (StateNo%5 = 1) && (Time > 9)

;------------------------------　空中強攻撃
[State -1, 620]
Type = ChangeState
Value = 620
TriggerAll = Command = "b"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType = A
Trigger1   = Ctrl
Trigger2   = (StateNo = 101) && (Time > 3)
Trigger3   = (StateNo = [110,119]) && (StateNo%5 = 1) && (Time > 9)
trigger4 = stateno = 600
trigger4 = movecontact

;------------------------------　ダッシュ
[State -1, 100]
Type = ChangeState
Value = 100
TriggerAll = (Command = "66") || ((Command = "holdfwd") && (Command = "z"))
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType != A
Trigger1   = Ctrl

;------------------------------　バックダッシュ
[State -1, 105]
Type = ChangeState
Value = 105
TriggerAll = (Command = "44") || ((Command = "holdback") && (Command = "z"))
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = StateType != A
Trigger1   = Ctrl

;------------------------------　空中ダッシュ
[State -1, 110]
Type = ChangeState
Value = 110
TriggerAll = (Command = "66") || ((Command = "holdfwd") && (Command = "z"))
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(10) > 0;	空中ダッシュ可能
TriggerAll = StateType = A
Trigger1   = Ctrl
Trigger2   = (StateNo = [110,119]) && (StateNo%5 = 1) && (Time > 9)
Trigger3   = (StateNo = 521) && (AnimElem = 5, >0)
Trigger4   = (StateNo = [700,749]) && (StateNo%5 > 0)

;------------------------------　空中バックダッシュ
[State -1, 115]
Type = ChangeState
Value = 115
TriggerAll = (Command = "44") || ((Command = "holdback") && (Command = "z"))
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(10) > 0;	空中ダッシュ可能
TriggerAll = StateType = A
Trigger1   = Ctrl
Trigger2   = (StateNo = [110,119]) && (StateNo%5 = 1)  && (Time > 9)
Trigger3   = (StateNo = 521) && (AnimElem = 5, >0)
Trigger4   = (StateNo = [700,749]) && (StateNo%5 > 0)

;------------------------------　高速ジャンプ
[State -1, 103]
Type = ChangeState
Value = 103
TriggerAll = Command = "holdup"
TriggerAll = Command != "holddown"
TriggerAll = Var(49) = 0;	AI不可
TriggerAll = Var(11) > 0;	高速ジャンプ可能
TriggerAll = StateType != A
Trigger1   = Ctrl
Trigger2   = (StateNo = [300,319]) && (StateNo%5 > 0)
Trigger3   = (StateNo = [320,349]) && (StateNo%5 = 0) && (AnimElem = 6, >0)
Trigger4   = (StateNo = 500) && (AnimElem = 5, >0)
Trigger5   = (StateNo = 540) && (AnimElem = 4, >0)
Trigger6   = (StateNo = 1060) && (Time > 35)
Trigger7   = (StateNo = 1160) && (Time > 42)


