;=======================Orochi Sama Creado por Zelgadis========================;
;============================Play KOF MENORIAL=================================;
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;-| Defauts|-------------------------------------------------------
[Defaults]
command.time = 15
command.buffer.time = 1

;-------------------------------------------------------------------------------
;-| Movimientos MAX |-----------------------------------------------------------

[command]
name = "Doble Soul Extraction"
command = ~D, DF, F, D, DF, F, a+b
time = 20

[command]
name = "Doble Mu Ni Kaerou"
command = ~D, DF, F, D, DF, F, x+y
time = 20
;-------------------------------------------------------------------------------
;-| Movimientos especiales |--------------------------------------------------------

[command]
name = "Soul Extraction"
command = ~D, DF, F, D, DF, F, b
time = 20

[command]
name = "Soul Extraction"
command = ~D, DF, F, D, DF, F, a
time = 20

[command]
name = "Mu Ni Kaerou"
command = ~D, DF, F, D, DF, F, y
time = 20

[command]
name = "Mu Ni Kaerou"
command = ~D, DF, F, D, DF, F, x
time = 20
;-------------------------------------------------------------------------------
;-| Movimientos Vasicos |----------------------------------------------------

[command]
name = "Reflection 2"
command = ~DB, D, DF, F, b

[command]
name = "Reflection 1"
command = ~DB, D, DF, F, a

[command]
name = "Ketobashi Katto 2"
command = ~F, D, F, b

[command]
name = "Ketobashi Katto 1"
command = ~F, D, F, a

[command]
name = "Lightning 4"
command = ~F, D, DB, B, b

[command]
name = "Lightning 3"
command = ~F, D, DB, B, y

[command]
name = "Lightning 2"
command = ~F, D, DB, B, a

[command]
name = "Lightning 1"
command = ~F, D, DB, B, x

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

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

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

[command]
name = "Poder 2"
command = ~D, DF, F, y

[command]
name = "Poder 1"
command = ~D, DF, F, x
;------------------------------------------------------------------------------
[Command]
name = "jump"
command = D, $U
time = 12
;------------------------------------------------------------------------------
;-| キー２回連続入力 |---------------------------------------------------------
[Command]
name = "FF"     ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = F, F
time = 10

[Command]
name = "BB"     ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = B, B
time = 10

;------------------------------------------------------------------------------
;-| 同時押し |-----------------------------------------------------------------
[Command]
name = "recovery"   ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = x+a
time = 1

[Command]
name = "recovery"   ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = z
time = 1

[Command]
name = "ふっとばし"
command = y+b
time = 1

[Command]
name = "ふっとばし"
command = c
time = 1

[Command]
name = "x+y"
command = x+y
time = 1

[Command]
name = "a+b"
command = a+b
time = 1

;------------------------------------------------------------------------------
;-| 方向キー＋ボタン |---------------------------------------------------------

[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
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 = "holdxy"
command = /$x+y
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 = "holda"
command = /$a
time = 1

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

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

;------------------------------------------------------------------------------
;==============================================================================

[Statedef -1]

;Doble Soul Extraction
[State -1, Doble Soul Extraction]
type = ChangeState
value = 2300
triggerall = command = "Doble Soul Extraction"
triggerall = Power >= 2000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Soul Extraction
[State -1, Soul Extraction]
type = ChangeState
value = 2200
triggerall = command = "Soul Extraction"
triggerall = Power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Doble Mu Ni Kaerou
[State -1, Doble Mu Ni Kaerou]
type = ChangeState
value = 2100
triggerall = command = "Doble Mu Ni Kaerou"
triggerall = Power >= 2000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Mu Ni Kaerou
[State -1, Mu Ni Kaerou]
type = ChangeState
value = 2000
triggerall = command = "Mu Ni Kaerou"
triggerall = Power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Reflection 2
[State -1, Reflection 2]
type = ChangeState
value = 1045
triggerall = command = "Reflection 2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Reflection 1
[State -1, Reflection 1]
type = ChangeState
value = 1040
triggerall = command = "Reflection 1"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Ketobashi Katto 2
[State -1, Ketobashi Katto 2]
type = ChangeState
value = 1035
triggerall = command = "Ketobashi Katto 2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Ketobashi Katto 1
[State -1, Ketobashi Katto 1]
type = ChangeState
value = 1030
triggerall = command = "Ketobashi Katto 1"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Lightning 4
[State -1, Lightning 4]
type = ChangeState
value = 1023
triggerall = command = "Lightning 4"
triggerall = numprojID(1000) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Lightning 3
[State -1, Lightning 3]
type = ChangeState
value = 1022
triggerall = command = "Lightning 3"
triggerall = numprojID(1000) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Lightning 2
[State -1, Lightning 2]
type = ChangeState
value = 1021
triggerall = command = "Lightning 2"
triggerall = numprojID(1000) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Lightning 1
[State -1, Lightning 1]
type = ChangeState
value = 1020
triggerall = command = "Lightning 1"
triggerall = numprojID(1000) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 240 && movecontact
trigger7 = stateno = 245 && movecontact
trigger8 = stateno = 300 && movecontact
trigger9 = stateno = 400 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 440
triggerall = var(50) = 0

;Sonic Release
[State ]
type = ChangeState
value = 14440
triggerall = command = "SonicRelease"
trigger1 = statetype = S
trigger1 = ctrl

;Sonic Boom
[State ]
type = ChangeState
value = 14430
triggerall = command = "SonicBoom"
trigger1 = statetype = S
trigger1 = ctrl

;Orcinus Leap
[State ]
type = ChangeState
value = 14420
triggerall = command = "OrcinusLeap"
trigger1 = statetype = S
trigger1 = ctrl

;Piercing Sounds
[State ]
type = ChangeState
value = 14410
triggerall = command = "Poder 2"
trigger1 = statetype = S
trigger1 = ctrl

;Sonic Beam
[State ]
type = ChangeState
value = 14400
triggerall = command = "Poder 1"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, T S]
type = ChangeState
value = 710
triggerall = command = "recovery" && command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = power >= 1000
trigger2 = stateno = [150,151]
triggerall = var(50) = 0
;---------------------------------------------------------------------------
[State -1, T S]
type = ChangeState
value = 700
triggerall = command = "recovery"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = power >= 1000
trigger2 = stateno = [150,151]
trigger3 = stateno = 100
triggerall = var(50) = 0
;------------------------------------------------------------------------------
;ふっとばし
[State -1, Throw]
type = ChangeState
value = 300
triggerall = command = "ふっとばし"
triggerall = statetype = S
triggerall = stateno != 100
trigger1 = ctrl
trigger2 = power >= 1000
trigger2 = stateno = [150,151]
triggerall = var(50) = 0
;------------------------------------------------------------------------------
;空中ふっとばし
[State -1, CD]
type = ChangeState
value = 650
triggerall = command = "ふっとばし"
triggerall = statetype = A
trigger1 = ctrl
triggerall = var(50) = 0
;------------------------------------------------------------------------------
;P投げ
[State -1, Throw]
type = ChangeState
value = 800
triggerall = command = "y"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = statetype = S
triggerall = stateno != 100
trigger1 = p2bodydist X < 15
trigger1 = p2statetype != A && p2movetype != H
trigger1 = ctrl
triggerall = var(50) = 0
;------------------------------------------------------------------------------
;K投げ
[State -1, Throw]
type = ChangeState
value = 800
triggerall = command = "b"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = statetype = S
triggerall = stateno != 100
trigger1 = p2bodydist X < 15
trigger1 = p2statetype != A && p2movetype != H
trigger1 = ctrl
triggerall = var(50) = 0
;------------------------------------------------------------------------------
; Power charge
[State -1]
type = ChangeState
value = 910
triggerall = statetype = S
triggerall = Power < 3000
triggerall = ctrl = 1
trigger1 = command = "holda"
trigger1 = command = "holdy"
triggerall = var(50) = 0
;------------------------------------------------------------------------------
;ダッシュ
[State -1, Dash]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
triggerall = var(50) = 0

;バックステップ
[State -1, Back Step]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl
triggerall = var(50) = 0
;==============================================================================


;遠距離立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
triggerall = var(50) = 0

;近距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 215
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = p2bodydist X < 40
trigger1 = ctrl
triggerall = var(50) = 0

;遠距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
triggerall = var(50) = 0

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

;遠距離立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
triggerall = var(50) = 0

;近距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 245
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = p2bodydist X < 40
trigger1 = ctrl
triggerall = var(50) = 0

;遠距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
triggerall = var(50) = 0
;------------------------------------------------------------------------------
;挑発
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
triggerall = var(20) = 0
trigger1 = statetype != A
trigger1 = ctrl
triggerall = var(50) = 0
;------------------------------------------------------------------------------
;しゃがみ弱パンチ
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 430 && time >= 4 && movecontact
triggerall = var(50) = 0

;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
triggerall = var(50) = 0
;------------------------------------------------------------------------------
;しゃがみ弱キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
triggerall = var(50) = 0

;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
triggerall = var(50) = 0
;------------------------------------------------------------------------------
;ジャンプ弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = stateno != 105
trigger1 = statetype = A
trigger1 = ctrl
triggerall = var(50) = 0

;ジャンプ強パンチ
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = stateno != 105
trigger1 = statetype = A
trigger1 = ctrl
triggerall = var(50) = 0
;------------------------------------------------------------------------------
;垂直ジャンプ弱キック
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
triggerall = stateno != 105
trigger1 = statetype = A
trigger1 = ctrl
triggerall = var(50) = 0

;垂直ジャンプ強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "b"
triggerall = stateno != 105
trigger1 = statetype = A
trigger1 = ctrl
triggerall = var(50) = 0
