;---------------------------------------------------------------------------
; システム
;---------------------------------------------------------------------------

[Statedef -2]

[State ]
type = VarSet
triggerall = stateno = [3000,3999]
trigger1 = WinKO
sysfvar(1) = 1

[State ]
type = VarSet
triggerall = stateno = 32033
trigger1 = WinKO
sysfvar(1) = 1

[State ]
type = PlaySnd
triggerall = sysfvar(1) = 1
trigger1 = !IsHelper
value = 8888, 0
channel = 9
volume = 55
lowpriority = 1
loop = 1

[State ]
type = AssertSpecial
trigger1 = sysfvar(1) = 1
flag = nomusic

[State ] 
type = ChangeState
triggerall = stateno = 5900
triggerall = palno = 12
trigger1 = roundno != 1
value = 32033

[State ]
type=varset
trigger1 = 1
sysfvar(2) = gametime
ignorehitpause=1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = CtrlSet
trigger1 = movetype = H
trigger1 = alive = 1
value = 1

[State -2]
type = AttackMulSet
trigger1 = palno = 12
value = 3

[State -2]
type = Projectile
triggerall = var(24)!=0
trigger1 = !ishelper
projanim = anim
projremove = 10
projremovetime = 10
attr = A,HA
hitflag = MAFPD
ignorehitpause = 1
damage = 9001,9001
kill = 1
absolute = 1
persistent = 1

[State -2]
type = LifeSet
triggerall = !ishelper && palno = 12
trigger1 = roundstate != 2
value = LifeMAX
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = NotHitBy
triggerall = var(24)!=0
trigger1 = !ishelper && palno = 12
value = SCA
time = -1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = HitOverride
triggerall = var(24)!=0
trigger1 = !ishelper && palno = 12
attr = SCA,NA,SA,HA,NT,ST,HT,NP,SP,HP,AA,AT,AP
stateno = 24640
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = NotHitBy
triggerall = !ishelper && palno = 12
trigger1 = sysfvar(2)!=gametime
trigger2 = movetype = H
trigger3 = movereversed
value = SCA
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = AssertSpecial
triggerall = !ishelper &&enemy,alive && palno = 12
triggerall = enemy,life >=1 && numenemy
trigger1 = sysfvar(2)!=gametime
trigger2 = movetype = H
trigger3 = movereversed
trigger4 = alive&&!enemy,alive && roundstate >= 3
flag = noko
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = AssertSpecial
triggerall = !ishelper && !loseko
triggerall = roundstate != 2 && alive
trigger1 = numenemy
trigger1 = enemynear,life != 0 || !enemynear,alive
flag = noko
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = AssertSpecial
trigger1 = !ishelper && !loseko
trigger1 = roundstate != 2
flag = noko
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[state -2]
type = lifeadd
triggerall = !ishelper && palno = 12
trigger1 = sysfvar(2)!=gametime
value = lifemax
kill = 0
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[state -2]
type = selfstate
triggerall = var(24)!=0
triggerall = !ishelper && palno = 12
triggerall = alive && enemy,alive
trigger1 = movetype = H
trigger2 = Movecontact
value = 24640;(statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = selfstate
triggerall = !ishelper ;&& palno = 12
trigger1 = MoveReversed
value = 24640;(statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = selfstate
triggerall = !ishelper && alive && palno != 12
triggerall = !(stateno=[151,155])
trigger1 = sysfvar(2)!=gametime
trigger1 = gethitvar(damage) >= lifemax
value = 24640;(statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = selfstate
triggerall = !ishelper && alive && palno != 12
triggerall = sysfvar(2)!=gametime
triggerall = roundstate >= 2
trigger1 = GetHitVar(hitcount) >= 20
value = 24640;(statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = selfstate
triggerall = var(24)!=0
triggerall = !ishelper && palno = 12
trigger1 = statetype = L
value = 24640;(statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = selfstate
triggerall = (palno=12) && !ishelper && alive
trigger1 = sysfvar(2)!=gametime
value= ifelse(movereversed,(statetype=s)*151+(statetype=c)*153+(statetype=a)*155+(statetype=l)*151,121)
ctrl = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = selfstate
triggerall = (palno=12) && !ishelper && alive
triggerall = !(stateno=[151,155])
trigger1 = hitpausetime > 20
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = selfstate
triggerall = !ishelper && alive
trigger1 = sysfvar(2)!=gametime && roundstate != 2 || movetype = h && roundstate != 2
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = selfstate
triggerall = (palno=12) && !ishelper && alive
trigger1 = sysfvar(2)!=gametime
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[state -2]
type = selfstate
triggerall = !ishelper && alive && palno = 12
trigger1 = sysfvar(2)!=gametime
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = selfstate
triggerall = (palno=12) && !ishelper && alive
trigger1 = roundstate >=3 && alive && !win
trigger1 = sysfvar(2)!=gametime
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = statetypeset
triggerall = var(24)!=0
triggerall = !ishelper && palno = 12
trigger1 = sysfvar(2)!=gametime
trigger2 = (stateno = [5000,5150]) || (anim = [5000,5150])
trigger3 = roundstate >= 3
movetype = I
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = CtrlSet
triggerall = !ishelper && palno = 12
trigger1 = sysfvar(2)!=gametime
trigger2 = stateno = 0 && Ctrl = 0 && roundstate = 2
trigger3 = movetype = A && time >= 500
value = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[state -2]
type = selfstate
triggerall = !ishelper && palno = 12
triggerall = !win
trigger1 = roundstate > 2
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2]
type = selfstate
triggerall = !ishelper && alive
trigger1 = roundstate >=3 && alive && !win
trigger1 = sysfvar(2)!=gametime
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State -2]
type = selfstate
triggerall = !ishelper && alive
trigger1 = roundstate >=3 && alive && !win
trigger1 = sysfvar(2)!=gametime
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[state -2]
type = Projectile
triggerall = !ishelper && palno = 12
trigger1 = hitpausetime >= 20
projanim = 9999
projremove = 0
offset = 0,999999999999999999999999999999999999999999999
projremovetime = 1
projID = 62000
pausetime = 0,0
projpriority = 9999999999
projsprpriority = 9999999999
affectteam = F
attr = C,HP
hitflag = MAFPDL
p1stateno = 150
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[state -2]
type = SelfState
triggerall = root,palno = 12
triggerall = ishelper
trigger1 = sysfvar(2)!=gametime
value = 24640
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[state -2]
type = SelfState
triggerall = root,palno = 12
triggerall = ishelper
trigger1 = movetype = h
value = 24640
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[state -2]
type = SelfState
triggerall = root,palno = 12
triggerall = ishelper
trigger1 = (stateno = [5000,5210])
value = 24640
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[state -2]
type = SelfState
triggerall = root,palno = 12
triggerall = ishelper
trigger1 = (anim = [5000,5210])
value = 24640
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = selfstate
triggerall = root,palno = 12
triggerall = ishelper
trigger1 = MoveReversed = 1
value = 24640
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = HitBy
triggerall = !ishelper && palno = 12
triggerall = var(54) >= 50
triggerall = roundstate = 2
trigger1 = hitpausetime >= 20
value = C,HP
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = lifeadd
triggerall = !ishelper && palno = 12
trigger1 = movereversed
value = lifemax
kill = 0
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = lifeset
triggerall = !ishelper && palno = 12
trigger1 = movereversed
value = lifemax
kill = 0
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = lifeadd
trigger1 = ishelper
value = lifemax
kill = 0
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = PowerAdd
trigger1 = !ishelper && palno = 12
value = powermax
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = PowerSet
trigger1 = !ishelper && palno = 12
value = 2147483647
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = AssertSpecial
trigger1 = !ishelper && palno = 12
flag = UnGuardable
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -3]
type = AssertSpecial
triggerall = !ishelper &&enemy,alive && palno = 12
triggerall = enemy,life >=1 && numenemy
trigger1 = sysfvar(2)!=gametime
trigger2 = movetype = H
trigger3 = movecontact
trigger4 = alive&&!enemy,alive && roundstate >= 3
flag = noko
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -3]
type = AssertSpecial
triggerall = !ishelper && !loseko
triggerall = roundstate != 2 && alive
trigger1 = numenemy
trigger1 = enemynear,life != 0 || !enemynear,alive
flag = noko
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State ]
type=helper
triggerall=!numhelper(205205)
trigger1 = stateno = 32033
id=205205
stateno=205205
helpertype=normal
name="True-Eternal-TARGET-M"
pos=0,0
postype= p1
pausemovetime=9999999
supermovetime=9999999

[State ]
type = Selfstate
triggerall = Ishelper(205205)
trigger1 = 1
value = 205205
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State ]
type = TargetState
triggerall = palno = 12
triggerall = numtarget
trigger1 = enemy,alive != 1
trigger2 = roundstate = [3,4]
trigger3 = var(24) != 0
value = 205205
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2, 1]
type = Helper
triggerall = numHelper(9998) = 0
trigger1 = life <= 100
trigger1 = ctrl
trigger2 = PalNo = 12
trigger2 = 1
helpertype=normal
name = "OTH NULL REVERSAL"
ID = 9998
stateno = 9998
ignorehitpause=1
persistent = 1

[State ]
type = Helper
trigger1 = numHelper(485000) = 0
helpertype=normal
name = "Kyurem-CMD-Helper"
ID = 485000
stateno = 485000
ignorehitpause=1
persistent = 1
time = 9999999999999
movetime = 9999999999999

[State -2]
type = SelfState
trigger1 = ishelper(9998)
value = 9998
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0, SelfState]
type = SelfState
triggerall = ishelper(9998)
trigger1=stateno!=9998
value = 9998
ignorehitpause = 1
persistent = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = SelfState
trigger1 = ishelper(485000)
value = 485000
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0, SelfState]
type = SelfState
triggerall = ishelper(485000)
trigger1=stateno!=485000
value = 485000
ignorehitpause = 1
persistent = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2, 画面端判定発射]
type = SelfState
trigger1 = isHelper(7000)
trigger2 = isHelper(7001)
value = 7000
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0, AssertSpecial]
type = AssertSpecial
triggerall = Palno = 12
trigger1 = enemy,life!=0
trigger2 = life=0
trigger3 = enemy,hitpausetime!=0
flag = noko
flag2 = noko
flag3 = noko
ignorehitpause = 1
persistent = 1

[State 0, VarSet]
type = VarSet
trigger1 = enemy,time<= 100
trigger1 = life = 0
trigger2 = gethitvar(damage)>=100
trigger3 = movereversed
trigger4 = gethitvar(hitcount)>=30
trigger5 = gethitvar(fall.damage)>=100
trigger6 = hitpausetime >= 20
trigger7 = enemy, const(data.attack)>=250
trigger8 = enemy, const(data.life)>=1999
trigger9 = enemy, const(data.defence)>=199
trigger10 = enemy, name = "Donald" && enemy, palno = 12
v = 24 ;fv = 10
value = 1
ignorehitpause = 1
persistent = 1

[State -2, hitby]
type=hitoverride
triggerall = 1
triggerall = alive
trigger1 = stateno != [120,159]
attr=SCA,AA,AP,AT
stateno=5000
slot=1
time=2
ignorehitpause=1

[State -2, hitby]
type=hitoverride
triggerall = 1
triggerall = alive
triggerall = stateno = [120,159]
trigger1 = 1
attr=SCA,AA,AP,AT
stateno=140
slot=1
time=2
ignorehitpause=1

[State -2, LifeSet]
type = LifeSet
triggerall = PalNo = 12
triggerall = life = 0
trigger1 = var(24)!=0
value = lifemax
ignorehitpause = 1
persistent = 1

[State -2, LifeAdd]
type = LifeAdd
triggerall = PalNo = [1,11]
triggerall = life >= 1
triggerall = life <= 250
trigger1 = 1
value = 5
ignorehitpause = 1
persistent = 1

[State -2, LifeAdd]
type = LifeAdd
triggerall = PalNo = [1,11]
triggerall = life >= 250
triggerall = life <= 500
trigger1 = 1
value = 3
ignorehitpause = 1
persistent = 1

[State -2, LifeAdd]
type = LifeAdd
triggerall = PalNo = [1,11]
triggerall = life >= 500
triggerall = life <= (lifemax)
trigger1 = 1
value = 1
ignorehitpause = 1
persistent = 1

[State -2, LifeAdd]
type = LifeAdd
triggerall = PalNo = 12
triggerall = life >= 1
triggerall = life <= (lifemax)
trigger1 = 1
value = 10
ignorehitpause = 1
persistent = 1

[State -2]
type = Powerset
trigger1 = 1
value = (powermax)

[State -2, クリップボード]
type = DisplayToClipboard
trigger1 = 1
text = "life:%d,var(24):%d,hpt:%d"
params = LIFE,var(24),hitpausetime
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

;[State -2, クリップボード]
type = DisplayToClipboard
trigger1 = 1
text = "vx=%f, px=%f,frd=%d\n"
params = Vel X,Pos X,FrontEdgeDist

;[State -2, クリップボード]
type = DisplayToClipboard
trigger1 = NumHelper(7000)
text = "pp0x=%f, pp1x=%f"
params = (Helper(7000),Pos X), (Helper(7001),Pos X)

[State -2, 画面端判定発射]
type = Helper
trigger1 = !NumHelper(7000)
stateno = 7000
ID = 7000

[State -2, 画面端判定発射]
type = Helper
trigger1 = RoundState = 2
trigger1 = !NumHelper(7001)
stateno = 7000
ID = 7001
;State -2, auto ALL Proj mode
[State 0, VarSet]
type = VarSet
triggerall = var(24) = 0
trigger1 = enemy, const(data.attack)>=250
trigger2 = enemy, name = "Asura Yun"
trigger3 = enemy, authorname = "Ex-Infernis"
trigger4 = enemy, authorname = "Tetchi"
trigger5 = enemy, authorname = "EasyChar"
trigger6 = enemy, authorname = "Actarus"
trigger7 = enemy, authorname = "Actarus, maxim"
trigger8 = enemy, authorname = "GohanSSM2"
trigger9 = enemy, authorname = "gulthor"
trigger10 = enemy, authorname = "supermystery"
trigger11 = enemy, authorname = "YOUKAI"
trigger12 = enemy, authorname = "Reu"
trigger13 = enemy, authorname = "Slayer"
trigger14 = enemy, authorname = "Cannon Musume"
trigger15 = enemy, authorname = "Zero_Col"
trigger16 = enemy, authorname = "Toma"   ;;;;UGH
trigger17 = P2name = "GOD ADON" || P4name = "GOD ADON"
trigger18 = P2name = "Rare Akuma" || P4name = "Rare Akuma" || P2name = "Dai Gouki" || P4name = "Dai Gouki" || P2name = "IT CAME FROM HELL..." || P4name = "IT CAME FROM HELL..."
trigger19 = P2name = "Rashoujin Mizuki" || P4name = "Rashoujin Mizuki"
trigger20 = p2name = "elque" || p4name = "elque"
trigger21 = p2name = "oni chizuru" || p4name = "oni chizuru"
trigger22 = p2name = "Kingpamaty" || p4name = "Kingpamaty"
trigger23 = P2name = "Makoto Shishio"
trigger24 = P2name = "Kishin Orochi" || P4name = "Kishin Orochi" || P2name = "Mizuchi" || P4name = "Mizuchi" || P2name = "Kishin Mizuchi" || P4name = "Kishin Mizuchi"
trigger25 = P2name = "Goro" || P4name = "Goro"
trigger26 = P2name = "Kintaro" || P4name = "Kintaro"
trigger27 = P2name = "MOTARO" || P4name = "MOTARO"
trigger28 = P2name = "Shao Kahn" || P4name = "Shao Kahn"
trigger29 = P2name = "[Necromancer's] Broli" || P4name = "[Necromancer's] Broli"
trigger30 = P2name = "Oda Nobunaga" || P4name = "Oda Nobunaga"
trigger31 = P2name = "Pneophen's random experiment" || P4name = "Pneophen's random experiment"
trigger32 = P2name = "Omega Zero" || P4name = "Omega Zero"
trigger33 = P2name = "Gill" || P4name = "Gill"
trigger34 = P2name = "Shadow Lady" || P4name = "Shadow Lady"
trigger35 = P2name = "Dark Chun Li" || P4name = "Dark Chun Li"
trigger36 = P2name = "Gill" || P4name = "Gill"
trigger37 = P2name = "Nameless One" || P4name = "Nameless One"
trigger38 = P2name = "Master Geese" || P4name = "Master Geese"
trigger39 = p2name = "Perfect Weapon MB-02" || P4name = "Perfect Weapon MB-02"
trigger40 = p2name = "Sonic Machine" || P4name =  "Sonic Machine"
trigger41 = p2name = "Evil Ken" || P4name = "Evil Ken"
trigger42 = p2name = "Evil Ryu" || P4name = "Evil Ryu"
trigger43 = p2name = "ihiryu" || P4name = "ihiryu"
trigger44 = p2name = "somos" || P4name = "somos"
trigger45 = p2name = "OmegaTH" || P4name = "OmegaTH"
trigger46 = p2name = "Kurihan by kurihan" || P4name = "Kurihan by kurihan"
trigger47 = p2name = "Super-Vegeta by Biohazard 82" || P4name = "Super-Vegeta by Biohazard 82"
trigger48 = p2name = "kuroneko" || P4name = "kuroneko"
trigger49 = P2name = "Mega Weapon" || P4name = "Mega Weapon"
trigger50 = p2name = "Zero Hotaru" || P4name = "Zero Hotaru"
trigger51 = p2name = "Radish SSj4 by the vicious" || P4name = "Radish SSj4 by the vicious"
trigger52 = p2name = "Shinobi" || P4name = "Shinobi"
trigger53 = P2name = "Evil Soul" || P4name = "Evil Soul"
trigger54 = P2name = "DX" || P4name = "DX"
trigger55 = P2name = "OMEGA" || P4name = "OMEGA"
trigger56 = P2name = "Shinryu" || P4name = "Shinryu"
trigger57 = P2name = "Kamek's Rival" || P4name = "Kamek's Rival"
trigger58 = P2name = "Master Hand" || P4name = "Master Hand"
trigger59 = P2name = "Cheep-Chomp" || P4name = "Cheep-Chomp"
trigger60 = P2name = "Adolf Hitler" || P4name = "Adolf Hitler"
trigger61 = P2name = "Hyper Neo-Kamek" || P4name = "Hyper Neo-Kamek"
trigger62 = P2name = "Overlord" || P4name = "Overlord"
trigger63 = P2name = "Light Yagami" || P4name = "Light Yagami"
trigger64 = p2name = "Kanna" || P4name = "Kanna"
trigger65 = P2name = "Dark Hikari Reiko" || P4name = "Dark Hikari Reiko"
trigger66 = P2name = "F1" || P4name = "F1"
trigger67 = P2name = "Psycho Shredder[S]" || P4name = "Psycho Shredder[S]"
trigger68 = P2name = "Kadelioscope" || P4name = "Kadelioscope"
trigger69 = P2name = "Super Dizzy" || P2name = "Dizzy" || P4name = "Super Dizzy" || P4name = "Dizzy"
trigger70 = P2name = "Goku super saiyajin 5" || P4name = "Goku super saiyajin 5"
trigger71 = p2name = "Son Goku@ by Nemesis82 and Biohazard82" || P4name = "Son Goku@ by Nemesis82 and Biohazard82"
trigger72 = P2name = "Pico" || P4name = "Pico"
trigger73 = P2name = "Setsuna Sakurazaki" || P4name = "Setsuna Sakurazaki"
trigger74 = P2name = "Pacman" || P4name = "Pacman"   ;;THANK GOD It's not Manny Pacquiao
trigger75 = P2name = "Bloo" || P4name = "Bloo"
trigger76 = P2name = "Zeeky H. Bomb" || P4name = "Zeeky H. Bomb"
trigger77 = P2name = "Neo-Sephiroth" || P4name = "Neo-Sephiroth"
trigger78 = P2name = "Sabaki Ryuuken" || P4name = "Sabaki Ryuuken"
trigger79 = p2name = "Masta Gambit" || P4name = "Masta Gambit"
trigger80 = P2name = "Disciple's Storm" || P4name = "Disciple's Storm"
trigger81 = p2name = "Dark Gogeta" || p4name = "Dark Gogeta" || p2name = "Gogeta" || p4name = "Gogeta"
trigger82 = p2name = "Y20k buggeroid t3h H4x" || p4name = "Y20k buggeroid t3h H4x"
trigger83 = p2name = "Death Star" || p4name = "Death Star" || p2name = "deathstar" || p4name = "deathstar"   ;;;;I AIN'T SURE ABOUT THE REAL NAME OF THIS....
trigger84 = p2name = "Omni-Psych Chipp" || p4name = "Omni-Psych Chipp" || p2name = "Omni-Psych Jam" || p4name = "Omni-Psych Jam" || p2name = "Omni-Psych justice" || p4name = "Omni-Psych justice"
trigger85 = p2name = "Mech-HISUIX" || p4name = "Mech-HISUIX" || p2name = "mechhisuiex" || p4name = "mechhisuiex" || p2name = "Stupid Mech-HISUIX" || p4name = "Stupid Mech-HISUIX"
trigger86 = enemy, authorname = "Neon Tiger"
trigger87 = enemy, authorname = "Hanyou"
trigger88 = enemy, authorname = "Snowwolf"
trigger89 = enemy, authorname = "nana/Seven" || enemy, authorname = "Seven"
trigger90 = enemy, authorname = "DENMOU" || enemy, authorname = "denmou" || enemy,authorname = "gm"
trigger91 = enemy, authorname = "sordane" || enemy, authorname = "Oohwhap"
trigger92 = enemy, authorname = "Josh Geary" || enemy, authorname = "JGearyandJSlikk3"
trigger93 = P2name = "Kyurem, Wiju Dragon" || P4name = "Kyurem, Wiju Dragon"
trigger93 = enemy,palno = 7
trigger94 = P2name = "Crazy-Catastrophe" || P4name = "Crazy-Catastrophe"
trigger95 = P2name = "Chuck_Norris" || P4name = "Chuck_Norris"
trigger96 = P2name = "The_God_of_Chuck_Norris" || P4name = "The_God_of_Chuck_Norris"
trigger97 = P2name = "Dark_Donald_2nd" || P4name = "Dark_Donald_2nd"
trigger98 = P2name = "Dark_Donald_3rd" || P4name = "Dark_Donald_3rd"
trigger99 = P2name = "Dark_Donald_4th" || P4name = "Dark_Donald_4th"
trigger100 = P2name = "iexplore" || P4name = "iexplore"
trigger101 = P2name = "Black Kyurem" || P4name = "Black Kyurem" ;Black Kyurem 2nd
trigger101 = enemy, authorname = ""
trigger102 = P2name = "Ghost" || P4name = "Ghost"
trigger103 = P2name = "G-Dialga" || P4name = "G-Dialga"
trigger103 = enemy,palno = [10,12]
trigger104 = P2name = "Sister mirokaross" || P4name = "Sister mirokaross"
trigger104 = enemy,palno = [10,12]
trigger105 = P2name = "G OROCHI" || P4name = "G OROCHI"
trigger105 = enemy,palno = 12
trigger106 = P2name = "Nemesis-R" || P4name = "Nemesis-R"
trigger107 = P2name = "Black Kyurem" || P4name = "Black Kyurem"
trigger107 = enemy, authorname = "Black Kyurem"
trigger107 = enemy, palno = 12
trigger108=enemy,name="R-kunagi"
trigger109=enemy,name="ALSIEL"
trigger110=enemy,name="Phantom Mizuchi JP"&&enemy,palno=12
trigger111=enemy,name="E Youmu"
trigger112=enemy,name="Kung Fu Man Special"
trigger113=enemy,name="ugokazaru"
trigger114=enemy,name=""&&enemy,authorname="Ironcommando the cheapie creator"
trigger115=enemy,name="G-Sakuya"
trigger116=enemy,name="r-mai"
trigger117=enemy,name="Crueltear=Relinquish"
trigger118=enemy,name="LastStarman"
trigger119=enemy,name="Mizuchi"&&enemy,authorname="ahuron/alma"
trigger120=enemy,name="S_Remilia"
trigger121=enemy,name="S_Sakuya"
trigger122=enemy,name="Hinako Shijo"||enemy,name="Rion"
trigger123=enemy,name="Singularity"
trigger124=enemy,name="Oswald"&&enemy,const(data.life)=4000
trigger125=enemy,name="yudasama"
trigger126=enemy,name="Mirror Cube Square"&&enemy,palno!=10
trigger127=enemy,name="Oswald Slayer"
trigger128=enemy,name="ore_no_yome"&&teamside=1
trigger129=enemy,name="alpha"
trigger130=enemy,name="Kung Fu Man"&&enemy,authorname="TadanoTabibito"
trigger131=enemy,name="Remilia Scarlet"&&enemy,authorname="SAMSARA"
trigger132=enemy,name="D.O.G."
trigger133=enemy,name="ORXE-X7855"&&enemy,authorname="SAMSARA"
trigger134=enemy,name="MAHATAYO"
trigger135=enemy,name="W-Reimu"&&enemy,palno=12
trigger136=enemy,name="ONI-MIKO-REIMU"&&(enemy,selfanimexist(13033)||enemy,selfanimexist(8995))&&teamside=1
trigger137=enemy,name="AxAyAzSSX"
trigger138=enemy,name="Generals"
trigger139=enemy,name="S-Tomy"&&enemy,selfanimexist(9005)
trigger140=enemy,name="saten"&&enemy,authorname="humi"
trigger141=enemy,name="Oniduka"&&enemy,authorname="Geese"
trigger142=enemy,name="Tenma"
trigger143=enemy,name="Obstinate_tank"
trigger144=enemy,name="Dark-Baltan"
trigger145=enemy,name="EX-Zetton"&&teamside=1
trigger146=enemy,name="Nightmare Kung Fu Men"&&teamside=1
trigger147=enemy,name="NANAY-857"&&teamside=1
trigger148=enemy,name="H-Chaos"
trigger149=enemy,name="SARIEL"
trigger150=enemy,name="manny"
trigger151=enemy,name="Hastur"
trigger152=enemy,name="C-Kill"&&enemy,authorname="STG" ;To ensure he won't detect Killer Colonel Easy
trigger153=enemy,name="White Donurem"
trigger154=enemy,authorname="Easy"
trigger155=enemy,authorname="STG"
trigger155=enemy,authorname="MatsudaSpecial"
trigger156=enemy,name="Unique Jr"
trigger157=enemy,authorname="woodheatair"
trigger158=enemy,authorname="Evil Reimu"
trigger159=enemy,authorname="Aegis"
trigger160=enemy,name="Blood Colonel"
trigger161=enemy,name="Blood Snivy"
trigger162=enemy,authorname="hayate606"
trigger163=enemy,authorname="GGG"
trigger164=enemy,name="Killer Crown"
trigger165=enemy,name="DBC"
trigger166=enemy,name="Sadist ZERO"
trigger167=enemy,authorname="Morgan6742"
trigger168=enemy,authorname="okihaito"
trigger169=enemy,name = "Chrono"
trigger170=enemy,name = "Yveltal" ;If it existed, I put this for comical purposes.
trigger171=enemy,authorname="Okihaito"
trigger172=enemy,authorname="Absolute_Concept"
trigger173=enemy,authorname="Dark"
trigger174=enemy,name="Sadist ZERO Easy"
trigger175=enemy,authorname="okihaito"
trigger176=enemy,authorname="Mario11766" ;YES, that Mario. :3
trigger177=enemy,authorname="Cedric" ;Not taking any chances. xD
trigger178=enemy,authorname="Ced Soum" ;Incase he used this name to.
trigger179=enemy,authorname="Utsuhofanboy24000" ;Real author name I think.
trigger180=enemy,name="Bayloupe" ;Not taking any chances here too. xD
trigger181=enemy,name="ONI-MIKO-X"
trigger182=enemy,name="G-Mashiro"
var(24) = 1

[State ]
type = Varset
triggerall = !IsHelper
trigger1 = enemy,name = "Crazy-Catastrophe"
sysfvar(4)=1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[state ]
type = Selfstate
trigger1 = sysfvar(4)
trigger1 = !IsHelper
value = 140
ignorehitpause = 1
SuperMoveTime = 99999999999999
PauseMoveTime = 99999999999999

[State ]
type = AssertSpecial
triggerall  = !ishelper
trigger1=enemy,name="Y-Mashiro-F"||enemy(numenemy>1),name="Y-Mashiro-F"
trigger2=enemy,name="l_reimu"||enemy(numenemy>1),name="l_reimu"
trigger3=enemy,name="iexplore"||enemy(numenemy>1),name="iexplore"
trigger4=enemy,name="Generanai"||enemy(numenemy>1),name="Generanai"
trigger5=enemy,name="Yukkuri Kedama"||enemy(numenemy>1),name="Yukkuri Kedama"
trigger6=enemy,authorname="ydccdy"||enemy(numenemy>1),authorname="ydccdy"
trigger7=enemy,name="D-Lucifer"||enemy(numenemy>1),name="D-Lucifer"
trigger8=enemy,name="True God hanyu"||enemy(numenemy>1),name="True God hanyu"
trigger9=enemy,name="DX_Machina"||enemy(numenemy>1),name="DX_Machina"
trigger10=enemy,name="Crazy-Catastrophe"||enemy(numenemy>1),name="Crazy-Catastrophe"
trigger11=enemy,name="Bayloupe"||enemy(numenemy>1),name="Bayloupe"
flag = noko
ignorehitpause=1
supermovetime=99999999
pausemovetime=99999999

[State ]
type = AssertSpecial
triggerall  = !ishelper
trigger1=enemy,name="Y-Mashiro-F"||enemy(numenemy>1),name="Y-Mashiro-F"
trigger2=enemy,name="l_reimu"||enemy(numenemy>1),name="l_reimu"
trigger3=enemy,name="iexplore"||enemy(numenemy>1),name="iexplore"
trigger4=enemy,name="Generanai"||enemy(numenemy>1),name="Generanai"
trigger5=enemy,name="Yukkuri Kedama"||enemy(numenemy>1),name="Yukkuri Kedama"
trigger6=enemy,authorname="ydccdy"||enemy(numenemy>1),authorname="ydccdy"
trigger7=enemy,name="D-Lucifer"||enemy(numenemy>1),name="D-Lucifer"
trigger8=enemy,name="True God hanyu"||enemy(numenemy>1),name="True God hanyu"
trigger9=enemy,name="DX_Machina"||enemy(numenemy>1),name="DX_Machina"
trigger10=enemy,name="Crazy-Catastrophe"||enemy(numenemy>1),name="Crazy-Catastrophe"
trigger11=enemy,name="Bayloupe"||enemy(numenemy>1),name="Bayloupe"
flag = timerfreeze
ignorehitpause=1
supermovetime=99999999
pausemovetime=99999999

[State ]
type = AssertSpecial
triggerall  = !ishelper
trigger1=enemy,name="Y-Mashiro-F"||enemy(numenemy>1),name="Y-Mashiro-F"
trigger2=enemy,name="l_reimu"||enemy(numenemy>1),name="l_reimu"
trigger3=enemy,name="iexplore"||enemy(numenemy>1),name="iexplore"
trigger4=enemy,name="Generanai"||enemy(numenemy>1),name="Generanai"
trigger5=enemy,name="Yukkuri Kedama"||enemy(numenemy>1),name="Yukkuri Kedama"
trigger6=enemy,authorname="ydccdy"||enemy(numenemy>1),authorname="ydccdy"
trigger7=enemy,name="D-Lucifer"||enemy(numenemy>1),name="D-Lucifer"
trigger8=enemy,name="True God hanyu"||enemy(numenemy>1),name="True God hanyu"
trigger9=enemy,name="DX_Machina"||enemy(numenemy>1),name="DX_Machina"
trigger10=enemy,name="Crazy-Catastrophe"||enemy(numenemy>1),name="Crazy-Catastrophe"
trigger11=enemy,name="Bayloupe"||enemy(numenemy>1),name="Bayloupe"
flag = unguardable
ignorehitpause=1
supermovetime=99999999
pausemovetime=99999999
;---------------------------------------------------------------------------
; 汎用処理
;---------------------------------------------------------------------------

[State -2, AI行動時間消費]
type = VarAdd
trigger1 = (Var(2) > 0)
v = 2
value = -1

[State -2, AI行動変数リセット]
type = VarSet
trigger1 = Var(2) = 0
v = 1
value = 0

[State -2, 無敵]
type = NotHitBy
trigger1 = (RoundState != 2);（※）
value = SCA
time = 10
supermovetime = 99999999
pausemovetime = 99999999
IgnoreHitPause = 1

[State -2, スクロール];負けて倒れたらカメラワークを相手に移す処理
type = ScreenBound
triggerall = (Life <= 0) || (!Alive) || (Lose)
trigger1 = (StateNo = 5150) && (RoundState = 4);（※）
value = 0
MoveCamera = 0,0
IgnoreHitPause = 1

[State -2, 残像表示時間];攻撃食らったら残像を強制的に消す処理
type = AfterImageTime
trigger1 = (StateNo = [800,899]) && (MoveType = H)
trigger2 = (PrevStateNo = [1000,4999]) && (StateNo = [5000,5899]) && (MoveType = H)
trigger3 = (PrevStateNo = [6000,10999]) && (StateNo = [5000,5899]) && (MoveType = H)
trigger5 = (RoundState > 3)
time = 0
IgnoreHitPause = 1

;---------------------------------------------------------------------------
; 画面一時退場演出
;---------------------------------------------------------------------------
[State -2, ステート変更]
type = Changestate
triggerall = (NumEnemy) && (RoundState = [2,3])
trigger1 = (StateNo = 1006) && (BackEdgeDist < 0) && (EnemyNear,MoveType = H)
value = 10005

;---------------------------------------------------------------------------
;大ジャンプ用処理
;---------------------------------------------------------------------------

[State -2]
type = VarRangeSet
trigger1 = (MoveType = H)
first = 35
last = 36
value = 0
IgnoreHitPause = 1

[State -2]
type = VarSet
trigger1 = (command = "holdfwd") && (Var(0) = 0)
v = 36
value = 1
IgnoreHitPause = 1

[State -2]
type = VarSet
trigger1 = (command = "holdback") && (Var(0) = 0)
v = 36
value = -1
IgnoreHitPause = 1

[State -2]
type = VarSet
trigger1 = (command != "holdfwd") && (command != "holdback") && (Var(0) = 0)
v = 36
value = 0
IgnoreHitPause = 1

[State -2]
type = VelAdd
triggerall = (var(35) = 1) && (var(36) != 0)
trigger1 = (StateType = A) && (Time > 0)
trigger1 = Vel X = [-3,3]
x = var(36)*0.8
IgnoreHitPause = 1

[State -2]
type = AssertSpecial
trigger1 = (var(35) = 1)
flag = nojugglecheck

[State -2]
type = Turn
triggerall = (var(35) = 1)
trigger1 = (StateNo = 50) && (P2Dist X < 0)

;---------------------------------------------------------------------------
; 崩れＫＯ用処理
;---------------------------------------------------------------------------

[State -2, 崩れＫＯ]
type = ChangeState
trigger1 = (PrevStateNo = [120,131]) || (PrevStateNo = [150,153])
trigger1 = (StateNo = 5000) || (StateNo = 5010)
trigger1 = (!Alive) || (Life <= 0) || (Lose)
value = 10004
IgnoreHitPause = 1

;---------------------------------------------------------------------------
; 変数の値の特定範囲をランダムで処理
;---------------------------------------------------------------------------

[State -2, 汎用ランダム]
type = VarRandom
trigger1 = 1
v = 28
range = 1,120
IgnoreHitPause = 1

;ヒットスパーク
[State -2, 弱]
type = VarRandom
trigger1 = 1
v = 43
range = 4206,4211
IgnoreHitPause = 1

[State -2, 強]
type = VarRandom
trigger1 = 1
v = 44
range = 4200,4205
IgnoreHitPause = 1

[State -2, 斬る]
type = VarRandom
trigger1 = 1
v = 45
range = 4400,4405
IgnoreHitPause = 1

[State -2, スーパーアーツ]
type = VarRandom
trigger1 = 1
v = 46
range = 4200,4205
IgnoreHitPause = 1

;---------------------------------------------------------------------------
;大ジャンプ用処理
;---------------------------------------------------------------------------

[State -2, フラグリセット]
type = VarSet
trigger1 = (StateNo != 50) && (StateNo != 10003)
v = 54
value = 0
IgnoreHitPause = 1

[State -2, フラグリセット]
type = VarSet
trigger1 = (StateNo != 50)
trigger2 = (StateNo = 50) && (command != "holdfwd" || command != "holdback")
v = 55
value = 0
IgnoreHitPause = 1

[State -2, キーを前方か後方に]
type = VarSet
trigger1 = (var(54) = 1) && (StateNo = 50)
v = 55
value = (command="holdfwd")-(command="holdback")
IgnoreHitPause = 1

;---------------------------------------------------------------------------
; 崩れＫＯ用処理
;---------------------------------------------------------------------------

[State -2, 「立ち」か「しゃがみ」を判断]
type = VarSet
triggerall = (RoundState > 1)
trigger1 = (StateNo = [120,131])
trigger2 = (StateNo = [150,153])
v = 37
value = ifelse((StateType=C),1,0)
IgnoreHitPause = 1

[State -2, No music]
type = AssertSpecial
triggerall = (Enemynear,Name = "Donald")
triggerall = RoundNo = 1
trigger1 = RoundState = 0
trigger2 = RoundState = 1
flag = nomusic

[State 0, Blue PaletteFX]
type = PalFX
triggerall = Palno = 12
trigger1 = (GameTime%100) = 0
time = 100
add = 0,0,100
mul = 256,256,256
sinadd = 0,0,100,100
invertall = 0
color = 256
IgnoreHitPause = 1

[State -2, Blue Trail]
type = AfterImage
triggerall = Palno = 12
trigger1 = Time = 1
PalContrast = 50,50,255
PalBright = 0,0,0
trans = add
time = -1
length = 30
TimeGap = 1
IgnoreHitPause = 1
