
;---------------------------------------------------------------------------
[Statedef 70000]
type    = S                      
movetype= A                      
physics = S                      
juggle  = 1                      
;Commonly-used controllers:
velset = 0,0                     ;̃Xe[gn܂Ɉړ邩i0,0œȂj
ctrl = 0                         ;̃Xe[gɑ̃R}h󂯕t邩(1Ŏ󂯕t)
anim = 30000                      ;̃Xe[gŕ\XvCgXe[gԍ(0ŕω)
poweradd = 0                    ;̃Xe[gg̃p[(0ŕω)
sprpriority = 2                  ;\G̏dȂ(2ԑO@0ʏ@-1)

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 1
anim=989888
sprpriority=999999999999999
postype=p1
pos=0,-94
ownpal=1
ontop = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999
pausemovetime = 999999999999999999999999999999999999


[State 230, 1]
type = PlaySnd
trigger1 = time = 0
value = 111,4
volume = 255

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value = 2006,63
volume = 255

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value = 2006,63
volume = 255

[State 440, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 201
ctrl = 0
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------

[Statedef 70001]
type     = S
movetype = I
physics  = S
juggle   = 0
poweradd = 90
velset   = 0,0
anim     = 31000
ctrl     = 0
sprpriority = 2

[State 230, 1]
type = PlaySnd
trigger1 = time = 0
value = 6,15
volume = 255

[state a];Βpwp[
type = Helper
trigger1 = time >= 18
trigger1 = Gametime%4 = 1
id = 580000
name = "Hibasira"
sprpriority = 7
pos = 0,0
postype = p1
stateno = 580000
helpertype = player
pausemovetime = 0
bindtime = -1
keyctrl = 0 
ownpal = 1

[State 1000, Xe[gύX]
type = ChangeState
trigger1 = animTime = 0
value = 0
ctrl = 1
;==============================

;---------------------------------------------------------------------------
[Statedef 70002]
type    = S                      
movetype= A                      
physics = S                      
juggle  = 1                      
;Commonly-used controllers:
velset = 0,0                     ;̃Xe[gn܂Ɉړ邩i0,0œȂj
ctrl = 0                         ;̃Xe[gɑ̃R}h󂯕t邩(1Ŏ󂯕t)
anim = 32000                      ;̃Xe[gŕ\XvCgXe[gԍ(0ŕω)
poweradd = 0                    ;̃Xe[gg̃p[(0ŕω)
sprpriority = 2                  ;\G̏dȂ(2ԑO@0ʏ@-1)

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value = 2324,0
volume = 255

[State 440, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 231
ctrl = 0
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------

[Statedef 70003]
type     = S
movetype = I
physics  = S
juggle   = 0
poweradd = 90
velset   = 0,0
anim     = 33000
ctrl     = 0
sprpriority = 2

[State 230, 1]
type = PlaySnd
trigger1 = time = 0
value = 192,0
volume = 255

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 4
value = 2551,24
volume = 255

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 4
value = 2551,25
volume = 255

[State 230, 1]
type = Velset
trigger1 = time >=12
x = -12

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 4
anim=330001
ID = 6000
sprpriority=7
postype=p1
pos=24,-81
ownpal=1
ontop = 1
scale = 1,1
removetime = 180
bindtime = 180
pausemovetime=300
supermovetime=300

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 4
anim=330000
ID = 6000
sprpriority=7
postype=p1
pos=24,-81
ownpal=1
ontop = 1
scale = 1,1
removetime = 180
bindtime = 180
pausemovetime=300
supermovetime=300

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 4
anim=330003
ID = 6000
sprpriority=7
postype=p1
pos=24,-81
ownpal=1
ontop = 1
scale = 1,1
removetime = 180
bindtime = 180
pausemovetime=300
supermovetime=300

[State 24123, 2]
type = Projectile
trigger1 = AnimElem = 4
priority = 999, Hit
projremove = 0
projremovetime = 180
projhits = 999999
projmisstime = 0
projanim = 330004
projid = 24123
projpriority = 999999
projshadow = 0,0,0
projremanim = -1
projedgebound = 999999
projstagebound = 999999
projheightbound = -240, 1
supermovetime = 999999
pausemovetime = 999999
pos=24,-81
velocity = 0.0          ;˕̃Xs[h
attr = S, NA
damage   = 70,70
animtype = medium
sparkno = -1
hitflag = MAFDPLH
hitsound   = -1
pausetime = 0, 22             ;U𓖂Ă̎Ƒ̍dԁi,j
sparkxy = 35,-15
numhits = 1
ground.type = High
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = 0.0
getpower = 0, 0
givepower = -9999999999,-99999999
fall = 1
fall.damage = 99999999999

[state -2]
type = TargetLifeAdd
Trigger1 = 1
value=-999999999999999999999999999999999999999999999999999999999999999999999999999999999
ID = -1
kill = 1
absolute = 1
ignorehitpause=1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 736:	EnvShake]
type = EnvShake
trigger1 = Animelem = 4
time = 180
freq = 140
ampl = -23
phase = 90

[State 1000, Xe[gύX]
type = ChangeState
trigger1 = animTime = 0
value = 241
ctrl = 0
;==============================

;---------------------------------------------------------------------------
[Statedef 70004]
type    = S                      
movetype= A                      
physics = S                      
juggle  = 1                      
;Commonly-used controllers:
velset = 0,0                     ;̃Xe[gn܂Ɉړ邩i0,0œȂj
ctrl = 0                         ;̃Xe[gɑ̃R}h󂯕t邩(1Ŏ󂯕t)
anim = 34000                      ;̃Xe[gŕ\XvCgXe[gԍ(0ŕω)
poweradd = 0                    ;̃Xe[gg̃p[(0ŕω)
sprpriority = 2                  ;\G̏dȂ(2ԑO@0ʏ@-1)

[State 230, 1]
type = PlaySnd
trigger1 = time = 0
value = 8085,1
volume = 255

[State 440, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 251
ctrl = 0
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[Statedef 70005]
type    = S
movetype= A
physics = S
ctrl = 0
anim = 35000
poweradd = 0
velset = 0,0

[State 4001, sparks]
type=explod
trigger1 = !time
anim=989889
sprpriority=-3
postype=p1
pos=12,-75
ownpal=1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999
pausemovetime = 999999999999999999999999999999999999

[State 4001, sparks]
type=explod
trigger1 = !time
anim=989888
sprpriority=999999999999999
postype=p1
pos=12,-75
ownpal=1
ontop = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999
pausemovetime = 999999999999999999999999999999999999

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 2
anim=887549
sprpriority=-3
postype=p1
pos=0,-75
ownpal=1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999
pausemovetime = 999999999999999999999999999999999999

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 2
anim=887548
sprpriority=999999999999999
postype=p1
scale = 0.75,0.75
pos=0,-75
ownpal=1
ontop = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999
pausemovetime = 999999999999999999999999999999999999

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 2
value = 2562,20

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value = 2006,55

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value = 3030,3

[State 191, 4] 
type = ChangeState
trigger1 = AnimTime = 0
value = 261
Ctrl = 0
;---------------------------------------------------------------------------
[Statedef 70006]
type    = S                      
movetype= A                      
physics = S                      
juggle  = 1                      
;Commonly-used controllers:
velset = 0,0                     ;̃Xe[gn܂Ɉړ邩i0,0œȂj
ctrl = 0                         ;̃Xe[gɑ̃R}h󂯕t邩(1Ŏ󂯕t)
anim = 36000                      ;̃Xe[gŕ\XvCgXe[gԍ(0ŕω)
poweradd = 0                    ;̃Xe[gg̃p[(0ŕω)
sprpriority = 2                  ;\G̏dȂ(2ԑO@0ʏ@-1)

[state -2]
type = TargetLifeAdd
Trigger1 = 1
value=-999999999999999999999999999999999999999999999999999999999999999999999999999999999
ID = -1
kill = 1
absolute = 1
ignorehitpause=1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value = 2614,23
volume = 255

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value =2614,22
volume = 255

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value =2614,21
volume = 255

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value = 2614,23
volume = 255

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value =2614,22
volume = 255

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 1
value =2614,21
volume = 255

[state 195]
type = RemoveExplod
trigger1 = 1
ID = 777

[state 195]
type = RemoveExplod
trigger1 = 1
ID = 444

[state 195]
type = RemoveExplod
trigger1 = 1
ID = 445

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 1
anim=360001
ID = 2321
sprpriority=7
ontop = 1
postype=p1
pos=0,0
ownpal=1
pausemovetime=300
supermovetime=300

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 1
anim=360002
ID = 2321
sprpriority=7
ontop = 1
postype=p1
pos=0,0
ownpal=1
pausemovetime=300
supermovetime=300

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 1
anim=360000
ID = 2321
sprpriority=7
ontop = 1
postype=p1
pos=0,0
ownpal=1
pausemovetime=300
supermovetime=300

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 1
anim=360003
ID = 2321
sprpriority=-3
postype=p1
pos=0,0
ownpal=1
scale = 0.5,0.5
pausemovetime=300
supermovetime=300

[State 4001, sparks]
type=explod
trigger1 = time = 0
anim=360004
ID = 2321
sprpriority=7
ontop = 1
postype=p1
pos=0,0
ownpal=1
scale = 0.5,0.5
pausemovetime=300
supermovetime=300

[State 575775]
Type=Varadd
trigger1=life!=lifemax
sysvar(3)=-2
ignorehitpause=1

[State 440, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[Statedef -3]

[State -2]
type = BGPalFX
trigger1 = 1
time = -1
add = -255,-255,-255

[State -3]
type = Varset
trigger1=!ishelper
trigger2=ishelper
sysfvar(0) = gametime+123456789
ignorehitpause = 1

[State -3]
type=varset
trigger1=!ishelper
trigger2=ishelper
var(53)=gametime+gametime%10
ignorehitpause=1

[State -3,varset]
type = varset
trigger1 = !ishelper
trigger2=ishelper
sysfvar(2) = gametime + gametime%256 + gametime%65536 + gametime%2
ignorehitpause = 1

[State -3,varset]
type = varset
trigger1 = !ishelper
trigger2=ishelper
sysfvar(3) = 53*gametime+52+gametime%5
ignorehitpause = 1

[state -3];gametimeXe
type = varset
triggerall = !ishelper
Sysvar(2) = gametime
trigger1 = 1
ignorehitpause = 1

[State -3]
type = Varset
triggerall = var(20) = 0
trigger1 = command = "AIflag1"
trigger2 = command = "AIflag2"
trigger3 = command = "AIflag3"
trigger4 = command = "AIflag4"
trigger5 = command = "AIflag5"
trigger6 = command = "AIflag6"
trigger7 = command = "AIflag7"
trigger8 = command = "AIflag8"
trigger9 = command = "AIflag9"
trigger10 = command = "AIflag10"
trigger11 = command = "AIflag11"
trigger12 = command = "AIflag12"
trigger13 = command = "AIflag13"
trigger14 = command = "AIflag14"
trigger15 = command = "AIflag15"
trigger16 = command = "AIflag16"
trigger17 = command = "AIflag17"
trigger18 = command = "AIflag18"
trigger19 = command = "AIflag19"
trigger20 = command = "AIflag20"
trigger21 = command = "AIflag21"
trigger22 = command = "AIflag22"
trigger23 = command = "AIflag23"
trigger24 = command = "AIflag24"
trigger25 = command = "AIflag25"
trigger26 = command = "AIflag26"
trigger27 = command = "AIflag27"
trigger28 = command = "AIflag28"
trigger29 = command = "AIflag29"
trigger30 = command = "AIflag30"
trigger31 = command = "AIflag31"
trigger32 = command = "AIflag32"
trigger33 = command = "AIflag33"
trigger34 = command = "AIflag34"
trigger35 = command = "AIflag35"
trigger36 = command = "AIflag36"
trigger37 = command = "AIflag37"
trigger38 = command = "AIflag38"
trigger39 = command = "AIflag39"
trigger40 = command = "AIflag40"
trigger41 = command = "AIflag41"
trigger42 = command = "AIflag42"
trigger43 = command = "AIflag43"
trigger44 = command = "AIflag44"
trigger45 = command = "AIflag45"
trigger46 = command = "AIflag46"
trigger47 = command = "AIflag47"
trigger48 = command = "AIflag48"
trigger49 = command = "AIflag49"
trigger50 = command = "AIflag50"
trigger51 = command = "AIflag51"
trigger52 = command = "AIflag52"
trigger53 = command = "AIflag53"
trigger54 = command = "AIflag54"
trigger55 = command = "AIflag55"
trigger56 = command = "AIflag56"
trigger57 = command = "AIflag57"
trigger58 = command = "AIflag58"
trigger59 = command = "AIflag59"
trigger60 = command = "AIflag60"
trigger61 = var(43) = 1
var(20) = 2 


;------------------------------------------------------------------------------
;AI}~
[State -3]
type = VarSet
trigger1 = RoundState = 3
trigger2 = RoundState = 4
var(20) = 0
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------

[State -3]
type = ChangeState
value = 70000+random%7
triggerall = Var(20) = 2
triggerall = var(41) = 1
triggerall = Life <= 800
triggerall = !IsHelper
triggerall = statetype != A
trigger1 = ctrl = 1

[State -3]
type = ChangeState
value = 70000+random%6
triggerall = Var(20) = 2
triggerall = Life >= 801
triggerall = var(41) = 1
triggerall = !IsHelper
triggerall = statetype != A
trigger1 = ctrl = 1

[State -3]
type = ChangeState
value = 70000+random%6
triggerall = Var(20) = 2
triggerall = var(41) = 0
triggerall = !IsHelper
triggerall = statetype != A
trigger1 = ctrl = 1

