[statedef 17000]

; Striker setting (1 = disabled; 0 = enabled) ----

[state striker setting]
type=parentvarset
var(33)=    (0)                                                                                                                                       *4444
            ;(0 = enabled)
            ;(1 = disabled)
trigger1=!prevstateno
trigger1=!root,roundsexisted
trigger1=roundstate<1

;===============================================================================
;================================END OF SETTINGS================================
;==============================NOTHING TO SEE HERE==============================
;===============================================================================

[state I]
type=changeanim
value=99999
trigger1=!prevstateno

[state have]
type=hitby
value=
time=-1
trigger1=!prevstateno

[state a]
type=bindtoroot
time=-1
facing=1
trigger1=!prevstateno

[state bad]
type=removeexplod
trigger1=prevstateno=17010

[state feeling]
type=changestate
value=17010
trigger1=!prevstateno
trigger1=!root,roundsexisted
trigger1=roundstate<1

[state about]
type=changestate
value=17050
trigger1=1||var(0):=root,var(30)
trigger1=var(1):=var(2):=var(3):=-1

[statedef 17010]

[state this...]
type=varset
var(0)=random%3
triggerall=!time
trigger1=!root,numpartner
trigger2=!(partner,authorname="Kohaku")+(partner,authorname="Kohaku")*(root,id<partner,id)
trigger3=0*(var(0):=partner,var(30))

[state What?]
type=assertspecial
flag=intro
trigger1=time<360

[state I'm]
type=removeexplod
id=17001
trigger1=root,command="back"||root,command="up"
trigger1=0*(var(0):=(var(0)+2)%3)
trigger2=root,command="fwd"||root,command="down"
trigger2=0*(var(0):=(var(0)+1)%3)
trigger3=numexplod(17001)

[state still]
type=parentvarset
var(30)=var(0)
trigger1=1

[state looking]
type=explod
id=17015
anim=17013
postype=left
ontop=1
ownpal=1
facing=1
pausemovetime=99999999
supermovetime=99999999
triggerall=!numexplod(17015)
trigger1=!root,numpartner
trigger2=!(partner,authorname="Kohaku")+(partner,authorname="Kohaku")*(root,id<partner,id)

[state at]
type=explod
id=17014
anim=17013
postype=left
ontop=1
ownpal=1
facing=-1
pausemovetime=99999999
supermovetime=99999999
triggerall=!numexplod(17014)
trigger1=!root,numpartner
trigger2=!(partner,authorname="Kohaku")+(partner,authorname="Kohaku")*(root,id<partner,id)

[state the]
type=explod
id=17013
anim=17013
postype=left
ontop=1
ownpal=1
facing=1
pausemovetime=99999999
supermovetime=99999999
triggerall=!numexplod(17013)
trigger1=!root,numpartner
trigger2=!(partner,authorname="Kohaku")+(partner,authorname="Kohaku")*(root,id<partner,id)

[state equipment]
type=explod
id=17012
anim=17013
postype=left
ontop=1
ownpal=1
facing=-1
pausemovetime=99999999
supermovetime=99999999
triggerall=!numexplod(17012)
trigger1=!root,numpartner
trigger2=!(partner,authorname="Kohaku")+(partner,authorname="Kohaku")*(root,id<partner,id)

[state list.]
type=explod
id=17001
anim=17001+var(0)
postype=left
scale=.5,.5
ontop=1
ownpal=1
facing=1
pausemovetime=99999999
supermovetime=99999999
triggerall=!numexplod(17001)
trigger1=!root,numpartner
trigger2=!(partner,authorname="Kohaku")+(partner,authorname="Kohaku")*(root,id<partner,id)

[state How]
type=explod
id=17000
anim=17000
postype=left
ontop=1
ownpal=1
facing=1
scale=.5,.5
pausemovetime=99999999
supermovetime=99999999
triggerall=!numexplod(17000)
trigger1=!root,numpartner
trigger2=!(partner,authorname="Kohaku")+(partner,authorname="Kohaku")*(root,id<partner,id)

[state many]
type=playsnd
value=s17000,0
trigger1=root,command="up"
trigger2=root,command="down"
trigger3=root,command="back"
trigger4=root,command="fwd"

[state gold]
type=playsnd
value=s17000,1
trigger1=root,command="btn"

[state pieces---]
type=modifyexplod
pos=80+160*(teamside=2),216
postype=left
id=17001
trigger1=numexplod(17001)

[state Republic]
type=modifyexplod
pos=80+160*(teamside=2),204
postype=left
id=17000
trigger1=numexplod(17000)

[state credits.]
type=modifyexplod
pos=20+160*(teamside=2),204
postype=left
id=17012
scale=1/32.,8
trans=sub
trigger1=numexplod(17012)

[state Whatever.]
type=modifyexplod
pos=141+160*(teamside=2),204
postype=left
id=17013
scale=1/32.,8
trans=sub
trigger1=numexplod(17013)

[state How]
type=modifyexplod
pos=ifelse(!var(0),57,ifelse(var(0)=1,59,28))+160*(teamside=2),216
postype=left
id=17014
scale=1/16.,8
trans=sub
trigger1=numexplod(17014)

[state many]
type=modifyexplod
pos=ifelse(!var(0),103,ifelse(var(0)=1,101,132))+160*(teamside=2),216
postype=left
id=17015
scale=1/16.,8
trans=sub
trigger1=numexplod(17015)

[state do]
type=changestate
value=17000
trigger1=root,command="btn"
trigger2=roundstate>1

[statedef 17050]

[state we]
type=displaytoclipboard
text="%d %d %d %d %d"
params=var(1),var(2),var(3),var(4),var(5)
trigger1=1

[state have?]
type=changestate
value=17900
trigger1=prevstateno!=[17900,17999]

[state Uh...]
type=turn
trigger1=facing!=root,facing

[state 120]
type=poweradd
value=50+30*(var(0)=1)
trigger1=!var(1)

[state each.]
type=null
trigger1=root,var(36)
trigger1=0*(var(8):=(root,stateno=851)*root,var(36))
trigger2=root,stateno!=851
trigger2=var(8):=0
trigger3=var(1)>-1
trigger3=0*(var(1):=-1)*(var(2):=-1)

[state Hmmmmm.]
type=parentvarset
var(33)=-1
trigger1=root,var(33)<-1

[state We]
type=changestate
value=17100+var(0)*100
trigger1=1

[statedef 17100]
movetype=a

[state can't]
type=changestate
value=17050
trigger1=time

[state even]
type=removeexplod
id=855
triggerall=numexplod(855)
trigger1=root,stateno!=[850,851]
trigger2=root,stateno=851
trigger2=(root,time>19)+(root,var(31)>=0)

[state afford]
type=modifyexplod
id=855
trans=addalpha
alpha=floor(256*cos(pi/40*root,time)),256
trigger1=root,stateno!=850
trigger1=numexplod(855)

[state blasters.]
type=null
trigger1=1+(root,stateno=850)*((root,command!="hold_a")*(root,time>4)-1)
trigger1=0*(var(2):=-1)

[state Oh]
type=changestate
value=17105
trigger1=root,command="a"
trigger1=root,ctrl+(root,stateno=851)*(root,time>=12)*(root,var(31)>-1)
trigger2=root,stateno=850
trigger2=var(2)>=0
trigger2=root,time<128
trigger2=root,time<5||root,command="hold_a"
trigger3=root,stateno=851
trigger3=root,time=12
trigger3=root,var(31)>-1
trigger3=var(8)=850

[state man!]
type=attackdist
value=0
trigger1=1

[statedef 17105]
movetype=a

[state Let's]
type=changestate
value=17050
trigger1=time

[state see.]
type=null
trigger1=var(2):=var(2)+1

[state Electro-axe.]
type=changeanim
value=17102+(root,statetype!=a)*(root,command="holddown"-2)
trigger1=!var(2)

[state Energy]
type=playsnd
value=s820,0
trigger1=var(2)=1

[state mace.]
type=explod
id=855
anim=17205
facing=-1+2*(random%2)
vfacing=-1+2*(random%2)
pos=24-4*(anim=17101),ifelse(anim=17100,-55,ifelse(anim=17101,-35,-55))
sprpriority=3
ownpal=1
bindtime=-1
removetime=-1
scale=.5,.5
trigger1=var(2)=1

[state Plasma]
type=removeexplod
id=17100
trigger1=var(2)=1
trigger1=var(9):=-1
trigger1=numexplod(17100)

[state Bow??]
type=changestate
value=17800
trigger1=1

[statedef 17200]
movetype=a

[state You]
type=changestate
value=17050
trigger1=time

[state just]
type=null
trigger1=var(2)<-1
trigger1=0*(var(2):=var(2)+1)
trigger2=var(2)<var(3)
trigger2=var(3)!=1
trigger2=root,command="neu"
trigger2=0*(var(3):=7)
trigger3=var(2)>=var(3)
trigger3=0*(var(2):=-25)
trigger4=0*(var(7):=root,stateno=[860,865])

[state took]
type=varset
var(2)=-25
triggerall=var(2)>=0
trigger1=root,command="btn"
trigger2=root,command="holdback"
trigger3=root,command="holdup"
trigger4=root,command="rls_dir"
trigger4=root,command!="neu"
trigger5=root,command="fwd"
trigger6=root,command="down"

[state a]
type=changestate
value=17205
trigger1=var(2)=-1
trigger1=root,command!="holdup"
trigger1=root,command!="holdback"
trigger1=root,command="fwd"-(root,statetype!=a)*root,command="down"
trigger1=root,command!="rls_dir"
trigger1=var(3):=3-2*(var(7))
trigger2=var(2)=[0,var(3))

[state D&D]
type=attackdist
value=0
trigger1=1

[statedef 17205]
movetype=a

[state equipment]
type=changestate
value=17050
trigger1=time

[state list]
type=null
trigger1=var(2):=var(2)+1

[state and]
type=changeanim
value=17102+(root,statetype!=a)*(root,command="holddown"-2)
trigger1=!var(2)

[state stuck]
type=changeanim
value=17100
triggerall=anim=17102
trigger1=root,statetype!=a
trigger2=root,pos y>=0

[state techy]
type=changestate
value=17800
trigger1=root,ctrl
trigger2=root,stateno=[860,865]

[state words]
type=attackdist
value=0
trigger1=1

[statedef 17300]
movetype=a

[state in]
type=changestate
value=17050
trigger1=time

[state front,]
type=null
trigger1=var(2)>=0
trigger1=root,command!="holdback"+root,command="holdup"+root,command="btn"
trigger1=0*(var(2):=-8)
trigger2=var(2)<-1
trigger2=1||var(2):=var(2)+1
trigger2=root,command="holdback"
trigger2=!var(7)
trigger2=0*(var(2):=7)
trigger3=var(3)>0
trigger3=1||var(3):=var(3)-1
trigger3=root,command="neu"
trigger3=0*(var(2):=var(3):=-1)
trigger4=root,stateno!=[150,155]
trigger4=0*(var(3):=-1)
trigger5=0*(var(5):=var(4))

[state right?]
type=varadd
var(2)=1
triggerall=root,command="holdback"
triggerall=root,command!="holdup"
triggerall=(root,statetype!=a)+(root,command!="holddown")
trigger1=var(2)=-1
trigger1=var(3)=-1
trigger1=!var(7)
trigger2=var(2)=[0,6]

[state Don't]
type=null
triggerall=root,stateno=[150,155]
triggerall=!root,time
trigger1=var(4)
trigger1=(var(3):=6)+(var(1):=0)
trigger2=var(3):=0

[state be]
type=removeexplod
id=17100
trigger1=var(1)>=0
trigger1=var(9):=-2
trigger1=numexplod(17100)

[state stupid.]
type=playsnd
value=s820,4
trigger1=var(1)>=0

[state Ten]
type=attackdist
value=0
trigger1=1+(var(4):=(var(2)=[0,6])*(var(3)=-1)*(root,ctrl||root,stateno=[150,155]))+(var(7):=root,command="holdback")

[statedef 17800]
movetype=a

[state foot]
type=changestate
value=17050+755*(root,stateno=851)*!root,time
trigger1=time

[state laser]
type=reversaldef
reversal.attr=sca,aa,ap
hitflag=mafdp
sparkno=-1
hitsound=-1,-1
numhits=0
p1stateno=17805
trigger1=root,stateno!=[860,865]

[state pole...]
type=attackdist
value=0
trigger1=1

[statedef 17805]
movetype=a
facep2=1

[state So]
type=parentvarset
var(31)=var(1)+2
trigger1=1+(var(1):=(!var(0)*var(2)>4))

[state what]
type=explod
id=856
anim=17210-(11-var(7))*var(0)+!var(1)
facing=-1+2*(random%2||var(0))
vfacing=-1+2*(random%2)
pos=18-4*(anim=17101),ifelse(anim=17100,-60,ifelse(anim=17101,-40,-34))
scale=1-.5*var(0),1-.5*var(0)
sprpriority=4444
ownpal=1
pausemovetime=88888888
supermovetime=88888888
trigger1=1

[state weapons]
type=playsnd
value=s820,3-(random%2+1)*!var(0)
trigger1=1

[state can]
type=removeexplod
id=17100
trigger1=var(9):=-2
trigger1=numexplod(17100)

[state we]
type=projectile
attr=sca,aa,ap,at
hitflag=mafdp
ground.type=none
guard.dist=0
sparkno=-1
guard.sparkno=-1
hitsound=-1,-1
guardsound=-1,-1
numhits=0
priority=7,hit
projid=17000
projanim=anim
projremovetime=1
projremove=0
projedgebound=88888888
projheightbound=-88888888,88888888
pausemovetime=88888888
supermovetime=88888888
trigger1=1

[state afford?]
type=changestate
value=17050
trigger1=1

[statedef 17900]

[state There's]
type=null
triggerall=prevstateno=17050
trigger1=0*(var(18):=var(18)-(var(18)/100)*100)
trigger2=root,var(33)=-2
trigger2=var(18)%10<8
trigger2=var(10+((var(18)/10)%10+var(18)%10)%8):=100
trigger2=0*(var(18):=var(18)+1)
trigger3=var(1)>=0
trigger3=var(18)%10<8
trigger3=var(10+((var(18)/10)%10+var(18)%10)%8):=100*(4-var(0)+var(1))
trigger3=0*(var(18):=var(18)+1)
trigger4=p2movetype=h
trigger4=var(22)/10=1
trigger4=var(18)%10<8
trigger4=var(10+((var(18)/10)%10+var(18)%10)%8):=600
trigger4=0*(var(18):=var(18)+1)
trigger5=0*(var(22):=var(22)%10+10*(p2movetype=a+2*p2movetype=h))
trigger6=root,stateno=5201||root,stateno=5210
trigger6=root,time=1
trigger6=var(18)%10<8
trigger6=var(10+((var(18)/10)%10+var(18)%10)%8):=700
trigger6=0*(var(18):=var(18)+1)
trigger7=(root,stateno=root,var(36))+(root,movetype=a)
trigger7=var(22)%10!=1
trigger7=root,prevstateno=[150,155]
trigger7=root,prevstateno%2=0
trigger7=var(18)%10<8
trigger7=var(10+((var(18)/10)%10+var(18)%10)%8):=800
trigger7=0*(var(18):=var(18)+1)
trigger8=0*(var(22):=var(22)-var(22)%10+(root,movetype=a+2*root,movetype=h))
trigger9=var(21):=0

[state laser]
type=changestate
value=17910
trigger1=var(18)/100<var(18)%10

[state swords.]
type=changestate
value=17050+900*(numexplod(17100)||var(9)<0)
trigger1=1

[statedef 17910]

[state We]
type=null
triggerall=1||var(20):=10+((var(18)/10)%10+var(18)/100)%8
triggerall=1||var(21):=(var(18)/100!=0)*var(21)
triggerall=1||(var(var(20)):=var(var(20))%1000+(60-var(21)+(var(18)/100)*10)*1000)
trigger1=(var(var(20))/100)%10=[1,2]
trigger1=var(19):=225
trigger2=(var(var(20))/100)%10=3
trigger2=var(19):=86
trigger3=(var(var(20))/100)%10=4
trigger3=var(19):=141
trigger4=(var(var(20))/100)%10=5
trigger4=var(19):=94
trigger5=(var(var(20))/100)%10=6
trigger5=var(19):=174
trigger6=(var(var(20))/100)%10=7
trigger6=var(19):=143
trigger7=(var(var(20))/100)%10=8
trigger7=var(19):=204

[state can]
type=explod
id=17905+10*(var(20)-10)
anim=17013
postype=left
pos=-4444,-4444
trans=sub
bindtime=-1
removetime=100
ontop=1
ownpal=1
supermovetime=99999999
pausemovetime=99999999
trigger1=!(var(var(20))%100)

[state get]
type=explod
id=17904+10*(var(20)-10)
anim=17017
postype=left
pos=-4444,-4444
trans=sub
bindtime=-1
removetime=100
ontop=1
ownpal=1
supermovetime=99999999
pausemovetime=99999999
trigger1=!(var(var(20))%100)

[state one]
type=explod
id=17902+10*(var(20)-10)
anim=17899+(var(var(20))/100)%10
postype=left
pos=-4444,-4444
scale=.5,.5
bindtime=-1
removetime=100
ontop=1
ownpal=1
supermovetime=99999999
pausemovetime=99999999
trigger1=!(var(var(20))%100)

[state of]
type=explod
id=17901+10*(var(20)-10)
anim=17014-4*(teamside=2)
postype=left
bindtime=-1
removetime=80
ontop=1
ownpal=1
supermovetime=99999999
pausemovetime=99999999
trigger1=!(var(var(20))%100)

[state those]
type=explod
id=17900+10*(var(20)-10)
anim=17016-4*(teamside=2)
postype=left
bindtime=-1
removetime=80
ontop=1
ownpal=1
supermovetime=99999999
pausemovetime=99999999
trigger1=!(var(var(20))%100)

[state each.]
type=modifyexplod
id=17905+10*(var(20)-10)
postype=left
pos=300-(teamside=1)*(280-var(19)/2),var(var(20))/1000
scale=cos(pi/32*(var(var(20))%100-83))/16.,8.*cos(pi/32*(var(var(20))%100-83))
trigger1=var(var(20))%100>83

[state I]
type=modifyexplod
id=17905+10*(var(20)-10)
postype=left
pos=300-(teamside=1)*(280-var(19)/2),var(var(20))/1000
trigger1=var(var(20))%100=(60,83]

[state suppose]
type=modifyexplod
id=17905+10*(var(20)-10)
postype=left
pos=300-(teamside=1)*(280-var(19)/2),var(var(20))/1000
scale=(var(var(20))%100-20)/640.,8
trigger1=var(var(20))%100=[20,60]

[state they'll]
type=modifyexplod
id=17904+10*(var(20)-10)
postype=left
pos=20+(280-var(19)/2)*(teamside=2),var(var(20))/1000
scale=cos(pi/32*(var(var(20))%100-83))/16.,8.*cos(pi/32*(var(var(20))%100-83))
trigger1=var(var(20))%100>83

[state have]
type=modifyexplod
id=17904+10*(var(20)-10)
postype=left
pos=20+(280-var(19)/2)*(teamside=2),var(var(20))/1000
trigger1=var(var(20))%100=(60,83]

[state to]
type=modifyexplod
id=17904+10*(var(20)-10)
postype=left
pos=20+(280-var(19)/2)*(teamside=2),var(var(20))/1000
scale=(var(var(20))%100-20)/640.,8
trigger1=var(var(20))%100=[20,60]

[state do.]
type=modifyexplod
id=17902+10*(var(20)-10)
postype=left
pos=20+(280-var(19)/2)*(teamside=2),var(var(20))/1000
scale=.5,.5*cos(pi/32*(var(var(20))%100-83))
trigger1=var(var(20))%100>83

[state They]
type=modifyexplod
id=17902+10*(var(20)-10)
postype=left
pos=20+(280-var(19)/2)*(teamside=2),var(var(20))/1000
trigger1=var(var(20))%100=[20,83]

[state sound]
type=modifyexplod
id=17901+10*(var(20)-10)
postype=left
pos=floor(fvar(38)),var(var(20))/1000
scale=floor(var(19)/2.+16),8
triggerall=var(var(20))%100<20
triggerall=1||fvar(38):=(var(19)/2+36)*(var(var(20))%100)/20.
trigger1=teamside=1
trigger2=1||fvar(38):=320-fvar(38)

[state lame.]
type=modifyexplod
id=17901+10*(var(20)-10)
postype=left
pos=floor(fvar(38)),var(var(20))/1000
scale=floor((var(19)/2.+16)*(1-sin(pi/120*(var(var(20))%100-20)))),8
trans=addalpha
alpha=256,floor(256*((var(var(20))%100-20)/60.))
triggerall=var(var(20))%100=[20,80]
triggerall=1||fvar(38):=(var(19)/2+36)*(1+((var(var(20))%100)-20)/800.)
trigger1=teamside=1
trigger2=1||fvar(38):=320-fvar(38)

[state If]
type=modifyexplod
id=17900+10*(var(20)-10)
postype=left
pos=floor(fvar(38)),var(var(20))/1000
scale=var(19)/256.,8
trigger1=var(var(20))%100<20
trigger1=1||fvar(38):=floor(fvar(38))-(1-2*(teamside=2))*floor(var(19)/2.+16)

[state this]
type=modifyexplod
id=17900+10*(var(20)-10)
postype=left
pos=floor(fvar(38)),var(var(20))/1000
scale=var(19)/256.*(1-sin(pi/120*(var(var(20))%100-20))),8
trans=addalpha
alpha=256,floor(256*((var(var(20))%100-20)/60.))
trigger1=var(var(20))%100=[20,80]
trigger1=1||fvar(38):=floor(fvar(38))-(1-2*(teamside=2))*floor((var(19)/2.+16)*(1-sin(pi/120*(var(var(20))%100-20))))

[state is]
type=changestate
value=17900
trigger1=var(var(20))%100>83
trigger1=0*(var(21):=var(21)+floor(10.*(1-cos(pi/32*(var(var(20))%100-83)))))
trigger2=var(var(20))%100<99
trigger2=1||var(18):=var(18)+100||var(var(20)):=var(var(20))+1
trigger3=1||var(18):=var(18)-1-10*((var(18)/10)%10-((var(18)/10)%10+1)%8)

[statedef 17950]

[state a]
type=removeexplod
id=17100
trigger1=var(9)>=32

[state space]
type=palfx
time=32
add=256,256,256
mul=80*(var(7)||var(0)!=1),40+40*(var(0)!=1),80*(!var(7)||var(0)!=1)
sinadd=-256,-256,-256,128
trigger1=var(9)=-2
trigger1=var(0)

[state game,]
type=null
triggerall=var(9)=-1
trigger1=root,stateno=850
trigger1=fvar(39):=112-2*(root,anim=850)-25*(root,anim=851)
trigger2=root,stateno=851
trigger2=fvar(39):=111-3*(root,anim=853)-25*(root,anim=854)
trigger3=fvar(39):=111-6*(root,stateno=150)-28*(root,stateno=152)

[state we]
type=modifyexplod
id=17100
postype=p1
pos=0,floor(.08*fvar(39)*(var(9)**1.5)/32**1.5)
trans=addalpha
alpha=floor(256*(1-(var(9)**1.5)/32**1.5)),256
scale=1+.16*(var(9)**1.5)/32**1.5,1+.16*(var(9)**1.5)/32**1.5
trigger1=var(9):=var(9)+1+!var(0)*(var(9)>=0)
trigger1=numexplod(17100)

[state should]
type=explod
anim=root,anim
id=17100
trans=add
removetime=-1
sprpriority=4
pausemovetime=99999999
supermovetime=99999999
trigger1=!var(9)

[state have]
type=changestate
value=17050
trigger1=1
