
[statedef -3]

[state ];イントロ用相手判別 (VS鬼巫女R)備考;5Pは賽銭箱が無い
type = varset
triggerall = ishelper(0)
triggerall = numenemy>0
trigger1 = p2Name="ONI-MIKO-REIMU"&&enemy,palno!=5
trigger2 = Enemy,TeamMode = Turns
trigger2 = p4Name="ONI-MIKO-REIMU"&&enemy(1),palno!=5
trigger3 = Enemy,TeamMode = Turns
trigger3 = p2Name="ONI-MIKO-REIMU"&&enemy,palno!=5&&p4Name="ONI-MIKO-REIMU"&&enemy(1),palno!=5
v = 5
value = 8901

;旧・鬼巫女には対応してないんだよなぁ（;´Д｀）
;とりあえずタッグにも対応　鬼巫女が同時に２人出てきても大丈夫
;旧・鬼巫女5Pには賽銭箱あるからそれにはイントロしたいんだが同じ名前だから感知してくれないorz








[state ]
type = selfstate
trigger1 = !ishelper
trigger1 = var(59)!=9999
trigger1 = roundstate <= 3
value = 5150
ignorehitpause = 1

[state ]
type = selfstate
triggerall = !ishelper
triggerall = var(59)=9999
trigger1 = roundstate =2&&time=0
trigger2 = var(4)>=10000&&var(5)=1&&stateno!=51515
trigger3 = var(4)>=20000&&var(5)=2&&stateno!=51515
value = 51515
ignorehitpause = 1

[state ]
type = selfstate
triggerall = !ishelper
triggerall = var(59)=9999
trigger1 = roundstate =2 && time>=0
trigger1 = var(1)>=1 && stateno!=51515
value = 51500
ignorehitpause = 1

[state ]
type = varset
trigger1 = numenemy = 1
trigger2 = numenemy = 2
trigger2 = enemynear(0),alive
fvar(0) = abs(pos x - enemynear,pos x)*ifelse(frontedgedist<ifelse((facing=enemynear,facing),(enemynear,frontedgedist),(enemynear,backedgedist)),-1,1)
ignorehitpause = 1

[state ]
type = varset
trigger1 = numenemy = 2
trigger1 = !enemynear(0),alive
fvar(0) = abs(pos x - enemynear(1),pos x)*ifelse(frontedgedist<ifelse((facing=enemynear(1),facing),(enemynear(1),frontedgedist),(enemynear(1),backedgedist)),-1,1)
ignorehitpause = 1

[state ]
type = varset
trigger1 = numenemy = 1
trigger2 = numenemy = 2
trigger2 = enemynear(0),alive
fvar(1) = (enemynear,pos y) - pos y
ignorehitpause = 1

[state ]
type = varset
trigger1 = numenemy = 2
trigger1 = !enemynear(0),alive
fvar(1) = (enemynear(1),pos y) - pos y
ignorehitpause = 1


[state ];ダメージ
type = null;varadd
trigger1 = ishelper(1)
trigger1 = Helper(1),GetHitVar(Damage)>0
trigger1 = root,palno = [1,6]
v = 2
value = 333
