;-| Super Motions |--------------------------------------------------------

[Command]
name = "Kamehameha"
command = ~D,DB,B,D,DB,B, x
time = 30

[Command]
name = "PPE1"
command = ~D,DF,F,D,DF,F, a
time = 30

[Command]
name = "tornado"
command = D,DB,B,D,DF,F, y
time = 30

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

[Command]
name = "dpalm"
command = D,DF,F,c
time = 20

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

[Command]
name = "kameblast"
command = D,DF,F,x
time = 30

[Command]
name = "kameblasth"
command = D,DF,F,y
time = 30

[Command]
name = "suppercut"
command = D,DF,F,z
time = 30

[Command]
name = "pkick"
command = D,DB,B,a
time = 20

[Command]
name = "pkickh"
command = D,DB,B,b
time = 20

[Command]
name = "superjump"
command = D,U
time = 20

[Command]
name = "superjumpf"
command = D,UF
time = 20

[Command]
name = "superjumpb"
command = D,UB
time = 20

;-| AI |------------------------------------------------------
[Command]
name = "AI1"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI2"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI3"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI4"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI5"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI6"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI7"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI8"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI9"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI10"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI11"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI12"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI13"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI14"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI15"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI16"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI17"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI18"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI19"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI20"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

[Command]
name = "AI21"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
time = 1

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

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

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

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

[Command]
name = "AI26"
command = a,a,a,a,a,a,a,a,s,s,s,s,s,s,s
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 = "start"
command = s
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holda"
command = /a
time = 1

[Command]
name = "holdx"
command = /x
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]
;---------------------------------------------------------------------------

;Tornado
[State -1]
type = Changestate
value=250
triggerall = command = "tornado"
triggerall = Var(23) < 2
trigger1 = power >= 1000
trigger1 = Statetype = S
trigger1 = ctrl

;Super Uppercut
[State -1]
type = ChangeState
value = 203
triggerall = command = "suppercut"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && MoveContact 
trigger3 = stateno = 202 && MoveContact 

;KameBlast
[STate -1]
type = changestate
value = 2100
triggerall = command = "kameblast"
triggerall = Var(1) != 1
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact 
trigger3 = stateno = 201
trigger3 = movecontact 
trigger4 = ((stateno = 410) || (stateno = 411) || (stateno = 412)) && MoveContact 
trigger5 = ((stateno = 400) || (stateno = 202) || (stateno = 401)) && MoveContact 
trigger6 = stateno = 240 && MoveContact 
trigger7 = stateno = 108


;KameBlast Hard
[STate -1]
type = changestate
value = 2300
triggerall = command = "kameblasth"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact 
trigger3 = stateno = 201
trigger3 = movecontact 
trigger4 = ((stateno = 410) || (stateno = 411) || (stateno = 412)) && MoveContact 
trigger5 = ((stateno = 400) || (stateno = 202) || (stateno = 401)) && MoveContact 
trigger6 = stateno = 240 && MoveContact 
trigger7 = stateno = 108

;Double Palm Light
[STate -1]
type = changestate
value = 2200
triggerall = command = "dpalml"
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact 
trigger3 = stateno = 200
trigger3 = movecontact 
trigger4 = stateno = 201
trigger4 = movecontact 
trigger5 = stateno = 610
trigger5 = movecontact 
trigger6 = stateno = 400 && MoveContact 
trigger7 = stateno = 611 && MoveContact 
trigger8 = stateno = 202 && movecontact 


;Double Palm
[STate -1]
type = changestate
value = 2400
triggerall = command = "dpalm"
triggerall = Var(1) != 1
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact 
trigger3 = stateno = 200
trigger3 = movecontact 
trigger4 = stateno = 201
trigger4 = movecontact 
trigger5 = stateno = 610
trigger5 = movecontact 
trigger6 = stateno = 400 && MoveContact 
trigger7 = stateno = 611 && MoveContact 
trigger8 = stateno = 202 && movecontact 

;Power Kick Hard
[STate -1]
type = changestate
value = 1300
triggerall = command = "pkickh"
triggerall = Var(1) != 1
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact 
trigger3 = stateno = 200
trigger3 = movecontact 
trigger4 = stateno = 201
trigger4 = movecontact 
trigger5 = stateno = 610
trigger5 = movecontact 
trigger6 = ((stateno = 410) || (stateno = 411) || (stateno = 412)) && MoveContact 
trigger7 = ((stateno = 400) || (stateno = 202) || (stateno = 401)) && MoveContact 
trigger8 = stateno = 611 && MoveContact 
trigger9 = stateno = 2200 && MoveContact 
trigger10 = stateno = 212 && MoveContact 
trigger11 = stateno = 2400 && MoveContact 
trigger12 = ((stateno = 2100) || (stateno = 2300)) && projhit(2100) = 1
trigger13 = stateno = 240 && MoveContact 
trigger14 = (stateno = 612) && (enemynear,statetype = S) && MoveContact 

;Power Kick
[STate -1]
type = changestate
value = 1400
triggerall = command = "pkick"
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact 
trigger3 = stateno = 200
trigger3 = movecontact 
trigger4 = stateno = 201
trigger4 = movecontact 
trigger5 = stateno = 610
trigger5 = movecontact 
trigger6 = ((stateno = 410) || (stateno = 411) || (stateno = 412)) && MoveContact 
trigger7 = ((stateno = 400) || (stateno = 202) || (stateno = 401)) && MoveContact 
trigger8 = stateno = 611 && MoveContact 
trigger9 = stateno = 2200 && MoveContact 
trigger10 = stateno = 212 && MoveContact 
trigger11 = stateno = 2400 && MoveContact 
trigger12 = ((stateno = 2100) || (stateno = 2300)) && projhit(2100) = 1
trigger13 = stateno = 240 && MoveContact 
trigger14 = (stateno = 612) && (enemynear,statetype = S) && MoveContact 

;Super Jump
[State -1]
type = Changestate
value = 1040
triggerall = command = "superjump"
triggerall = (statetype = S) && (ctrl = 1)
trigger1 = Var(1) != 1
trigger2 = Var(1) = 1
trigger2 = p2bodydist X <= 20


;Super Jump
[State -1]
type = Changestate
value = 1041
triggerall = command = "superjumpf"
triggerall = (statetype = S) && (ctrl = 1)
trigger1 = Var(1) != 1

;Super Jump
[State -1]
type = Changestate
value = 1042
triggerall = command = "superjumpb"
triggerall = (statetype = S) && (ctrl = 1)
trigger1 = Var(1) != 1

;Power Pole Extend 1
[State -1]
type = ChangeState
value = 1100
triggerall = command = "PPE1"
triggerall = power >= 1000
triggerall = Var(5) < 1
trigger1 = (statetype = S) && (ctrl = 1)
trigger2 = ((stateno = 202) || (stateno = 412)) && MoveContact 
trigger3 = ((stateno = 810) && (p2stateno = 821))
trigger4 = (stateno = 401) && MoveContact 

;Kamehameha
[State -1]
type = ChangeState
value = 2000
triggerall = command = "Kamehameha"
triggerall = power >= 2000
trigger1 = (statetype = S) && (ctrl = 1)
trigger2 = ((stateno = 202) || (stateno = 412)) && MoveContact 
trigger3 = ((stateno = 810) && (p2stateno = 821))
trigger4 = (stateno = 401) && MoveContact 
;---------------------------------------------------------------------------
;Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = Var(1) != 1
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
;---------------------------------------------------------------------------
;Flip Back
[State -1]
type = ChangeState
value = 105
trigger1 = Var(1) != 1
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl
;---------------------------------------------------------------------------
;Throw
[State -1]
type = ChangeState
value = 800
triggerall = command = "z"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
triggerall = P2bodydist X <= 10
triggerall = command = "holdfwd"
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

;Throw
[State -1]
type = ChangeState
value = 800
triggerall = command = "z"
triggerall = stateno != 100
triggerall = P2bodydist X <= 10
triggerall = command = "holdfwd"
trigger1 = ((stateno = 200) || (stateno = 201) || (stateno = 210) || (stateno = 211) || (stateno = 212))
trigger1 = (movecontact )
;---------------------------------------------------------------------------
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 201
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 400 && MoveContact 
trigger3 = stateno = 210 && MoveContact 

;Standing Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 200
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 201 && MoveContact 
trigger3 = stateno = 400 && MoveContact 
trigger4 = ((stateno = 210) || (stateno = 211)) && MoveContact 

;Standing Power Pole
[State -1, Stand Strong Punch]
type = ChangeState
value = 240
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && MoveContact 
trigger3 = stateno = 201 && MoveContact 
trigger4 = ((stateno = 210) || (stateno = 211) || (stateno = 212)) && MoveContact 
;---------------------------------------------------------------------------
;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 210
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 201 && MoveContact 
trigger3 = ((stateno = 400)) && MoveContact 
trigger4 = ((stateno = 410)) && MoveContact 
;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 211
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 210 && MoveContact 
trigger3 = stateno = 200 && MoveContact 
trigger4 = stateno = 201 && MoveContact 
trigger5 = ((stateno = 401) || (stateno = 400)) && MoveContact 
trigger6 = ((stateno = 411) || (stateno = 410)) && MoveContact 
;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 212
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 211 && MoveContact 
trigger3 = stateno = 210 && MoveContact 
trigger4 = stateno = 201 && MoveContact 
trigger5 = stateno = 200 && MoveContact 
trigger6 = ((stateno = 400) || (stateno = 401) || (stateno = 202)) && MoveContact 
trigger7 = ((stateno = 410) || (stateno = 411)) && MoveContact 
;---------------------------------------------------------------------------
;Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
trigger1 = stateno != 195
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouching Punch
[State -1]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 201 && movecontact 
trigger3 = stateno = 410 && MoveContact 
trigger4 = stateno = 210 && MoveContact 

;Crouching UpperCut
[State -1, Crouching Uppercut]
type = ChangeState
value = 202
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && MoveContact 
trigger3 = stateno = 400 && MoveContact 
trigger4 = stateno = 410 && MoveContact 
trigger5 = stateno = 411 && MoveContact
trigger6 = stateno = 210 && MoveContact 
trigger7 = stateno = 211 && MoveContact 
trigger8 = stateno = 201 && MoveContact 

;Crouching Power Pole
[State -1]
type = ChangeState
value = 401
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400 && movecontact 
trigger3 = stateno = 202 && movecontact 
trigger4 = stateno = 410 && MoveContact 
trigger5 = stateno = 411 && MoveContact 
trigger6 = stateno = 412 && MoveContact 
trigger7 = ((stateno = 201) || (stateno = 200)) && movecontact
;---------------------------------------------------------------------------
;Crouching Kick
[State -1]
type = ChangeState
value = 410
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = ((stateno = 400)) && MoveContact 
trigger5 = ((stateno = 201)) && MoveContact 
trigger6 = ((stateno = 210)) && MoveContact 

;Crouching Kick
[State -1]
type = ChangeState
value = 411
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 410 && MoveContact 
trigger3 = ((stateno = 202) || (stateno = 400)) && MoveContact 
trigger4 = ((stateno = 200) || (stateno = 201)) && MoveContact 
trigger5 = ((stateno = 210) || (stateno = 211)) && MoveContact

;Crouching Kick
[State -1]
type = ChangeState
value = 412
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 410 && MoveContact 
trigger3 = stateno = 411 && movecontact 
trigger4 = ((stateno = 202) || (stateno = 400) || (stateno = 401)) && MoveContact 
trigger5 = ((stateno = 200) || (stateno = 201) || (stateno = 240)) && MoveContact 
trigger6 = ((stateno = 210) || (stateno = 211) || (stateno = 212)) && MoveContact 
;---------------------------------------------------------------------------
;Jump Punch
[State -1]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = Var(8) != 3
trigger1 = statetype = A
trigger1 = ctrl
;trigger2 = stateno = 610
;trigger2 = movecontact 
;trigger3 = (stateno = 611) && (movecontact)
;---------------------------------------------------------------------------
;Jump Kick
[State -1]
type = ChangeState
value = 612
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact 
trigger3 = stateno = 611 && movecontact 
trigger4 = stateno = 610 && movecontact 

;Jump Kick
[State -1]
type = ChangeState
value = 611
triggerall = command = "b"
triggerall = Var(8) != 3
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact 
trigger3 = (stateno = 610) && (movecontact )

;Jump Kick
[State -1]
type = ChangeState
value = 610
triggerall = command = "a"
triggerall = Var(8) != 3
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact 
;---------------------------------------------------------------------------
;Power Pole
[State -1]
type = ChangeState
value = 630
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact 
trigger3 = stateno = 610
trigger3 = movecontact 
trigger4 = stateno = 611
trigger4 = movecontact 

;---------------------------------------------------------------------------
;Power Pole
[State -1]
type = ChangeState
value = 640
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact 
trigger3 = stateno = 610
trigger3 = movecontact 
trigger4 = stateno = 611
trigger4 = movecontact
trigger5 = (stateno = 630) && (movecontact)

[State -1]
type = SuperPause
trigger1 = P1name != "Goku DB"
time = 100000000000000000000

;AI Activation
[State -1]
type = Varset
trigger1 = command = "AI1"
trigger2 = command = "AI2"
trigger3 = command = "AI3"
trigger4 = command = "AI4"
trigger5 = command = "AI5"
trigger6 = command = "AI6"
trigger7 = command = "AI7"
trigger8 = command = "AI8"
trigger9 = command = "AI9"
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"
v = 1
value = 1
