
[statedef -2]
;设定初始化


[state -2 ]
type = varadd
trigger1 = ishelper
var(1) = 1
ignorehitpause = 1



;power回复 
[State 0, PowerAdd]
type = PowerAdd
triggerall = !ishelper
trigger1 = palno != [1,3]
trigger1 = gametime%4 = 1
trigger2 = helper(999),var(2)=1
value = palno+3*(palno>6) 
ignorehitpause = 1

;探查部分 
;动画 
[State -2]
type = Parentvarset
triggerall = ishelper
triggerall = !ishelper(1505)
triggerall = playerIDexist(parent,ID)
triggerall = numtarget = 1
triggerall = target,ishelper(19961225)
triggerall = target,var(2)
triggerall = target,stateno = 1000021
trigger1 = target,var(2) != 20000000
var(18) = target,var(2)
ignorehitpause = 1


[State ParentVarSet]
type = parentvarset
triggerall = ishelper(1502)|| ishelper(1501)
trigger1 = numtarget
trigger1 = target,movereversed
trigger1 = target,anim != 20000000
trigger1 = roundstate = 2
trigger1 = !root,var(18)
var(18) = target,anim
ignorehitpause = 1 

[State ParentVarSet]
type = parentvarset
triggerall = IsHelper(1500)
triggerall = stateno != [5000,5150]
trigger1 = stateno != 1000020
trigger1 = stateno != 1000021
trigger1 = enemynear,movecontact
trigger1 = enemynear,ishelper
trigger1 = enemynear,anim != 20000000
trigger1 = roundstate = 2
trigger1 = !root,var(18)
var(18) = enemynear,anim
ignorehitpause = 1 


;即死状态 
[State -2]
type = Parentvarset
triggerall = ishelper(1503)
triggerall = playerIDexist(parent,ID)
triggerall = stateno != 1503
triggerall = stateno != [5000,5150]
triggerall = stateno != [1000020,1000022]
triggerall = stateno != [99999995,99999999] 
triggerall = movereversed
trigger1 = !root,var(20)
var(20) = stateno
[State -2]
type = Parentvarset
triggerall = ishelper(1503)
triggerall = playerIDexist(parent,ID)
triggerall = stateno != 1503
triggerall = stateno != [5000,5150]
triggerall = stateno != [1000020,1000022]
triggerall = stateno != [99999995,99999999] 
triggerall = movereversed
triggerall = root,var(20)
trigger1 = root,var(20) != stateno
trigger1 = !root,var(21)
var(21) = stateno
[State -2]
type = Parentvarset
triggerall = ishelper(1503)
triggerall = playerIDexist(parent,ID)
triggerall = stateno != 1503
triggerall = stateno != [5000,5150]
triggerall = stateno != [1000020,1000022]
triggerall = stateno != [99999995,99999999] 
triggerall = movereversed
triggerall = root,var(20)&&root,var(21)
trigger1 = root,var(21) != stateno
trigger1 = root,var(20) != stateno
trigger1 = !root,var(22)
var(22) = stateno

;超即死状态 
[State -2]
type = Parentvarset
triggerall = ishelper(1503)
triggerall = playerIDexist(parent,ID)
triggerall = stateno != 1503
triggerall = movereversed
triggerall = hitpausetime
triggerall = stateno != [99999995,99999999] 
trigger1 = !root,var(16)
var(16) = stateno
ignorehitpause = 1
[State -2]
type = Parentvarset
triggerall = ishelper(1503)
triggerall = playerIDexist(parent,ID)
triggerall = stateno != 1503
triggerall = movereversed
triggerall = hitpausetime
triggerall = !root,var(17)
triggerall = root,var(16)
triggerall = stateno != [99999995,99999999] 
trigger1 = root,var(16) != stateno
var(17) = stateno
ignorehitpause = 1


 
;潜入调查

[State 0, VarSet]
type = VarSet
triggerall = !ishelper
trigger1 = enemy,numhelper(19961226)
trigger1 = !var(19) || var(2) >= 9000
var(35) = 1
ignorehitpause = 1

[State 0, VarSet]
type = VarSet
triggerall = !ishelper
trigger1 = var(36)>=100000
trigger2 = var(35) = 0
var(36) = 0
ignorehitpause = 1
[State 0, VarSet]
type = Varadd
triggerall = !ishelper
triggerall = !enemy,numprojid(199666)
trigger1 = var(35)=1
trigger1 = roundstate = 2
trigger1 = gametime%12 = 0
var(36) = 1
ignorehitpause = 1
 




 
;经过时间记录
[State 0, VarSet]
type = VarSet
triggerall = !ishelper
trigger1 = roundstate != 2
v = 2   
value = 0
ignorehitpause = 1

[State 0, VarAdd]
type = VarAdd
triggerall = !ishelper
trigger1 = roundstate = 2
v =  2   ;fv = 
value = 1
ignorehitpause = 1
[State 0, AttackMulSet]
type = AttackMulSet
trigger1 = !ishelper
trigger1 = numexplod(99901)
value = 1+0.12*(numexplod(99901))
ignorehitpause = 1
[State 0, DefenceMulSet]
type = DefenceMulSet
trigger1 = !ishelper
trigger1 = numexplod(99901)
value = 1-0.06*(numexplod(99901))
ignorehitpause = 1
;persistent = 

;buff特效 
[state 100, explod]
type = explod
trigger1 = !ishelper
trigger1 = helper(999),var(2)
trigger1 = gametime%30 = 1
trigger1 = pos Y = 0 
anim =  8021
id = 99903
postype = P1
scale = 0.75,0.75
pos = 0,5
sprpriority =  50
ownpal = 1
movetime = 99999
supermovetime = 99999


;开幕演出helper 
[State -2]
type = Helper
triggerall = !ishelper
trigger1 = var(2) = 1
ID = 1234
name = "R2"
postype = p1
pos = 0, 0
helpertype = player
size.xscale = 1
size.yscale = 1
keyctrl = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 0, NotHitBy]
type = NotHitBy
triggerall = !ishelper
trigger1 = numhelper(20000)
trigger2 = palno = 12
trigger3 = palno = [7,11]
trigger3 = movetype = A
value = SCA,AA,AT,AP 
ignorehitpause = 1
;persistent = 



;变量锁血
;var(44)life
;var(13)12plife

[State 0, VarSet]
type = VarSet
trigger1 = roundstate = 1
trigger1 = !ishelper
v = 44    ;fv = 10
value = lifemax
ignorehitpause = 1
[State 0, VarSet]
type =  lifeSet
trigger1 = roundstate >= 2
trigger1 = !ishelper
trigger1 = palno >= 3
trigger1 = palno < 12
value = var(44)
ignorehitpause = 1
[State 0, VarSet]
type = Varadd
trigger1 = roundstate >= 2
trigger1 = !ishelper
trigger1 = palno >= 3
trigger1 = palno < 6
trigger1 = gethitvar(damage) = [1,999]
v = 44    ;fv = 10
value =  -gethitvar(damage)
[State 0, VarSet]
type = Varadd
trigger1 = roundstate >= 2
trigger1 = !ishelper
trigger1 = palno >= 6
trigger1 = palno < 8
trigger1 = gethitvar(damage) = [1,600]
v = 44    ;fv = 10
value =  -gethitvar(damage)*0.7
[State 0, VarSet]
type = Varadd
trigger1 = roundstate >= 2
trigger1 = !ishelper
trigger1 = palno >= 8
trigger1 = palno < 12
trigger1 = gethitvar(damage) = [30,300]
v = 44    ;fv = 10
value =  -gethitvar(damage)*0.4

[State 0, VarSet]
type =  lifeSet
trigger1 = roundstate >= 2
trigger1 = !ishelper
trigger1 = palno = 12
value = lifemax - (helper(20000),var(9))
ignorehitpause = 1

;亲变更helper id调查 
[State -2, ]
type = varset
triggerall = !ishelper
trigger1 = numhelper(18000)&&numhelper(18001)&&numhelper(18002)&&numhelper(18003)&&numhelper(18004)&&numhelper(18005)&&numhelper(18006)&&numhelper(18007)
trigger1 = numhelper(18008)&&numhelper(18009)&&numhelper(18010)&&numhelper(18011)&&numhelper(18012)&&numhelper(18013)&&numhelper(18014)&&numhelper(18015)
trigger1 = numhelper(18016)&&numhelper(18017)&&numhelper(18018)&&numhelper(18019)&&numhelper(18020)&&numhelper(18021)&&numhelper(18022)&&numhelper(18023)
trigger1 = (helper(18000),ID%256=[30,60])&&(helper(18001),ID%256=[30,60])&&(helper(18002),ID%256=[30,60])&&(helper(18003),ID%256=[30,60])&&(helper(18004),ID%256=[30,60])
trigger1 = (helper(18005),ID%256=[30,60])&&(helper(18006),ID%256=[30,60])&&(helper(18007),ID%256=[30,60])&&(helper(18008),ID%256=[30,60])&&(helper(18009),ID%256=[30,60])
trigger1 = (helper(18010),ID%256=[30,60])&&(helper(18011),ID%256=[30,60])&&(helper(18012),ID%256=[30,60])&&(helper(18013),ID%256=[30,60])&&(helper(18014),ID%256=[30,60])
trigger1 = (helper(18015),ID%256=[30,60])&&(helper(18016),ID%256=[30,60])&&(helper(18017),ID%256=[30,60])&&(helper(18018),ID%256=[30,60])&&(helper(18019),ID%256=[30,60])
trigger1 = (helper(18020),ID%256=[30,60])&&(helper(18021),ID%256=[30,60])&&(helper(18022),ID%256=[30,60])&&(helper(18023),ID%256=[30,60]) 
trigger2 = ctrl && teamside = 2
var(11) = (var(11)|2)
ignorehitpause = 1


[State -2]
type = Varset
triggerall = !ishelper
triggerall = 1 || var(11):= (var(11) | 1) -1
triggerall = numenemy > 1
trigger1 = !enemy(0),alive
trigger2 = enemynear(0),alive
trigger2 = enemynear(1),alive
Trigger2 = enemy,ID != enemynear,ID
var(11) = (var(11) | 1)
ignorehitpause = 1




[State -2];statetype更变1 
type = Statetypeset
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = palno != [1,9]
trigger1 = gametime % 72 = [0, 24]
statetype = S
ignorehitpause = 1

[State -2];statetype更变2
type = Statetypeset
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = palno != [1,9]
trigger1 = gametime % 72 = [25, 48]
statetype = C
ignorehitpause = 1

[State -2];statetype更变3
type = Statetypeset
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = palno != [1,9]
trigger1 = gametime % 72 = [49, 71]
statetype = A
ignorehitpause = 1



;受伤时间重置 
[state -2]
type = varset
triggerall = !ishelper
trigger1 = movetype != H
trigger1 = var(7) = gametime
var(34)= 0
ignorehitpause = 1 
;受伤时间记录 
[state -2]
type = varadd
triggerall = !ishelper
trigger1 = var(7) != gametime
trigger2 = stateno = [5000,5210]
trigger3 = movetype = H
trigger4 = stateno = [120,155]
trigger4=enemynear,movecontact
var(34)= 1
ignorehitpause = 1 

;var(34)未受伤时life
;var(35)受伤时life 
;未受伤时life记录 
[state -2]
type = varset
triggerall = !ishelper
trigger1 = var(34)=0
var(35) = life
ignorehitpause = 1 
;受伤时life记录 
[state -2]
type = varset
triggerall = !ishelper
trigger1 = var(34)
var(36) = life
ignorehitpause = 1 

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = !ishelper
trigger1 = palno = [9,12]
trigger1 = roundstate > 2
flag = noautoturn
ignorehitpause = 1

;冻结解除 
[State ]
type = Selfstate
triggerall = !ishelper
triggerall = palno != [1,10]
triggerall = hitpausetime
trigger1 = roundstate = 2
trigger1 = anim != 0
value = 14141414
persistent = 256
ignorehitpause = 1


[state -2];脱离 
type = selfstate
triggerall = enemy,name != "Barbatos_Goetia"||palno >= 8
triggerall = palno <=9
triggerall = !ishelper
triggerall = alive
triggerall = (helper(999),var(2)=1)||(helper(999),var(1)>=200)||palno>=10
triggerall = var(34) ||palno>=10;受伤时间 
triggerall = stateno != [120,155]
triggerall = roundstate = 2
triggerall = pos Y = 0 
trigger1= var(59)=0
trigger1= command ="start"
trigger2= palno >= 7 
trigger2= var(59)
trigger2= var(35)-var(36)>= 500-palno*25 ;7 
trigger3= palno >= 9
trigger3= var(7) != gametime
trigger4= palno <= 6 
trigger4= var(59)
trigger4= var(35)-var(36)> 600-palno*20
value = 1050
ignorehitpause = 1 
[state -2];脱离 
type = selfstate
triggerall = enemy,name != "Barbatos_Goetia"||palno >= 8
triggerall = palno <=9
triggerall = !ishelper
triggerall = alive
triggerall = (helper(999),var(2)=1)||(helper(999),var(1)>=200)||palno>=10
triggerall = var(34) ||palno>=10;受伤时间 
triggerall = stateno != [120,155]
triggerall = roundstate = 2
triggerall = pos Y < 0 
trigger1= var(59)=0
trigger1= command ="start"
trigger2= palno >= 7 
trigger2= var(59)
trigger2= var(35)-var(36)>= 500-palno*25 ;7 
trigger3= palno >= 9
trigger3= var(7) != gametime
trigger4= palno <= 6 
trigger4= var(59)
trigger4= var(35)-var(36)> 600-palno*20
value = 1055
ignorehitpause = 1 








[State 0, SelfState]
type = SelfState
triggerall = !ishelper 
trigger1 = var(10) = 1
value = 1060 ;受伤 
ignorehitpause = 1


;转向 
[State 0, Turn]
type = Turn
triggerall = palno != [1,9]
triggerall = p2dist X < 0
trigger1 = anim = 0
trigger2 = anim != 0
trigger2 = animelem = 1
ignorehitpause = 1

[State 0, PosSet]
type = PosSet
triggerall = palno != [1,9]
trigger1 = anim = 0
y = 0
ignorehitpause = 1




[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = !ishelper
trigger1 = palno = [9,12]
trigger1 = roundstate > 2
flag = noautoturn
ignorehitpause = 1



;动作改变 





[State 0, CtrlSet]
type = CtrlSet
triggerall = !ishelper
triggerall = palno != [1,8]
trigger1 =anim != 0
value = 0
ignorehitpause = 1
;persistent = 


[State 0, CtrlSet]
type = CtrlSet
triggerall = !ishelper
triggerall = palno != [1,8]
trigger1 =anim = 0 
trigger1 = statetype = S
trigger1 = pos Y = 0
trigger1 = roundstate = 2
value = 1
ignorehitpause = 1

[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 0
trigger1 = animtime = 0
trigger1 = anim != 941
value = 0
ignorehitpause = 1


[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [0,50]
trigger1 = anim != 200
value = 200
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [100,240]
trigger1 = anim != 210
value = 210
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = anim = 210 && animelem  = 5
value = 211
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = anim = 211 && animelem  = 7
value = 220
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [240,320]
trigger1 = anim != 400
value = 400
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [320,400]
trigger1 = anim != 420
value = 420
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [400,500]
trigger1 = anim != 800
value = 800
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = anim = 800 && animelem = 8
trigger1 = var(50) = [0,499]
trigger2 = anim = 941 && animelem = 16
trigger2 = var(50) = [0,499]
trigger3 = anim = 940 && animelem = 15
trigger3 = var(50) = [0,499]
value = 810
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = anim = 800 && animelem = 8
trigger1 = var(50) = [500,999]
trigger2 = anim = 941 && animelem = 16
trigger2 = var(50) = [500,999]
trigger3 = anim = 940 && animelem = 15
trigger3 = var(50) = [500,999]
value = 820
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [500,600]
trigger1 = anim != 830
value = 830
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [600,700]
trigger1 = anim != 910
value = 910
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [50,60]
trigger1 = anim != 920
value = 920
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [60,100]
trigger1 = anim != 1070
value = 1070
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [700,725]
trigger1 = anim != 930
value = 930
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [725,750]
trigger1 = anim != 1080
value = 1080
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [750,800]
trigger1 = anim != 940
value = 940
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [800,850]
trigger1 = anim != 1000
value = 1000
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [850,900]
trigger1 = anim != 1010
value = 1010
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [900,950]
trigger1 = anim != 1020
value = 1020
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
triggerall = palno != [1,8]
triggerall = !ishelper
trigger1 = roundstate = 2
trigger1 = ctrl = 1 || anim = 0
trigger1 = var(50)= [950,1000]
trigger1 = anim != 1030
value = 1030
ignorehitpause = 1































[State 0, SelfState]
type = SelfState
triggerall = !ishelper
triggerall = palno = [6,12]
triggerall = roundstate = 2
trigger1 = anim = 100 ||anim = 105||anim = 115||anim = 110
trigger2 = anim = 200||anim = 210||anim = 211||anim = 220
trigger3 = anim = 400||anim = 420||anim = 620||anim = 600
trigger4 = anim = 800||anim = 810||anim = 820||anim = 830
trigger5 = anim = 831||anim = 832
trigger6 = anim = 900  || anim = 910 || anim = 920 || anim = 930
trigger7 = anim = 941 || anim = 940
trigger8 = anim = 1000  || anim = 1010 || anim = 1011 || anim = 1012
trigger9 = anim = 1020 ||anim = 1021||anim = 1022||anim = 1030
trigger10 = anim = 1040 ||anim = 1050||anim = 1055||anim = 1060
trigger11 = anim = 180 
value = anim
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
triggerall = !ishelper
triggerall = palno = [9,12]
triggerall = roundstate = 2
trigger1 = anim != 100&&anim != 105&&anim != 115&&anim != 110
trigger1 = anim != 200&&anim != 210&&anim != 211&&anim != 220
trigger1 = anim != 400&&anim != 420&&anim != 620&&anim != 600
trigger1 = anim != 800&&anim != 810&&anim != 820&&anim != 830
trigger1 = anim != 831&&anim != 832
trigger1 = anim != 900&&anim != 910&&anim != 920&&anim != 930
trigger1 = anim != 941&&anim != 940
trigger1 = anim != 1000&&anim != 1010&&anim != 1011&&anim != 1012
trigger1 = anim != 1020&&anim != 1021&&anim != 1022&&anim != 1030
trigger1 = anim != 1040&&anim != 1050&&anim != 1055&&anim != 1060
trigger1 = anim != 180 
value = 120
ignorehitpause = 1





[State 0, SelfState]
type = SelfState
triggerall = palno = [9,12]
trigger1 = !ishelper
trigger1 = roundstate >= 3
trigger1 = alive
value = 120
ignorehitpause = 1


[State 0, AssertSpecial]
type = AssertSpecial
triggerall = palno != [1,9]
triggerall = !ishelper
trigger1 = roundstate > 2
flag = noko
ignorehitpause = 1




[State 0, SelfState]
type = SelfState
trigger1 = ishelper(20000)
value = 20000
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(999)
value = 999
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(1234)
value = 1234
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(901)
value = 901
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(911)
value = 911
ignorehitpause = 1

[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8000)
value = 8000
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8001)
value = 8001
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8002)
value = 8002
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8003)
value = 8003
ignorehitpause = 1

[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8004)
value = 8004
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8005)
value = 8005
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8006)
value = 8006
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8007)
value = 8007
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8008)
value = 8008
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8009)
value = 8009
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8010)
value = 8010
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8011)
value = 8011
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8012)
value = 8012
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8013)
value = 8013
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8014)
value = 8014
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8100)
value = 8100
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8101)
value = 8101
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8102)
value = 8102
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8103)
value = 8103
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8104)
value = 8104
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8105)
value = 8105
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(8106)
value = 8106
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 =ishelper(50000)
value = 50000
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 =ishelper(60000)
value = 60000
ignorehitpause = 1

[State -2]
type = Selfstate
trigger1 = ishelper(1000)
value = 1001
persistent = 256
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2000)
value = 2000
persistent = 256
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(2001)
value = 2001
persistent = 256
ignorehitpause = 1
[State -2]
type = Selfstate
trigger1 = ishelper(1500)
value = 1500
persistent = 256
ignorehitpause = 1

[State -2]
type = Selfstate
trigger1 = ishelper(1501)
value = 1501
persistent = 256
ignorehitpause = 1

[State -2]
type = Selfstate
trigger1 = ishelper(1502)
value = 1502
persistent = 256
ignorehitpause = 1

[State -2]
type = Selfstate
trigger1 = ishelper(1503)
value = 1503
persistent = 256
ignorehitpause = 1

[State -2]
type = Selfstate
trigger1 = ishelper(1504)
value = 1504
persistent = 256
ignorehitpause = 1

[State -2]
type = Selfstate
trigger1 = ishelper(155)
value = 1505
persistent = 256
ignorehitpause = 1
[State 0, SelfState]
type = Selfstate
trigger1 = ishelper(18999)
value = 18999
persistent = 256
ignorehitpause = 1
[State 0, SelfState]
type = Selfstate
trigger1 = ishelper(18000)||ishelper(18001)||ishelper(18002)||ishelper(18003)||ishelper(18004)||ishelper(18005)||ishelper(18006)||ishelper(18007)
trigger2 = ishelper(18008)||ishelper(18009)||ishelper(18010)||ishelper(18011)||ishelper(18012)||ishelper(18013)||ishelper(18014)||ishelper(18015)
trigger3 = ishelper(18016)||ishelper(18017)||ishelper(18018)||ishelper(18019)||ishelper(18020)||ishelper(18021)||ishelper(18022)||ishelper(18023)

value = ifelse((root,var(11)&2),18001,18000)
persistent = 256
ignorehitpause = 1

[State 0, SelfState]
type = Selfstate
trigger1 = ishelper(18100)||ishelper(18101)||ishelper(18102)||ishelper(18103)||ishelper(18104)||ishelper(18105)||ishelper(18106)||ishelper(18107)
trigger2 = ishelper(18108)||ishelper(18109)||ishelper(18110)||ishelper(18111)||ishelper(18112)||ishelper(18113)||ishelper(18114)||ishelper(18115)
trigger3 = ishelper(18116)||ishelper(18117)||ishelper(18118)||ishelper(18119)||ishelper(18120)||ishelper(18121)||ishelper(18122)||ishelper(18123)

value = 18100
persistent = 256
ignorehitpause = 1
