;===========================================
;ステート：−２
;===========================================
;----------------------------------------------------------------
[Statedef -2]

[State -2];11Pステート固定
type = Selfstate
trigger1 = PalNo = 11
trigger1 = roundstate = 2
trigger1 = stateno != 99999
value = 99999
ignorehitpause = 1

[State -2]
type = Selfstate
trigger1 = ishelper(2012)
value = 2012
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2022)
value = 2022
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2023)
value = 2023
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2052)
value = 2052
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2082)
value = 2082
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2092)
value = 2092
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2093)
value = 2093
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2095)
value = 2095
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2102)
value = 2102
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2103)
value = 2103
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2132)
value = 2132
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2133)
value = 2133
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2151)
value = 2151
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2152)
value = 2152
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2999)
value = 2999
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(8001)
value = 8001
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(100000)
value = 100000
ignorehitpause = 1


[State -2];ガード不能とか
type = AssertSpecial
trigger1 = 1
flag = NoAirGuard
flag2 = NoKOSlow
ignorehitpause = 1

[state -2];ヘルパーアーマー用本体無敵
type=nothitby
triggerall = PalNo = [8,12]
trigger1=!ishelper
value=SCA
time=-1
ignorehitpause=1

[state -2];ヘルパーアーマー無敵
type=nothitby
triggerall=numhelper(2999)
triggerall=ishelper(2999)
trigger1=roundstate!=2
value=SCA
time=1
ignorehitpause=1

[state -2];本体のライフ減少
type=lifeadd
triggerall=!ishelper
triggerall=numhelper(2999)
triggerall=roundstate=2
triggerall=PalNo!=11
trigger1=helper(2999),gethitvar(damage)
trigger1=helper(2999),gethitvar(damage)<(life/6)
value=-((random%3)+1)
absolute=1
ignorehitpause=1
[state -2];本体のライフ回復
type=lifeadd
triggerall=!ishelper
triggerall=numhelper(2999)
triggerall=roundstate=2
triggerall=PalNo=[10,12]
trigger1=helper(2999),gethitvar(damage)
trigger1=helper(2999),gethitvar(damage)>(life/6)
value=((random%20)+1)
absolute=1
ignorehitpause=1

[state -2];１・２Ｐ本体のライフ減少
type=lifeadd
triggerall=!ishelper
triggerall=roundstate=2
triggerall=PalNo=[1,2]
trigger1=stateno!=[2000,2999]
trigger1=gametime%6=0
value=-10-(var(5)*5)
absolute=1
ignorehitpause=1
[state -2];３・４Ｐ本体のライフ減少
type=lifeadd
triggerall=!ishelper
triggerall=roundstate=2
triggerall=PalNo=[3,4]
trigger1=stateno!=[2000,2999]
trigger1=gametime%7=0
value=-10-(var(5)*5)
absolute=1
ignorehitpause=1
[state -2];４Ｐ〜投げ無敵
type=nothitby
triggerall = PalNo = [4,7]
trigger1=!ishelper
value= ,AT
time=-1
ignorehitpause=1
[state -2];５・６Ｐ本体のライフ減少
type=lifeadd
triggerall=!ishelper
triggerall=roundstate=2
triggerall=PalNo=[5,6]
trigger1=stateno!=[2000,2999]
trigger1=gametime%8=0
value=-10-(var(5)*5)
absolute=1
ignorehitpause=1
[state -2];７・８Ｐ本体のライフ減少
type=lifeadd
triggerall=!ishelper
triggerall=roundstate=2
triggerall=PalNo=[7,8]
trigger1=stateno!=[2000,2999]
trigger1=gametime%10=0
value=-10-(var(5)*5)
absolute=1
ignorehitpause=1
[state -2];９Ｐ本体のライフ減少
type=lifeadd
triggerall=!ishelper
triggerall=roundstate=2
triggerall=PalNo=[9,9]
trigger1=stateno!=[2000,2999]
trigger1=gametime%15=0
value=-10-(var(5)*5)
absolute=1
ignorehitpause=1
[state -2];１０Ｐ本体のライフ減少
type=lifeadd
triggerall=!ishelper
triggerall=roundstate=2
triggerall=PalNo=[10,10]
trigger1=stateno!=[2000,2999]
trigger1=gametime%20=0
value=-10-(var(5)*5)
absolute=1
ignorehitpause=1
[state -2];１２Ｐ本体のライフ減少
type=lifeadd
triggerall=!ishelper
triggerall=roundstate=2
triggerall=PalNo=[12,12]
trigger1=stateno!=[2000,2999]
trigger1=gametime%30=0
value=-10-(var(5)*5)
absolute=1
ignorehitpause=1

[State -2];現在のライフ
type = varset
trigger1 = 1
var(1) = life
[State -2];敵のライフ
type = varset
trigger1 = 1
var(2) = enemy,life

[State -2];ダメージ吸収条件
type = varset
trigger1 = 1
var(33) = (life/6)

[State -2];レベル３固定
type = Null;varset
trigger1 = 1
var(58) = 3

[state -2];11Pライフ暴走
type=lifeset
triggerall=PalNo=11
trigger1=roundstate=2
value=random+random/2

[state -2];ライフ固定
type=lifeset
trigger1=roundstate=3
trigger1=stateno!=[10000,10999]
value=lifemax/2

[state -2];パワー増加
type = Poweradd
triggerall = roundstate=2
trigger1 = gametime%5 = 0
value = PalNo*5
[state -2];レベル３ゲジマユ
type = Powerset
triggerall = roundstate=2
trigger1 = gametime%1 = 0
trigger1 = var(58) = 3
value = powermax

[state -2];非常時
type=destroyself
triggerall=numhelper(2999)
trigger1=ishelper(2999)
trigger1=stateno!=2999
ignorehitpause=1

[State -2];波動を浴びせる時
type = TargetState
trigger1 = PalNo = [7,12]
trigger1 = stateno = 2010
trigger1 = Time > 100
value = 0

[state -2];光を降らす時
type = reversaldef
triggerall = !ishelper
trigger1 = stateno = 2100
reversal.attr = sca,aa,at,ap

[State -2];吹雪を起こす時
type = TargetLifeAdd
trigger1 = PalNo = [7,12]
trigger1 = stateno = 2130
value = -99999
absolute = 1
ignorehitpause = 1
[State -2];吹雪を起こす時
type = TargetPowerAdd
trigger1 = PalNo = [7,12]
trigger1 = stateno = 2130
value = -99999
absolute = 1
ignorehitpause = 1
[State -2];吹雪を起こす時
type = TargetFacing
trigger1 = PalNo = [7,12]
trigger1 = stateno = 2130
value = ifelse(random%2=0,1,-1)
ignorehitpause = 1
;----------------------------------------------------------------
;===========================================
;ステート：−３
;===========================================
;----------------------------------------------------------------
[Statedef -3]

[State -3, 5];ジャンプ
type = PlaySnd
trigger1 = Time = 1
trigger1 = stateno = 50
trigger1 = prevstateno != 100
value = S0,21
[State -3, 5];ジャンプ
type = PlaySnd
trigger1 = Time = 1
trigger1 = stateno = 50
trigger1 = prevstateno = 100
value = S0,22

[State -3];残像
type = Afterimage
triggerall = Time = 0
trigger1 = stateno != [2000,2999]
trigger1 = roundstate > 1
trans = add
PalContrast =  0, 125, 250
PalBright = 0,0,0
time    =  -1
length  = 13
TimeGap = 1
FrameGap = 1

[state -3];ヘルパーアーマー召還
type=helper
triggerall = PalNo = [8,12]
trigger1=numhelper(2999) = 0
trigger2!=roundstate > 2
stateno=2999
helpertype = player
name="armor"
id=2999
pos=0,0
postype=p1
ownpal=0
keyctrl=0
ignorehitpause=1
pausemovetime=99999
supermovetime=99999

[state -3];11Pカオス召還
type=helper
triggerall = PalNo = 11
trigger1=numhelper(100000) = 0
trigger1=roundstate = 2
stateno=100000
helpertype = player
name="nfffffff"
id=100000
pos=0,0
postype=p1
ownpal=0
keyctrl=0
ignorehitpause=1
pausemovetime=99999
supermovetime=99999

[state -3];テスト
type=helper
trigger1=numhelper(2998) = 0
trigger2!=roundstate > 2
stateno=2998
helpertype = player
name="test"
id=2998
pos=0,0
postype=p1
ownpal=0
keyctrl=0
ignorehitpause=1
pausemovetime=99999
supermovetime=99999


[state -3];覚醒ヘルパー
type=helper
trigger1=numhelper(8001) = 0
trigger1=root,stateno!=[2000,2999]
trigger1=var(5)=1
stateno=8001
helpertype = player
name="power up"
id=8001
pos=0,0
postype=p1
ownpal=0
keyctrl=0
ignorehitpause=1
pausemovetime=99999
supermovetime=99999

[State -3];光
type = Explod
triggerall = Roundstate = 2
trigger1 = (GameTime%10) = 0
trigger1 = stateno != [2000,2999]
anim = 2+(random%2)
postype = p1
pos = 0,-30
random = 25,60
velocity = 0,-(random%4)-1
scale = (gametime%51)/100.00,(gametime%51)/100.00
accel = 0,(random%3)/10
removetime = -2
ownpal = 1
bindtime = 1
sprpriority = 9999
ignorehitpause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999

[State -3];11P：どうでもいいけど中央ポンデリングに見える
type = Explod
triggerall = Roundstate = 2
trigger1 = PalNo = 11
trigger1 = Time = 0
anim = 1090
postype = p1
pos = 0,-75
scale = 1,1
removetime = -1
bindtime = -1
ownpal = 1
sprpriority = -3
ignorehitpause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999
[State -3];11P
type = Explod
triggerall = Roundstate = 2
trigger1 = PalNo = 11
trigger1 = Time = 1
anim = 1090
postype = p1
pos = 0,-75
scale = 0.85,0.85
removetime = -1
bindtime = -1
ownpal = 1
sprpriority = -3
ignorehitpause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999
[State -3];11P
type = Explod
triggerall = Roundstate = 2
trigger1 = PalNo = 11
trigger1 = Time = 2
anim = 1090
postype = p1
pos = 0,-75
scale = 0.65,0.65
removetime = -1
bindtime = -1
ownpal = 1
sprpriority = -3
ignorehitpause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999
;----------------------------------------------------------------