;Anti_Ralsei Intro
[Statedef 120190]
[State 0, PosSet]
type = PosSet
trigger1 = 1
x = 0
y = 0
ignorehitpause = 1
[State 0, Helper]
type = Helper
trigger1 = !numhelper(120500)
helpertype = player
name = "Anti Ralsei-San!'s Helper"
ID = 120500
stateno = 120500
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
size.xscale = 2
size.yscale = 2
supermovetime = 65535
pausemovetime = 65535
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim!=120190
value = 120190
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelemtime(1)=2
value = 12000,0
ignorehitpause = 1
[State 0, ChangeState]
type = ChangeState
trigger1 = !animtime
value = 120000
ignorehitpause = 1
[State Lock]
type = SelfState
trigger1 = 1
value = 120
ignorehitpause = 1
;Anti_Ralsei Root Win
[Statedef 120180]
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim!=120180
value = 120180
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelemtime(1)=4
value = 12000,4+random%2
ignorehitpause = 1
[State Lock]
type = SelfState
trigger1 = 1
value = 120
ignorehitpause = 1
;Anti_Ralsei Aura
[Statedef 120500]
sprpriority = 4
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = 1
value = parent,anim
elem = parent,animelemno(0)
ignorehitpause = 1
[State 0, PalFX]
type = PalFX
trigger1 = 1
time = 256
add = 120,255,0
mul = 18,53,0
invertall = 0
color = 0
ignorehitpause = 
[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1
scale = 1.07+(gametime%4*0.07),1.07+(gametime%4*0.07)
ignorehitpause = 1
[State 0, Trans]
type = Trans
trigger1 = 1
trans = sub
ignorehitpause = 1
[State 0, BindToParent]
type = BindToParent
trigger1 = 1
facing = 1
pos = 0,0
ignorehitpause = 1
[State Lock]
type = SelfState
trigger1 = 1
value = 120
ignorehitpause = 1
;Anti_Ralsei Idle
[Statedef 120000]
[State 0, Turn]
type = Turn
trigger1 = p2dist x<0
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim!=120000
value = 120000
ignorehitpause = 1
[State 0, ChangeState]
type = ChangeState
trigger1 = root,win
trigger1 = roundstate=4
value = 120180
ignorehitpause = 1
[State 0, ChangeState]
type = ChangeState
trigger1 = roundstate=2
trigger1 = gametime%48=1
trigger1 = random<200
value = 120001+(random%4)
ignorehitpause = 1
[State Lock]
type = SelfState
trigger1 = 1
value = 120
ignorehitpause = 1
;Anti_Ralsei Atttack 1
[Statedef 120001]
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim!=120001
value = 120001
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelemtime(5)=2
value = 12000,1
ignorehitpause = 1
[State 0, Helper]
type = Helper
trigger1 = animelemtime(18)=2
helpertype = player
name = "Hashira"
ID = 121000
stateno = 121000
pos = 0,0
postype = p2
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 65535
pausemovetime = 65535
ignorehitpause = 1
[State 0, ChangeState]
type = ChangeState
trigger1 = !animtime
value = 120000
ignorehitpause = 1
[State Lock]
type = SelfState
trigger1 = 1
value = 120
ignorehitpause = 1
;Anti_Ralsei Teleport
[Statedef 120002]
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim!=120002
value = 120002
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelemtime(16)=2
value = 12000,3
ignorehitpause = 1
[State 0, PosSet]
type = PosSet
trigger1 = animelem=10
x = 160-random%321
ignorehitpause = 1
[State 0, ChangeState]
type = ChangeState
trigger1 = !animtime
value = 120000
ignorehitpause = 1
[State Lock]
type = SelfState
trigger1 = 1
value = 120
ignorehitpause = 1
;Anti_Ralsei Atttack 2
[Statedef 120003]
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim!=120003
value = 120003
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelemtime(2)=1
value = 12000,2
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelemtime(3)=3
value = 12100,3
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelemtime(3)=3
value = 12100,4
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelemtime(3)=3
value = 12100,5
ignorehitpause = 1
[State 0, Helper]
type = Helper
trigger1 = animelemtime(3)=2
helpertype = player
name = "Harae"
ID = 121001
stateno = 121001
pos = 42,-48
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 65535
pausemovetime = 65535
ignorehitpause = 1
[State 0, Helper]
type = Helper
trigger1 = animelemtime(3)=2
helpertype = player
name = "Harae"
ID = 121001
stateno = 121001
pos = 26,-18
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 65535
pausemovetime = 65535
ignorehitpause = 1
[State 0, Helper]
type = Helper
trigger1 = animelemtime(3)=2
helpertype = player
name = "Harae"
ID = 121001
stateno = 121001
pos = 26,-78
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 65535
pausemovetime = 65535
ignorehitpause = 1
[State 0, VelSet]
type = VelSet
trigger1 = animelemtime(3)=2
x = -4
ignorehitpause = 1
[State 0, ChangeState]
type = ChangeState
trigger1 = !animtime
value = 120000
ignorehitpause = 1
[State Lock]
type = SelfState
trigger1 = 1
value = 120
ignorehitpause = 1
;Anti_Ralsei Atttack 3
[Statedef 120004]
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim!=120004
value = 120004
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelemtime(5)=2
value = 12000,7
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelemtime(8)=2
value = 12100,6
freqmul = 3.25
ignorehitpause = 1
[State 0, EnvShake]
type = EnvShake
trigger1 = numexplod(120004)
time = 4
freq = 160
ampl = -7+random%15
ignorehitpause = 1 
[State 0, Explod]
type = Explod
trigger1 = animelemtime(8)=2
anim = 121022
ID = 120004
pos = 160,30
postype = left
facing = 1
bindtime = -1
removetime = -2
scale = .5,.5
ontop = 1
ownpal = 1
removeongethit = 1
[State 0, Explod]
type = Explod
trigger1 = animelemtime(8)=2
anim = 121020
ID = 120004
pos = 160,30
postype = left
facing = 1
bindtime = -1
removetime = 100
scale = 1.0,1.0
ontop = 1
ownpal = 1
removeongethit = 1
[State 0, Explod]
type = Explod
trigger1 = animelemtime(8)=2
anim = 121021
ID = 120004
pos = 160,30
postype = left
facing = 1
bindtime = -1
removetime = 100
scale = .75,.75
ontop = 1
ownpal = 1
removeongethit = 1
[State 0, ChangeState]
type = ChangeState
trigger1 = !animtime
value = 120000
ignorehitpause = 1
[State Lock]
type = SelfState
trigger1 = 1
value = 120
ignorehitpause = 1
;Anti_Ralsei Helper 1
[Statedef 121000]
[State Time]
type = VarAdd
trigger1 = 1
var(3) = 1
ignorehitpause = 1
[State 0, PosSet]
type = PosSet
trigger1 = 1
y = 0
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim!=910000
value = 910000
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = var(3)=2
value = 12100,0
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = var(3)=2
value = 12100,1
ignorehitpause = 1
[State 0, PlaySnd]
type = PlaySnd
trigger1 = var(3)=2
value = 12100,2
ignorehitpause = 1
[State VFX]
type = explod
trigger1 = var(3)=1
ID = 3147130
anim = 121001
postype = p1
sprpriority = 1
supermovetime = -1
removetime = -2
pos = -32,0
bindtime = -1
ontop = 1
scale = 1.0,1.25
ignorehitpause = 1
ownpal=1
pausemovetime=65535
supermovetime=65535
[State VFX]
type = explod
trigger1 = var(3)=1
ID = 3147130
anim = 121001
postype = p1
sprpriority = 1
supermovetime = -1
removetime = -2
pos = 32,0
bindtime = -1
ontop = 1
scale = 1.0,1.25
ignorehitpause = 1
ownpal=1
pausemovetime=65535
supermovetime=65535
[State VFX]
type = explod
trigger1 = var(3)=1
ID = 3147130
anim = 121002
postype = p1
sprpriority = 1
supermovetime = -1
removetime = -2
pos = 0,0
bindtime = -1
ontop = 1
scale = 0.43,0.64
ignorehitpause = 1
ownpal=1
pausemovetime=65535
supermovetime=65535
[State VFX]
type = explod
trigger1 = var(3)=1
ID = 3147130
anim = 121003
postype = p1
sprpriority = 1
supermovetime = -1
removetime = -2
pos = 0,0
bindtime = -1
ontop = 1
scale = 0.38,0.64
ignorehitpause = 1
ownpal=1
pausemovetime=65535
supermovetime=65535
[State VFX]
type = explod
trigger1 = var(3)=1
ID = 3147130
anim = 121000
postype = p1
sprpriority = 1
supermovetime = -1
removetime = -2
pos = 0,5
bindtime = -1
ontop = 1
scale = 1.0,1.25
ignorehitpause = 1
ownpal=1
pausemovetime=65535
supermovetime=65535
[State 0, DestroySelf]
type = DestroySelf
trigger1 = var(3)>8
trigger1 = !numexplod(3147130)
ignorehitpause = 1
[State Lock]
type = SelfState
trigger1 = 1
value = 120
ignorehitpause = 1
;Anti_Ralsei Helper 2
[Statedef 121001]
[State Time]
type = VarAdd
trigger1 = 1
var(3) = 1
ignorehitpause = 1
[State 0, VelSet]
type = VelSet
trigger1 = 1
x = 7.5
ignorehitpause = 1
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = anim!=910000
value = 910000
ignorehitpause = 1
[State 0, Explod]
type = Explod
trigger1 = var(3)=1
anim = 121010
ID = 121000
pos = 0,0
postype = p1
facing = 1
vfacing = 1
bindtime = -1
removetime = -1
scale = .36,.36
ontop = 1
ownpal = 1
ignorehitpause = 1
[State 0, Explod]
type = Explod
trigger1 = var(3)=1
anim = 121011
ID = 121000
pos = 0,0
postype = p1
facing = 1
vfacing = 1
bindtime = -1
removetime = -1
scale = .315,.315
ontop = 1
ownpal = 1
ignorehitpause = 1
[State 1100, Projectile]
type = Projectile
trigger1 = var(3)%3=1
ProjID = 1
projanim = 122010
projhitanim = -1
projpriority = 1
projheightbound = -240, 100
projedgebound = 100
projscreenbound = 100
projshadow = -1
projscale = 0,0
offset = 0,0
velocity = 0
attr = SCA,AA,AP,AT
damage = 9,9
animtype = medium
guardflag = 
hitflag = MAFDP
pausetime = 0,0
hitsound = s5,18
sparkno = 1
sparkxy = 0,0
guardsound = s6,0
postype = p1
numhits = 0
projhits = 1
projremovetime = 3
[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = pos x>180||pos x<-180
id = 121000
ignorehitpause = 1
[State 0, DestroySelf]
type = DestroySelf
trigger1 = pos x>180||pos x<-180
trigger1 = !numexplod(121000)
ignorehitpause = 1