;超必殺攻撃用のステート

;---------------------------------------------------------------------------
; 超必殺
[Statedef 3000]
type     = S
movetype = A
physics  = S
ctrl     = 0
sprpriority = 2

[state ]
type=changeanim
trigger1 = anim != 1011
value = 1011

[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(2)=0
anim = 30000
postype = back
pos = 121,160
bindtime=9999
scale = 0.22,0.22
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 0
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(2)=0
anim = 7136
postype = back
pos = 0,0
bindtime=9999
scale = 1,1
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = -7
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(2)=10
anim = 7037
postype = back
pos = 360,0
facing = -1
bindtime=9999
scale = 0.5,0.5
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = -7
ownpal =1
[State 0, Pause]
type = superPause
trigger1 = animelemtime(2)=0
time =52
movetime = 52
darken = 1
anim = -1
sound = S-1,0
p2defmul = 1
poweradd = 0
unhittable = 1

[State スパークヘルパー召喚]
Type = Helper
triggerall = !ishelper
trigger1 = animelemtime(7)=0
HelperType = Player
Name = "Spark"
postype = p1
pos = 0,-50
ID = 3001
Stateno = 3001
size.mid.pos = 3001,1
Supermovetime = 2147483647	
Pausemovetime = 2147483647
Ignorehitpause = 1
ownpal =1
[State スパークヘルパー召喚]
Type = Helper
triggerall = !ishelper
trigger1 = animelemtime(13)=0
HelperType = Player
Name = "Spark"
postype = p1
pos = 0,-50
ID = 3001
Stateno = 3001
size.mid.pos = 3001,2
Supermovetime = 2147483647	
Pausemovetime = 2147483647
Ignorehitpause = 1
ownpal =1
[State スパークヘルパー召喚]
Type = Helper
triggerall = !ishelper
trigger1 = animelemtime(18)=0
HelperType = Player
Name = "Spark"
postype = p1
pos = 0,-50
ID = 3001
Stateno = 3001
size.mid.pos = 3001,3
Supermovetime = 2147483647	
Pausemovetime = 2147483647
Ignorehitpause = 1
ownpal =1

[State スパークヘルパー召喚]
Type = Helper
triggerall = !ishelper
trigger1 = animelemtime(7)>=0
trigger1 = animelemtime(7)%6=0
HelperType = Player
Name = "Spark"
postype = p1
pos = -10+random%20,-50
ID = 3001
Stateno = 3001
size.mid.pos = 3001,4
Supermovetime = 2147483647	
Pausemovetime = 2147483647
Ignorehitpause = 1
ownpal =1


[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(7)>=0
trigger1 = animelemtime(7)%12=0
anim = 7224
postype = p1
pos = 0,-50
bindtime=1
scale = 1,1
ignorehitpause =1
sprpriority = -4
ownpal =1


[state ]
type=changestate
trigger1 = animtime=0
value=0
ctrl=1


;------------------------------------------------------------------------
;ブレード
[StateDef 3001]
Type= U
MoveType = U
Physics = N
hitdefpersist = 1
hitcountpersist = 1
movehitpersist=1
sprpriority = 5

[State -1]
Type = ChangeAnim
trigger1=const(size.mid.pos.y)!=4
Trigger1 = anim!=7025
Value = 7025

[State -1]
Type = ChangeAnim
trigger1=const(size.mid.pos.y)=4
Trigger1 = anim!=7224
Value = 7224

[State 0, Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 256,256

[State 0, AngleSet]
type = AngleSet
trigger1=const(size.mid.pos.y)=1
value = 0
ignorehitpause = 1
[State 0, AngleSet]
type = AngleSet
trigger1=const(size.mid.pos.y)=2
value = 15
ignorehitpause = 1
[State 0, AngleSet]
type = AngleSet
trigger1=const(size.mid.pos.y)=3
value = -15
ignorehitpause = 1

[State 0, AngleSet]
type = AngleSet
trigger1=const(size.mid.pos.y)=4
value = -20+random%40
ignorehitpause = 1

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1

[State -1]
Type = AssertSpecial
Trigger1 = 1
flag = noshadow

[State 7050]
type =DestroySelf
trigger1 = animtime = 0

;Time代用変数
[state ]
type=varadd
trigger1 = 1
sysvar(3)=1
ignorehitpause = 1

[State 51, ステート変更]
type = Changestate
trigger1 = 1
value = 5150
persistent = 256
ignorehitpause = 1


;---------------------------------------------------------------------------
; 弾幕
[Statedef 3030]
type     = S
movetype = A
physics  = S
ctrl     = 0
sprpriority = 2

[state Time代用変数リセット]
type=varset
trigger1 = anim != 1100
sysvar(3)=0
[state ]
type=changeanim
trigger1 = anim != 1100
value = 1100
[state ]
type=varset
trigger1 = animelemtime(1)=0
sysvar(2) = 3030
ignorehitpause = 1
[state 超必殺変数リセット]
type=varset
triggerall = !ishelper
trigger1 = 1
var(41) = 0
ignorehitpause = 1

[state 常時展開スイッチON]
type=varset
trigger1 = fvar(34)
fvar(33)=1

[state ]
type=varset
trigger1 = animtime = 0
sysvar(2) = 0
ignorehitpause = 1

[state ]
type=velset
trigger1 = animelemtime(1)=0
x = 0

[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(1)=0
anim = 30001
postype = back
pos = 155,150
bindtime=9999
scale = 0.22,0.22
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 0
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(1)=0
anim = 7036
postype = back
pos = 0,0
bindtime=9999
scale = 1,1
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = -7
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(1)=10
anim = 7137
postype = back
pos = -30,120
bindtime=9999
scale = 0.6,0.6
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = -7
ownpal =1
[State 0, SuperPause]
type = SuperPause
trigger1 = animelemtime(1)=0
time = 67
anim = -1
sound = S-1,0
pos = 0,0
movetime = 67
darken = 1
p2defmul = 1
poweradd = 0
unhittable = 1

[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=[0,30]
trigger1=animelemtime(5)%8=0
anim = 7234
postype = p1
pos=-61,-75+random%30
bindtime=1
scale = 0.5,0.5
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 5
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=[0,30]
trigger1=animelemtime(5)%8=4
anim = 7234
postype = p1
pos=61,-75+random%30
bindtime=1
scale = 0.5,0.5
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 5
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=[0,40]
trigger1=animelemtime(5)%9=0
anim = 7234
postype = p1
pos=0,-120
bindtime=1
scale = 0.5,0.5
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 5
ownpal =1

[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=[0,30]
trigger1=animelemtime(5)%16=0
anim = 7021
postype = p1
pos=-61,-75+random%30
bindtime=1
scale = 0.5,0.5
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 5
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=[0,30]
trigger1=animelemtime(5)%16=8
anim = 7021
postype = p1
pos=61,-75+random%30
bindtime=1
scale = 0.5,0.5
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 5
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=[0,40]
trigger1=animelemtime(5)%18=0
anim = 7021
postype = p1
pos=0,-120
bindtime=1
scale = 0.5,0.5
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 5
ownpal =1

[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=0
anim = 11011
postype = p1
pos=-61,-75+random%30
bindtime=1
scale = 0.25,0.25
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 5
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=0
anim = 11011
postype = p1
pos=61,-75+random%30
bindtime=1
scale = 0.25,0.25
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 5
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=0
anim = 11011
postype = p1
pos=0,-120
bindtime=1
scale = 0.25,0.25
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 5
ownpal =1

[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=0
anim = 8994
postype = p1
pos=-61,-75+random%30
bindtime=1
scale = 0.7,0.7
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 3
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=0
anim = 8994
postype = p1
pos=61,-75+random%30
bindtime=1
scale = 0.7,0.7
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 3
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=0
anim = 8994
postype = p1
pos=0,-120
bindtime=1
scale = 0.7,0.7
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = 3
ownpal =1

[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=0
anim = 7132
postype = p1
pos=0,0
bindtime=1
scale = 1,1
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = -4
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1=animelemtime(5)=0
anim = 7126
postype = p1
pos=0,-50
bindtime=1
scale = 0.7,0.7
ignorehitpause =1
supermovetime = 999999
pausemovetime = 999999
sprpriority = -3
ownpal =1

[state ]
type=helper
trigger1=animelemtime(5)=[0,30]
trigger1=animelemtime(5)%8=0
id=53000
size.ground.front=53000
size.ground.back=0
size.mid.pos=53000,0
pos=-61,-75+random%30
helpertype=player
keyctrl=0
ownpal=1
pausemovetime=0
supermovetime=0

[state ]
type=helper
trigger1=animelemtime(5)=[0,30]
trigger1=animelemtime(5)%8=4
id=53001
size.ground.front=53001
size.ground.back=0
size.mid.pos=53001,0
pos=61,-75+random%30
helpertype=player
keyctrl=0
ownpal=1
pausemovetime=0
supermovetime=0

[state ]
type=helper
trigger1=animelemtime(5)=[0,40]
trigger1=animelemtime(5)%9=0
id=53002
size.ground.front=53002
size.ground.back=0
size.mid.pos=53002,0
pos=0,-120
helpertype=player
keyctrl=0
ownpal=1
pausemovetime=0
supermovetime=0

[state ]
type=helper
trigger1=animelemtime(5)=0
id=53003
size.ground.front=53003
size.ground.back=0
size.mid.pos=53003,3033
pos=31,-54-10
helpertype=player
keyctrl=0
ownpal=1
pausemovetime=0
supermovetime=0
[state ]
type=helper
trigger1=animelemtime(5)=12
id=53003
size.ground.front=53003
size.ground.back=0
size.mid.pos=53003,0
pos=1,-54-40
helpertype=player
keyctrl=0
ownpal=1
pausemovetime=0
supermovetime=0
[state ]
type=helper
trigger1=animelemtime(5)=24
id=53003
size.ground.front=53003
size.ground.back=0
size.mid.pos=53003,0
pos=-51,-20
helpertype=player
keyctrl=0
ownpal=1
pausemovetime=0
supermovetime=0

[state 防護時間]
type=varset
trigger1 = animelemtime(4)=0
trigger1 = fvar(34)=0;それ以外の設定のときは不沈艦なので防護いらない
var(6)=600

[State 210, Snd]
type=playsnd
trigger1 = animelemtime(1)=0
value=0,11
freqmul = 1
[State 210, Snd]
type=playsnd
trigger1 = animelemtime(1)=0
value=1,30
freqmul = 1

;Time代用変数
[state ]
type=varadd
trigger1 = 1
sysvar(3)=1
ignorehitpause = 1

[state ]
type=changestate
trigger1 = animtime=0
value=0
ctrl=1

[state 特殊処理ステート]
type=Selfstate
trigger1 = 1
value=51516
ctrl=0


;---------------------------------------------------------------------------
; 転生
[Statedef 3040]
type     = S
movetype = A
physics  = S
ctrl     = 0
sprpriority = 2

[state Time代用変数リセット]
type=varset
trigger1 = anim != 1200
sysvar(3)=0
[state ]
type=changeanim
trigger1 = anim != 1200
value = 1200
[state ]
type=varset
trigger1 = animelemtime(1)=0
sysvar(2) = 3040
ignorehitpause = 1
[state 超必殺変数リセット]
type=varset
triggerall = !ishelper
trigger1 = 1
var(40) = 0
ignorehitpause = 1
[state 超必殺変数リセット]
type=varset
triggerall = !ishelper
trigger1 = 1
var(42) = 0
ignorehitpause = 1
[state ]
type=varset
trigger1 = animtime = 0
sysvar(2) = 0
ignorehitpause = 1

[state ]
type=velset
trigger1 = 1
x = 0
y = 0

[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(3)>=0
trigger1 = animelemtime(3)%12=0
trigger1 = animelemtime(5)<=0
anim = 7018
postype = p1
pos = 0,-50
bindtime=1	
scale = 1,1
ignorehitpause =1
sprpriority = 6
ownpal =1

[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(3)>=0
trigger1 = animelemtime(3)%60=0
trigger1 = animelemtime(5)<=0
anim = 7226
postype = p1
pos = 0,-50
bindtime=1	
scale = 0.8,0.8
ignorehitpause =1
sprpriority = 4
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(3)>=0
trigger1 = animelemtime(3)%25=0
trigger1 = animelemtime(5)<=0
anim = 7129
postype = p1
pos = 0,-50
bindtime=1	
scale = 1.3,1.3
ignorehitpause =1
sprpriority = -5
ownpal =1


[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(6)=0
anim = 7040
postype = p1
pos = 0,-55
bindtime=1	
scale = 1,1
removetime = 120
ignorehitpause =1
sprpriority = 0
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(6)=0
anim = 7041
postype = p1
pos = 0,-55
bindtime=1	
scale = 1,1
ignorehitpause =1
sprpriority = 0
ownpal =1

[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(6)>=0
trigger1 = animelemtime(6)%15=0
trigger1 = animelemtime(6)<=130
anim = 7126
postype = p1
pos = 0,-55
bindtime=1	
scale = 1,1
ignorehitpause =1
sprpriority = -1
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(6)>=0
trigger1 = animelemtime(6)%20=0
trigger1 = animelemtime(6)<=130
anim = 7029
postype = p1
pos = 0,-50
bindtime=1	
scale = 1.5,1.5
ignorehitpause =1
sprpriority = -2
ownpal =1

[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(6)>=0
trigger1 = animelemtime(6)%35=0
trigger1 = animelemtime(6)<=130
anim = 7021
postype = p1
pos = 0,-50
bindtime=1	
scale = 1,1
ignorehitpause =1
sprpriority = 7
ownpal =1
[State , エフェクト表示]
type = Explod
trigger1 = animelemtime(6)>=0
trigger1 = animelemtime(6)%22=0
trigger1 = animelemtime(6)<=130
anim = 7030+random%2
postype = p1
pos = 0,-50
random = 20,20
facing = ifelse(random%2=0,1,-1)
vfacing = ifelse(random%2=0,1,-1)
bindtime=1	
scale = 1,1
ignorehitpause =1
sprpriority = 7
ownpal =1

[State , エフェクト表示]
type = Explod
triggerall = !ishelper
trigger1 = animelemtime(6)=0
trigger2 = animelemtime(6)=3
trigger3 = animelemtime(6)=6
trigger4 = animelemtime(6)=9
anim = 7113
bindtime = 1
postype=left
pos = -20,-20
scale = 4,4
ownpal = 1
sprpriority =-7
ignorehitpause = 1
trans=addalpha
alpha=96,256

[State 0, BGPalFX]
type = BGPalFX
trigger1 = animelemtime(3)>=0
trigger1 = animelemtime(7)<=0
time = 60
add = 0-(animelemtime(3)+ceil(animelemtime(3)*0.3)),0-(animelemtime(3)+ceil(animelemtime(3)*0.3)),0-(animelemtime(3)+ceil(animelemtime(3)*0.3))
color = 256


[State 210, Snd]
type=playsnd
trigger1= animelemtime(7)=0
value=1,4
freqmul = 1
[State 210, Snd]
type=playsnd
trigger1= animelemtime(3)=0
value=1,1
freqmul = 0.76

[State 210, Snd]
type=playsnd
trigger1 = animelemtime(3)>=0
trigger1 = animelemtime(3)%95=0
trigger1 = animelemtime(5)<=0
value=1,24
freqmul = 1

;Time代用変数
[state ]
type=varadd
trigger1 = 1
sysvar(3)=1
ignorehitpause = 1

[state ]
type=changestate
trigger1 = animtime=0
value=0
ctrl=1

[state 特殊処理ステート]
type=Selfstate
trigger1 = 1
value=51516
ctrl=0



;この下、一行以上空ける事！


