[Command]
name = "FF"       ;必須コマンド名
command = F,F
time = 10

[Command]
name = "BB"       ;必須コマンド名
command = B,B
time = 10
;-| Single Dir |------------------------------------------------------------
[Command]
name = "fwd" ;Required (do not remove)
command = $F
time = 1

[Command]
name = "down" ;Required (do not remove)
command = $D
time = 1

[Command]
name = "back" ;Required (do not remove)
command = $B
time = 1

[Command]
name = "up" ;Required (do not remove)
command = $U
time = 1

;------------------------------------------------------------------------------
;-| 同時押し |-----------------------------------------------------------------

[Command]
name = "recovery" ;必須コマンド名
command = a+b
time = 1

[Command]
name = "recovery" ;必須コマンド名
command = b+c
time = 1

[Command]
name = "recovery" ;必須コマンド名
command = a+c
time = 1
;----------------------------------------------------------------------------
;-| 超必殺技 |---------------------------------------------------------------
[Command]
name = "FireBreath_Level1"
command = ~D, DF, F, D, DF, F, a
time = 30

[Command]
name = "FireBreath_Level2"
command = ~D, DF, F, D, DF, F, b
time = 30

[Command]
name = "FireBreath_Level3"
command = ~D, DF, F, D, DF, F, c
time = 30

[Command]
name = "FireBreath_Level5"
command = ~D, DF, F, D, DF, F, a+b
time = 30

[Command]
name = "FireBreath_Level5"
command = ~D, DF, F, D, DF, F, b+c
time = 30

[Command]
name = "FireBreath_Level5"
command = ~D, DF, F, D, DF, F, c+a
time = 30

[Command]
name = "Bazso"
command = ~D, DB, B, D, DB, B, a
time = 30

[Command]
name = "Bazso"
command = ~D, DB, B, D, DB, B, b
time = 30

[Command]
name = "Bazso"
command = ~D, DB, B, D, DB, B, c
time = 30

[Command]
name = "PowerUp"
command = B, F, $D, B, a
time = 30

[Command]
name = "PowerUp"
command = B, F, $D, B, b
time = 30

[Command]
name = "PowerUp"
command = B, F, $D, B, c
time = 30

[Command]
name = "BowserFlame"
command = ~B, DB, $D, F, a

[Command]
name = "BowserFlame"
command = ~B, DB, $D, F, b

[Command]
name = "BowserFlame"
command = ~B, DB, $D, F, c

[Command]
name = "BowserFlame"
command = ~F, DF, $D, B, a

[Command]
name = "BowserFlame"
command = ~F, DF, $D, B, b

[Command]
name = "BowserFlame"
command = ~F, DF, $D, B, c

[Command]
name = "Fire_2"
command = ~D, DF, F, a+b

[Command]
name = "Fire_2"
command = ~D, DF, F, b+c

[Command]
name = "Fire_2"
command = ~D, DF, F, c+a

[Command]
name = "WhirlShell_2"
command = ~D, DB, B, a+b

[Command]
name = "WhirlShell_2"
command = ~D, DB, B, b+c

[Command]
name = "WhirlShell_2"
command = ~D, DB, B, c+a
;-----------------------------------------------------------------------------
;-| 必殺技 |------------------------------------------------------------------

[Command]
name = "Fire_a"
command = ~D, DF, F, a

[Command]
name = "Fire_b"
command = ~D, DF, F, b

[Command]
name = "Fire_c"
command = ~D, DF, F, c

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

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

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

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

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

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

[Command]
name = "DD_a"
command = ~D, D, a

[Command]
name = "DD_b"
command = ~D, D, b

[Command]
name = "DD_c"
command = ~D, D, c

[Command]
name = "koopaclaw"
command = ~D, DF, F, z

[Command]
name = "FlyingSlam"
command = ~D, DB, B, z
;-| Hold Button |--------------------------------------------------------------
[Command]
name = "hold_x"
command = /x
time = 1

[Command]
name = "hold_y"
command = /y
time = 1

[Command]
name = "hold_z"
command = /z
time = 1

[Command]
name = "hold_a"
command = /a
time = 1

[Command]
name = "hold_b"
command = /b
time = 1

[Command]
name = "hold_c"
command = /c
time = 1

[Command]
name = "hold_s"
command = /s
time = 1


[Command]
name = "dodgeshell"
command = /D,a+b
time = 1

[Command]
name = "dodgeshell"
command = /D,b+c
time = 1

[Command]
name = "dodgeshell"
command = /D,a+c
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 = "cpu1"
command = a,U,D,F,F,B,B,D,U,U
time = 1
[Command]
name = "cpu2"
command = b,U,D,F,B,F,B,D,U,D
time = 1
[Command]
name = "cpu3"
command = c,U,D,B,F,B,F,D,U,B
time = 1
[Command]
name = "cpu4"
command = x,U,D,B,F,F,B,D,U,F
time = 1
[Command]
name = "cpu5"
command = y,U,D,F,F,B,B,D,U,a
time = 1
[Command]
name = "cpu6"
command = z,U,D,F,B,F,B,D,U,b
time = 1
[Command]
name = "cpu7"
command = s,U,D,B,F,B,F,D,U,c
time = 1
[Command]
name = "cpu8"
command = b,U,D,B,F,F,B,D,U,x
time = 1
[Command]
name = "cpu9"
command = c,U,D,F,B,F,B,D,U,y
time = 1
[Command]
name = "cpuA"
command = y,U,D,B,F,B,F,D,U,z
time = 1
[Command]
name = "cpuB"
command = z,U,D,B,F,F,B,D,U,s
time = 1
[Command]
name = "cpuC"
command = U,D,F,F,B,B,D,U,a+x
time = 1
[Command]
name = "cpuD"
command = U,D,F,B,F,B,D,U,b+y
time = 1
[Command]
name = "cpuE"
command = U,D,B,F,B,F,D,U,c+z
time = 1
[Command]
name = "cpuF"
command = U,D,s,B,F,F,B,s,D,U
time = 1
[Command]
name = "cpuG"
command = a,U,D,F,F,B,B,D,U,U,s
time = 1
[Command]
name = "cpuH"
command = b,U,D,F,B,F,B,D,U,D,s
time = 1
[Command]
name = "cpuI"
command = c,U,D,B,F,B,F,D,U,B,s
time = 1
[Command]
name = "cpuJ"
command = x,U,D,B,F,F,B,D,U,F,s
time = 1
[Command]
name = "cpuK"
command = y,U,D,F,F,B,B,D,U,a,s
time = 1
[Command]
name = "cpuL"
command = z,U,D,F,B,F,B,D,U,b,s
time = 1
[Command]
name = "cpuM"
command = s,U,D,B,F,B,F,D,U,c,s
time = 1
[Command]
name = "cpuN"
command = b,U,D,B,F,F,B,D,U,x,s
time = 1
[Command]
name = "cpuO"
command = c,U,D,F,B,F,B,D,U,y,s
time = 1
[Command]
name = "cpuP"
command = y,U,D,B,F,B,F,D,U,z,s
time = 1
[Command]
name = "cpuQ"
command = z,U,D,B,F,F,B,D,U,s,z
time = 1
[Command]
name = "cpuR"
command = U,D,F,F,B,B,D,U,a+x,s
time = 1
[Command]
name = "cpuS"
command = U,D,F,B,F,B,D,U,b+y,s
time = 1
[Command]
name = "cpuT"
command = U,D,B,F,B,F,D,U,c+z,s
time = 1
[Command]
name = "cpuU"
command = U,D,s,B,F,F,B,s,D,U,z
time = 1
[Command]
name = "cpuV"
command = a,a,a,a
time = 1
[Command]
name = "cpuW"
command = b,b,b,b
time = 1
[Command]
name = "cpuX"
command = c,c,c,c
time = 1
[Command]
name = "cpuY"
command = z,z,z,z
time = 1
[Command]
name = "cpuZ"
command = x,x,x,x
time = 1
;------------------------------------------------------------------------------
; ■準常時監視ステート（−１）■
; コマンドファイル（のステートエントリーパート）に必要な項目です。
; 絶対に消してはいけないので要注意。
;
; 通常の食らい状態以外の「P2StateNo」や「TargetState」等で制御された、
; 作成者が任意に指定した相手側の食らいステートに限り、
; 登録したステートコントローラが有効にはなりません。
;------------------------------------------------------------------------------
[Statedef -1]
;------------------------------------------------------------------------------
[State -1]
type = VarSet
triggerall = var(58) != 1
trigger1 = (command="cpu1")||(command="cpu2")||(command="cpuH")||(command="cpuV")||(command="cpuX")
trigger2 = (command="cpu3")||(command="cpu4")||(command="cpuI")||(command="cpuW")||(command="cpuY")
trigger3 = (command="cpu5")||(command="cpu6")||(command="cpuJ")||(command="cpuU")||(command="cpuZ")
trigger4 = (command="cpu7")||(command="cpu8")||(command="cpuK")||(command="cpuT")
trigger5 = (command="cpu9")||(command="cpuA")||(command="cpuL")||(command="cpuS")
trigger6 = (command="cpuB")||(command="cpuC")||(command="cpuM")||(command="cpuR")
trigger7 = (command="cpuD")||(command="cpuE")||(command="cpuN")||(command="cpuQ")
trigger8 = (command="cpuF")||(command="cpuG")||(command="cpuO")||(command="cpuP")
trigger9 = IsHomeTeam = 1
trigger9 = TeamSide = 2
v = 58
value = 1


[State -1]
type = VarSet
triggerall = var(58) = 2
trigger1 = RoundState = 2
v = 58
value = 1

[State -1]
type = VarSet
triggerall = var(58) = 1
trigger1 = RoundState != 2
v = 58
value = 2
;------------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 5000
triggerall = Var(58) = 1
triggerall = P2Life > 200
trigger1 = Random < 300
trigger1 = Ctrl
trigger1 = P2MoveType = H
trigger1 = EnemyNear,HitFall = 1
trigger1 = EnemyNear,CanRecover = 0
trigger2 = StateNo = 220
trigger2 = MoveHit
value = 4000

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 2000
triggerall = Var(58) = 1
triggerall = power < 2000 || Random <= 500
trigger1 = P2BodyDist X < 10
trigger1 = stateno = 420
trigger1 = movehit > 3
trigger2 = P2BodyDist X < 30
trigger2 = P2BodyDist Y > -100
trigger2 = ctrl
trigger2 = EnemyNear,Ctrl = 0 && P2MoveType = A
value = 2101

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 1000
triggerall = Var(58) = 1
triggerall = power < 2000 || Random > 500
trigger1 = P2BodyDist X < 10
trigger1 = stateno = 420
trigger1 = movehit > 3
trigger2 = P2BodyDist X < 30
trigger2 = P2BodyDist Y > -100
trigger2 = ctrl
trigger2 = EnemyNear,Ctrl = 0 && P2MoveType = A
value = 2100

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 3000
triggerall = Var(58) = 1
triggerall = P2stateno != [120,159]
trigger1 = stateno = 220
trigger1 = movehit = [1,5]
triggerall = Random < 100
value = 2020

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 2000
triggerall = Var(58) = 1
triggerall = P2stateno != [120,159]
trigger1 = stateno = 220
trigger1 = movehit = [1,5]
trigger1 = Random < 100
trigger1 = P2MoveType = H
trigger2 = stateno = [1000,1020]
trigger2 = AnimElem = 3,> 5
trigger2 = P2MoveType = H
trigger2 = P2Dist Y < -130 || P2Dist X > 150
trigger2 = EnemyNear,Time < 10
trigger2 = Random < 100 || EnemyNear,Time <= 3
value = 2010

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 1000
triggerall = Var(58) = 1
triggerall = P2stateno != [120,159]
trigger1 = stateno = 220
trigger1 = movehit = [1,5]
trigger1 = Random < 100
trigger2 = stateno = [1000,1020]
trigger2 = AnimElem = 3,> 5
trigger2 = P2MoveType = H
trigger2 = EnemyNear,Pos Y < -100
trigger2 = Random < 100 || EnemyNear,Time = 1

trigger3 = Ctrl
trigger3 = P2Dist X > 100
trigger3 = EnemyNear,NumHelper > 5 || EnemyNear,NumProj > 1 || EnemyNear,AnimTime > 20
trigger3 = EnemyNear,Ctrl = 0 || InguardDist
trigger3 = EnemyNear,Pos Y < -100
trigger3 = EnemyNear,Time < 10
value = 2000

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = power >= 500
triggerall = Var(58) = 1
trigger1 = P2MoveType = A
trigger1 = P2Dist Y > -100
trigger1 = ctrl
trigger1 = P2BodyDist X <= 150
trigger1 = PrevStateNo = 5120
value = 1130

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = Var(58) = 1
triggerall = P2statetype = C
triggerall = P2BodyDist X < 150
triggerall = Random = [300,400]
trigger1 = ctrl
trigger2 = stateno = [200,210]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
value = 1300

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = P2Dist Y > -70
triggerall = Var(58) = 1
triggerall = (Random = [80,140]) || ((Random <= 300 || P2MoveType = A) && PrevStateNo = 5120)
trigger1 = ctrl
trigger1 = P2BodyDist X < 80
trigger2 = stateno = 410
trigger2 = movecontact
value = 1100

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = P2Dist Y > -70
triggerall = Var(58) = 1
triggerall = Random = [140,200]
trigger1 = ctrl
trigger1 = P2BodyDist X < 80
trigger2 = stateno = 410
trigger2 = movecontact
value = 1110

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = statetype != A
triggerall = P2statetype != L
triggerall = ctrl
trigger1 = P2MoveType = A
trigger1 = P2BodyDist X = [100,150]
trigger1 = Random = [400,450]
trigger2 = P2BodyDist X <= 100
trigger2 = PrevStateNo = 5120
value = 110

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = P2StateType != L
triggerall = StateType != A && Pos Y >= 0
triggerall = P2Dist Y > -130
trigger1 = stateno = 205
trigger1 = movecontact
trigger2 = ctrl
trigger2 = P2BodyDist X > 100
trigger2 = Random > 950
value = 1000

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = Var(58) = 1
triggerall = P2Dist Y > -130
trigger1 = stateno = 210
trigger1 = movecontact
trigger1 = Random < 500
value = 1010

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = Var(58) = 1
triggerall = P2StateType != L
triggerall = P2Dist Y > -100
trigger1 = ctrl
trigger1 = P2BodyDist X > 150
trigger1 = Random > 920
value = 1020

[State -1]
type = ChangeState
value = 900
triggerall = statetype != A
triggerall = P2statetype != A
triggerall = P2statetype != L
triggerall = Var(58) = 1
triggerall = Random = [50,200]
triggerall = P2stateno != [150,155]
triggerall = P2BodyDist X < 100
trigger1 = ctrl
trigger2 = StateNo = [200,205]
trigger2 = AnimElem = 5,>= 0
trigger2 = MoveHit
trigger3 = StateNo = 400 && PrevStateNo = 400
trigger3 = MoveHit

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = P2statetype != L
triggerall = Var(58) = 1
triggerall = P2Dist Y > -250
trigger1 = ctrl
trigger1 = P2BodyDist X < 150
trigger1 = (P2MoveType=A&&EnemyNear,Time<3&&Random>=650) || Random = [850,900]
trigger2 = stateno = 200
trigger2 = movecontact
trigger2 = Random < 100
value = 220

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = P2statetype != L
triggerall = Var(58) = 1
triggerall = PrevStateNo = 830 || P2Dist Y > -100
trigger1 = ctrl
trigger1 = PrevStateNo = 830 || P2BodyDist X < 180
trigger1 = PrevStateNo = 830 || Random = [100,190]
value = 210

[State -1]
type = ChangeState
triggerall = StateType = S
triggerall = Var(58) = 1
triggerall = P2Dist Y > -100
trigger1 = ctrl
trigger1 = P2BodyDist X < 80
trigger1 = Random < 100
value = 200

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = StateType = S
triggerall = P2Dist Y > -100
trigger1 = StateNo = 200
trigger1 = AnimElem = 5,>= 0
trigger1 = MoveContact
value = 205

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = statetype != A
triggerall = P2statetype != A
triggerall = P2statetype != L
triggerall = P2Dist Y > -150
trigger1 = ctrl
trigger1 = P2BodyDist X < 40
trigger1 = Random < 200
trigger1 = P2stateno != [150,155]
value = 850

[State 45, 4]
type = VarSet
triggerall = Var(58) = 1
triggerall = statetype != A
trigger1 = ctrl
trigger1 = PrevStateNo = 860
sysvar(1) = 1

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = statetype != A
trigger1 = ctrl
trigger1 = PrevStateNo = 860
value = 40

[State -1]
type = ChangeState
triggerall = StateType = A
triggerall = Var(58) = 1
triggerall = P2Dist Y = [-100,-50]
trigger1 = stateno = 600
trigger1 = movehit
trigger2 = stateno = 1260
trigger2 = movehit
value = 1150

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = StateType = A
triggerall = Random >= 950
trigger1 = stateno = 610
trigger1 = movehit
value = 1160

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = statetype = A
trigger1 = ctrl
trigger1 = P2BodyDist X = [20,100]
trigger1 = EnemyNear,Vel X >= 0
trigger1 = Vel X > 0
trigger1 = Pos Y < -90 || Vel Y < 0
trigger1 = P2StateType != A
trigger1 = Random = [50,200]
value = 1250

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = statetype = A
trigger1 = ctrl
trigger1 = P2BodyDist X < 10
trigger1 = stateno = [600,610]
trigger1 = movehit
value = 1260

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = statetype = A
trigger1 = ctrl
trigger1 = P2BodyDist X < 70
trigger1 = Random < 50
value = 600

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = statetype = A
trigger1 = ctrl
trigger1 = P2BodyDist X < 70
trigger1 = P2Dist Y < -100
trigger1 = Random > 900 || P2MoveType = H
value = 610

[State -1]
type = ChangeState
triggerall = Var(58) = 1
triggerall = statetype = A
triggerall = p2statetype = A
triggerall = p2Dist X < 150
trigger1 = ctrl
trigger1 = Random < 150
value = 620

[State -1]
type = ChangeState
triggerall = P2StateType != L
triggerall = StateType != A && Pos Y >= 0
triggerall = Var(58) = 1
triggerall = Power >= 500
trigger1 = ctrl
trigger1 = P2StateNo != [120,159]
trigger1 = P2BodyDist X > 200
trigger1 = Random < 100
trigger1 = EnemyNear,Ctrl = 0
trigger2 = StateNo = 210
trigger2 = MoveHit
value = 1400

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = Var(58) = 1
trigger1 = stateno = 410
trigger1 = movehit
value = 420

[State -1]
type = ChangeState
value = 800
triggerall = Power >= 500
triggerall = Var(58) = 1
triggerall = statetype != A
trigger1 = ctrl
trigger1 = P2StateNo != [150,159]
trigger1 = P2BodyDist X < 80
trigger1 = P2Dist Y > -120
trigger1 = P2MoveType != A

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = Var(58) = 1
trigger1 = StateNo = 400
trigger1 = MoveContact
trigger1 = PrevStateNo = 400
trigger1 = Random < 300 || power >= 2000
value = 410

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = Var(58) = 1
trigger1 = ctrl
trigger1 = P2BodyDist X < 90
trigger1 = Random = [500,650]
trigger2 = StateNo = 400
trigger2 = MoveContact
value = 400

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = Var(58) = 1
trigger1 = Random = [650,675]
trigger1 = ctrl
trigger1 = P2BodyDist X = [10,100]
trigger1 = P2StateType = A
value = 1200

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = Var(58) = 1
trigger1 = Random = [675,700]
trigger1 = ctrl
trigger1 = P2BodyDist X = [100,130]
trigger1 = P2StateType = A
value = 1202
;------------------------------------------------------------------------------

;[State -1]
;type = ChangeState
;triggerall = Var(3) = 0
;triggerall = StateType != A && Pos Y >= 0
;triggerall = power >= 5000
;triggerall = command = "PowerUp"
;trigger1 = ctrl
;value = 3000
;------------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 5000
triggerall = command = "FireBreath_Level5"
trigger1 = ctrl
trigger2 = stateno = [200,220]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
trigger4 = stateno = [1000,1020]
trigger4 = AnimElem = 3,> 5
value = 4000

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 3000
triggerall = command = "FireBreath_Level3"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [200,220]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
trigger4 = stateno = [1000,1020]
trigger4 = AnimElem = 3,> 5
value = 2020

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 2000
triggerall = (command = "FireBreath_Level2")||(command = "FireBreath_Level3")
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [200,220]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
trigger4 = stateno = [1000,1020]
trigger4 = AnimElem = 3,> 5
value = 2010

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 1000
triggerall = (command = "FireBreath_Level1")||(command = "FireBreath_Level2")||(command = "FireBreath_Level3")
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [200,220]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
trigger4 = stateno = [1000,1020]
trigger4 = AnimElem = 3,> 5
value = 2000
;------------------------------------------------------------------------------

[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 2000
triggerall = command = "Bazso"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [200,210]
trigger2 = movecontact
trigger3 = stateno = [400,420]
trigger3 = movecontact
trigger4 = stateno = [1100,1120]
trigger4 = movecontact
value = 2100+(command = "b")+2*(command = "c")
;------------------------------------------------------------------------------

; Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

; Run Back
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = StateType != A && Pos Y >= 0
triggerall = power >= 500
triggerall = command = "Fire_2"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [200,210]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
value = 1400;1040

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "WhirlShell_2"
triggerall = power >= 500
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [200,210]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
value = 1130

[State -1]
type = ChangeState
triggerall = power >= 1000
triggerall = stateno = [150,153]
trigger1 = command = "WhirlShell_a"
trigger2 = command = "WhirlShell_b"
trigger3 = command = "WhirlShell_c"
value = 1130
;--------------------------------------------------------------------------
;[State -1]
;type = ChangeState
;triggerall = StateType != A && Pos Y >= 0
;triggerall = command = "BowserFlame"
;trigger1 = ctrl
;trigger2 = stateno = [200,210]
;trigger2 = movecontact
;trigger3 = stateno = [400,410]
;trigger3 = movecontact
;value = 1400
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "BowserBomb_a"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [400,410]
trigger2 = movecontact
value = 1200

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "BowserBomb_b"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [400,410]
trigger2 = movecontact
value = 1202

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "BowserBomb_c"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [400,410]
trigger2 = movecontact
value = 1203

[State -1]
type = ChangeState
triggerall = StateType = A
triggerall = command = "holddown"
triggerall = command = "c"
triggerall = Var(58) = 0
trigger1 = ctrl
value = 1205

[State -1]
type = ChangeState
triggerall = command = "holddown"
triggerall = command = "b"
triggerall = statetype = A
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [600,610]
trigger2 = movecontact
value = 1250

[State -1]
type = ChangeState
triggerall = command = "holddown"
triggerall = command = "a"
triggerall = statetype = A
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [600,610]
trigger2 = movecontact
value = 1260
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = command = "Fire_a"
trigger1 = ctrl
trigger2 = stateno = [200,210]
trigger2 = movecontact
trigger3 = stateno = [600,610]
trigger3 = movecontact
value = 1000

[State -1]
type = ChangeState
triggerall = command = "Fire_b"
trigger1 = ctrl
trigger2 = stateno = [200,210]
trigger2 = movecontact
trigger3 = stateno = [600,610]
trigger3 = movecontact
value = 1010

[State -1]
type = ChangeState
triggerall = command = "Fire_c"
trigger1 = ctrl
trigger2 = stateno = [200,210]
trigger2 = movecontact
trigger3 = stateno = [600,610]
trigger3 = movecontact
value = 1020

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "WhirlShell_a"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [200,205]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
value = 1100

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "WhirlShell_b"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [200,205]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
value = 1110

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "WhirlShell_c"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [200,205]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
value = 1120

[State -1]
type = ChangeState
triggerall = StateType = A
triggerall = command = "WhirlShell_a"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [600,610]
trigger2 = movecontact
trigger3 = stateno = 1260
trigger3 = movecontact
value = 1150

[State -1]
type = ChangeState
triggerall = StateType = A
triggerall = command = "WhirlShell_b"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [600,610]
trigger2 = movecontact
trigger3 = stateno = 1260
trigger3 = movecontact
value = 1160

[State -1]
type = ChangeState
triggerall = StateType = A
triggerall = command = "WhirlShell_c"
triggerall = Var(58) = 0
trigger1 = ctrl
trigger2 = stateno = [600,610]
trigger2 = movecontact
trigger3 = stateno = 1260
trigger3 = movecontact
value = 1170

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "DD_a"
trigger1 = ctrl
trigger2 = stateno = [200,210]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
value = 1300

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "DD_b"
trigger1 = ctrl
trigger2 = stateno = [200,210]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
value = 1310

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "DD_c"
trigger1 = ctrl
trigger2 = stateno = [200,210]
trigger2 = movecontact
trigger3 = stateno = [400,410]
trigger3 = movecontact
value = 1320
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 110
triggerall = command = "dodgeshell"
trigger1 = statetype != A
trigger1 = ctrl

[State -1]
type = ChangeState
value = 800
triggerall = statetype != A
triggerall = command = "koopaclaw"
trigger1 = ctrl
trigger2 = StateNo = [200,205]
trigger2 = AnimElem = 5,>= 0
trigger2 = MoveHit
trigger3 = stateno = [400,410]
trigger3 = movecontact

;[State -1]
;type = ChangeState
;value = 801
;triggerall = statetype = A
;triggerall = command = "koopaclaw"
;trigger1 = ctrl
;trigger2 = stateno = 600
;trigger2 = movecontact

[State -1]
type = ChangeState
value = 900
triggerall = statetype != A
triggerall = command = "FlyingSlam"
trigger1 = ctrl
trigger2 = StateNo = [200,205]
trigger2 = AnimElem = 5,>= 0
trigger2 = MoveHit
trigger3 = stateno = [400,410]
trigger3 = movecontact

;[State -1]
;type = ChangeState
;value = 901
;triggerall = statetype = A
;triggerall = command = "FlyingSlam"
;trigger1 = ctrl
;trigger2 = stateno = 600
;trigger2 = movecontact

[State -1]
type = ChangeState
triggerall = command = "z"
triggerall = statetype != A
trigger1 = ctrl
value = 850
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl
value = 600

[State -1]
type = ChangeState
triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl
value = 610

[State -1]
type = ChangeState
triggerall = command = "c"
triggerall = statetype = A
trigger1 = ctrl
value = 620

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "holddown"
triggerall = command = "a"
trigger1 = ctrl
trigger2 = StateNo = 400
trigger2 = MoveContact
value = 400

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "holddown"
triggerall = command = "b"
trigger1 = ctrl
trigger2 = StateNo = 400
trigger2 = MoveContact
value = 410

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "holddown"
triggerall = command = "c"
trigger1 = ctrl
trigger2 = stateno = [400,410]
trigger2 = movecontact
value = 420

[State -1]
type = ChangeState
triggerall = StateType = S
triggerall = command != "holddown"
triggerall = command != "holdfwd"
triggerall = command = "a"
trigger1 = ctrl
value = 200

[State -1]
type = ChangeState
triggerall = command = "a" 
trigger1 = StateNo = 200
trigger1 = AnimElem = 5,>= 0
value = 205

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command = "a" 
triggerall = command != "holddown"
triggerall = command = "holdfwd"
trigger1 = ctrl
value = 205

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command != "holddown"
triggerall = command = "b"
trigger1 = ctrl
value = 210

[State -1]
type = ChangeState
triggerall = StateType != A
triggerall = command != "holddown"
triggerall = command = "c"
trigger1 = ctrl
value = 220
