[statedef -2]

[state -2]
type = selfstate
trigger1 = sysvar(4) !=gametime*123456789
value = 0
ignorehitpause = 1

[State ]
type=selfstate
triggerall=name="ignis"
triggerall=numhelper(4214)>0
trigger1=ishelper(4214)
value=4214
ignorehitpause=1

[State ]
type=selfstate
triggerall=name="ignis"
triggerall=numhelper(2001)>0
trigger1=ishelper(2001)
value=2001
ignorehitpause=1

[State ]
type=selfstate
triggerall=name="ignis"
triggerall=numhelper(2002)>0
trigger1=ishelper(2002)
value=2002
ignorehitpause=1

[State ]
type=selfstate
triggerall=name="ignis"
triggerall=numhelper(2003)>0
trigger1=ishelper(2003)
value=2003
ignorehitpause=1

[State ]
type=selfstate
triggerall=name="ignis"
triggerall=numhelper(2007)>0
trigger1=ishelper(2007)
value=2007
ignorehitpause=1

[State ]
type=selfstate
triggerall=name="ignis"
triggerall=numhelper(9)>0
trigger1=ishelper(9)
trigger1=sysvar(4)!=gametime*123456789
value=900
ignorehitpause=1

[state -2]
type = nothitby
trigger1 = 1
value= SCA
time = -1

[State ] 
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,2
hitsound = -1
ignorehitpause = 1

[State ]
type = Helper
triggerall = !ishelper && name = "ignis"
triggerall = helper(2002),numtarget<1
triggerall = numhelper(2002) = 0
trigger1 = palno = 12
trigger1 = enemy,name != "karma"
trigger1 = stateno = 2000
trigger2 = palno = [7,11]
trigger2 = stateno = 2000
trigger3 = palno = 12
trigger3 = enemy,name != "karma"
trigger3 = stateno = 2010
trigger4 = palno = [7,11]
trigger4 = stateno = 2010
name = "ateru"
stateno = 2002
ID = 2002
helpertype = player
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999
ignorehitpause = 1

[State ]
type = Helper
triggerall = !ishelper && name = "ignis"
triggerall = numhelper(2002) > 0
triggerall = numhelper(2001) < 1
triggerall = helper(2002),numtarget<1
trigger1 = palno = 12
trigger1 = enemy,name != "karma"
trigger1 = stateno = 2000
trigger2 = palno = [7,11]
trigger2 = stateno = 2000
trigger3 = palno = 12
trigger3 = enemy,name != "karma"
trigger3 = stateno = 2010
trigger4 = palno = [7,11]
trigger4 = stateno = 2010
name = "t"
stateno = 2001
ID = 2001
helpertype = player
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999
ignorehitpause = 1

[State ]
type = Helper
triggerall = !ishelper && name = "ignis"
triggerall = numhelper(2003)= 0
trigger1 = stateno = 2000
trigger1 = palno = 12
trigger1 = enemy,name != "karma"
trigger2 = stateno = 2000
trigger2 = palno = [7,11]
trigger3 = palno = 12
trigger3 = enemy,name != "karma"
trigger3 = stateno = 2010
trigger4 = palno = [7,11]
trigger4 = stateno = 2010
name = "kurai"
stateno = 2003
ID = 2003
helpertype = player
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999
ignorehitpause = 1

[State エフェクト] 
type = Explod
trigger1 = time = 1
trigger1 = stateno = 2000
trigger2 = time = 1
trigger2 = stateno = 2010
anim = 2005
ID = 2005
pos = 0,-12
vel = 0,0
postype = left
sprpriority = 0
bindtime = -1
pausemovetime = 0
supermovetime = 0
scale = 2.3,1.5
removetime = 552
facing = 1
vfacing = 1

[State -2]
type = helper
triggerall = !Ishelper
triggerall = numhelper(5001)=0
triggerall = stateno = 5000
trigger1 = palno = 12
trigger1 = enemy,name != "karma"
trigger2 = palno = [7,11]
id = 5001
name = "OTHK2"
pos = 0,1000
postype = P1
stateno = 5001
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 1
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = helper(1),gethitvar(damage)
value = -1000

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 2
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = helper(1),gethitvar(damage)
value = -250

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 3
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = helper(1),gethitvar(damage)
value = -125

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 4
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = helper(1),gethitvar(damage)
value = -100

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 5
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -75

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 6
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -50

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 7
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -40

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 8
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -25

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 9
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -20

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 10
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -15

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 11
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -10

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 12
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -1

[State アーマー]
type = helper
triggerall = !ishelper
triggerall = numhelper(1)=0
trigger1 = roundstate = 2
trigger1 = palno = [1,11]
id = 1
name = ""
postype = p1
stateno = 4214
helpertype = normal
ownpal = 0
ignorehitpause = 1

[State イグのん]
type = helper
triggerall = enemy,name != "karma"
triggerall = RoundNo = 1 
triggerall = numhelper(9) = 0
triggerall = roundstate = 0
trigger1 = palno = 12
trigger1 = enemy,name != "karma"
trigger2 = palno = [1,11]
id = 9
name = "9"
postype = p1
stateno = 192
helpertype = player
ignorehitpause = 1

[State イグのん]
type = helper
triggerall = RoundNo >= 2
triggerall = numhelper(9) = 0
triggerall = roundstate = 0
trigger1 = palno = 12
trigger1 = enemy,name != "karma"
trigger2 = palno = [1,11]
id = 9
name = "9"
postype = p1
stateno = 900
helpertype = player
ignorehitpause = 1

[State -2]
type = Poweradd
triggerall = palno = [2,12]
trigger1 = time%1 = 0
trigger1 = roundstate = 2
trigger1 = stateno != 2000
trigger1 = stateno != 2010
trigger1 = stateno != 3000
trigger1 = stateno != 5000
value = 20
ctrl = 1

[State -2]
type = Poweradd
triggerall = palno = [2,12]
trigger1 = time%1 = 0
trigger1 = stateno = 2010
value = -20
ctrl = 1

[State -2]
type = Lifeset
triggerall = palno = [5,12]
trigger1 = roundstate = 3
trigger1 = life > 0
value = 1000
ctrl = 1

[State -2]
type = Lifeset
triggerall = palno = 12
trigger1 = 1
value = 1000
ctrl = 1

[State 3000,エフェクト] 
type = Explod
triggerall = RoundNo  = 1
triggerall = NumExplod(3) = 0 
trigger1 = stateno = 0
anim = 3
ID = 3
pos = 0,-80
vel = 0,0
postype = p1
sprpriority = 1
bindtime = -1
pausemovetime = 0
supermovetime = 0
scale = 1.5,1.5
removetime = -1
facing = 1

[State 3000,エフェクト] 
type = Explod
trigger1 = RoundNo >= 2 
trigger1 = NumExplod(3) = 0
trigger1 = stateno = 5900
anim = 3
ID = 3
pos = 0,-80
vel = 0,0
postype = p1
sprpriority = 1
bindtime = -1
pausemovetime = 0
supermovetime = 0
scale = 1.5,1.5
removetime = -1
facing = 1

[State 8787,エフェクト] 
type = Explod
triggerall = RoundNo  = 1
triggerall = NumExplod(8787) = 0 
trigger1 = stateno = 0
anim = 8787
ID = 8787
pos = 0,-95
vel = 0,0
postype = p1
sprpriority = 1
bindtime = -1
pausemovetime = 0
supermovetime = 0
scale = 1,1
removetime = -1
facing = 1

[State 8787,エフェクト] 
type = Explod
trigger1 = RoundNo >= 2 
trigger1 = NumExplod(8787) = 0
trigger1 = stateno = 5900
anim = 8787
ID = 8787
pos = 0,-95
vel = 0,0
postype = p1
sprpriority = 1
bindtime = -1
pausemovetime = 0
supermovetime = 0
scale = 1,1
removetime = -1
facing = 1

[State 3000,エフェクト] 
type = RemoveExplod
trigger1 = stateno = 170
trigger2 = stateno = 175
trigger3 = stateno = 180
trigger4 = stateno = 181  
trigger5 = stateno = 5150 
ID = 3

[State 8787,エフェクト] 
type = RemoveExplod
trigger1 = stateno = 170
trigger2 = stateno = 175
trigger3 = stateno = 180
trigger4 = stateno = 181  
trigger5 = stateno = 5150 
ID = 8787

[State ]
type = AssertSpecial
triggerall = enemy,stateno !=5150
triggerall = enemy,name != "Devils eye"
triggerall = enemy,name != "test chars 3"
triggerall = enemy,name != "Death Star"
trigger1 = p2life > 0
trigger1 = palno = 12
flag = noko
ignorehitpause = 1

[State ]
type = AssertSpecial
trigger1 = palno = 12
flag = timerfreeze
ignorehitpause = 1

[state ]
type = changestate
triggerall = roundstate = 2
triggerall = time = 200
triggerall = !ishelper
trigger1 = stateno != 2000
trigger1 = stateno != 2010
trigger1 = stateno != 3000
trigger1 = stateno != 5000
value = 0

