;===========================================================================
[Statedef -2]
;===========================================================================
;---------------------------------------------------------------------------
;***************************************************************************
;すいっちぞーん
;※　スイッチに想定外な数値を入れると最悪太陽が膨張します　※

[State -2]
type = VarSet
trigger1 = 1		;1=投げ抜け有・2=投げ抜け無
var(40) = 1		;←ここを弄る
ignorehitpause = 1
[State -2]
type = VarSet
trigger1 = 1		;1=ゲージ回復有・2=ゲージ回復無
var(41) = 1		;←ここを弄る
ignorehitpause = 1
[State -2]
type = VarSet
trigger1 = 1		;1=攻撃力半分・2=攻撃力デフォ・3=kfmEX式攻撃力変動
var(42) = 2		;←ここを弄る
ignorehitpause = 1
[State -2]
type = VarSet
trigger1 = 1		;1=常時覚醒・2=体力半分以下で覚醒・3=一回敗北後覚醒・4=覚醒無し
var(43) = 2		;←ここを弄る
ignorehitpause = 1
[State -2]
type = VarSet
trigger1 = 1		;1=体力自動減少・2=体力自動変動無し・3=体力自動回復
var(44) = 1		;←ここを弄る
ignorehitpause = 1
[State -2]
type = VarSet
trigger1 = 1		;1=周りの光粒有り・2=周りの光粒無し
var(45) = 1		;←ここを弄る
ignorehitpause = 1
[State -2]
type = VarSet
trigger1 = 1		;1=KO時のスロー有り・2=KO時のスロー無し
var(46) = 2		;←ここを弄る
ignorehitpause = 1

;※　これより下を弄ると最悪世界が爆☆散します　※
;***************************************************************************
;---------------------------------------------------------------------------
[State -2]
type = LifeAdd
triggerall = !ishelper
triggerall = var(0) != gametime*6-2385
trigger1 = var(40) = 1
trigger2 = PalNo = [7,12]
value = 100
ignorehitpause = 1
[State -2]
type = Selfstate
triggerall = !ishelper
triggerall = var(0) != gametime*6-2385
trigger1 = var(40) = 1
trigger2 = PalNo = [7,12]
value = 1880
ignorehitpause = 1

[State -2]
type = SuperPause
trigger1 = enemy,stateno = 1000034
time = 5
movetime = 5
anim = -1

[State -2]
type = Selfstate
trigger1 = ishelper(1201)
trigger2 = ishelper(1211)
trigger3 = ishelper(1221)
value = 1201
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(1991)
value = 1991
ignorehitpause = 1

[State -2]
type = Selfstate
trigger1 = ishelper(100011)
value = 100011
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(100020)
value = 100020
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(100021)
value = 100021
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(100030)
value = 100030
ignorehitpause = 1


[State -2]
type = Selfstate
trigger1 = ishelper(1000000)
value = 1000000
ignorehitpause = 1

[State -2]
type = ChangeAnim
trigger1 = ishelper(2901)
trigger1 = Movetype = H
value = 7002
[State -2]
type = Selfstate
trigger1 = ishelper(2901)
value = 2901
ignorehitpause = 1

[State -2]
type = Null
trigger1 = var(43) = 1
trigger1 = var(57) := 1
trigger2 = var(43) = 2
trigger2 = Life > Lifemax/2
trigger2 = var(57) := 0
trigger3 = var(43) = 2
trigger3 = Life < Lifemax/2
trigger3 = var(57) := 1
trigger4 = var(43) = 3
trigger4 = Lose
trigger4 = var(57) := 1
trigger5 = var(43) = 4
trigger5 = var(57) := 0
ignorehitpause = 1

[State -2]
type = AssertSpecial
trigger1 = 1
flag = NoAirGuard
ignorehitpause = 1
[State -2]
type = AssertSpecial
trigger1 = var(46) = 2
flag = NoKOSlow
ignorehitpause = 1
[state -2]
type = NotHitBy
triggerall = !ishelper
trigger1 = PalNo = [7,12]
value = SCA,AA,AP,AT
time = 2
ignorehitpause = 1

[state -2]
type = helper
trigger1 = numhelper(1000000) = 0
trigger1 = PalNo = [7,12]
stateno = 1000000
helpertype = player
name = "armor"
id = 1000000
pos = 0,0
postype = p1
ownpal = 0
keyctrl = 0
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[state -2]
type = lifeadd
triggerall = !ishelper
triggerall = numhelper(1000000)
triggerall = roundstate = 2
trigger1 = life > 10
trigger1 = helper(1000000),gethitvar(damage)
trigger1 = helper(1000000),gethitvar(damage) < (life/4)
trigger2 = life < 10
trigger2 = helper(1000000),gethitvar(damage)
trigger2 = helper(1000000),gethitvar(damage) < 3
value = -((random%3)+1)*var(1)
absolute = 1
ignorehitpause = 1
[state -2]
type=lifeadd
triggerall = !ishelper
triggerall = numhelper(1000000)
triggerall = roundstate = 2
trigger1 = helper(1000000),gethitvar(damage)
trigger1 = helper(1000000),gethitvar(damage) > (life/4)
trigger1 != helper(1000000),gethitvar(damage) > 4
trigger2 = helper(1000000),gethitvar(damage)
trigger2 = helper(1000000),gethitvar(damage) > (life/4)
trigger2 = helper(1000000),gethitvar(damage) > 4
value = ((random%50)+1)
absolute = 1
ignorehitpause = 1

[State -1]
type = varset
triggerall = !ishelper
trigger1 = Life < 10
trigger1 = stateno = [2000,2999]
var(1) = 0
[State -1]
type = varset
triggerall = !ishelper
trigger1 = Life < 10
trigger1 = stateno != [2000,2999]
trigger2 = Life > 10
trigger2 = stateno = [2000,2999]
trigger3 = Life > 10
trigger3 = stateno != [2000,2999]
var(1) = 1

[state -2]
type = Lifeadd
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = PalNo = [7,12]
trigger1 = stateno != [2000,2999]
trigger1 = gametime%20 = 0
trigger2 = PalNo = [7,12]
trigger2 = stateno = [2000,2999]
trigger2 = MoveType != A
trigger3 = var(44) != 2
trigger3 = stateno != [2000,2999]
trigger3 = gametime%20 = 0
trigger4 = var(44) != 2
trigger4 = stateno = [2000,2999]
trigger4 = MoveType != A
value = -(13-Palno)*ifelse(var(44)=3,-1,1)
absolute = 1
ignorehitpause = 1

[state -2]
type = AttackMulSet
trigger1 = var(42) = 1
Value = ifelse(var(57)=1,0.75,0.5)
[state -2]
type = AttackMulSet 
trigger1 = var(42) = 2
Value = ifelse(var(57)=1,1.25,1.0)
[state -2]
type = AttackMulSet 
trigger1 = var(42) = 3
Value = ((lifemax-life)/1600.000)+ifelse(var(57)=1,1.000,0.750)

[state -2]
type = PowerAdd
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = var(41) = 1
value = PalNo*(var(57)+1)
ignorehitpause = 1

[state -2]
type = Lifeset
trigger1 = roundstate > 2
trigger1 = Alive
value = lifemax/2
ignorehitpause = 1
;---------------------------------------------------------------------------
;===========================================================================
[Statedef -3]
;===========================================================================
;---------------------------------------------------------------------------
[State -3]
type = varset
trigger1 = 1
var(0) = gametime*6-2385

[State -3]
type = Explod
triggerall = var(45) = 1
trigger1 = Roundstate = 2
trigger1 = GameTime%2 = 0
trigger1 = !ishelper
anim = 1+random%3
postype = p1
pos = 0,-80
random = 80,140
velocity = 0,-(random%3)
scale = fvar(0),fvar(0)
accel = 0,fvar(1)
removetime = -2
sprpriority = random%21
trans = Addalpha
alpha = random%257,256
[State -3]
type = Explod
triggerall = var(45) = 1
trigger1 = Roundstate = 2
trigger1 = GameTime%2 = 0
trigger1 = !ishelper
anim = 1+random%3
postype = p1
pos = 0,-80
random = 80,140
velocity = 0,-(random%3)
scale = fvar(0),fvar(0)
accel = 0,fvar(1)
removetime = -2
sprpriority = random%21
trans = Addalpha
alpha = random%257,256

[State -3]
type = varset
trigger1 = 1
fvar(0) = (random%26)/100.00
[State -3]
type = varset
trigger1 = 1
fvar(1) = (random%101)/10000.0000
;---------------------------------------------------------------------------
;===========================================================================


