;   =============================================
;   =                                          CMD                                              =
;   = -----------------------------------------------------------------------------=
;   =                                                                                                 =
;   =                            Sub-Zero - by Binho-RJ                              =   
;   =                                                                                                 = 
;   = -----------------------------------------------------------------------------=
;   =                     site: http://binho.web1000.com                           =
;   =                                                                                                 =
;   =                    e-mail: mugenbinho@bol.com.br                        =
;   =                                                                                                 =
;   =============================================


;-| FATALITIES COMANDOS |-----------


[Command]
name = "friendship"    
command = ~B,F,B,F,a
time = 100

[Command]
name = "babality"    
command = ~D,D,B,b
time = 100

[Command]
name = "brutality"    
command = x,y,a,b,x,a
time = 100

[Command]
name = "animality"    
command = ~B,D,F,F,b
time = 100

[Command]
name = "Pit"    
command = ~D, D, D, y
time = 100

[Command]
name = "QuebraP2"    
command =  ~D,F,F, y
time = 100

[Command]
name = "ArrancandoCabeça"    
command = ~F, D, F, x
time = 100


;-| SUPER COMANDOS |-----------


[Command]
name = "BigTowers"    
command = ~D, DF,F,DF,F,b
time = 20

[Command]
name = "EspinhosGelados"    
command = ~D, DF,F,DF,F,a
time = 20

[Command]
name = "SuperFreezeAereo"    
command = ~D, DF,F,DF,F,x
time = 20

[Command]
name = "SuperFreezeDiagonal"    
command = ~D, DF,F,DF,F,y
time = 20

[Command]
name = "SuperFreeze"    
command = ~D, DF,F,DF,F,x
time = 20

;-| ESPECIAL COMANDOS |-----------

[Command]
name = "IcedFloor"    
command = ~D, DB ,B , b
time = 10

[Command]
name = "CloneAr"    
command = ~D, DB ,B , x
time = 10

[Command]
name = "ClonePe"    
command = ~D, DB ,B , x
time = 10

[Command]
name = "Clone"    
command =~D, DB , x
time = 10

[Command]
name = "Slide"    
command = ~D, DF, F , a
time = 10

[Command]
name = "AirFreezeD"    
command = ~D, DF, F , y
time = 10

[Command]
name = "AirFreeze"    
command = ~D, DF, F , x
time = 10

[Command]
name = "FreezeD"    
command = ~D, DF, F , y
time = 10

[Command]
name = "Freeze"    
command = ~D, DF, F , x
time = 10



;-| NORMAL COMANDOS |-----------



[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10

[Command]
name = "recovery";Required (do not remove)
command = x+y
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";Required (do not remove)
command = /$F
time = 1

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

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

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

[Statedef -1]

;=======================================================================

;----------- Finish Him ------------

[State -1]
type = Changestate
trigger1 = ctrl 
trigger1 = P2Life <= 1 
trigger1 = NumHelper(9010) = 0
trigger1 = P2StateNo != 003
trigger1 = RoundNo != 1
trigger1 = var(58) >= 1
trigger1 = statetype = S
trigger1 = (p2statetype = S) || (p2statetype = C)
value = 9000 

;=========================================================================
;-------------------------------
;            Fatalitys            :
;-------------------------------


;Friendship

[State -1,Babality]
type = Changestate
value = 8700
triggerall = P2Life = 1
triggerall = NumHelper(9010) = 1
triggerall = enemy(0), stateno = 003
triggerall = RoundNo != 1
triggerall = var(58) >= 1
trigger1 = command = "friendship"
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = P2BodyDist X >= 60
trigger1 = p2Dist X <= 300


;Babality

[State -1,Babality]
type = Changestate
value = 8600
triggerall = P2Life = 1
triggerall = NumHelper(9010) = 1
triggerall = enemy(0), stateno = 003
triggerall = RoundNo != 1
triggerall = var(58) >= 1
trigger1 = command = "babality"
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = P2BodyDist X >= 60
trigger1 = p2Dist X <= 300


;Brutality

[State -1,Animality]
type = Changestate
value = 8550
triggerall = P2Life = 1
triggerall = NumHelper(9010) = 1
triggerall = enemy(0), stateno = 003
triggerall = RoundNo != 1
triggerall = var(58) >= 1
trigger1 = command = "brutality"
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = P2BodyDist X >= 60
trigger1 = p2Dist X <= 300


;Animality

[State -1,Animality]
type = Changestate
value = 8500
triggerall = P2Life = 1
triggerall = NumHelper(9010) = 1
triggerall = enemy(0), stateno = 003
triggerall = RoundNo != 1
triggerall = var(58) >= 1
trigger1 = command = "animality"
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = P2BodyDist X >= 60
trigger1 = p2Dist X <= 300



; Pit Fatality

[State -1, Quebra P2]
type = Changestate
value = 8050
triggerall = P2Life = 1
triggerall = NumHelper(9010) = 1
triggerall = enemy(0), stateno = 003
triggerall = RoundNo != 1
triggerall = var(58) >= 1
trigger1 = command = "Pit"
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2Dist X <= 60

; Quebrando o inimigo 

[State -1, Quebra P2]
type = Changestate
value = 8010
triggerall = P2Life = 1
triggerall = NumHelper(9010) = 1
triggerall = enemy(0), stateno = 003
triggerall = RoundNo != 1
triggerall = var(58) >= 1
trigger1 = command = "QuebraP2"
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = P2BodyDist X >= 60
trigger1 = p2Dist X <= 300



;Arrancando Cabeça

[State -1, Fatality]
type = Changestate
triggerall = p2name != "sub-zero by binho"&&p2name != "B.ORCHID BY AHRIMANES"&&p2name != "Binho by Binho" &&p2name != "Sektor"
trigger1 = P2Life = 1 ;Vida do oponente deve ser igual a 1.
trigger1 = NumHelper(9010) = 1 ;Deve haver pelo menos 1 helper invisível na tela.
trigger1 = P2StateNo = 003 ; Oponente deve estar nesse state.
trigger1 = RoundNo != 1 ;Round não pode ser o primeiro.
trigger1 = var(58) >= 1 ;Você deve vencer, no mínimo, um round antes.
trigger1 = command = "ArrancandoCabeça" ;Coloque o comando para que o fatality seja executado.
trigger1 = ctrl = 1 ;A personagem deve ter o controle.
trigger1 = statetype = S ;Sua pesrsonagem deve estar em pé.
trigger1 = (p2statetype = S) || (p2statetype = C) ;P2 não pode estar voando.
trigger1 = p2Dist X <= 60
value = 8000


;Arrancando Cabeça Interação

[State -1, Fatality]
type = Changestate
triggerall = p2name = "sub-zero by binho"||p2name = "B.ORCHID BY AHRIMANES"||p2name = "Binho by Binho"||p2name = "Sektor"
trigger1 = P2Life = 1 ;Vida do oponente deve ser igual a 1.
trigger1 = NumHelper(9010) = 1 ;Deve haver pelo menos 1 helper invisível na tela.
trigger1 = P2StateNo = 003 ; Oponente deve estar nesse state.
trigger1 = RoundNo != 1 ;Round não pode ser o primeiro.
trigger1 = var(58) >= 1 ;Você deve vencer, no mínimo, um round antes.
trigger1 = command = "ArrancandoCabeça" ;Coloque o comando para que o fatality seja executado.
trigger1 = ctrl = 1 ;A personagem deve ter o controle.
trigger1 = statetype = S ;Sua pesrsonagem deve estar em pé.
trigger1 = (p2statetype = S) || (p2statetype = C) ;P2 não pode estar voando.
trigger1 = p2Dist X <= 60
value = 8005

;-------------------------------
;      Golpes Supers       :
;-------------------------------


[State -1,Big Towers]
type = ChangeState
value = 3500
triggerall = command = "BigTowers"
triggerall = power >= 2000
triggerall = statetype != A
trigger1 =  numhelper = 0
trigger1 = ctrl
trigger2 = stateno =[ 200,440]


[State -1, Espinhos Gelados]
type = ChangeState
value = 3030
triggerall = command = "EspinhosGelados"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 =  numhelper = 0
trigger1 = ctrl
trigger2 = stateno =[ 200,440]


[State -1, Super Freeze]
type = ChangeState
value = 3020
triggerall = command = "SuperFreezeDiagonal"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 =  numhelper = 0
trigger1 = ctrl
trigger2 = stateno =[ 200,440]


[State -1, Super Freeze Aereo]
type = ChangeState
value = 3010
triggerall = command = "SuperFreezeAereo"
triggerall = power >= 1000
triggerall = statetype = A
triggerall = Statetype != S
trigger1 =  numhelper = 0
trigger1 = ctrl
trigger2 = stateno =[ 600,640]


[State -1, Super Freeze]
type = ChangeState
value = 3000
triggerall = command = "SuperFreeze"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 =  numhelper = 0
trigger1 = ctrl
trigger2 = stateno =[ 200,440]


;-------------------------------
;     Golpes especiais     :
;-------------------------------

[State -1,ICED FLOOR]
type = ChangeState
value = 2600
triggerall = command = "IcedFloor"
trigger1 =  numhelper = 0
trigger1 = statetype = S
trigger2 =(stateno = [200,440]) && (stateno !=[600,640]) 
trigger1 = ctrl


[State -1,CLONE GELADO NO AR]
type = ChangeState
value = 2510
triggerall = command = "CloneAr"
trigger1 =  numhelper = 0
trigger1 = statetype != S
trigger1 = statetype != C
trigger2 =(stateno = [600,640]) && (stateno !=[200,440]) 
trigger1 = ctrl
trigger2 = movecontact


[State -1,CLONE GELADO EM PÉ]
type = ChangeState
value = 2505
triggerall = command = "ClonePe"
trigger1 =  numhelper = 0
trigger1 = statetype != C
trigger1 = statetype != A
trigger2 =(stateno = [200,240]) && (stateno !=[400,640]) 
trigger1 = ctrl
trigger2 = movecontact


[State -1,CLONE GELADO AGACHADO]
type = ChangeState
value = 2500
triggerall = command = "Clone"
trigger1 =  numhelper = 0
trigger1 = statetype != S
trigger1 = statetype != A
trigger2 =(stateno = [400,440]) && (stateno !=[200,240]) 
trigger1 = ctrl
trigger2 = movecontact

[State -1, SLIDE]
type = ChangeState
value = 2000
triggerall = command = "Slide"
trigger1 = statetype = S
trigger1 = statetype != A
trigger2 =(stateno = [200,440]) && (stateno !=[600,640]) 
trigger1 = ctrl
trigger2 = movecontact

[State -1, AIR FREEZE D]
type = ChangeState
value = 1020
triggerall = command = "AirFreezeD"
trigger1 = NumHelper  = 0
trigger1 = statetype = A
trigger1 = statetype != S
trigger1 = ctrl
trigger2 =(stateno = [600,640]) && (stateno !=[200,440]) 
trigger2 = movecontact

[State -1, AIR FREEZE]
type = ChangeState
value = 1010
triggerall = command = "AirFreeze"
trigger1 = NumHelper  = 0
trigger1 = statetype = A
trigger1 = statetype != S
trigger1 = ctrl
trigger2 =(stateno = [600,640]) && (stateno !=[200,440]) 
trigger2 = movecontact

[State -1, FREEZE D]
type = ChangeState
value = 1005
triggerall = command = "FreezeD"
trigger1 = NumHelper = 0
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
trigger2 =  (stateno = [200,440]) && (stateno !=[600,640]) 
trigger2 = movecontact

[State -1, FREEZE]
type = ChangeState
value = 1000
triggerall = command = "Freeze"
trigger1 = NumHelper  = 0
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl
trigger2 =  (stateno = [200,440]) && (stateno !=[600,640]) 
trigger2 = movecontact


;-------------------------------
;     Golpes Normais      :
;-------------------------------

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

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

;Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall= anim != 6504
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl

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

[State -1,Sub-Zero Throw]
type = ChangeState
value = 800
triggerall = command = "y"
triggerall = statetype = S 
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C) 
trigger2 = p2movetype != H

;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall= anim != 6504
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6

;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall= anim != 6504
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6

;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall= anim != 6504
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 230) && time > 9

;Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall= anim != 6504
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6


;Crouching Light Punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall= anim != 6504
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;Crouching Strong Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall= anim != 6504
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = [200, 240]) || (stateno = [400,440])
trigger2 =  stateno != 410
trigger2 = (time > 9) || (movecontact && time > 5)

;Crouching Light Kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall= anim != 6504
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;Crouching Strong Kick
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall= anim != 6504
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = [200, 240]) || (stateno = [400,440])
trigger2 =  stateno != 440
trigger2 = (time > 9) || (movecontact && time > 5)

;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall= anim != 6504
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = statetime >= 7

;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall= anim != 6504
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact

;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall= anim != 6504
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall= anim != 6504
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
