;-----------------------------------------------
; MK3 - Sub-Zero por Jehovanss y RatonMalo v1.0
;-----------------------------------------------

[Command]
name = "F1_Busted"							;FATALITY 1-BUSTED
command = c, c, z, c, z
time = 40

[Command]
name = "F2_Frozen"							;FATALITY 2-FROZEN
command = ~B, B, D, B, c
time = 40


;-| ULTRALITY ?!	(Ultra Animality) |-------------------------------------------

[Command]
name = "Animality"							;ANIMALITY
command = ~F, U, U	;F, D, D
time = 20

[Command]
name = "Babality"								;BABALITY
command = ~D, B, B, y
time = 25

[Command]
name = "Friendship"							;FRIENDSHIP
command = b, c, c, U
time = 25

;---------------------
; BRUTALITY
[Command] ;(HP)Brutality-Hit1
name = "Btty_H1"
command = x
time = 15

[Command] ;(HP)Brutality-Hit2
name = "Btty_H2"
command = b
time = 15

[Command] ;(HP)Brutality-Hit3
name = "Btty_H3"
command = y
time = 15

[Command] ;(HP)Brutality-Hit4
name = "Btty_H4"
command = a
time = 15

[Command] ;(HP)Brutality-Hit5
name = "Btty_H5"
command = x
time = 15

[Command] ;(HP)Brutality-Hit6
name = "Btty_H6"
command = y
time = 15

[Command] ;(HP)Brutality-Hit7
name = "Btty_H7"
command = y
time = 15

[Command] ;(HP)Brutality-Hit8
name = "Btty_H8"
command = x
time = 15

[Command] ;(HP)Brutality-Hit9
name = "Btty_H9"
command = x
time = 15

[Command] ;(HP)Brutality-Hit10
name = "Btty_H10"
command = a
time = 15

;---------------------
[Command]
name = "DizzyFatality"							;FINISH HIM 
command = ~D, F, s
time = 15

;-| Super Motions |--------------------------------------------------------
;
[Command]
name = "IceShowerC"						;POWER ICE SHOWER CENTER
command = ~D, DB, B, F, x
time = 10

[Command]
name = "IceShowerF"						;POWER ICE SHOWER FRONT
command = ~D, F, x
time = 20

[Command]
name = "IceShowerB"						;POWER ICE SHOWER BACK
command = ~D, F, B, x
time = 25

[Command]
name = "Dslz"							;POWER Desliz
command = a+b
time = 10

[Command]
name = "IceClone"							;POWER ICE CLONE
command = ~D, DB, B, a
time = 10

[Command]
name = "QCF_x"							;POWER ICE
command = ~D, DF, F, a
time = 10

[Command] ;LP 0
name = "Lpx"
command = a
time = 5

[Command];LP1 ;Tap X1 rapidly
name = "5x1"
command = a
time = 5

[Command];LP2 ;Tap X2 rapidly
name = "5x2"
command = a
time = 5

[Command] ;HP 0
name = "Hpy"
command = x
time = 5

[Command];HP1 ;Tap Y1 rapidly
name = "5y1"
command = x
time = 5

[Command];HP2 ;Tap Y2 rapidly
name = "5y2"
command = x
time = 5

[Command]
name = "Sweep"
command = /$B, b
time = 1

[Command]
name = "B_HK"
command = /$B, y
time = 1

;---------------------
[Command] ;Kombo-3Hit1
name = "Kombo3_H1"
command = b
time = 5

[Command] ;Kombo-3Hit2
name = "Kombo3_H2"
command = y
time = 15

[Command] ;Kombo-3Hit3
name = "Kombo3_H3"
command = y
time = 25

[Command] ;Kombo-3Hit1-2
name = "Kombo3_H1-2"
command = y
time = 5
;---------------------
[Command] ;Kombo-6Hit1
name = "Kombo6_H1"
command = x
time = 5

[Command] ;Kombo-6Hit2
name = "Kombo6_H2"
command = x
time = 5

[Command] ;Kombo-6Hit3
name = "Kombo6_H3"
command = a
time = 5

[Command] ;Kombo-6Hit4
name = "Kombo6_H4"
command = b
time = 5

[Command] ;Kombo-6Hit5
name = "Kombo6_H5"
command = y
time = 5

[Command] ;Kombo-6Hit6
name = "Kombo6_H6"
command = y
time = 5
;---------------------

;-| Special Motions |------------------------------------------------------

[command]
name = "AI01"
command = D, D, D, D, D, D, D, D
time = 1

[command]
name = "AI02"
command = D, D, D, D, D, D, D, D
time = 1

[command]
name = "AI03"
command = D, D, D, D, D, D, D, D
time = 1

[command]
name = "AI04"
command = F, F, F, F, F, F, F, F
time = 1

[command]
name = "AI05"
command = F, F, F, F, F, F, F, F
time = 1

[command]
name = "AI06"
command = F, F, F, F, F, F, F, F
time = 1

[command]
name = "AI07"
command = U, U, U, U, U, U, U, U
time = 1

[command]
name = "AI08"
command = U, U, U, U, U, U, U, U
time = 1

[command]
name = "AI09"
command = U, U, U, U, U, U, U, U
time = 1

[command]
name = "AI10"
command = B, B, B, B, B, B, B, B
time = 1

[command]
name = "AI11"
command = B, B, B, B, B, B, B, B
time = 1

[command]
name = "AI12"
command = B, B, B, B, B, B, B, B
time = 1

[command]
name = "AI13"
command = x, x, x, x, x, x, x, x
time = 1

[command]
name = "AI14"
command = x, x, x, x, x, x, x, x
time = 1

[command]
name = "AI15"
command = x, x, x, x, x, x, x, x
time = 1

[command]
name = "AI16"
command = y, y, y, y, y, y, y, y
time = 1

[command]
name = "AI17"
command = y, y, y, y, y, y, y, y
time = 1

[command]
name = "AI18"
command = y, y, y, y, y, y, y, y
time = 1

[command]
name = "AI19"
command = z, z, z, z, z, z, z, z
time = 1

[command]
name = "AI20"
command = z, z, z, z, z, z, z, z
time = 1

[command]
name = "AI21"
command = z, z, z, z, z, z, z, z
time = 1

[command]
name = "AI22"
command = s, s, s, s, s, s, s, s
time = 1

[command]
name = "AI23"
command = s, s, s, s, s, s, s, s
time = 1

[command]
name = "AI24"
command = s, s, s, s, s, s, s, s
time = 1

[command]
name = "AI25"
command = a, a, a, a, a, a, a, a
time = 1

[command]
name = "AI26"
command = a, a, a, a, a, a, a, a
time = 1

[command]
name = "AI27"
command = a, a, a, a, a, a, a, a
time = 1

[command]
name = "AI28"
command = b, b, b, b, b, b, b, b
time = 1

[command]
name = "AI29"
command = b, b, b, b, b, b, b, b
time = 1

[command]
name = "AI30"
command = b, b, b, b, b, b, b, b
time = 1

[command]
name = "AI31"
command = c, c, c, c, c, c, c, c
time = 1

[command]
name = "AI32"
command = c, c, c, c, c, c, c, c
time = 1

[command]
name = "AI33"
command = c, c, c, c, c, c, c, c
time = 1


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

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

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
command = x+y
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
time = 1

;-| Single Button |---------------------------------------------------------
[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 = "Blk"
command = /z
time = 1

;cambiar
[Command]
name = "Run"
command = /c, F
time = 5

[Command]
name = "Run2"
command = c
time = 5


[Command]
name = "start"
command = s
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

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

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

[Command]
name = "holdbackAI";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

;---------------------------------------------------------------------------
; 2. State entry
[Statedef -1]
;===========================================================================
;===========================================================================
;===========================================================================
;===========================================================================
;===========================================================================
;===========================================================================

;---------------------------------------------------------------------------
;===========================================================================
;---------------------------------------------------------------------------
;  A.I.  -	ULTRA FATALITIES !!!!!
;---------------------------------------------------------------------------
;Finish Him [A.I.]	Fatality Style Mortal Kombat
[State -1, AI_FinishHim]
type = Changestate
value = 3333
triggerall = Var(10) = 33
triggerall = NumHelper(3333) = 0
triggerall = statetype != A
triggerall = P2StateType = S
triggerall = P2StateType != L
triggerall = P2StateType != A
triggerall = P2stateno != 5300;FinishHim
triggerall = Power >= 3000
triggerall = Alive = 1
triggerall = P2Life = [1,300]
triggerall = P2BodyDist X = [10,200]
triggerall = ctrl = 1
trigger1 = ctrl && statetype != A
trigger2 = movecontact && (stateno = 220 || stateno = 250 || stateno = 260 || stateno = 240 || stateno = 320)
trigger3 = movecontact && (stateno = 400 || stateno = 410 || stateno = 420 || stateno = 430)
trigger4 = movecontact && (stateno = 280 || stateno = 281 || stateno = 290 || stateno = 300 || stateno = 310)
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;RUN FWD FATALITYS  [AI] !!!
[State -1, AI_Run_33F]
type = changestate
value = 25
triggerall = Var(10) = 33
triggerall = statetype != A
triggerall = P2StateType = S
triggerall = P2StateType != L
triggerall = P2StateType != A
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 2000	;Ice
triggerall = stateno != 1000	;Dlz
triggerall = stateno != 2500	;Ice
triggerall = stateno != 2550	;Shower C
triggerall = stateno != 2560	;Shower F
triggerall = stateno != 2570	;Shower B
triggerall = stateno != 1009	;P1Ice
triggerall = stateno != 810	;Throw
triggerall = stateno != 26	;RunAI
triggerall = (P2stateno = 5300 && Time > 1)
triggerall = Power >= 3000
triggerall = Alive = 1
triggerall = P2Life = [1,300]
triggerall = P2BodyDist X = [100,200]
triggerall = ctrl = 1
trigger1 = command = "holdfwdAI"
trigger2 = P2stateno != 2005
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;RUN BCK FATALITYS  [AI] !!!
[State -1, AI_Run_33B]
type = changestate
value = 26
triggerall = Var(10) = 33
triggerall = statetype != A
triggerall = P2StateType = S
triggerall = P2StateType != L
triggerall = P2StateType != A
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 2000	;Ice
triggerall = stateno != 1000	;Dlz
triggerall = stateno != 2500	;Ice
triggerall = stateno != 2550	;Shower C
triggerall = stateno != 2560	;Shower F
triggerall = stateno != 2570	;Shower B
triggerall = stateno != 1009	;P1Ice
triggerall = stateno != 810	;Throw
triggerall = (P2stateno = 5300 && Time > 1)
triggerall = Power >= 3000
triggerall = Alive = 1
triggerall = P2Life = [1,300]
triggerall = P2BodyDist X <= 99
triggerall = ctrl = 1
trigger1 = command = "holdbackAI"
trigger2 = P2stateno != 2005
;---------------------------------------------------------------------------
				;F A T A L I T Y :)
;---------------------------------------------------------------------------
;FATALITY 1 [AI] !!! Busted
[State -1, AI_Fatality_1]
type = changestate
value = 3000
triggerall = Var(10) = 33
triggerall = statetype != A
triggerall = P2StateType != L
triggerall = P2StateType != A
triggerall = ctrl = 1
triggerall = Power >= 3000
triggerall = Alive = 1
triggerall = P2Life = [1,300]
triggerall = P2BodyDist X = [20,35]
triggerall = P2stateno = 5300		;FinishHim
trigger1 = ctrl && statetype != A
trigger2 = movecontact && (stateno = 220 || stateno = 250 || stateno = 260 || stateno = 240 || stateno = 320)
trigger3 = movecontact && (stateno = 400 || stateno = 410 || stateno = 420 || stateno = 430)
trigger4 = movecontact && (stateno = 280 || stateno = 281 || stateno = 290 || stateno = 300 || stateno = 310)
trigger5 = P2stateno != 2005
trigger6 = P2BodyDist X = 40
trigger7 = P2BodyDist X = 30
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;FATALITY 2 [AI] !!! Frozen
[State -1, AI_Fatality_2]
type = changestate
value = 3005
triggerall = Var(10) = 33
triggerall = statetype != A
triggerall = P2StateType = S
triggerall = P2StateType != L
triggerall = P2StateType != A
triggerall = (P2stateno = 5300 && Time > 50)	;FinishHim
triggerall = ctrl = 1
triggerall = Power >= 3000
triggerall = Alive = 1
triggerall = P2Life = [1,300]
triggerall = P2BodyDist X = [140,150]
trigger1 = ctrl && statetype != A
trigger2 = movecontact && (stateno = 220 || stateno = 250 || stateno = 260 || stateno = 240 || stateno = 320)
trigger3 = movecontact && (stateno = 400 || stateno = 410 || stateno = 420 || stateno = 430)
trigger4 = movecontact && (stateno = 280 || stateno = 281 || stateno = 290 || stateno = 300 || stateno = 310)
trigger5 = P2stateno != 2005
trigger6 = P2stateno != 2005
trigger7 = P2BodyDist X = 145
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;	ANIMALITY [AI] !!!
[State -1, AI_Animality]
type = changestate
value = 3050
triggerall = Var(10) = 33
triggerall = statetype != A
triggerall = P2StateType = S
triggerall = P2StateType != L
triggerall = P2StateType != A
triggerall = (P2stateno = 5300 && Time > 100)	;FinishHim
triggerall = ctrl = 1
triggerall = Power >= 3000
triggerall = Alive = 1
triggerall = P2Life = [1,300]
triggerall = P2BodyDist X = [20,30]
trigger1 = ctrl && statetype != A
trigger2 = movecontact && (stateno = 220 || stateno = 250 || stateno = 260 || stateno = 240 || stateno = 320)
trigger3 = movecontact && (stateno = 400 || stateno = 410 || stateno = 420 || stateno = 430)
trigger4 = movecontact && (stateno = 280 || stateno = 281 || stateno = 290 || stateno = 300 || stateno = 310)
trigger5 = P2stateno != 2005
trigger6 = P2stateno != 2005
trigger7 = P2BodyDist X = 30
;---------------------------------------------------------------------------
;BABALITY  [AI] !!!
[State -1, AI_Babality]
type = changestate
value = 3055
triggerall = Var(10) = 33
triggerall = statetype != A
triggerall = P2StateType = S
triggerall = P2StateType != L
triggerall = P2StateType != A
triggerall = (P2stateno = 5300 && Time > 100)	;FinishHim
triggerall = ctrl = 1
triggerall = Power >= 3000
triggerall = Alive = 1
triggerall = P2Life = [1,300]
triggerall = P2BodyDist X = [150,200]
trigger1 = ctrl && statetype != A
trigger2 = movecontact && (stateno = 220 || stateno = 250 || stateno = 260 || stateno = 240 || stateno = 320)
trigger3 = movecontact && (stateno = 400 || stateno = 410 || stateno = 420 || stateno = 430)
trigger4 = movecontact && (stateno = 280 || stateno = 281 || stateno = 290 || stateno = 300 || stateno = 310)
trigger5 = P2stateno != 2005
trigger6 = P2stateno != 2005
;---------------------------------------------------------------------------
;FRIENDSHIP  [AI] !!!
[State -1, AI_Friendship]
type = changestate
value = 3060
triggerall = Var(10) = 33
triggerall = statetype != A
triggerall = P2StateType = S
triggerall = P2StateType != L
triggerall = P2StateType != A
triggerall = (P2stateno = 5300 && Time > 100)	;FinishHim
triggerall = ctrl = 1
triggerall = Power >= 3000
triggerall = Alive = 1
triggerall = P2Life = [1,300]
triggerall = P2BodyDist X = [150,200]
trigger1 = ctrl && statetype != A
trigger2 = movecontact && (stateno = 220 || stateno = 250 || stateno = 260 || stateno = 240 || stateno = 320)
trigger3 = movecontact && (stateno = 400 || stateno = 410 || stateno = 420 || stateno = 430)
trigger4 = movecontact && (stateno = 280 || stateno = 281 || stateno = 290 || stateno = 300 || stateno = 310)
trigger5 = P2stateno != 2005
trigger6 = P2stateno != 2005
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[State -1, AI_DefSta]	;Defensa Sta [AI] !!!
type = ChangeState
value = 130
triggerall = Var(10) = 33
triggerall = P2MoveType = A || (enemy,NumProj>=1)
triggerall = P2BodyDist X <= 20 || (enemy,NumProj >=1)
triggerall = StateType != A
triggerall = Random = [200, 399]
triggerall = ctrl = 1
triggerall = Stateno != 120
triggerall = p2stateno != 2005
triggerall = p2stateno != 5300
trigger1 = P2StateType = S
trigger1 = statetype = S
trigger2 = (enemy,NumProj >=1)
[State -1, AI_DefCro]	;Defensa Cro [AI] !!!
type = ChangeState
value = 131
triggerall = Var(10) = 33
triggerall = P2MoveType = A || (enemy,NumProj>=1)
triggerall = P2BodyDist X <= 40 || (enemy,NumProj >=1)
triggerall = StateType != A
triggerall = random = [400, 599]
triggerall = ctrl = 1
triggerall = p2stateno != 2005
triggerall = p2stateno != 5300
triggerall = Stateno != 121
trigger1 = P2statetype != S
trigger1 = statetype = C
trigger2 = (enemy,NumProj >=1)
[State -1, AI_DefAir]	;Defensa Air [AI] !!!
type = ChangeState
value = 132
triggerall = Var(10) = 33
triggerall = P2MoveType = A || (enemy,NumProj>=1)
triggerall = P2BodyDist X <= 40 || (enemy,NumProj >=1)
triggerall = P2BodyDist Y > 0
triggerall = StateType = A
triggerall = random = [600, 799]
triggerall = ctrl = 1
triggerall = p2stateno != 2005
triggerall = p2stateno != 5300
triggerall = Stateno != 122
trigger1 = P2StateType = A
trigger1 = P2movetype = A
trigger1 = statetype = A
trigger2 = (enemy,NumProj >=1)

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

;---------------------------------------------------------------------------
; Throw LP MK [AI] !!!
;[State -1, AI ThrowLP]
;type = ChangeState
;value = 800
;triggerall = Var(10) = 33
;triggerall = Random <= 599
;triggerall = stateno != 3003	;Fatality1
;triggerall = stateno != 3005	;Fatality2
;triggerall = stateno != 3050	;Animality
;triggerall = stateno != 3055	;Babality
;triggerall = stateno != 3060	;Friendship
;triggerall = stateno != 2000	;Ice
;triggerall = stateno != 1000	;Dlz
;triggerall = stateno != 2500	;Ice
;triggerall = stateno != 2550	;Shower C
;triggerall = stateno != 2560	;Shower F
;triggerall = stateno != 2570	;Shower B
;triggerall = stateno != 1009	;P1Ice
;triggerall = stateno != 810	;Throw
;triggerall = statetype = S
;triggerall = ctrl = 1
;triggerall = p2bodydist X < 10
;triggerall = P2StateType != L
;triggerall = P2StateType != A
;triggerall = P2Stateno != 5120
;triggerall = P2MoveType != A
;trigger1 = stateno != 100
;trigger1 = p2statetype = S
;trigger1 = p2movetype != H
;trigger2 = stateno != 100
;trigger2 = p2statetype = C
;trigger2 = p2movetype != H
;trigger3 = p2statetype = S
;trigger3 = p2movetype != H
;trigger4 = p2statetype = C
;trigger4 = p2movetype != H
;trigger5 = stateno != 100
;trigger5 = p2statetype = S
;trigger5 = p2movetype != H
;trigger6 = stateno != 100
;trigger6 = p2statetype = C
;trigger6 = p2movetype != H
;trigger7 = p2statetype = S
;trigger7 = p2movetype != H
;trigger8 = p2statetype = C
;trigger8 = p2movetype != H
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
; Attack HP MK [AI] !!!
[State -1, HP_Vol-001]
type = changestate
value = 410
triggerall = Var(10) = 33
triggerall = Ctrl = 1
triggerall = Alive = 1
triggerall = P2Life != [1,100]
triggerall = statetype != A
triggerall = P2StateType != L
triggerall = P2Bodydist y < 0
triggerall = P2Bodydist x < 35
triggerall = stateno != 245
triggerall = stateno != 410
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = (P2stateno = 2005 && P2Bodydist x < 35 && P2Bodydist y <= 0)
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
; Attack HK MK [AI] !!!
[State -1, HK_Vol-001]
type = changestate
value = 245
triggerall = Var(10) = 33
triggerall = Ctrl = 1
triggerall = Alive = 1
triggerall = P2Life != [1,100]
triggerall = statetype != A
triggerall = P2StateType != L
triggerall = P2Bodydist y < 0
triggerall = P2Bodydist x < 60
triggerall = P2Movetype  != H
triggerall = stateno != 245
triggerall = stateno != 410
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
; Attack HP02 MK [AI] !!!
[State -1, HP_Vol-002]
type = changestate
value = 410
triggerall = Var(10) = 33
triggerall = Ctrl = 1
triggerall = Alive = 1
triggerall = statetype != A
triggerall = P2StateType != L
triggerall = P2Bodydist y <= 0
triggerall = P2Bodydist x <= 45
triggerall = stateno != 245
triggerall = stateno != 410
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = P2stateno = 2005
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
; Attack POW DSL [AI]
[State -1, Pow_Dsl-AI]
type = changestate
value = 1000
triggerall = (roundstate != [0,1]) || (roundstate != [3,4]) 
triggerall = Var(10) = 33
triggerall = Ctrl = 1
triggerall = Alive = 1
triggerall = statetype = S
triggerall = statetype != A
triggerall = NumProjID(2000) = 0
triggerall = p2stateno != 5050
triggerall = p2stateno != 5100
triggerall = p2stateno != 5101
triggerall = p2stateno != 5110
triggerall = p2stateno != 5020
triggerall = p2stateno != 5030
triggerall = p2stateno = 2005
triggerall = p2stateno != 5300
triggerall = P2movetype != A
trigger1 = P2BodyDist X = [90,250]
trigger1 = random <= 100
;---------------------------------------------------------------------------
; Attack POW ICE [AI]
[State -1, Pow_Ice-AI]
type = changestate
value = 2000
triggerall = (roundstate != [0,1]) || (roundstate != [3,4]) 
triggerall = Var(10) = 33
triggerall = Ctrl = 1
triggerall = Alive = 1
triggerall = statetype = S
triggerall = statetype != A
triggerall = NumProjID(2000) = 0
triggerall = p2stateno != 5050
triggerall = p2stateno != 5100
triggerall = p2stateno != 5101
triggerall = p2stateno != 5110
triggerall = p2stateno != 5020
triggerall = p2stateno != 5030
triggerall = p2stateno != 2005
triggerall = p2stateno != 5300
triggerall = P2movetype != A
trigger1 = P2BodyDist X = [80,200]
trigger1 = random <= 100
;---------------------------------------------------------------------------
; Attack POW I-CLN [AI]
[State -1, Pow_ICln-AI]
type = changestate
value = 2500
triggerall = (roundstate != [0,1]) || (roundstate != [3,4]) 
triggerall = Var(10) = 33
triggerall = Ctrl = 1
triggerall = Alive = 1
triggerall = statetype = S
triggerall = statetype != A
triggerall = NumProjID(25551) = 0
triggerall = (p2stateno != 132 && Ctrl = 0)
triggerall = p2stateno != 5050
triggerall = p2stateno != 5100
triggerall = p2stateno != 5101
triggerall = p2stateno != 5110
triggerall = p2stateno != 5020
triggerall = p2stateno != 5030
triggerall = p2stateno != 2005
triggerall = p2stateno != 5300
triggerall = stateno != 2500
triggerall = P2BodyDist X = [5,100]
trigger1 = random <= 700
trigger2 = p2stateno = 100
trigger3 = p2statetype = A
trigger3 = P2movetype =  A
;---------------------------------------------------------------------------
; Attack POW IS Fwd [AI]
[State -1, Pow_ISf-AI]
type = changestate
value = 2550
triggerall = (roundstate != [0,1]) || (roundstate != [3,4]) 
triggerall = Var(10) = 33
triggerall = Ctrl = 1
triggerall = Alive = 1
triggerall = statetype = S
triggerall = statetype != A
triggerall = NumProjID(2550) = 0
triggerall = p2stateno != 5050
triggerall = p2stateno != 5100
triggerall = p2stateno != 5101
triggerall = p2stateno != 5110
triggerall = p2stateno != 5020
triggerall = p2stateno != 5030
triggerall = p2stateno != 2005
triggerall = p2stateno != 5300
triggerall = p2stateno != 2550
triggerall = P2movetype != A
trigger1 = P2BodyDist X = [205,250]
trigger1 = random <= 100
; Attack POW IS Bck [AI]
[State -1, Pow_ISb-AI]
type = changestate
value = 2570
triggerall = (roundstate != [0,1]) || (roundstate != [3,4]) 
triggerall = Var(10) = 33
triggerall = Ctrl = 1
triggerall = Alive = 1
triggerall = statetype = S
triggerall = statetype != A
triggerall = NumProjID(2570) = 0
triggerall = p2stateno != 5050
triggerall = p2stateno != 5100
triggerall = p2stateno != 5101
triggerall = p2stateno != 5110
triggerall = p2stateno != 5020
triggerall = p2stateno != 5030
triggerall = p2stateno != 2005
triggerall = p2stateno != 5300
triggerall = P2movetype != A
trigger1 = P2BodyDist X = [-60,-85]
trigger1 = random <= 100
;
;===========================================================================
;---------------------------------------------------------------------------
;
;===========================================================================
;---------------------------------------------------------------------------
;	ULTRA FATALITIES FINISH HIM !!!!!
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;     Finish Him Fatality Style Mortal Kombat 		----- Finish Him -----
[State -1, FinishHim_Fatality]
type = Changestate
value = 3333
triggerall = command = "DizzyFatality"
triggerall = P2stateno != 5300;FinishHim
triggerall = ctrl = 1
triggerall = P2Life = [1,500]
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;	FATALITY 1
[State -1, Fatality1]
type = ChangeState
value = 3000
triggerall = command = "F1_Busted"
triggerall = power >= 3000
triggerall = P2stateno = 5300	;FinishHim
triggerall = ctrl = 1
triggerall = Alive = 1
triggerall = P2Life = [1,500]
triggerall = P2BodyDist X = [15,35]
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl

;---------------------------------------------------------------------------
;	FATALITY 2
[State -1, Fatality2]
type = ChangeState
value = 3005
triggerall = command = "F2_Frozen"
triggerall = power >= 3000
triggerall = P2stateno = 5300	;FinishHim
triggerall = ctrl = 1
triggerall = Alive = 1
triggerall = P2Life = [1,500]
triggerall = P2BodyDist X = [100,150]
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl

;---------------------------------------------------------------------------
;	ANIMALITY
[State -1, Animality]
type = ChangeState
value = 3050
triggerall = command = "Animality"
triggerall = power >= 3000
triggerall = P2stateno = 5300	;FinishHim
triggerall = ctrl = 1
triggerall = Alive = 1
triggerall = P2Life = [1,500]
triggerall = P2BodyDist X = [20,50]
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl

;---------------------------------------------------------------------------
;	BABALITY
[State -1, Babality]
type = ChangeState
value = 3055
triggerall = command = "Babality"
triggerall = power >= 2000
triggerall = P2stateno = 5300	;FinishHim
triggerall = ctrl = 1
triggerall = Alive = 1
triggerall = P2Life = [1,500]
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl

;---------------------------------------------------------------------------
;	FRIENDSHIP
[State -1, Friendship]
type = ChangeState
value = 3060
triggerall = command = "Friendship"
triggerall = power >= 2000
triggerall = P2stateno = 5300	;FinishHim
triggerall = ctrl = 1
triggerall = Alive = 1
triggerall = P2Life = [1,500]
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl

;---------------------------------------------------------------------------
; BRUTALITY
[State -1, Brutality1]				;Hit-01
type = ChangeState
value = 3251
triggerall = command = "Btty_H1"
triggerall = power >= 3000
triggerall = P2stateno = 5300
triggerall = ctrl = 1
triggerall = Alive = 1
triggerall = P2Life = [1,300]
triggerall = P2BodyDist X = [0,30]
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
[State -1, Brutality2]				;Hit-02
type = ChangeState
value = 3252
triggerall = command = "Btty_H2"
triggerall = stateno = 3251	;BttyHit1
triggerall = stateno != 3252	;BttyHit2
triggerall = stateno != 3253	;BttyHit3
triggerall = stateno != 3254	;BttyHit4
triggerall = stateno != 3255	;BttyHit5
triggerall = stateno != 3256	;BttyHit6
triggerall = stateno != 3257	;BttyHit7
triggerall = stateno != 3258	;BttyHit8
triggerall = stateno != 3259	;BttyHit9
triggerall = stateno != 3260	;BttyHit10
triggerall = P2BodyDist X = [0,30]
triggerall = movecontact = 1
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
[State -1, Brutality3]				;Hit-03
type = ChangeState
value = 3253
triggerall = command = "Btty_H3"
triggerall = stateno != 3251	;BttyHit1
triggerall = stateno = 3252	;BttyHit2
triggerall = stateno != 3253	;BttyHit3
triggerall = stateno != 3254	;BttyHit4
triggerall = stateno != 3255	;BttyHit5
triggerall = stateno != 3256	;BttyHit6
triggerall = stateno != 3257	;BttyHit7
triggerall = stateno != 3258	;BttyHit8
triggerall = stateno != 3259	;BttyHit9
triggerall = stateno != 3260	;BttyHit10
triggerall = P2BodyDist X = [0,30]
triggerall = movecontact = 1
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
[State -1, Brutality4]				;Hit-04
type = ChangeState
value = 3254
triggerall = command = "Btty_H4"
triggerall = stateno != 3251	;BttyHit1
triggerall = stateno != 3252	;BttyHit2
triggerall = stateno = 3253	;BttyHit3
triggerall = stateno != 3254	;BttyHit4
triggerall = stateno != 3255	;BttyHit5
triggerall = stateno != 3256	;BttyHit6
triggerall = stateno != 3257	;BttyHit7
triggerall = stateno != 3258	;BttyHit8
triggerall = stateno != 3259	;BttyHit9
triggerall = stateno != 3260	;BttyHit10
triggerall = P2BodyDist X = [0,30]
triggerall = movecontact = 1
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
[State -1, Brutality5]				;Hit-05
type = ChangeState
value = 3255
triggerall = command = "Btty_H5"
triggerall = stateno != 3251	;BttyHit1
triggerall = stateno != 3252	;BttyHit2
triggerall = stateno != 3253	;BttyHit3
triggerall = stateno = 3254	;BttyHit4
triggerall = stateno != 3255	;BttyHit5
triggerall = stateno != 3256	;BttyHit6
triggerall = stateno != 3257	;BttyHit7
triggerall = stateno != 3258	;BttyHit8
triggerall = stateno != 3259	;BttyHit9
triggerall = stateno != 3260	;BttyHit10
triggerall = P2BodyDist X = [0,30]
triggerall = movecontact = 1
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
[State -1, Brutality6]				;Hit-06
type = ChangeState
value = 3256
triggerall = command = "Btty_H6"
triggerall = stateno != 3251	;BttyHit1
triggerall = stateno != 3252	;BttyHit2
triggerall = stateno != 3253	;BttyHit3
triggerall = stateno != 3254	;BttyHit4
triggerall = stateno = 3255	;BttyHit5
triggerall = stateno != 3256	;BttyHit6
triggerall = stateno != 3257	;BttyHit7
triggerall = stateno != 3258	;BttyHit8
triggerall = stateno != 3259	;BttyHit9
triggerall = stateno != 3260	;BttyHit10
triggerall = P2BodyDist X = [0,30]
triggerall = movecontact = 1
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
[State -1, Brutality7]				;Hit-07
type = ChangeState
value = 3257
triggerall = command = "Btty_H7"
triggerall = stateno != 3251	;BttyHit1
triggerall = stateno != 3252	;BttyHit2
triggerall = stateno != 3253	;BttyHit3
triggerall = stateno != 3254	;BttyHit4
triggerall = stateno != 3255	;BttyHit5
triggerall = stateno = 3256	;BttyHit6
triggerall = stateno != 3257	;BttyHit7
triggerall = stateno != 3258	;BttyHit8
triggerall = stateno != 3259	;BttyHit9
triggerall = stateno != 3260	;BttyHit10
triggerall = P2BodyDist X = [0,30]
triggerall = movecontact = 1
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
[State -1, Brutality8]				;Hit-08
type = ChangeState
value = 3258
triggerall = command = "Btty_H8"
triggerall = stateno != 3251	;BttyHit1
triggerall = stateno != 3252	;BttyHit2
triggerall = stateno != 3253	;BttyHit3
triggerall = stateno != 3254	;BttyHit4
triggerall = stateno != 3255	;BttyHit5
triggerall = stateno != 3256	;BttyHit6
triggerall = stateno = 3257	;BttyHit7
triggerall = stateno != 3258	;BttyHit8
triggerall = stateno != 3259	;BttyHit9
triggerall = stateno != 3260	;BttyHit10
triggerall = P2BodyDist X = [0,30]
triggerall = movecontact = 1
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
[State -1, Brutality9]				;Hit-09
type = ChangeState
value = 3259
triggerall = command = "Btty_H9"
triggerall = stateno != 3251	;BttyHit1
triggerall = stateno != 3252	;BttyHit2
triggerall = stateno != 3253	;BttyHit3
triggerall = stateno != 3254	;BttyHit4
triggerall = stateno != 3255	;BttyHit5
triggerall = stateno != 3256	;BttyHit6
triggerall = stateno != 3257	;BttyHit7
triggerall = stateno = 3258	;BttyHit8
triggerall = stateno != 3259	;BttyHit9
triggerall = stateno != 3260	;BttyHit10
triggerall = P2BodyDist X = [0,30]
triggerall = movecontact = 1
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
[State -1, Brutality10]				;Hit-10
type = ChangeState
value = 3260
triggerall = command = "Btty_H10"
triggerall = stateno != 3251	;BttyHit1
triggerall = stateno != 3252	;BttyHit2
triggerall = stateno != 3253	;BttyHit3
triggerall = stateno != 3254	;BttyHit4
triggerall = stateno != 3255	;BttyHit5
triggerall = stateno != 3256	;BttyHit6
triggerall = stateno != 3257	;BttyHit7
triggerall = stateno != 3258	;BttyHit8
triggerall = stateno = 3259	;BttyHit9
triggerall = stateno != 3260	;BttyHit10
triggerall = P2BodyDist X = [0,30]
triggerall = movecontact = 1
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;End-Brutality

;---------------------------------------------------------------------------
;===========================================================================
;---------------------------------------------------------------------------
;Sub-Zero Ice     		----- POWER ICE -----
[State -1, PowerIce]
type = Changestate
value = 2000
triggerall = command = "QCF_x"
triggerall = ctrl = 1
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl

;---------------------------------------------------------------------------
;Sub-Zero Ice Clone    		----- POWER ICE CLONE-----
[State -1, Ice Clone]
type = Changestate
value = 2500
triggerall = command = "IceClone"
triggerall = ctrl = 1
triggerall = NumProjID(25551) = 0
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger2 = statetype = A
trigger3 = statetype = C

;---------------------------------------------------------------------------
;Sub-Zero Ice     		----- POWER ICE SHOWER C -----
[State -1, PowIceShowerC]
type = Changestate
value = 2550
triggerall = command = "IceShowerC"
triggerall = ctrl = 1
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl

;---------------------------------------------------------------------------
;Sub-Zero Ice     		----- POWER ICE SHOWER F -----
[State -1, PowIceShowerF]
type = Changestate
value = 2560
triggerall = command = "IceShowerF"
triggerall = ctrl = 1
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl

;---------------------------------------------------------------------------
;Sub-Zero Ice     		----- POWER ICE SHOWER B -----
[State -1, PowIceShowerB]
type = Changestate
value = 2570
triggerall = command = "IceShowerB"
triggerall = ctrl = 1
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl

;---------------------------------------------------------------------------
;Sub-Zero Slide		----- POWER SLIDE -----
[State -1, PowerDslz]
type = Changestate
value = 1000
trigger1 = command = "Dslz"
trigger1 = command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Sweep Style MK
[State -1, Stand Sweep]	
type = ChangeState
value = 250
triggerall = command = "Sweep"
triggerall = ctrl = 1
triggerall = Movetype  != H
triggerall = StateType != L
triggerall = statetype != A
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype != A
trigger2 = statetype = S
;trigger3 = movecontact
trigger3 = ctrl

;---------------------------------------------------------------------------
;Back MK
[State -1, Stand B-HK]	
type = ChangeState
value = 245
triggerall = command = "B_HK"
triggerall = statetype != A
triggerall = Movetype  != H
triggerall = StateType != L
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = ctrl = 1
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = ctrl

;---------------------------------------------------------------------------
;3-Kombo_hit1
[State -1, 3K-1]
type = ChangeState
value = 900
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 1000	;Dslz
triggerall = stateno != 810	;Throw
triggerall = stateno != 410	;D-Hp1
triggerall = stateno != 411	;D-Hp2
triggerall = P2stateno != 5030;HitAirL1
triggerall = P2stateno != 5035;HitAirL2
triggerall = P2stateno != 5050;HitAirL3
triggerall = P2stateno != 5100;HitAirL4
triggerall = P2stateno != 5110;HitAirL5
triggerall = P2stateno != 5120;HitAirL6
triggerall = stateno != 11	;3KHit0
triggerall = stateno != 900	;3KHit1
triggerall = stateno != 901	;3KHit2
triggerall = stateno != 902	;3KHit3
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = Movetype  != H
triggerall = StateType != L
triggerall = P2StateType != L
triggerall = P2BodyDist X <= 10
triggerall = p2bodydist y >= 0
triggerall = command = "Kombo3_H1"
triggerall = stateno != 1009	;P1-SIce
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;3-Kombo_hit2
[State -1, 3K-2]
type = ChangeState
value = 901
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 1000	;Dslz
triggerall = stateno != 810	;Throw
triggerall = P2BodyDist X <= 10
triggerall = command = "Kombo3_H2"
triggerall = stateno != 901	;3KHit2
triggerall = stateno != 902	;3KHit3
triggerall = stateno = 900 ;	&& Time >= 14)
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;3-Kombo_hit3
[State -1, 3K-3]
type = ChangeState
value = 902
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 1000	;Dslz
triggerall = stateno != 810	;Throw
triggerall = P2BodyDist X <= 10
triggerall = command = "Kombo3_H3"
triggerall = command = "holdback"
triggerall = stateno != 900	;3KHit1
triggerall = stateno != 902	;3KHit3
triggerall = stateno = 901 	;&& Time >= 10)	;3KHit2
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;3-Kombo_hit1-2 HK
[State -1, 3K-1-2]
type = ChangeState
value = 900
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 1000	;Dslz
triggerall = stateno != 810	;Throw
triggerall = stateno != 410	;D-Hp1
triggerall = stateno != 411	;D-Hp2
triggerall = P2stateno != 5030;HitAirL1
triggerall = P2stateno != 5035;HitAirL2
triggerall = P2stateno != 5050;HitAirL3
triggerall = P2stateno != 5100;HitAirL4
triggerall = P2stateno != 5110;HitAirL5
triggerall = P2stateno != 5120;HitAirL6
triggerall = stateno != 11	;3KHit0
triggerall = stateno != 900	;3KHit1
triggerall = stateno != 901	;3KHit2
triggerall = stateno != 902	;3KHit3
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = Movetype  != H
triggerall = StateType != L
triggerall = P2StateType != L
triggerall = P2BodyDist X <= 10
triggerall = p2bodydist y >= 0
triggerall = command = "Kombo3_H1-2"
triggerall = stateno != 1009	;P1-SIce
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;6-Kombo_hit1
[State -1, 6K-1]
type = ChangeState
value = 905
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 1000	;Dslz
triggerall = stateno != 810	;Throw
triggerall = stateno != 410	;D-Hp1
triggerall = stateno != 411	;D-Hp2
triggerall = P2stateno != 5030;HitAirL1
triggerall = P2stateno != 5035;HitAirL2
triggerall = P2stateno != 5050;HitAirL3
triggerall = P2stateno != 5100;HitAirL4
triggerall = P2stateno != 5110;HitAirL5
triggerall = P2stateno != 5120;HitAirL6
triggerall = stateno != 11	;6KHit0
triggerall = stateno != 905	;6KHit1
triggerall = stateno != 906	;6KHit2
triggerall = stateno != 907	;6KHit3
triggerall = stateno != 900	;6KHit4
triggerall = stateno != 901	;6KHit5
triggerall = stateno != 902	;6KHit6
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = Movetype  != H
triggerall = StateType != L
triggerall = P2StateType != L
triggerall = P2BodyDist X <= 10
triggerall = p2bodydist y >= 0
triggerall = command = "Kombo6_H1"
triggerall = stateno != 1009	;P1-SIce
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;6-Kombo_Hit2
[State -1, 6K-2]
type = ChangeState
value = 906
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 810	;Throw
triggerall = stateno = 905	;6KHit1!
triggerall = stateno != 906	;6KHit2
triggerall = stateno != 907	;6KHit3
triggerall = stateno != 900	;6KHit4
triggerall = stateno != 901	;6KHit5
triggerall = stateno != 902	;6KHit6
triggerall = P2BodyDist X <= 10
triggerall = command = "Kombo6_H2"
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;6-Kombo_Hit3
[State -1, 6K-3]
type = ChangeState
value = 907
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 810	;Throw
triggerall = stateno != 905	;6KHit1
triggerall = stateno = 906	;6KHit2!
triggerall = stateno != 907	;6KHit3
triggerall = stateno != 900	;6KHit4
triggerall = stateno != 901	;6KHit5
triggerall = stateno != 902	;6KHit6
triggerall = P2BodyDist X <= 10
triggerall = command = "Kombo6_H3"
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;6-Kombo_Hit4
[State -1, 6K-4]
type = ChangeState
value = 900
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 810	;Throw
triggerall = stateno != 905	;6KHit1
triggerall = stateno != 906	;6KHit2
triggerall = stateno = 907	;6KHit3!
triggerall = stateno != 900	;6KHit4
triggerall = stateno != 901	;6KHit5
triggerall = stateno != 902	;6KHit6
triggerall = P2BodyDist X <= 10
triggerall = command = "Kombo6_H4"
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;6-Kombo_Hit5
[State -1, 6K-5]
type = ChangeState
value = 901
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 810	;Throw
triggerall = stateno != 905	;6KHit1
triggerall = stateno != 906	;6KHit2
triggerall = stateno != 907	;6KHit3
triggerall = stateno = 900 	;&& Time >= 14);6KHit4!
triggerall = stateno != 901	;6KHit5
triggerall = stateno != 902	;6KHit6
triggerall = P2BodyDist X <= 10
triggerall = command = "Kombo6_H5"
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;6-Kombo_Hit6
[State -1, 6K-6]
type = ChangeState
value = 902
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 810	;Throw
triggerall = stateno != 905	;6KHit1
triggerall = stateno != 906	;6KHit2
triggerall = stateno != 907	;6KHit3
triggerall = stateno != 900	;6KHit4
triggerall = stateno = 901 	;&& Time >= 10);6KHit5!
triggerall = stateno != 902	;6KHit6
triggerall = P2BodyDist X <= 10
triggerall = command = "Kombo6_H6"
triggerall = command = "holdback"
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
;Jump Up Vol Gamma
[State -1, Jump Up]
type = ChangeState
value = 40
triggerall = Var(10) = 33
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = command = "holdup"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (command = "holdup" && command = "holdfwd")
trigger2 = statetype = S
trigger2 = ctrl = 1
trigger3 = (command = "holdup" && command = "holdback")
trigger3 = statetype = S
trigger3 = ctrl = 1

;---------------------------------------------------------------------------
;correr
[State -1, RunMk]
type = ChangeState
value = 107
triggerall = command = "Run"
trigger1 = statetype = S
trigger1 = ctrl

;correr2
[State -1, Runmk]
type = ChangeState
value = 107
triggerall = command = "holdfwd"
triggerall = command = "Run2"
trigger1 = statetype = S
trigger1 = ctrl


;---------------------------------------------------------------------------
;Kung Fu Throw
[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = command = "a"	;y
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdfwd"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H


;===========================================================================
;---------------------------------------------------------------------------
;Stand Light Punch LP 0
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "Lpx"
triggerall = command != "holddown"
triggerall = stateno != 200
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = ctrl = 1
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 252) && time > 5
trigger3 = (stateno = 252) && time > 6

;---------------------------------------------------------------------------
;LP Hits 5x1
[State -1, LPHits1]
type = ChangeState
value = 201
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 810	;Throw
triggerall = stateno != 411
triggerall = stateno != 201
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = command = "5x1"
triggerall = statetype != A
triggerall = (Stateno = 200) || (stateno = 202)
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
trigger4 = movecontact = 1
;---------------------------------------------------------------------------
;LP Hits 5x2
[State -1, LPHits2]
type = ChangeState
value = 202
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 810	;Throw
triggerall = stateno != 411
triggerall = stateno != 202
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = command = "5x2"
triggerall = Stateno = 201
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
trigger4 = movecontact = 1
;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "Hpy"
triggerall = command != "holddown"
triggerall = stateno != 210
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 252) && time > 5
trigger3 = (stateno = 252) && time > 6

;---------------------------------------------------------------------------
;HP Hits 5y1
[State -1, HPHits1]
type = ChangeState
value = 211
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 810	;Throw
triggerall = stateno != 211
triggerall = command = "5y1"
triggerall = stateno != 211
triggerall = stateno != 411
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = statetype != A
triggerall = (stateno = 210) || (stateno = 212)
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
trigger4 = movecontact = 1

;---------------------------------------------------------------------------
;HP Hits 5y2
[State -1, HPHits2]
type = ChangeState
value = 212
triggerall = stateno != 3003	;Fatality1
triggerall = stateno != 3005	;Fatality2
triggerall = stateno != 3050	;Animality
triggerall = stateno != 3055	;Babality
triggerall = stateno != 3060	;Friendship
triggerall = stateno != 810	;Throw
triggerall = stateno != 411
triggerall = stateno != 212
triggerall = command = "5y2"
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = stateno = 211
trigger1 = statetype != A
trigger2 = statetype = S
trigger3 = movecontact
trigger3 = ctrl
trigger4 = movecontact = 1

;---------------------------------------------------------------------------
;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 252) && time > 7
trigger3 = (stateno = 252) && time > 9

;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 252) && time > 5
trigger3 = (stateno = 252) && time > 6

;---------------------------------------------------------------------------
; Stand Block
[State -1, BlkS]
type = ChangeState
value = 130
triggerall = statetype = S
triggerall = statetype != A
triggerall = statetype != C
triggerall = command =  "Blk"
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = p2stateno != 2005
trigger1 = ctrl = 1
trigger1 = statetype = S
;---------------------------------------------------------------------------
; Crchg Block
[State -1, BlkC]
type = ChangeState
value = 131
triggerall = statetype != S
triggerall = statetype != A
triggerall = statetype = C
triggerall = stateno != 26 
triggerall = Stateno != 25
triggerall = command =  "Blk"
triggerall = p2stateno != 2005
trigger1 = ctrl = 1
trigger1 = statetype = C
;---------------------------------------------------------------------------
;Crouching Light Punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouching Strong Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;Crouching Light Kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = stateno != 26 
triggerall = Stateno != 25
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 = command = "y"
triggerall = command = "holddown"
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

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

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

;---------------------------------------------------------------------------
;Jump L Kick F
[State -1, Jump Light KickF]
type = ChangeState
value = 640
triggerall = command = "b"
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = (Stateno = 50 && Anim = 43)
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (Stateno = 50 && Anim = 42)
trigger2 = statetype = A
trigger2 = ctrl

;---------------------------------------------------------------------------
;Jump H Kick B
[State -1, Jump Hight KickF]
type = ChangeState
value = 640
triggerall = command = "y"
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = (Stateno = 50 && Anim = 43)
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (Stateno = 50 && Anim = 42)
trigger2 = statetype = A
trigger2 = ctrl

;---------------------------------------------------------------------------
;Jump L Kick Up
[State -1, Jump LKickUp]
type = ChangeState
value = 630
triggerall = command = "b"
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = (Stateno = 50 && Anim = 41)
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger2 = (Stateno = 50 && Anim = 41)

;---------------------------------------------------------------------------
;Jump H Kick Up
[State -1, Jump HKickUp]
type = ChangeState
value = 630
triggerall = command = "y"
triggerall = stateno != 26 
triggerall = Stateno != 25
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = (Stateno = 50 && Anim = 41)
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger2 = (Stateno = 50 && Anim = 41)


;===========================================================================
;---------------------------------------------------------------------------
;------------------------A-------I-I-I-------!!!----------------------------
;-----------------------A-A--------I---------!!!----------------------------
;----------------------A-A-A-------I---------!!!----------------------------
;---------------------A-----A----I-I-I--------O-----------------------------
;---------------------------------------------------------------------------

[State -1,AI LevGamma]
type = VarSet
;triggerall = Var(9) = 0
trigger1  = command = "AI01"
trigger2  = command = "AI02"
trigger3  = command = "AI03"
trigger4  = command = "AI04"
trigger5  = command = "AI05"
trigger6  = command = "AI06"
trigger7  = command = "AI07"
trigger8  = command = "AI08"
trigger9  = command = "AI09"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
trigger27 = command = "AI27"
trigger28 = command = "AI28"
trigger29 = command = "AI29"
trigger30 = command = "AI30"
trigger31 = command = "AI31"
trigger32 = command = "AI32"
trigger33 = command = "AI33"
v = 10	;9
value = 33	;1

;---------------------------------------------------------------------------
;[State -1, Fin de AI]
;type = VarSet
;triggerall = Var	(10)= 1
;trigger1 = Win = 1
;v = 10		;9
;value = 0		;0

;The End ???		The End ???		The End ???		The End ???.....

