; サンプルキャラクター『カンフーマン』のコンスタンツとステートのファイルです。
;===========================================================================
; コンスタンツ（定数）
;===========================================================================
;---------------------------------------------------------------------------
; ここがキャラの心臓部とも言うべき場所。
; １キャラ単位のライフや大きさなど、標準のステータスを予め決めておく部分。
; このコーナー自体省略出来ません。
;---------------------------------------------------------------------------
; 基本データ
;---------------------------------------------------------------------------
[Data]
life              = 1000   ;ライフ（体力ゲージ）最大値
power             = 3000   ;パワーゲージ最大値（オプション・デフォルトは3000=Lv.3）
attack            = 100    ;攻撃力（デフォルトは１００％）
defence           = 100    ;防御力（デフォルトは１００％）
fall.defence_up   = 50     ;横に倒れている時に一時的に加える防御力（％）
liedown.time      = 60     ;横に倒れている時間（フレーム）
airjuggle         = 15     ;ジャグルポイント限界値（「小ネタ.txt」参照）
sparkno           = 2      ;デフォルトのヒットスパーク（fightfxから）
guard.sparkno     = 40     ;デフォルトのガードスパーク（fightfxから）
KO.echo           = 0      ;ＫＯ時の音声（11,0）にエコーを掛けるか否か（0=掛けない,1=掛ける）
volume            = 0      ;キャラの標準の音量（最小-255・最大255）
IntPersistIndex   = 58     ;次のラウンドへ持ち越せる「Var」のアドレスの範囲を決める（※１）
FloatPersistIndex = 40     ;次のラウンドへ持ち越せる「FVar」のアドレスの範囲を決める（※１）

;---------------------------------------------------------------------------
; ※１：変数のラウンド持ち越し方法
;
; 　変数を次のラウンドへ持ち越したい場合は、↑の
; 　「IntPersistIndex」と「FloatPersistIndex」を使う。
; 　そのやり方はM.U.G.E.Nの説明書にすら載ってないので、ここで例を元に解説。
;
; 　①IntPersistIndex = 23　（Var(23)～Var(59)までを全て次のラウンドへ持ち越せる）
; 　②FloatPersistIndex = 18（FVar(18)～FVar(39)までを全て次のラウンドへ持ち越せる）
;
; 　つまり「Var(**)（Fvar(**)）以降全ての変数を持ち越す」という命令になる。
; 　それ以前のアドレスの変数は全て持ち越さなくなる。
;
; 　全ての変数を持ち越さない場合は、
; 　IntPersistIndexは60以上、FloatPersistIndexは40以上にしておこう。
;
; 　×これはダメ×
; 　　①IntPersistIndex = 10,15,20,25　（15,20,25の部分は意味無し）
; 　　②FloatPersistIndex = 4,16 　　　（16の部分は意味無し）
; 　　これらは最初の数字以外全て無効。
; 
;---------------------------------------------------------------------------
; 改訂前の和訳ＫＦＭではPersistIndexの解釈が無茶苦茶間違ってました。
; 大変失礼致しました。(人・ω・｀)ごめんなさい
; 今回はちゃんと調べて正確な情報を載せてるんで安心してください（苦笑
;---------------------------------------------------------------------------
; サイズ
;---------------------------------------------------------------------------
[Size]
xscale           = 1      ;キャラの横の大きさ（絶対値・float）
yscale           = 1   ;キャラの縦の大きさ（絶対値・float）
ground.back      = 40      ;地上にいる時の「後方の物理的な幅」
ground.front     = 40      ;地上にいる時の「前方の物理的な幅」
air.back         = 40      ;空中にいる時の「後方の物理的な幅」
air.front        = 40      ;空中にいる時の「前方の物理的な幅」
height           = 50      ;キャラの物理的な高さ（高いほど相手は飛び越しにくくなる）
attack.dist      = 160     ;相手がガード態勢に入る最低の距離
proj.attack.dist = 90      ;自分の「Projectile」に対して相手がガード態勢に入る最低の距離
proj.doscale     = 1       ;xscaleとyscaleを「Projectile」にも影響させるか否か（0=させない・1=させる）
head.pos         = -5,-90  ;キャラの標準の頭の座標（Bind系で適用される）
mid.pos          = -5,-60  ;キャラの標準の体中心の座標（Bind系で適用される）
shadowoffset     = 0       ;影のＹ軸方向の位置座標
draw.offset      = 0,0     ;キャラの表示座標（Ｘ軸,Ｙ軸）

;---------------------------------------------------------------------------
; 移動速度
;---------------------------------------------------------------------------
[Velocity]
walk.fwd     = 2         ;前進速度（Ｘ軸・[Statedef 20]に適用される）
walk.back    = -2        ;後退速度（Ｘ軸・[Statedef 20]に適用される）
run.fwd      = 3,0       ;前方に走る速度（Ｘ軸,Ｙ軸・[Statedef 100]に適用される）
run.back     = -3,-3  ;後方に走る速度（Ｘ軸,Ｙ軸・[Statedef 105]に適用される）
jump.neu     = 0,-5      ;垂直ジャンプの速度（Ｘ軸,Ｙ軸・[Statedef 40]に適用される）
jump.back    = -2.55       ;後方ジャンプの速度（Ｘ軸・[Statedef 40]に適用される）
jump.fwd     = 2.5         ;前方ジャンプの速度（Ｘ軸・[Statedef 40]に適用される）
runjump.back = -2.55,-4.4  ;後方に走ってからのジャンプ速度（Ｘ軸,Ｙ軸・[Statedef 40]に適用される）
runjump.fwd  = 2,-4.4     ;前方に走ってからのジャンプ速度（Ｘ軸,Ｙ軸・[Statedef 40]に適用される）
airjump.neu  = 0,-8.1      ;空中垂直ジャンプ速度（Ｘ軸,Ｙ軸・[Statedef 45]に適用される）
airjump.back = -2.55       ;空中後方ジャンプ速度（Ｘ軸・[Statedef 45]に適用される）
airjump.fwd  = 2.5         ;空中前方ジャンプ速度（Ｘ軸・[Statedef 45]に適用される）

;---------------------------------------------------------------------------
; 運動関係
;---------------------------------------------------------------------------
[Movement]
airjump.num     = 0       ;空中ジャンプが出来る回数
airjump.height  = 35       ;空中ジャンプが出来る最低の高度（Ｙ軸）
yaccel          = .2      ;Ｙ軸加速度（重力）
stand.friction  = .85      ;立っている時の摩擦係数（ステートのPhysicsが「S」の時）
crouch.friction = .82      ;しゃがんでいる時の摩擦係数（ステートのPhysicsが「C」の時）

;===========================================================================
; ステート
;===========================================================================
;---------------------------------------------------------------------------
; ここからはキャラのそれぞれの行動（ステート）を設定する。
; 番号（ステートナンバー）に気を付ければ良いだけで、
; 行動の決め方もステートの数も作りたいキャラによって自由。
;
; 本来ステートは別のファイルとして扱っているものだけど、
; このようにコンスタンツファイルと一緒にまとめる事も可能。
;
; ステートの基本的な設定はおまけフォルダの「テンプレート.txt」を参照。
;===========================================================================
; 基本行動
;===========================================================================
;---------------------------------------------------------------------------
;タイムオーバー（負けた時）
[Statedef 170]
type = S
ctrl = 0
;anim = 170
velset = 0,0
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State 110, 8]
type = changeanim
trigger1 = anim != 170
value = 170
ignorehitpause = 1

[State 170]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
ignorehitpause = 1

[State 110, 8]
type = varadd
trigger1 = 1
var(58) = 1
ignorehitpause = 1

[State 200 , 2]
type = assertspecial
trigger1 = var(58) >= 110
flag = invisible
ignorehitpause = 1

[State 200 , 2]
type = PlaySnd
trigger1 = var(58) = 100
value = s900,1
ignorehitpause = 1

[state 195]
type = Explod
trigger1 = var(58) = 100
anim = 1911
postype = p1
pos = 0,0
sprpriority = 7
scale = 2,2
removetime = 78
;ontop = 1
ownpal = 1
trans = add
supermovetime = 9999999999
pausemovetime = 9999999999

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
; Win state decider
; CNS difficulty: basic
; CNS レベル: 基本
[Statedef 180]
type = S
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State 180, 1]
type = ChangeState
trigger1 = 1
value = 181
ignorehitpause = 1
;---------------------------------------------------------------------------
;勝利ポーズ
[Statedef 181]
type = S
ctrl = 0
;anim = 181
velset = 0,0
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State 110, 8]
type = varadd
trigger1 = 1
var(58) = 1
ignorehitpause = 1

[State 110, 8]
type = changeanim
trigger1 = anim != 181
value = 181
ignorehitpause = 1

[State 200 , 2]
type = assertspecial
trigger1 = var(58) >= 220
flag = invisible
ignorehitpause = 1

[State 200 , 2]
type = PlaySnd
trigger1 = var(58) = 210
value = s900,1
ignorehitpause = 1

[state 195]
type = Explod
trigger1 = var(58) = 210
anim = 1911
postype = p1
pos = 0,0
sprpriority = 7
scale = 2,2
removetime = 78
;ontop = 1
ownpal = 1
trans = add
supermovetime = 9999999999
pausemovetime = 9999999999

[State 191]
type = PlaySnd
triggerall = var(58) < 250
trigger1 = Animelem = 5
value = 11,0
ignorehitpause = 1

[State 181]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
ignorehitpause = 1

;[State 181] ;sorry have to remove the second matchover winpose
;type = ChangeState
;triggerall = MatchOver
;trigger1 = Time = 0
;value = 182

[State 5150, 9] 
type = AssertSpecial
trigger1 = var(58) < 300
flag = roundnotover
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;決着
;[Statedef 182]
;type = S
;physics = N
;ctrl = 0
;anim = 20
;velset = 0,0
;hitdefpersist = 1
;movehitpersist = 1

;[State 110, 8]
;type = ChangeState
;trigger1 = name != "Allosaurus"
;value = 5150
;ignorehitpause = 1

;[State 182]
;type = PlaySnd
;triggerall = Anim = 20
;trigger1 = animelem = 6
;trigger2 = animelem = 9
;value = 20, 0

;[State 182]
;type = velset
;trigger1 = time = 0
;x = const(velocity.walk.fwd.x)

;[State 182]
;type = velset
;Trigger1 = Floor(enemynear,Pos X - Pos X )*facing < 30
;Trigger2 = Anim = 20
;Trigger2 = time > 300
;x = 0
;persistent = 0

;[State 182]
;type = changeanim
;Trigger1 = Floor(enemynear,Pos X - Pos X )*facing < 30
;Trigger2 = Anim = 20
;Trigger2 = time > 300
;value = 182
;persistent = 0

;[State 182, ]
;type = PlaySnd
;triggerall = Anim = 182
;trigger1 = Animelem = 3
;trigger2 = Animelem = 10
;value = 0,2

;[State 182, ]
;type = PlaySnd
;trigger1 = Anim = 182
;trigger1 = Animelem = 25
;value = 11,0

;[State 181]
;type = NotHitBy
;trigger1 = 1
;value = SCA
;time = 1

;[State 5150, 9]
;type = AssertSpecial
;trigger1 = Time < 420
;flag = roundnotover
;---------------------------------------------------------------------------
;イントロ
[Statedef 191]
type = S
physics = N
ctrl = 0
anim = 190
velset = 0,0
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State 191]
type = AssertSpecial
trigger1 = 1
flag = Intro
ignorehitpause = 1

[State 200 , 2]
type = PlaySnd
trigger1 = animelem = 2
value = s900,1
ignorehitpause = 1

[state 195]
type = Explod
trigger1 = animelem = 2
anim = 1911
postype = p1
pos = 0,0
sprpriority = 7
scale = 2,2
removetime = 78
;ontop = 1
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 191]
type = PlaySnd
trigger1 = Animelem = 5
trigger2 = animelem = 18
;trigger3 = time = 140
value = 11,0
ignorehitpause = 1

[State 191,]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ignorehitpause = 1
;---------------------------------------------------------------------------
;挑発
[Statedef 195]
type = S
movetype = A
physics = S
ctrl = 0
;anim = 195
velset = 0,0
sprpriority = 2
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State 191]
type = ChangeAnim
trigger1 = anim != 195
value = 195
ignorehitpause = 1

[State ]
type = varadd
triggerall = sysfvar(4) >= 1000
trigger1 = animelem = 2
sysfvar(4) = -1000
ignorehitpause = 1

[State ]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State ]
type = posset
trigger1 = animelem = 1
y = 0
ignorehitpause = 1

[State ]
type = velset
trigger1 = animelem = 1
x = 0
y = 0
ignorehitpause = 1

[State 191]
type = PlaySnd
trigger1 = Animelem = 1
;trigger2 = animelem = 16
value = 11,0
channel = 10
ignorehitpause = 1

[State 181, エフェクト]
type = Explod
trigger1 = Animelem = 1
anim = 41002
facing = 1
postype = p1
pos = ceil(0*const(size.xscale)), ceil(-60*const(size.yscale))
sprpriority = 3
ownpal = 1
scale = .5,.5
pausemovetime = 999999999
supermovetime = 999999999
supermove = 1
bindtime = 1
persistent = 0
ignorehitpause = 1

[State 2000]
type = PlaySnd
trigger1 = Animelem = 1
value = s6000,0
ignorehitpause = 1

[State 200 , 2]
type = PlaySnd
trigger1 = gametime%20 = 0
value = s900,1
ignorehitpause = 1

[state 195]
type = Explod
trigger1 = gametime%20 = 0
anim = 1911
postype = p1
pos = ifelse(random%2,0-random%-200,0+random%200),0
sprpriority = 7
scale = 1,1
removetime = 78
;ontop = 1
ownpal = 1
trans = add
supermovetime = 9999999999
pausemovetime = 9999999999

[State ]
type = Helper
trigger1 = !NumHelper(13001)
helpertype = player
name = "hitby(Allosaurus-G)"
ID = 13001
pos = 0,0
postype = P1
keyctrl = 0
ownpal = 1
pausemovetime = 999999999
supermovetime = 999999999
ignorehitpause = 1

[state a];火柱用ヘルパー
type = Helper
trigger1 = gametime%20 = 0
id = 580000
name = "light pillar(Allosaurus-G)"
sprpriority = 7
pos = 0,0
postype = p1
stateno = 580000
helpertype = player
bindtime = -1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[state ]
type = Projectile
trigger1 = !ishelper
attr = SCA,AA,AT,AP
damage = ifelse(enemynear,name = "LastStarman",2147483647,1+random%101)
sparkno = -1
guard.sparkno = -1
ProjID = 10000
projanim = 33000
projremove = 0
projremovetime = 5
p2stateno = 5150
offset = enemynear,pos x,enemynear,pos y
supermovetime = 2147483647
pausemovetime = 2147483647
ignorehitpause = 1

[State 100020]
type = Reversaldef
trigger1 = !ishelper
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,30
sparkno = -1
hitsound = -1
p2stateno = 5150
ignorehitpause = 1
persistent = 1

[State ]
type = TargetLifeAdd
trigger1 = numtarget
value = -9999999999999
kill = 1
ignorehitpause = 1

[State ]
type = TargetPowerAdd
trigger1 = numtarget
value = -9999999999999
ignorehitpause = 1

[State ]
type = TargetState
trigger1 = numtarget
value = 5150
ignorehitpause = 1

[State 195]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;噛みつき
[Statedef 200]
type    = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
;anim = 200
sprpriority = 3
facep2 = 1
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 200
value = 200
ignorehitpause = 1

[State 200]
type = PlaySnd
trigger1 = animelem = 3
value = 0,2
ignorehitpause = 1

[State 200]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 5
attr = S, NA 
damage    = 50,30
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3005
sparkxy = ceil(0*const(size.xscale)),ceil(-80*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S206,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -1,-2
air.velocity = -1,-2

[State 200]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 5
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 50,30
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3005
sparkxy = ceil(0*const(size.xscale)),ceil(-80*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S206,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -1,-2
air.velocity = -1,-2

[State 200]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;キック
[Statedef 210]
type    = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
;anim = 210
sprpriority = 3
facep2 = 1
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 210
value = 210
ignorehitpause = 1

[State 210]
type = PlaySnd
trigger1 = animelem = 1
value = 0,2
ignorehitpause = 1

[State 200]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 3
attr = S, NA 
damage    = 60,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3003
sparkxy = ceil(0*const(size.xscale)),ceil(-50*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200

[State 200]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 3
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 60,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3003
sparkxy = ceil(0*const(size.xscale)),ceil(-50*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200

[State 210]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;噛みつき(下段)
[Statedef 220]
type    = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
;anim = 220
sprpriority = 3
facep2 = 1
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 220
value = 220
ignorehitpause = 1

[State 220]
type = PlaySnd
trigger1 = animelem = 5
value = 0,2
ignorehitpause = 1

[State 220]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 7
attr = S, NA 
damage    = 70,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3005
sparkxy = ceil(0*const(size.xscale)),ceil(-30*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S206,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 220]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 7
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 70,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3005
sparkxy = ceil(0*const(size.xscale)),ceil(-30*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S206,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 220]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;------------------------------------------
;テールアタック
[Statedef 230]
type    = S
movetype= A
physics = S
juggle  = 4
velset = 0,0
;anim = 230
ctrl = 0
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 230
value = 230
ignorehitpause = 1

[State 230]
type = PlaySnd
trigger1 = animelem = 3
value = 0,2
ignorehitpause = 1

[State 230]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 7
attr = S, NA
damage    = 70,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-10*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 230]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 7
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 70,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-10*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 230]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;噛みつき(対空)
[Statedef 240]
type    = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
;anim = 240
sprpriority = 3
facep2 = 1
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 240
value = 240
ignorehitpause = 1

[State 240]
type = PlaySnd
trigger1 = animelem = 3
value = 0,2
ignorehitpause = 1

[State 240]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 4
attr = S, NA 
damage    = 70,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3005
sparkxy = ceil(0*const(size.xscale)),ceil(-120*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S206,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 240]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 4
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 70,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3005
sparkxy = ceil(0*const(size.xscale)),ceil(-120*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S206,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 240]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;------------------------------------------
;テールアタック(対空)
[Statedef 250]
type    = S
movetype= A
physics = S
juggle  = 4
velset = 0,0
;anim = 250
ctrl = 0
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 250
value = 250
ignorehitpause = 1

[State 250]
type = PlaySnd
trigger1 = animelem = 3
value = 0,2
ignorehitpause = 1

[State 250]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 7
attr = S, NA 
damage    = 70,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-100*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 250]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 7
attr = S, NA
damage    = 70,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-100*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 250]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;しゃがみ噛みつき
[Statedef 400]
type    = C
movetype= A
physics = C
juggle  = 4
ctrl = 0
velset = 0,0
;anim = 400
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 400
value = 400
ignorehitpause = 1

[State 400]
type = PlaySnd
trigger1 = animelem = 3
value = 0,2
ignorehitpause = 1

[State 400]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 4
attr = S, NA 
damage    = 60,30
priority  = 3
animtype  = high
hitflag = MAF
guardflag = L
pausetime = 0,0
sparkno = S3005
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S206,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200

[State 400]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 4
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 60,30
priority  = 3
animtype  = high
hitflag = MAF
guardflag = L
pausetime = 0,0
sparkno = S3005
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S206,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200

[State 400]
type = ChangeState
trigger1 = animTime = 0
value = 11
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;しゃがみテールアタック
[Statedef 410]
type    = C
movetype= A
physics = C
juggle  = 4
ctrl = 0
velset = 0,0
;anim = 410
sprpriority = 0
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 410
value = 410
ignorehitpause = 1

[State 410]
type = PlaySnd
trigger1 = animelem = 3
value = 0,2
ignorehitpause = 1

[State 410]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 5
attr = C, NA 
damage    = 70,40
priority  = 3
animtype  = high
hitflag = MAFD
guardflag =  L
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-10*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -4,-2
air.velocity = -4,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 410]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 5
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 70,40
priority  = 3
animtype  = high
hitflag = MAFD
guardflag =  L
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-10*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -4,-2
air.velocity = -4,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 410]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;ジャンプキック
[Statedef 600]
type    = A
movetype= A
physics = A
juggle  = 4
Anim = 600
ctrl = 0
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State 600]
type = PlaySnd
trigger1 = animelem = 1
value = 0,2
ignorehitpause = 1

[State 600]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 3
attr = A, NA 
damage    = 60,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-70*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 600]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 3
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 60,40
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-70*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-2
air.velocity = -2,-2
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 600]
type = ChangeState
trigger1 = Time > 15
value = 51
ctrl = 1
ignorehitpause = 1
;---------------------------------------------------------------------------
;投げ
[Statedef 800]
type    = S
movetype= A
physics = S
juggle  = 0
velset = 0,0
ctrl = 0
;anim = 800
sprpriority = 1
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 800
value = 800
ignorehitpause = 1

[State 800]
type = PlaySnd
trigger1 = animelem = 3
value = 0,2
ignorehitpause = 1

[State 800]
type = HitDef
triggerall = !sysfvar(2)
Trigger1 = animelem = 5
attr = S, NT          
hitflag = M-         
priority = 1, Miss    
sparkno = -1
sprpriority = 1       
p1facing = 1
p2facing = 1          
p1stateno = 810       
p2stateno = 820      
hitonce = 1
guard.dist = 0      
fall = 1              
fall.recover = 0

[State 800]
type = ReversalDef
triggerall = sysfvar(2)
Trigger1 = animelem = 5
reversal.attr = SCA,AT,AP,AA
hitflag = M-
priority = 1, Miss
sparkno = -1
sprpriority = 1
p1facing = 1
p2facing = 1
p1stateno = 810
p2stateno = 820
hitonce = 1
guard.dist = 0
fall = 1
fall.recover = 0

[State 800]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
[Statedef 810]
type    = S
movetype= A
physics = S
;anim = 810
velset = 0,0
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 810
value = 810
ignorehitpause = 1

[State Armor]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State 810]
type = TargetBind
trigger1 = animelem = 1
pos = ceil(80*const(size.xscale)),ceil(0*const(size.yscale))
time= 1
ignorehitpause = 1

[State 810]
type = TargetBind
trigger1 = animelem = 7
pos = ceil(50*const(size.xscale)),ceil(-60*const(size.yscale))
time= 1
ignorehitpause = 1

[State 810]
type = TargetBind
trigger1 = animelem = 8
pos = ceil(30*const(size.xscale)),ceil(-80*const(size.yscale))
time= 1
ignorehitpause = 1

[State 810]
type = TargetBind
trigger1 = animelem = 9
pos = ceil(0*const(size.xscale)),ceil(-80*const(size.yscale))
time= 1
ignorehitpause = 1

[State 810]
type = PlaySnd
trigger1 = animelem = 1
trigger2 = animelem = 3
trigger3 = animelem = 5
value = 0, 1
ignorehitpause = 1

[State 810]
type = Explod
trigger1 = animelem = 2
trigger2 = animelem = 4
trigger3 = animelem = 6
anim = 3005
facing = -1
postype = p2
pos = ceil(0*const(size.xscale)),ceil(-80*const(size.yscale))
sprpriority = 5
ownpal = 1
ID = 810
persistent = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 810]
type = PlaySnd
trigger1 = animelem = 2
trigger2 = animelem = 4
trigger3 = animelem = 6
value = 206, 0
ignorehitpause = 1

[State 810]
type = TargetLifeAdd
trigger1 = animelem = 2
trigger2 = animelem = 4
trigger3 = animelem = 6
value = -20
ignorehitpause = 1

[State 810]
type = PlaySnd
trigger1 = animelem = 10
value = 0, 2
ignorehitpause = 1

[State 810]
type = TargetLifeAdd
trigger1 = animelem = 10
value = -120
ignorehitpause = 1

[State 810]
type = Turn
trigger1 = AnimTime = 0
ignorehitpause = 1

[State 810]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
[Statedef 820]
type    = A
movetype= H
physics = N
velset = 0,0
sprpriority = 2

[State 110, 8]
type = ChangeState
trigger1 = name = "Allosaurus"
value = ifelse(roundstate>=3,0,901+1*(Statetype=A))
ctrl = 1
ignorehitpause = 1

[State Armor]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP

[State 820]
type = ChangeAnim2
Trigger1 = Time = 0
value = 820

[State 821]
type = VelSet
trigger1 = Time = 54
x = 10
y = -3

[State 821]
type = Gravity
trigger1 = Time > 54

[State 821]
type = SelfState
trigger1 = Pos Y > 0
value = 5100
;------------------------------------------
;スーパーテールアタック(弱)
[Statedef 1000]
type    = S
movetype= A
physics = S
juggle  = 4
velset = 0,0
;anim = 1000
ctrl = 0
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 1000
value = 1000
ignorehitpause = 1

[State 1000]
type = PlaySnd
trigger1 = animelem = 6
value = 0,2
ignorehitpause = 1

[state a];火柱用ヘルパー
type = Helper
trigger1 = animelem = 8
id = 580000
name = "light pillar(Allosaurus-G)"
sprpriority = 7
pos = 0,0
postype = p1
stateno = 580000
helpertype = player
bindtime = -1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[state a];火柱用ヘルパー
type = Helper
trigger1 = animelem = 8
id = 580000
name = "light pillar(Allosaurus-G)"
sprpriority = 7
pos = 0,0
postype = p1
stateno = 580000
helpertype = player
bindtime = -1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 1000]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 8
attr = S, SA 
damage    = 90,50
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-4
air.velocity = -2,-4
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 1000]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 8
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 90,50
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-4
air.velocity = -2,-4
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 1000]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;------------------------------------------
;スーパーテールアタック(強)
[Statedef 1010]
type    = S
movetype= A
physics = N
juggle  = 4
velset = 0,0
;anim = 1010
ctrl = 0
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 1010
value = 1010
ignorehitpause = 1

[State 1010]
type = Veladd
trigger1 = Vel X < 6
x = 0.2
ignorehitpause = 1

[State 1010]
type = Statetypeset
trigger1 = Animelem = 11
physics = S
ignorehitpause = 1

[State 1000]
type = PlaySnd
trigger1 = animelem = 6
value = 0,2
ignorehitpause = 1

[state a];火柱用ヘルパー
type = Helper
trigger1 = animelem = 7
id = 580000
name = "light pillar(Allosaurus-G)"
sprpriority = 7
pos = 0,0
postype = p1
stateno = 580000
helpertype = player
bindtime = -1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[state a];火柱用ヘルパー
type = Helper
trigger1 = animelem = 7
id = 580000
name = "light pillar(Allosaurus-G)"
sprpriority = 7
pos = 0,0
postype = p1
stateno = 580000
helpertype = player
bindtime = -1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[state a];火柱用ヘルパー
type = Helper
trigger1 = animelem = 7
id = 580000
name = "light pillar(Allosaurus-G)"
sprpriority = 7
pos = 0,0
postype = p1
stateno = 580000
helpertype = player
bindtime = -1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 1000]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 8
attr = S, SA 
damage    = 120,60
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -4,-6
air.velocity = -4,-6
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 1000]
type = projectile
triggerall = sysfvar(2)
trigger1 = animelem = 8
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 120,60
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -4,-6
air.velocity = -4,-6
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 1000]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = Selfstate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;スーパーテールアタック(空中)
[Statedef 1200]
type    = A
movetype= A
physics = A
juggle  = 4
ctrl = 0
anim = 1200
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State 1200]
type = PlaySnd
trigger1 = animelem = 6
value = 0,2
ignorehitpause = 1

[State 1200]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 8
attr = A, SA 
damage    = 90,50
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-4
air.velocity = -2,-4
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 1200]
type = Projectile
triggerall = sysfvar(2)
trigger1 = animelem = 8
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 90,50
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -2,-4
air.velocity = -2,-4
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1
;---------------------------------------------------------------------------
;ドロップキック
[Statedef 1300]
type    = S
movetype= A
physics = S
juggle  = 6
ctrl = 0
anim = 1300
sprpriority = 2
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State 3000, effect]
type = Explod
trigger1 = AnimElem = 3
anim = 3002
postype = p1
pos = 0,0
ownpal = 1
sprpriority = 5
ontop = 1
removeongethit = 0
supermovetime = 9999999999
pausemovetime = 9999999999
removetime = -2
scale = const(size.xscale),const(size.yscale)

[State 1300]
type = PlaySnd
trigger1 = AnimElem = 3
value = 0, 2
ignorehitpause = 1

[State 1300]
type = VelSet
trigger1 = AnimElem = 3
x = 8
y = -4
ignorehitpause = 1

[State 1300]
type = StateTypeSet
trigger1 = AnimElem = 4
statetype = A
physics = A
ignorehitpause = 1

[State 1300]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = AnimElem = 4
attr = S, NA
damage    = 80,60
animtype  = hard
hitflag = MAL
guardflag = HA
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = Low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2,-2.5
air.velocity = -2,-1.5
down.hittime = 10
air.hittime = 10
fall = 1
envshake.time = 20
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200

[State 1300]
type = Projectile
triggerall = sysfvar(2)
trigger1 = AnimElem = 4
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 80,60
animtype  = hard
hitflag = MAL
guardflag = HA
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = Low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2,-2.5
air.velocity = -2,-1.5
down.hittime = 10
air.hittime = 10
fall = 1
envshake.time = 20
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
;---------------------------------------------------------------------------
;パワーボンバー(テールアタック)
[Statedef 2000]
type    = S
movetype= A
physics = S
juggle  = 5
ctrl = 0
velset = 0,0
anim = 2000
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State Armor]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State ]
type = varadd
triggerall = sysfvar(4) >= 1000
trigger1 = time = 1
sysfvar(4) = -1000
ignorehitpause = 1

[State 2000]
type = Explod
trigger1 = time = 0
anim = 9010
ID = 9010
pos = -80,30
postype = back
vel = 2,0
sprpriority = 0
supermovetime = 9999999999
pausemovetime = 9999999999
scale = 0.7,0.7
removetime = 50
bindtime = 1
facing = 1
vfacing = 1
ownpal = 1
ignorehitpause = 1

[State 181, エフェクト]
type = Explod
trigger1 = time = 1
anim = 41002
facing = 1
postype = p1
pos = ceil(0*const(size.xscale)), ceil(-60*const(size.yscale))
sprpriority = 3
ownpal = 1
scale = .5,.5
pausemovetime = 999999999
supermovetime = 999999999
supermove = 1
bindtime = 1
persistent = 0
ignorehitpause = 1

[State 2000]
type = PlaySnd
trigger1 = time = 1
value = s6000,0
ignorehitpause = 1

[State 2000]
type = PlaySnd
trigger1 = time = 1
value = s11,0
ignorehitpause = 1

[State 2000]
type = PlaySnd
trigger1 = animelem = 3
value = 0,2
ignorehitpause = 1

[State Armor]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State 2000]
type = PlaySnd
trigger1 = animelem = 3
value = 0,2
ignorehitpause = 1

[state a];火柱用ヘルパー
type = Helper
trigger1 = time > 11
trigger1 = gametime%8 = 0
id = 580000
name = "light pillar(Allosaurus-G)"
sprpriority = 7
pos = 0,0
postype = p1
stateno = 580000
helpertype = player
bindtime = -1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 2000]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = animelem = 7
attr = S, SA 
damage    = 150,60
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-100*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -5,-6
air.velocity = -5,-6
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 2000]
type = projectile
triggerall = sysfvar(2)
trigger1 = animelem = 7
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 150,60
priority  = 3
animtype  = high
hitflag = MAF
guardflag =  MA
pausetime = 0,0
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-100*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = High
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -5,-6
air.velocity = -5,-6
envshake.time = 10
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
fall = 1

[State 2000]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1
;--------------------------------------------------------------------------
;パワーボンバー(噛みつき)
[Statedef 2010]
type    = S
movetype= A
physics = N
juggle  = 5
ctrl = 0
velset = 0,0
anim = 2010
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = varadd
triggerall = sysfvar(4) >= 1000
trigger1 = time = 1
sysfvar(4) = -1000
ignorehitpause = 1

[State 2010]
type = Explod
trigger1 = time = 0
anim = 9020
ID = 9020
pos = -80,30
postype = back
vel = 2,0
sprpriority = 0
supermovetime = 9999999999
pausemovetime = 9999999999
scale = 0.7,0.7
removetime = 50
bindtime = 1
facing = 1
vfacing = 1
ownpal = 1
ignorehitpause = 1

[State 181, エフェクト]
type = Explod
trigger1 = time = 1
anim = 41002
facing = 1
postype = p1
pos = ceil(35*const(size.xscale)), ceil(-60*const(size.yscale))
sprpriority = 3
ownpal = 1
scale = .5,.5
pausemovetime = 999999999
supermovetime = 999999999
supermove = 1
bindtime = 1
persistent = 0
ignorehitpause = 1

[State 2000]
type = PlaySnd
trigger1 = time = 1
value = s6000,0
ignorehitpause = 1

[State 2000]
type = PlaySnd
trigger1 = time = 1
value = s11,0
ignorehitpause = 1

[State Armor]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State 2010]
type = PlaySnd
trigger1 = animelem = 3
value = 0,2
ignorehitpause = 1

[State 2010]
type = Velset
trigger1 = animelem = 3
X = 8
ignorehitpause = 1

[State 2010]
type = HitDef
triggerall = !sysfvar(2)
Trigger1 = Time = 0
attr = S, NT          
hitflag = M-         
priority = 1, Miss    
sparkno = -1
sprpriority = 1       
p1facing = 1
p2facing = 1          
p1stateno = 2011       
p2stateno = 2012      
hitonce = 1
guard.dist = 0      
fall = 1              
fall.recover = 0

[State 2010]
type = ReversalDef
triggerall = sysfvar(2)
Trigger1 = Time = 0
reversal.attr = SCA,AT,AP,AA
hitflag = M-
priority = 1, Miss
sparkno = -1
sprpriority = 1
p1facing = 1
p2facing = 1
p1stateno = 2011
p2stateno = 2012
hitonce = 1
guard.dist = 0
fall = 1
fall.recover = 0

[State 2010]
type = ChangeState
trigger1 = Time >30
value = 11
ctrl = 1
ignorehitpause = 1
;---------------------------------------------------------------------------
[Statedef 2011]
type    = S
movetype= A
physics = S
anim = 2011
velset = 0,0
sprpriority = 3
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State Armor]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State 2011]
type = TargetBind
trigger1 = animelem = 1
pos = ceil(50*const(size.xscale)),ceil(-20*const(size.yscale))
time= 1
ignorehitpause = 1

[State 2011]
type = TargetBind
trigger1 = animelem = 2
pos = ceil(20*const(size.xscale)),ceil(-10*const(size.yscale))
time= 1
ignorehitpause = 1

[State 2011]
type = TargetBind
trigger1 = animelem = 3
pos = ceil(0*const(size.xscale)),ceil(0*const(size.yscale))
time= 1
ignorehitpause = 1

[State 2011]
type = TargetBind
trigger1 = animelem = 6
pos = ceil(10*const(size.xscale)),ceil(-10*const(size.yscale))
time= 1
ignorehitpause = 1

[State 2011]
type = PlaySnd
trigger1 = animelem = 1
value = 0, 2
ignorehitpause = 1

[State 2011]
type = Explod
trigger1 = animelem = 1
anim = 3005
facing = -1
postype = p2
pos = ceil(0*const(size.xscale)),ceil(-80*const(size.yscale))
sprpriority = 5
ownpal = 1
ID = 810
persistent = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 2011]
type = PlaySnd
trigger1 = animelem = 1
value = 206, 0
ignorehitpause = 1

[State 2011]
type = TargetLifeAdd
trigger1 = animelem = 1
value = -40
ignorehitpause = 1

[State 2011]
type = PlaySnd
trigger1 = animelem = 7
value = 0, 2
ignorehitpause = 1

[State 2011]
type = TargetLifeAdd
trigger1 = animelem = 7
value = -120
ignorehitpause = 1

[State 2011]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1
;---------------------------------------------------------------------------
[Statedef 2012]
type    = A
movetype= H
physics = N
velset = 0,0
sprpriority = 2

[State 110, 8]
type = ChangeState
trigger1 = name = "Allosaurus"
value = ifelse(roundstate>=3,0,901+1*(Statetype=A))
ctrl = 1
ignorehitpause = 1

[State Armor]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP

[State 2012]
type = ChangeAnim2
Trigger1 = Time = 0
value = 2012

[State 2012]
type = VelSet
trigger1 = Time = 36
x = -10
y = -8

[State 2012]
type = Gravity
trigger1 = Time > 36

[State 2012]
type = SelfState
trigger1 = Pos Y > 0
value = 5100
;---------------------------------------------------------------------------
;パワーボンバー(ドロップキック)
[Statedef 2300]
type    = S
movetype= A
physics = S
juggle  = 0
ctrl = 0
velset = 0,0
anim = 2300
sprpriority = 4
hitdefpersist = 1
movehitpersist = 1

[State 110, 8]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = varadd
triggerall = sysfvar(4) >= 1000
trigger1 = time = 1
sysfvar(4) = -1000
ignorehitpause = 1

[State 2010]
type = Explod
trigger1 = time = 0
anim = 9030
ID = 9030
pos = -80,30
postype = back
vel = 2,0
sprpriority = 0
supermovetime = 9999999999
pausemovetime = 9999999999
scale = 0.7,0.7
removetime = 50
bindtime = 1
facing = 1
vfacing = 1
ownpal = 1
ignorehitpause = 1

[State 181, エフェクト]
type = Explod
trigger1 = time = 1
anim = 41002
facing = 1
postype = p1
pos = ceil(0*const(size.xscale)),ceil(-70*const(size.yscale))
sprpriority = 3
ownpal = 1
scale = .5,.5
pausemovetime = 999999999
supermovetime = 999999999
supermove = 1
bindtime = 1
persistent = 0
ignorehitpause = 1
ignorehitpause = 1

[State 2000]
type = PlaySnd
trigger1 = time = 1
value = s6000,0
ignorehitpause = 1

[State 2000]
type = PlaySnd
trigger1 = time = 1
value = s11,0
ignorehitpause = 1

[State Armor]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State 3000, effect]
type = Explod
trigger1 = AnimElem = 3
anim = 3002
postype = p1
pos = 0,0
ownpal = 1
sprpriority = 5
ontop = 1
removeongethit = 0
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999
removetime = -2
scale = const(size.xscale),const(size.yscale)

[State 2300]
type = PlaySnd
trigger1 = AnimElem = 3
value = 0, 2
ignorehitpause = 1

[State 2300]
type = VelSet
trigger1 = AnimElem = 3
x = 11
y = -3
ignorehitpause = 1

[state a];火柱用ヘルパー
type = Helper
trigger1 = time > 20
trigger1 = gametime%8 = 0
id = 580000
name = "light pillar(Allosaurus-G)"
sprpriority = 7
pos = 0,0
postype = p1
stateno = 580000
helpertype = player
bindtime = -1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 2300]
type = StateTypeSet
trigger1 = AnimElem = 4
statetype = A
physics = A
ignorehitpause = 1

[State 2300]
type = HitDef
triggerall = !sysfvar(2)
trigger1 = AnimElem = 4
attr = S, SA
damage    = 120,50
pausetime = 0,0
animtype  = hard
hitflag = MAL
guardflag = HA
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = Low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2,-2.5
air.velocity = -2,-1.5
down.hittime = 10
air.hittime = 10
fall = 1
envshake.time = 20
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200

[State 2300]
type = Projectile
triggerall = sysfvar(2)
trigger1 = AnimElem = 4
projanim = 33000
projremovetime = 5
attr = SCA,AA,AT,AP
fall = 1
fall.damage = 99999999999999999999
supermovetime = 99999999999999
pausemovetime = 99999999999999
damage    = 120,50
pausetime = 0,0
animtype  = hard
hitflag = MAL
guardflag = HA
sparkno = S3004
sparkxy = ceil(0*const(size.xscale)),ceil(-40*const(size.yscale))
Guard.SparkNo = S3000
hitsound   = S205,0
guardsound = 6,0
ground.type = Low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2,-2.5
air.velocity = -2,-1.5
down.hittime = 10
air.hittime = 10
fall = 1
envshake.time = 20
envshake.ampl = 3
envshake.freq = 160
envshake.phase = 200
;-------------------------------------------------------------------------------
;spawn snowflake 1
[Statedef 700000]
type    = S
movetype= I
physics = S
ctrl = 0
movehitpersist = 1
hitdefpersist = 1

[State ]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = ChangeAnim
trigger1 = anim != 700000
value = 700000
ignorehitpause = 1

[State ]
type=ctrlset
trigger1=1
value=0
ignorehitpause=1

[State ]
type = Helper
triggerall = !numhelper(700102)
trigger1 = animelem = 4
ID = 700102
stateno = 700102
name = "1 (Allosaurus-G)"
postype = p1
pos = 0, 0
helpertype = player
size.xscale = 1
size.yscale = 1
keyctrl = 0
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 181, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 2
value = 1200,0
ignorehitpause = 1
[State 181, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 3
value = 11,0
ignorehitpause = 1

[State 410, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;-------------------------------------------------------------------------------
;snowflake 1
[Statedef 700102]
type=U
movetype=U
physics=U
hitdefpersist=1
movehitpersist=1

[State ]
type=changestate
trigger1=name!="Allosaurus"
value=5150
persistent=256
ignorehitpause=1

[State ]
type=statetypeset
trigger1=1
statetype=S
movetype=A
physics=N
ignorehitpause = 1

[State ]
type=Ctrlset
trigger1=1
value=0
ignorehitpause = 1

[State ]
type=Screenbound
trigger1=1
value=0
ignorehitpause = 1

[State ]
type = ChangeAnim
trigger1 = anim != 700102
value = 700102
ignorehitpause = 1

[State ]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 0, Trans]
type = Trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State ]
type = AngleDraw
trigger1 = 1
scale = .5,.5

[State ]
type = AngleAdd
trigger1 = 1
value = -7

[State 0, SprPriority]
type = SprPriority
trigger1 = 1
value = 80
ignorehitpause = 1

[State 0, PalFXWiz]
type = PalFX
trigger1 = gametime%1 = 0
time = 9999
add = 220,220,220
mul = 220,220,220
sinadd = 0,0,0,1
invertall = 0
color = 256
ignorehitpause = 1

[State 193]
type = Explod
trigger1 = gametime%7 = 0
anim = 149572
sprpriority = 81
postype = p1
pos = -30+random%60,-20+random%40
facing = -1
scale = .3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State ]
type = PosSet
trigger1 = 1
x = 0
y = -150
ignorehitpause = 1

[state ]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1

[State ]
type = VarAdd
trigger1 = 1
sysvar(1) = 1
ignorehitpause = 1

[State 0, PlaySnd]
type = PlaySnd
triggerall = sysvar(1)
trigger1 = gametime%32=0
value = S7878,2
ignorehitpause = 1

[State ]
type = Projectile
triggerall = sysvar(1)
trigger1 = gametime%32=0
attr = SCA,AT,AP,AA
animtype  = hard
damage    = 68,10
getpower = 61,61
guardflag = M
projanim = 100466
projid = 18102
projpriority = 2147483647
projsprpriority = 10
projremove = 0
projremovetime = 30
projscale = .4,2
postype = p1
offset = -200+random%400,200
numhits = 1
pausetime = 0,16
sparkno = -1
guard.sparkno = 2
sparkxy = -7,-40
;hitsound   = s225,1
;guardsound = s121,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.damage = 999999999
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State ]
type = Projectile
triggerall = sysvar(1)
trigger1 = gametime%32=0
attr = SCA,AT,AP,AA
animtype  = hard
damage    = 68,10
getpower = 61,61
guardflag = M
projanim = 100466
projid = 18102
projpriority = 2147483647
projsprpriority = 10
projremove = 0
projremovetime = 30
projscale = .4,2
postype = p1
offset = -200+random%400,200
numhits = 1
pausetime = 0,16
sparkno = -1
guard.sparkno = 2
sparkxy = -7,-40
;hitsound   = s225,1
;guardsound = s121,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.damage = 999999999
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State ]
type = Projectile
triggerall = sysvar(1)
trigger1 = gametime%32=0
attr = SCA,AT,AP,AA
animtype  = hard
damage    = random%101
getpower = 61,61
guardflag = M
projanim = 100466
projid = 18102
projpriority = 2147483647
projsprpriority = 10
projremove = 0
projremovetime = 30
projscale = .4,2
postype = p1
offset = -200+random%400,200
numhits = 1
pausetime = 0,16
sparkno = -1
guard.sparkno = 2
sparkxy = -7,-40
;hitsound   = s225,1
;guardsound = s121,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -4,-6
air.velocity = -4,-6.5
fall = 1
air.fall = 1
fall.damage = 9999999999
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[state ]
type = destroyself
trigger1 = animtime = 0

[State ]
type = Changestate
trigger1 = 1
value = 5150
ignorehitpause = 1
;-------------------------------------------------------------------------------
;spawn snowflake 2
[Statedef 700001]
type    = S
movetype= I
physics = S
ctrl = 0
movehitpersist = 1
hitdefpersist = 1

[State ]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = ChangeAnim
trigger1 = anim != 700001
value = 700001
ignorehitpause = 1

[State ]
type=ctrlset
trigger1=1
value=0
ignorehitpause=1

[State ]
type = Helper
triggerall = !numhelper(840000)
trigger1 = animelem = 4
ID = 840000
stateno = 840000
name = "2 (Allosaurus-G)"
postype = p1
pos = 60,-150
helpertype = player
size.xscale = 1
size.yscale = 1
keyctrl = 0
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 181, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 2
value = 1200,0
ignorehitpause = 1
[State 181, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 3
value = 11,0
ignorehitpause = 1

[State 410, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;-------------------------------------------------------------------------------
;snowflake 2
[Statedef 840000]
type=U
movetype=U
physics=U
hitdefpersist=1
movehitpersist=1

[State ]
type=changestate
trigger1=name!="Allosaurus"
value=5150
persistent=256
ignorehitpause=1

[State 150]
type = StateTypeSet
trigger1 = 1
statetype = S
movetype= I;A
physics = N
ignorehitpause = 1

[State 1000]
type = VelSet
trigger1=sysvar(1)>35
x = (P2bodydist X)/25
y = (P2bodydist Y+(enemynear(0),const(size.mid.pos.y)))/25

[State ]
type = ScreenBound
trigger1=1
value=0
movecamera = 0,0
ignorehitpause = 1

[state ]
type=changeanim
trigger1=anim!=840000
value=840000
ignorehitpause=1

[State ]
type = AngleDraw
trigger1 = 1
scale = .5,.5

[State ]
type = AngleAdd
trigger1 = 1
value = -7

[State 0, SprPriority]
type = SprPriority
trigger1 = 1
value = 80
ignorehitpause = 1

[State 0, Trans]
type = Trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State 0, PalFXWiz]
type = PalFX
trigger1 = gametime%1 = 0
time = 9999
add = 220,220,220
mul = 220,220,220
sinadd = 0,0,0,1
invertall = 0
color = 256
ignorehitpause = 1

[State 193]
type = Explod
trigger1 = gametime%7 = 0
anim = 149572
sprpriority = 81
postype = p1
pos = -30+random%60,-20+random%40
facing = -1
scale = .3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[state ]
type=varadd
trigger1 = 1
sysvar(1) = 1
ignorehitpause=1

[state ]
type=varset
trigger1=!sysvar(1)
sysvar(3)=random
ignorehitpause=1

[state ]
type=varadd
trigger1=gametime%222<182
sysvar(2)=(9+random%3)*(1-2*(gametime%444>221))
ignorehitpause=1

[state ]
type=varadd
trigger1=gametime%222>181
sysvar(2)=(10-ceil(0.5*((gametime+41)%222)))*(1-2*(gametime%444>221))
ignorehitpause=1

[state ]
type=projectile
trigger1=sysvar(1)>35
projanim=666601
projid=8901*id
projremove=0
projremovetime=44
projmisstime=10+random%5
projhits=4
postype=p1
offset=0,
velocity=10*cos(Pi*(0.5*(sysvar(1)%4)+(0.1*sysvar(3)+sysvar(1))*0.0072)),10*sin(Pi*(0.5*(sysvar(1)%4)+(0.1*sysvar(3)+sysvar(1))*0.0072))
projheightbound=-500,300
projedgebound=99
projstagebound=99
projscale=0.6,0.6
attr=SCA,AT,AP,AA
animtype=medium
damage=1+random%101
hitflag=MAFD
pausetime=0,0
sparkno=s-1
hitsound=s-1
projpriority=7
ground.type=high
ground.slidetime=0
ground.hittime=0
ground.velocity=0,0
air.velocity=0,0
getpower=0,0
givepower=0,0
fall = 1
fall.damage = ifelse(random%2,-2147483647,2147483647)
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1

[state ]
type=projectile
trigger1=sysvar(1)>35
projanim=666601
projid=8901*id
projremove=0
projremovetime=44
projmisstime=10+random%5
projhits=4
postype=p1
offset=0,0
velocity=10*cos(Pi*(0.5*(sysvar(1)%4)+(0.1*sysvar(3)-sysvar(1))*0.0072)),10*sin(Pi*(0.5*(sysvar(1)%4)+(0.1*sysvar(3)-sysvar(1))*0.0072))
projheightbound=-500,300
projedgebound=99
projstagebound=99
projscale=0.6,0.6
attr=SCA,AT,AP,AA
animtype=medium
damage=1+random%101
hitflag=MAFD
pausetime=0,0
sparkno=s-1
hitsound=s-1
projpriority=7
ground.type=high
ground.slidetime=0
ground.hittime=0
ground.velocity=0,0
air.velocity=0,0
getpower=0,0
givepower=0,0
fall = 1
fall.damage = ifelse(random%2,-2147483647,2147483647)
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1

[state ]
type=destroyself
trigger1=sysvar(1)>401
ignorehitpause=1

[state 1031]
type = SelfState
trigger1 = 1
value = 5150
ignorehitpause = 1
;-------------------------------------------------------------------------------
;spawn mini snowflakes
[Statedef 700002]
type    = S
movetype= I
physics = S
ctrl = 0
movehitpersist = 1
hitdefpersist = 1

[State ]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = ChangeAnim
trigger1 = anim != 700002
value = 700002
ignorehitpause = 1

[State ]
type=ctrlset
trigger1=1
value=0
ignorehitpause=1

[State 204, 0]
Type = Helper
trigger1 = animelem = 5
HelperType = player
Name = "tama(Allosaurus-G)"
ID = 1206
StateNo = 1032
pos = 50,-100
PosType = P1 ;P2,Front,Back,Left,Right
Facing = 0
KeyCtrl = 0
OwnPal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
size.xscale = 0.5
size.yscale = 0.5

[State 204, 0]
Type = Helper
trigger1 = animelem = 6
HelperType = player
Name = "tama(Allosaurus-G)"
ID = 1207
StateNo = 1032
pos = 50,-105
PosType = P1 ;P2,Front,Back,Left,Right
Facing = 0
KeyCtrl = 0
OwnPal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
size.xscale = 0.5
size.yscale = 0.5

[State 204, 0]
Type = Helper
trigger1 = animelem = 7
HelperType = player
Name = "tama(Allosaurus-G)"
ID = 1206
StateNo = 1032
pos = 50,-95
PosType = P1 ;P2,Front,Back,Left,Right
Facing = 0
KeyCtrl = 0
OwnPal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
size.xscale = 0.5
size.yscale = 0.5

[State 181, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 6
value = 1200,0
ignorehitpause = 1
[State 181, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 7
value = 11,0
ignorehitpause = 1

[State 410, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;-------------------------------------------------------------------------------
;mini snowflakes
[Statedef 1032]
type=U
movetype=U
physics=U
hitdefpersist=1
movehitpersist=1

[State ]
type=changestate
trigger1=name!="Allosaurus"
value=5150
persistent=256
ignorehitpause=1

[State 150]
type = StateTypeSet
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = 1
statetype = S
movetype= I;A
physics = N
ignorehitpause = 1
[State 150];当たり判定のアニメを本体と同じに
type = ChangeAnim
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = anim != 445566
value = 445566
ignorehitpause = 1
[State 154, ヘルパーライフ]
type = Lifeset
trigger1 = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
value = 2147483647
ignorehitpause = 1
[State 153, ヘルパーコントロール不可]
type = Ctrlset
trigger1 = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
value = 0
ignorehitpause = 1
[State 9601:	AssertSpecial]
type = AssertSpecial
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = 1
flag = NoShadow
ignorehitpause=1
[State 9601:	PlayerPush]
type = PlayerPush
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = 1
value = 0
ignorehitpause=1
[State 9601:	NotHitBy]
type = NotHitBy
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = 1
value = SCA
ignorehitpause=1
[State ]
type = VarAdd
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = 1
sysvar(1) = 1
persistent = 0
ignorehitpause = 1
[State 9601:	VarRandom]
type = VarRandom
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = (!sysvar(1))
v = 0
range = -1,1
ignorehitpause = 1
[State 9601:	VelSet]
type = VelSet
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = (!sysvar(1))
x = 10
y = (Var(0))
ignorehitpause = 1
[State 9601:	VelAdd]
type  = VelAdd
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = (sysvar(1) > 115) && (P2Dist X < 0) && (Vel X > -10)
x = -0.5
ignorehitpause = 1
[State 9601:	VelAdd]
type  = VelAdd
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = (sysvar(1) > 1) && (P2Dist X > 0) && (Vel X < 10)
x = 0.5
ignorehitpause=1
[State 9601:	VelAdd]
type  = VelAdd
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = (sysvar(1) > 1) && (EnemyNear, Pos Y > Pos Y) && (Vel Y < 10)
y = 0.5
ignorehitpause = 1
[State 9601:	VelAdd]
type  = VelAdd
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1  = (sysvar(1) > 1) && (EnemyNear, Pos Y <= Pos Y) && (Vel Y > -10)
y = -0.5
ignorehitpause = 1

[State 0, SprPriority]
type = SprPriority
trigger1 = 1
value = 25
ignorehitpause = 1

[State ]
type = AngleDraw
trigger1 = 1
scale = .5,.5

[State ]
type = AngleAdd
trigger1 = 1
value = -7

[State 0, Trans]
type = Trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State 0, PalFXWiz]
type = PalFX
trigger1 = gametime%1 = 0
time = 9999
add = 220,220,220
mul = 220,220,220
sinadd = 0,0,0,1
invertall = 0
color = 256
ignorehitpause = 1

[State 200]
type = Projectile
trigger1 = Ishelper(1208)
Trigger1 = numprojID(12062)=0
attr = SCA,AT,AP,AA
projanim = 33000
projhitanim = -1
projid = 12062
projpriority = 999999999
projsprpriority = 999999999
projremove = 0
projremovetime = 1
postype = p1
offset = 0,0
animtype  = Light
damage    = 25,20
animtype = hard
guardflag =
hitflag = MAF
priority = 3, Hit
pausetime = 1, 1
sparkno = -1
guard.sparkno = -1
sparkxy = (random % 30), -(random % 30)
hitsound = -1
;sparkscale=0.5,0.5
guard.sparkno = -1
guardsound = -1
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -9,-6
air.velocity = -6,-6
supermovetime = 2147483647
pausemovetime = 2147483647

[State 200]
type = Projectile
trigger1 = Ishelper(1207)
Trigger1 = numprojID(12061)=0
attr = SCA,AT,AP,AA
projanim = 33000
projhitanim = -1
projid = 12061
projpriority = 999999999
projsprpriority = 999999999
projremove = 0
projremovetime = 1
postype = p1
offset = 0,0
animtype  = Light
damage    = 25,20
animtype = hard
guardflag =
hitflag = MAF
priority = 3, Hit
pausetime = 1, 1
sparkno = -1
guard.sparkno = -1
sparkxy = (random % 30), -(random % 30)
hitsound = -1
;sparkscale=0.5,0.5
guard.sparkno = -1
guardsound = -1
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -9,-6
air.velocity = -6,-6
supermovetime = 2147483647
pausemovetime = 2147483647

[State 200]
type = Projectile
trigger1 = Ishelper(1206)
Trigger1 = numprojID(12060)=0
attr = SCA,AT,AP,AA
projanim = 33000
projhitanim = -1
projid = 12060
projpriority = 999999999
projsprpriority = 999999999
projremove = 0
projremovetime = 1
postype = p1
offset = 0,0
animtype  = Light
damage    = 25,20
animtype = hard
guardflag =
hitflag = MAF
priority = 3, Hit
pausetime = 1, 1
sparkno = -1
guard.sparkno = -1
sparkxy = (random % 30), -(random % 30)
hitsound = -1
;sparkscale=0.5,0.5
guard.sparkno = -1
guardsound = -1
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -9,-6
air.velocity = -6,-6
supermovetime = 2147483647
pausemovetime = 2147483647

[State 193]
type = Explod
triggerall = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
trigger1 = gametime%2 = 0
anim = 666669
sprpriority = -2
postype = p1
pos = 0,0
facing = -1
scale = .3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 2800, ヘルパーを消す]
type = DestroySelf
triggerall = Ishelper(1206)
trigger1 = sysvar(1) >= 375
ignorehitpause=1
[State 2800, ヘルパーを消す]
type = DestroySelf
triggerall = Ishelper(1207)
trigger1 = sysvar(1) >= 375
ignorehitpause=1
[State 2800, ヘルパーを消す]
type = DestroySelf
triggerall = Ishelper(1208)
trigger1 = sysvar(1) >= 375
ignorehitpause=1

[state 1031]
type = SelfState
trigger1 = 1
value = 5150
ignorehitpause = 1
;-------------------------------------------------------------------------------
;spawn reflection
[Statedef 322221]
type    = S
movetype= I
physics = S
ctrl = 0
movehitpersist = 1
hitdefpersist = 1

[State ]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = ChangeAnim
trigger1 = anim != 322221
value = 322221
ignorehitpause = 1

[State ]
type=ctrlset
trigger1=1
value=0
ignorehitpause=1

[State ]
type = Helper
triggerall = !numhelper(322222)
trigger1 = animelem = 4
ID = 322222
stateno = 322222
name = "4 (Allosaurus-G)"
postype = p1
pos = 0,0
helpertype = player
size.xscale = 1
size.yscale = 1
keyctrl = 0
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 181, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 2
value = 1200,0
ignorehitpause = 1
[State 181, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 3
value = 11,0
ignorehitpause = 1

[State 410, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;-------------------------------------------------------------------------------
;reflection
[Statedef 322222]
type=U
movetype=U
physics=U
hitdefpersist=1
movehitpersist=1

[State ]
type=changestate
trigger1=name!="Allosaurus"
value=5150
persistent=256
ignorehitpause=1

[State 150]
type = StateTypeSet
trigger1 = 1
statetype = S
movetype= I
physics = N
ignorehitpause = 1

[state ]
type=changeanim
trigger1=anim!=322222
value=322222
ignorehitpause=1

[state ]
type=varadd
trigger1=1
sysvar(1)=1
ignorehitpause=1

[state ]
type = posset
trigger1 = 1
x = 0
y = 0
ignorehitpause = 1

[state ]
type = turn
trigger1 = gametime%80 = 0
ignorehitpause = 1

[State 0, SprPriority]
type = SprPriority
trigger1 = 1
value = 30
ignorehitpause = 1

[State 181]
type = AssertSpecial
trigger1 = sysvar(1) >= 1 && sysvar(1) <= 11
trigger1 = (GameTime%2) = 1
trigger2 = sysvar(1) >= 590 && sysvar(1) <= 600
trigger2 = (GameTime%2) = 1
flag = invisible
ignorehitpause = 1

[State -1]
type = Explod
triggerall =  sysvar(1) = [11,599]
trigger1 = (GameTime%7) = 0
anim = 149572
id = 149572
pos = -40+random%100, 0-random%-100
sprpriority = 99
postype = p1
pos = 0,0
under = 0
ownpal = 1
persistent = 0
trans = add
scale=0.5,0.5
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 26500]
type = Explod
triggerall =  sysvar(1) = [11,599]
trigger1 = GameTime%5 = 1
anim = 42003+random%2
sprpriority = 100
postype = p1
pos=-40+random%100, 0-random%-100
supermove = 0
scale = .2,.2
under = 0
ownpal = 1
trans = add
scale = 1,1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 200]
type = PlaySnd
trigger1 =  sysvar(1) = [11,599]
trigger1=gametime%45=0
value = 2323,4
freqmul = ifelse(random%2,.6,ifelse(random%2,.9,2))
volume = 1

[state ]
type = Projectile
trigger1 =  sysvar(1) = [11,599]
trigger1 = gametime%12=0
projanim = 322223
projscale = 1,1
projremove = 0
velocity = 5+(random%9),0
accel = 0,0
projheightbound = -640
offset = 0,0 ;-40,10
postype = p1 ;back
attr = SCA,AA,AT,AP
hitflag = MAFD
guardflag =
getpower = 0,0
givepower = 100,500
animtype = medium
damage = 1+random%101
pausetime = 0,0
ground.hittime = 8
air.hittime = 4
ground.velocity = -4,0
guard.velocity = -4
air.velocity = -4,-2
sparkno = -1
kill = 1
yaccel = 9999999999999
fall=1
fall.recover = 0
fall.damage = 9999999999
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type=destroyself
trigger1=sysvar(1)>601
ignorehitpause=1

[state 1031]
type = SelfState
trigger1 = 1
value = 5150
ignorehitpause = 1
;-------------------------------------------------------------------------------
;super move 2
[Statedef 11120]
type = S
movetype = A
physics = N
velset = 0,0
juggle = 0
;anim = 2203
ctrl = 0
hitdefpersist=1
movehitpersist=1

[State ]
type=changestate
trigger1=name!="Allosaurus"
value=5150
persistent=256
ignorehitpause=1

[state ]
type = changeanim
trigger1 = anim != 11120
value = 11120
ignorehitpause = 1

[State ]
type = varadd
triggerall = sysfvar(4) >= 1000
trigger1 = animelem = 1
sysfvar(4) = -1000
ignorehitpause = 1

[State 1]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1

[State ]
type = posset
trigger1 = animelem = 1
y = 0
ignorehitpause = 1

[State ]
type = velset
trigger1 = animelem = 1
x = 0
y = 0
ignorehitpause = 1

[state ]
type=explod
trigger1 = animelem = 1
id=100013
anim=100013
postype=front
pos=ifelse(facing=1,-320,320),0
random=0,0
sprpriority=9999998
removetime=51
bindtime=-1
scale=1,1
ontop=1
ownpal=1
vel=0,0
accel=0,0
facing=ifelse(facing=-1,-1,1)
ignorehitpause=1
supermovetime=99999999
pausemovetime=99999999

[state ]
type=explod
trigger1 = animelem = 1
id=100014
anim=100014
postype=front
pos=ifelse(facing=1,-320,320),29
random=0,0
sprpriority=9999999
removetime=50
bindtime=-1
scale=0.5,0.5
ontop=1
ownpal=1
vel=0,0
accel=0,0
facing=ifelse(facing=-1,-1,1)
ignorehitpause=1
supermovetime=99999999
pausemovetime=99999999

[State 1000, 5]
type = Explod
trigger1 = animelem = 1
anim = 22174
sprpriority = -4
postype = p1
pos = -1,-50
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 181, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 2
value = 11,0
ignorehitpause = 1

[State 2000, 6]
type = PlaySnd
trigger1 = animelem = 1
value = 10000,0
ignorehitpause = 1

[State 2000, 6]
type = PlaySnd
trigger1 = animelem = 1
value = 190,0
ignorehitpause = 1

[state a]
type = changestate
trigger1 = !animtime
value = 11121
ignorehitpause = 1

[State begone forced declaration]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;slice n dice
[Statedef 11121]
type = S
movetype = A
physics = N
velset = 0,0
juggle = 15
;anim = 2208
ctrl = 0
hitdefpersist=1
movehitpersist=1

[State ]
type=changestate
trigger1=name!="Allosaurus"
value=5150
persistent=256
ignorehitpause=1

[state ]
type = changeanim
trigger1 = anim != 11121
value = 11121
ignorehitpause = 1

[state ]
type = varadd
trigger1 = !ishelper
var(58) = 1
ignorehitpause = 1

[State 3040, 7]
type = EnvColor
trigger1 = var(58) = 1
persistent = 0
time = 3
value = 250,250,250
under = 2
ignorehitpause = 1

[State 3040, 7]
type = EnvColor
trigger1 = var(58) = 3
persistent = 0
time = 250
value = 0,0,0
under = 2
ignorehitpause = 1

[State 11225]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1

[State 11225]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 11225]
type = PlaySnd
trigger1 = var(58) = 60
value = 2323,5
freqmul = 1.3+((random%2)*0.1)
volume = 250
ignorehitpause = 1

[State 11225]
type = PlaySnd
trigger1 = var(58) = 100
value = 2323,5
freqmul = 0.7+((random%2)*0.1)
volume = 250
ignorehitpause = 1

[State 11225]
type = PlaySnd
trigger1 = var(58) = 130
value = 2323,1
freqmul = 1.3+((random%2)*0.1)
volume = 250
ignorehitpause = 1

[State 11225]
type = PlaySnd
trigger1 = var(58) = 110
value = 2562,57
freqmul = 0.7+((random%2)*0.1)
volume = 250

[State 11225]
type = PlaySnd
trigger1 = var(58) = 150
value = 2323,5
freqmul = 1.3+((random%2)*0.1)
volume = 250
ignorehitpause = 1

[State 11225]
type = PlaySnd
trigger1 = var(58) = 180
value = 2323,1
freqmul = 1.3+((random%2)*0.1)
volume = 250
ignorehitpause = 1

[State 11225]
type = PlaySnd
trigger1 = var(58) = 210
value = 1150,0
freqmul = 1.3+((random%2)*0.1)
volume = 250
ignorehitpause = 1

[State 11225]
type = PlaySnd
trigger1 = var(58) = 230
value = 2323,4
freqmul = 1.3+((random%2)*0.1)
volume = 250
ignorehitpause = 1

[State 11225]
type = PlaySnd
trigger1 = var(58) = 0||var(58) = 14||var(58) = 28||var(58) = 42||var(58) = 56
value = 2323,78
volume = 255
ignorehitpause = 1

[State 11225]
type = PlaySnd
trigger1 = var(58) = 85
trigger2 = var(58) = 109
trigger3 = var(58) = 133
trigger4 = var(58) = 157
trigger5 = var(58) = 181
trigger6 = var(58) = 205
trigger7 = var(58) = 229
value = 1150,1
channel = 6
ignorehitpause = 1

[State 11225]
Type = PlaySnd
trigger1 = var(58) = 85
trigger2 = var(58) = 109
trigger3 = var(58) = 133
trigger4 = var(58) = 157
trigger5 = var(58) = 181
trigger6 = var(58) = 205
trigger7 = var(58) = 229
value = 1150,1
channel = 7
ignorehitpause = 1

[State 11225]
type = PlaySnd
trigger1 = var(58) = 85
trigger2 = var(58) = 109
trigger3 = var(58) = 133
trigger4 = var(58) = 157
trigger5 = var(58) = 181
trigger6 = var(58) = 205
trigger7 = var(58) = 229
value = 1150,0
channel = 8
ignorehitpause = 1

[State 11225]
type = EnvShake
trigger1 = var(58) = 0
trigger2 = var(58) = 15
trigger3 = var(58) = 30
trigger4 = var(58) = 45
trigger5 = var(58) = 60
trigger6 = var(58) = 70
time = 7
ampl = -7
freq = 95
phase = 95
ignorehitpause = 1

[State 11225]
type = EnvShake
trigger1 = var(58) = 85
trigger2 = var(58) = 109
trigger3 = var(58) = 133
trigger4 = var(58) = 157
trigger5 = var(58) = 181
trigger6 = var(58) = 205
trigger7 = var(58) = 229
time = 13
ampl = -13
freq = 95
phase = 95
ignorehitpause = 1

[State 0, Explod]
type = Explod
trigger1 = var(58) = 1
anim = 420022
ID = 420022
pos = 0,0
postype = back
facing = ifelse(teamside=2,0,1)
bindtime = -1
removetime = -1
scale = .5,.5
sprpriority = 5
ontop = 3
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999
pausemovetime = 99999999

[State 2601]
type = Explod
trigger1 = var(58) = 1
anim = 32311
id = 420022
sprpriority = -5
postype = back
pos = 0,0
;bindtime = -1
scale = 1,1
removetime = -1
supermove = 0
ownpal = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 11225]
type = Explod
trigger1 = var(58) = 1
anim = 11330
id = 11330
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 1
ownpal = 1
ontop = 1
trans = add
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 85
anim = 11333
id = 11334
sprpriority = 10
postype = back
pos = 0,0
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 85
anim = 11332
id = 11111
sprpriority = 10
postype = back
pos = 0,0
removetime = 5
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 109
anim = 11334
id = 11335
sprpriority = 10
PosType = Right
Facing = -1
pos = 0,240
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 109
anim = 11331
id = 11111
sprpriority = 10
PosType = Right
Facing = -1
pos = 0,240
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 133
anim = 11333
id = 11336
sprpriority = 10
PosType = left
Facing = 1
pos = -50,-30
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 133
anim = 11332
id = 11111
sprpriority = 10
PosType = left
Facing = 1
pos = -50,-30
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 157
anim = 11333
id = 11337
sprpriority = 10
PosType = Right
Facing = -1
pos = 50,0
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 157
anim = 11332
id = 11111
sprpriority = 10
PosType = Right
Facing = -1
pos = -50,0
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 181
anim = 11334
id = 11338
sprpriority = 10
PosType = left
Facing = 1
pos = 0,240
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 181
anim = 11331
id = 11111
sprpriority = 10
PosType = left
Facing = 1
pos = 0,240
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 205
anim = 11333
id = 11339
sprpriority = 10
PosType = Right
Facing = -1
pos = 0,0
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 205
anim = 11332
id = 11111
sprpriority = 10
PosType = Right
Facing = -1
pos = 0,0
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 229
anim = 11334
id = 11340
sprpriority = 10
PosType = Right
Facing = -1
pos = 0,240
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 11225]
type = Explod
trigger1 = var(58) = 229
anim = 11331
id = 11111
sprpriority = 10
PosType = Right
Facing = -1
pos = 0,240
BindTime = -1
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 26500]
type = Explod
triggerall = var(58) <= 229
trigger1 = GameTime%5 = 1
anim = 42003+random%2
sprpriority = 2147483647
postype = back
pos = 20+ceil(Random%280),20+ceil(Random%220)
bindtime = -1
supermove = 0
scale = .8,.8
under = 0
ownpal = 1
trans = add
scale = 1,1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 193]
type = Explod
triggerall = var(58) <= 229
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 2,-3 + (random%2)
facing = -1
scale = 1,1;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = var(58) <= 229
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 0,-4 + (random%2)
facing = -1
scale = .5,.5;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = var(58) <= 229
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 0,-5 + (random%2)
facing = -1
scale = .6,.6;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = var(58) <= 229
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 2,-3 + (random%2)
facing = -1
scale = 1,1;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = var(58) <= 229
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 0,-4 + (random%2)
facing = -1
scale = .5,.5;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = var(58) <= 229
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 0,-5 + (random%2)
facing = -1
scale = .6,.6;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 821, 画面割れ]
type = playsnd
triggerall = !ishelper
trigger1 = var(58) = 230
value = S2100,8
volume = 3000
ignorehitpause = 1

[State 240, ????]
type = Explod
triggerall = !ishelper
trigger1 = var(58) = 230
;triggerall = !numexplod(14651) ;numexplod(14650)
persistent = 0
ownpal = 1
anim = 14651;14650
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ID = 14651 ;14650
;removetime = 0
ontop = 1
scale = 1,1 ;1.25,1
sprpriority = 99999998
;trans = add
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 11225]
type = turn
triggerall = !ishelper
trigger1 = p2dist X < 0
trigger1 = fvar(1) < 0
ignorehitpause = 1

[State ]
type = Helper
trigger1 = !NumHelper(13001)
helpertype = player
name = "hitby(Allosaurus-G)"
ID = 13001
pos = 0,0
postype = P1
keyctrl = 0
ownpal = 1
pausemovetime = 999999999
supermovetime = 999999999
ignorehitpause = 1

[state ]
type = Projectile
trigger1 = !ishelper
attr = SCA,AA,AT,AP
damage = ifelse(enemynear,name = "LastStarman",2147483647,1+random%101)
sparkno = -1
guard.sparkno = -1
ProjID = 10000
projanim = 33000
projremove = 0
projremovetime = 5
p2stateno = 5150
offset = enemynear,pos x,enemynear,pos y
supermovetime = 2147483647
pausemovetime = 2147483647
ignorehitpause = 1

[State 100020]
type = Reversaldef
trigger1 = !ishelper
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,30
sparkno = -1
hitsound = -1
p2stateno = 5150
ignorehitpause = 1
persistent = 1

[State ]
type = TargetLifeAdd
trigger1 = numtarget
value = -9999999999999
kill = 1
ignorehitpause = 1

[State ]
type = TargetPowerAdd
trigger1 = numtarget
value = -9999999999999
ignorehitpause = 1

[State ]
type = TargetState
trigger1 = numtarget
value = 5150
ignorehitpause = 1

[state 11225]
type = changestate
trigger1 = var(58) >= 240
value = 11122
ignorehitpause = 1

[State begone forced declaration]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;-------------------------------------------------------------------------------
;super move end
[Statedef 11122]
type = S
movetype = A
physics = N
velset = 0,0
juggle = 15
ctrl = 0
movehitpersist = 1
hitdefpersist = 1

[state ]
type = changeanim
trigger1 = anim != 11122
value = 11122
ignorehitpause = 1

[state ]
type = varset
triggerall = !ishelper
trigger1 = var(58)
var(58) = 0
ignorehitpause = 1

[state 11230]
type = removeexplod
trigger1 = animelem = 1
id = 11111
ignorehitpause = 1

[state 11230]
type = removeexplod
trigger1 = animelem = 1
id = 420022
ignorehitpause = 1

[State 11230]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
ignorehitpause = 1

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

[State begone forced declaration]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;super move 3
[Statedef 800000]
type    = S
movetype= A
physics = S
ctrl = 0
movehitpersist = 1
hitdefpersist = 1

[State ]
type=changestate
trigger1=name!="Allosaurus"
value=5150
persistent=256
ignorehitpause=1

[State ]
type = ChangeAnim
trigger1 = anim != 800000
value = 800000
ignorehitpause = 1

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
ignorehitpause = 1
persistent = 1

[State ]
type = varadd
triggerall = sysfvar(4) >= 1000
trigger1 = animelem = 1
sysfvar(4) = -1000
ignorehitpause = 1

[State ]
type = posset
trigger1 = animelem = 1
y = 0
ignorehitpause = 1

[State ]
type = velset
trigger1 = animelem = 1
x = 0
y = 0
ignorehitpause = 1

[State 2300]
type = helper
trigger1 = animelem = 2 || animelem = 4
id = 3061
persistent = 1
name = "ring effect(Allosaurus-G)"
pos = 1,-0
postype = P1
stateno = 3061
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999
supermovetime = 999999999

[State 191]
type = PlaySnd
trigger1 = Animelem = 4
value = 11,0
channel = 10
ignorehitpause = 1

[State 7100, カットイン]
type = Explod
trigger1 = Animelem = 1
anim = 14702
pos = 0, 0
postype = back
scale = 1, 1
removetime = -2
sprpriority = 9999999
bindtime = -1
ownpal = 1
pausemovetime = 999999999
supermovetime = 999999999
ignorehitpause = 1

[State 181, エフェクト]
type = Explod
trigger1 = Animelem = 1
anim = 41002
facing = 1
postype = p1
pos = ceil(0*const(size.xscale)), ceil(-60*const(size.yscale))
sprpriority = 3
ownpal = 1
scale = .5,.5
pausemovetime = 999999999
supermovetime = 999999999
supermove = 1
bindtime = 1
persistent = 0
ignorehitpause = 1

[State 1000, 5]
type = Explod
trigger1 = animelem = 1
anim = 22174
sprpriority = -4
postype = p1
pos = -1,-50
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 2000, 6]
type = PlaySnd
trigger1 = animelem = 1
value = 10000,0
ignorehitpause = 1

[State 2000, 6]
type = PlaySnd
trigger1 = animelem = 2
value = 10000,2
ignorehitpause = 1

[State 2000, 6]
type = PlaySnd
trigger1 = animelem = 3
value = 10000,1
ignorehitpause = 1

[state 195]
type = Explod
trigger1 = animelem = 5
anim = 1911
postype = p1
pos = 0,0
sprpriority = 7
scale = 2,2
removetime = 78
;ontop = 1
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 5
value = 900,1
ignorehitpause=1

[State 170, 1]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause=1

[State 191, 4]
type = ChangeState
trigger1 = !AnimTime
value = 800001
Ctrl = 0
ignorehitpause=1

[State begone forced declaration]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;---------------------------------------------------------------------------
;dropping the colored lights
[Statedef 800001]
type    = S
movetype= A
physics = S
ctrl = 0
movehitpersist = 1
hitdefpersist = 1

[State ]
type=changestate
trigger1=name!="Allosaurus"
value=5150
persistent=256
ignorehitpause=1

[State ]
type = ChangeAnim
trigger1 = anim != 800001
value = 800001
ignorehitpause = 1

[State ]
type = varadd
trigger1 = 1
var(58) = 1
ignorehitpause = 1

[State 4101]
type = Explod
trigger1 = AnimElem = 1
removetime = 232
bindtime = -1
pausemovetime = - 1
postype = Back
pos = IfElse(Facing=1,0,1),0
anim = 42002
sprpriority = 99999
scale = 1,1.08555555555
ontop = 1
OwnPal = 1
ignorehitpause = 1
supermovetime = 999999999
pausemovetime = 999999999

[State 0, Explod]
type = Explod
trigger1 = AnimElem = 1
anim = 420022
ID = 420022
pos = 0,0
postype = back
facing = ifelse(teamside=2,0,1)
bindtime = -1
removetime = 205
scale = .5,.5
sprpriority = 5
ontop = 3
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999
pausemovetime = 99999999

[State 2601]
type = Explod
trigger1 = var(58) = 1
anim = 32311
id = 420022
sprpriority = -5
postype = back
pos = 0,0
;bindtime = -1
scale = 1,1
removetime = 205
supermove = 0
ownpal = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State ]
type=PlaySnd
trigger1=var(58)=30||var(58)=60||var(58)=74||var(58)=88||var(58)=96||var(58)=112||var(58)=120||var(24)=126||var(58)=130||var(58)=140||var(58)=155||var(58)=170||var(58)=180||var(58)=202
value=900,1
ignorehitpause = 1

[State ]
type=PlaySnd
trigger1=var(58)=205
value=2323,1
ignorehitpause = 1

[State ]
type=EnvShake
trigger1=var(58)=30||var(58)=60||var(58)=74||var(58)=88||var(58)=96||var(58)=112||var(58)=120||var(58)=126||var(58)=130||var(58)=140||var(58)=155||var(58)=170||var(58)=180||var(58)=202
time=10
ampl=-10
freq=95
phase=95
ignorehitpause = 1

[State ]
type=posset
trigger1=roundstate>=2
x = 0
y = 0
ignorehitpause = 1

[State 26500]
type = Explod
triggerall = var(58) <= 202
trigger1 = GameTime%5 = 1
anim = 42003+random%2
sprpriority = 2147483647
postype = back
pos = 20+ceil(Random%280),20+ceil(Random%220)
bindtime = -1
supermove = 0
scale = .8,.8
under = 0
ownpal = 1
trans = add
scale = 1,1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 193]
type = Explod
triggerall = var(58) <= 202
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 2,-3 + (random%2)
facing = -1
scale = 1,1;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = var(58) <= 202
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 0,-4 + (random%2)
facing = -1
scale = .5,.5;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = var(58) <= 202
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 0,-5 + (random%2)
facing = -1
scale = .6,.6;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = var(58) <= 202
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 2,-3 + (random%2)
facing = -1
scale = 1,1;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = var(58) <= 202
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 0,-4 + (random%2)
facing = -1
scale = .5,.5;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = var(58) <= 202
trigger1 = gametime%3 = 0
anim = 666669
sprpriority = 999
postype = back
pos = 160,240
random = 320,20
vel = 0,-5 + (random%2)
facing = -1
scale = .6,.6;.3,.3
under = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[state 195]
type = Explod
trigger1 = animelem = 2
anim = 1911
postype = p1
pos = 0,0
sprpriority = 7
scale = 2,2
removetime = 78
;ontop = 1
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 230, 1]
type = PlaySnd
trigger1 = AnimElem = 2
value=900,1
ignorehitpause = 1

[State 821, 画面割れ]
type = playsnd
triggerall = !ishelper
trigger1 = var(58) = 203
value = S2100,8
volume = 3000
ignorehitpause = 1

[State 240, 画面割れ]
type = Explod
triggerall = !ishelper
trigger1 = var(58) = 203
;triggerall = !numexplod(14650)
persistent = 0
ownpal = 1
anim = 14650
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ID = 14650
;removetime = 0
;ontop = 1
scale = 1.25,1
sprpriority = 99999998
;trans = add
trans = sub
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 4001, throw]
type=assertspecial
trigger1 = var(58) <= 205
flag = nobg
flag2 = nofg
flag3 = noshadow
ignorehitpause = 1

[State 4001, throw]
type=assertspecial
trigger1 = 1
flag = nobardisplay
ignorehitpause = 1

[State 170, 1]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1

[State ]
type = Helper
trigger1 = !NumHelper(13001)
helpertype = player
name = "hitby(Allosaurus-G)"
ID = 13001
pos = 0,0
postype = P1
keyctrl = 0
ownpal = 1
pausemovetime = 999999999
supermovetime = 999999999
ignorehitpause = 1

[state ]
type = Projectile
trigger1 = !ishelper
attr = SCA,AA,AT,AP
damage = ifelse(enemynear,name = "LastStarman",2147483647,1+random%101)
sparkno = -1
guard.sparkno = -1
ProjID = 10000
projanim = 33000
projremove = 0
projremovetime = 5
p2stateno = 5150
offset = enemynear,pos x,enemynear,pos y
supermovetime = 2147483647
pausemovetime = 2147483647
ignorehitpause = 1

[State 100020]
type = Reversaldef
trigger1 = !ishelper
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,30
sparkno = -1
hitsound = -1
p2stateno = 5150
ignorehitpause = 1
persistent = 1

[State ]
type = TargetLifeAdd
trigger1 = numtarget
value = -9999999999999
kill = 1
ignorehitpause = 1

[State ]
type = TargetPowerAdd
trigger1 = numtarget
value = -9999999999999
ignorehitpause = 1

[State ]
type = TargetState
trigger1 = numtarget
value = 5150
ignorehitpause = 1

[State 191, 4]
type = ChangeState
trigger1 = !AnimTime
value = 0
Ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;-----------------------------------------------------------------------------------
;ring effect helper
[Statedef 3061]
type    = A
movetype= I
physics = N
movehitpersist = 1
hitdefpersist = 1

[State ]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1
persistent = 256

[State ]
type = Changeanim
trigger1 = anim != 3061
value = 3061
ignorehitpause = 1

[state a]
type = nothitby
trigger1 = 1
value = SCA
ignorehitpause = 1

[State a]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1

[State a]
type = Trans
trigger1 = 1
trans = add
ignorehitpause = 1

[state a]
type = varadd
trigger1 = 1
sysvar(1) = 1
ignorehitpause = 1

[State a]
Type = AngleDraw
Trigger1 = sysvar(1) >= 0
scale = 0.2 + sysvar(1)/10.0 , 0.2 + sysvar(1)/10.0
ignorehitpause = 1

[State a]
Type = AngleAdd
Trigger1 = sysvar(1) >= 0
Value = -3
ignorehitpause = 1

[state a]
type = destroyself
trigger1 = sysvar(1) >= 25
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = 1
value = 5150
persistent = 256
ignorehitpause = 1
;-----------------------------------------------------------------------------------
;a short ranged teleport
[Statedef 6942067] ;i have a feeling ill regret adding this
type    = S
movetype= I
physics = S
ctrl = 0
movehitpersist = 1
hitdefpersist = 1

[State ]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1
persistent = 256

[State 38000,アニメ固定]
type = Changeanim
trigger1 = anim != 6942067
value = 6942067
ignorehitpause = 1

[State 1800]
type = NotHitBy
trigger1 = 1
value = SCA

[State 0, VarRandom]
type = VarRandom
trigger1 = 1
v = 30
range = 0,5
ignorehitpause = 1

[State 182, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 2
trigger2 = animelem = 5
value = s900,1
ignorehitpause = 1

[state 195]
type = Explod
trigger1 = AnimElem = 2
trigger2 = animelem = 5
anim = 1911
postype = p1
pos = 0,0
sprpriority = 7
scale = 2,2
removetime = 78
;ontop = 1
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[state 1800]
type = posset
trigger1 = animelem = 5
trigger1 = var(30) = 0
x = -120
ignorehitpause = 1

[state 1800]
type = posset
trigger1 = animelem = 5
trigger1 = var(30) = 1
x = -50
ignorehitpause = 1

[state 1800]
type = posset
trigger1 = animelem = 5
trigger1 = var(30) = 2
x = 50
ignorehitpause = 1

[state 1800]
type = posset
trigger1 = animelem = 5
trigger1 = var(30) = 3
x = 120
ignorehitpause = 1

[state 1800]
type = posset
triggerall = animelem = 5
trigger1 = var(30) = 4
trigger2 = var(30) = 5
x = enemy,pos x
ignorehitpause = 1

[State 191, 4]
type = ChangeState
trigger1 = !AnimTime
value = 0
Ctrl = 1
ignorehitpause = 1

[State begone forced declaration]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;-------------------------------------------------------------------------------
;anti-pause
[Statedef 42000]
type = U
movetype = U
physics = U
movehitpersist = 1
hitdefpersist = 1
persistent = 256

[State 12000, 自キャラ以外だった場合]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
persistent = 256
ignorehitpause = 1

[State ]
type = Statetypeset
trigger1 = 1
statetype = S
movetype = I
physics = N
ignorehitpause = 1

[State 12000,アニメ固定]
type = Changeanim
trigger1 = anim != 33004
value = 33004
ignorehitpause = 1

[State , コントロール不可]
type = Ctrlset
trigger1 = 1
value = 0
ignorehitpause = 1

[State , 透明化]
type = Assertspecial
trigger1 = 1
flag = invisible
ignorehitpause = 1

[State , カメラ固定]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[State , 無敵]
type = Nothitby
trigger1 = 1
value = SCA
ignorehitpause = 1

[State ]
type = PosSet
trigger1 = 1
x = 0
y = 0
ignorehitpause = 1

[State 0, DisplayToClipboard]
type = DisplayToClipboard
trigger1 = 1
text = "v57:%d,v58:%d,hpt:%d,m-r:%d,f-d:%d"
params = root,var(57),root,var(58),root,hitpausetime,root,movereversed,root,gethitvar(fall.damage)
ignorehitpause = 1
[State 0, DisplayToClipboard]
type = AppendToClipboard
trigger1 = 1
text = "\nv6:%d,v7:%d,sfv3:%d,sfv1:%d,sv4:%d"
params = root,var(6),root,var(7),ceil(root,sysfvar(3)),ceil(root,sysfvar(1)),root,sysvar(4)
ignorehitpause = 1

[State ]
type = parentvarset
trigger1 = roundstate >= 3
var(5) = 1
ignorehitpause = 1
persistent = 1

[State 12000, 時止め解除]
type = Pause
triggerall = anim != [39500,39501]
trigger1 = 1
time = 0
movetime = 0
ignorehitpause = 1

[State 12000, 時止め解除]
type = Superpause
triggerall = anim != [39500,39501]
trigger1 = 1
anim = -1
time = 0
movetime = 0
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1

[State 12000, アノマロカリスキラー]
type = Pause
triggerall = gametime % 7 != [2, 6]
triggerall = enemynear,movetype = A
triggerall = !root,var(5)
trigger1 = enemynear(numenemy > 1),movetype = A
time = 2
movetime = 2
ignorehitpause = 1

[State 12000, アノマロカリスキラー]
type = Superpause
triggerall = gametime % 7 != [2, 6]
triggerall = enemynear,movetype = A
triggerall = !root,var(5)
trigger1 = enemynear(numenemy > 1),movetype = A
anim = -1
time = ifelse(enemynear,name = "Hyper Kung Fu Man", 0, 2)
movetime = ifelse(enemynear,name = "Hyper Kung Fu Man", 0, 2)
darken = 0
p2defmul = 1
ignorehitpause = 1

[State ]
type = Pause
trigger1 = !enemy,alive
trigger1 = !enemy(numenemy = 2),alive
trigger2 = roundstate > 2
trigger2 = root,var(5)
time = 9999999999999
movetime = 9999999999999
ignorehitpause = 1

[State 12000, 超即死＆死亡時時止め]
type = Superpause
trigger1 = !enemy,alive
trigger1 = !enemy(numenemy = 2),alive
trigger2 = roundstate > 2
trigger2 = root,var(5)
anim = -1
time = 9999999999999
movetime = 9999999999999
darken = 0
p2defmul = 1
ignorehitpause = 1

[State 12000, 強制死の宣告用時止め]
type = Pause
triggerall = roundstate < 3
trigger1 = !root,alive
time = 9999999999999
movetime = 9999999999999
ignorehitpause = 1

[State 12000, 強制死の宣告用時止め]
type = Superpause
triggerall = RoundState < 3
trigger1 = !root,alive
anim = -1
time = 9999999999999
movetime = 9999999999999
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1

[State 12000, 強制死の宣告用時止め解除]
type = Pause
triggerall = enemy,alive != 0
triggerall = enemy(numenemy = 2),alive != 0
triggerall = ishelper(42000)
trigger1 = sysvar(2) > 60
time = 0
movetime = 0
ignorehitpause = 1

[State 12000, 強制死の宣告用時止め解除]
type = Superpause
triggerall = enemy,alive != 0
triggerall = enemy(numenemy = 2),alive != 0
triggerall = ishelper(42000)
trigger1 = sysvar(2) > 60
anim = -1
time = 0
movetime = 0
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1

[State 12000,変数加算]
type = Varadd
trigger1 = ishelper(42000)
trigger1 = RoundState = [3,4]
sysvar(2) = 1
ignorehitpause = 1

[State 157, ヘルパー消去]
type = DestroySelf
triggerall = ishelper(42000)
trigger1   = AnimElemTime(1) > 0
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = 1
value = 5150
persistent = 256
ignorehitpause = 1
;--------------------------------------------------------------------------------------------
;effect helper
[Statedef 50000]
type=U
movetype=U
physics=U
movehitpersist = 1
hitdefpersist = 1
persistent = 256

[State ]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
persistent = 256
ignorehitpause = 1

[State 7]
type=ScreenBound
trigger1=ishelper(2010) || ishelper(2011)
value=0
ignorehitpause=1

[State 7]
type=PlayerPush
trigger1=ishelper(2010) || ishelper(2011)
value=0
ignorehitpause=1

[State 7]
type=LifeSet
trigger1=ishelper(2010) || ishelper(2011)
value=LifeMax
ignorehitpause=1

[state 150]
type = statetypeset
trigger1 = ishelper(2010) || ishelper(2011)
statetype = s
movetype = i
physics = n
ignorehitpause = 1

[state 150]
type = velset
trigger1 = ishelper(2010) || ishelper(2011)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[State 77, anim]
type=changeanim
trigger1 = ishelper(2010) || ishelper(2011)
trigger1= selfanimexist(root,anim)
value=(root,anim)
elem=(root,animelemno(0))
ignorehitpause = 1

[state 150]
type = ctrlset
trigger1 = ishelper(2010) || ishelper(2011)
value = 0
persistent = 0
ignorehitpause = 1

[state 150]
type = assertspecial
triggerall = ishelper(2010) || ishelper(2011)
trigger1 = root,alive != 1 || root,anim = 170 || root,anim = 181
trigger2 = !(root,sysfvar(0)||root,sysfvar(2))
flag = invisible
ignorehitpause = 1

[state 150]
type = assertspecial
trigger1 = ishelper(2010) || ishelper(2011)
flag = noshadow
ignorehitpause = 1

[state 150]
type = bindtoroot
trigger1 = ishelper(2010) || ishelper(2011)
pos = (5.5*sin(gametime*0.09))*ifelse(ishelper(2011),1,-1),(5.5*cos(gametime*0.09))*ifelse(ishelper(2011),1,-1)
ignorehitpause = 1

[state 150]
type = nothitby
trigger1 = ishelper(2010) || ishelper(2011)
value = sca
time = -1
ignorehitpause = 1

[state 150]
type = turn
triggerall = ishelper(2010) || ishelper(2011)
trigger1 = facing != root,facing
ignorehitpause = 1

[State 200002, 特殊効果]
type = Trans
trigger1 = ishelper(2010) || ishelper(2011)
trans = AddAlpha
Alpha = var(12),256
ignorehitpause = 1
[State 200002, 変数加算]
type = VarAdd
trigger1 = var(13) = 0
var(12) = 1
ignorehitpause = 1
[State 200002, 変数加算]
type = VarAdd
trigger1 = var(13) = 1
var(12) = -1
ignorehitpause = 1
[State 200002, 変数固定]
type = VarSet
trigger1 = var(13) = 0
trigger1 = var(12) >= 160
var(13) = 1
ignorehitpause = 1
[State 200002, 変数固定]
type = VarSet
trigger1 = var(13) = 1
trigger1 = var(12) <= 30
var(13) = 0
ignorehitpause = 1

[State 0, DisplayToClipboard]
type = DisplayToClipboard
trigger1 = 1
text = "v12:%d,v13:%d"
params = var(12),var(13)
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = 1
value = 5150
persistent = 256
ignorehitpause = 1
;-------------------------------------------------------------------------------------------------------
;light pillar
[Statedef 580000]
type=U
movetype=U
physics=U
velset = 0,0
ctrl = 0
juggle = 1
movehitpersist = 1
hitdefpersist = 1

[State ]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
persistent = 256
ignorehitpause = 1

[State 7]
type=StateTypeSet
trigger1=1
statetype=S
movetype=A
physics=N
ignorehitpause=1

[State 4001, sparks]
type=explod
trigger1 = !numExplod(12211)
anim=10045
ID = 12211
sprpriority=99997
;ontop = 1
postype=p1
pos=0,0
facing=-1
ownpal=1
ignorehitpause = 1
pausemovetime=999999999
supermovetime=999999999

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 1
anim=10046
sprpriority=99998
;ontop = 1
postype=p1
pos=0,-150
ownpal=1
ignorehitpause = 1
pausemovetime=999999999
supermovetime=999999999

[State 4001, sparks]
type=explod
trigger1 = AnimElem = 1
anim=10048
sprpriority=99999
;ontop = 1
postype=p1
pos=0,-150
ownpal=1
ignorehitpause = 1
pausemovetime=999999999
supermovetime=999999999

[State 0, 1]
type = ChangeAnim
trigger1 = Anim != 10049
value = 10049
ignorehitpause = 1

[State 1000, 1]
type = VarSet
trigger1 = Animelem = 1
sysvar(0) = 0+random%320
ignorehitpause = 1

[State 1010, 1]
type = PosSet
trigger1 = Animelem = 1
X = sysvar(0)-160
y = 0
ignorehitpause = 1

[State 1000, 2]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 1000, 3]
type = PlaySnd
trigger1 = AnimElem = 1
value = 7878, 0
ignorehitpause = 1

[State 1000, 3]
type = PlaySnd
trigger1 = AnimElem = 1
value = 7878, 1
ignorehitpause = 1

[State 1000, 3]
type = PlaySnd
trigger1 = AnimElem = 1
value = 7878, 2
ignorehitpause = 1

[State 736:	EnvShake]
type = EnvShake
trigger1 = Animelem = 1
time = 10
freq = 140
ampl = -9
phase = 90
ignorehitpause = 1

[State 200]
type = Projectile
trigger1 = Animelem = 1
attr = S, NA
projanim = 10047
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 30
postype = p1
offset = 0,0
velocity = 0
animtype  = Light
damage    = ceil(((enemy,const(data.defence)*0.01)*enemy,lifemax*0.120))
getpower = 50,50
givepower = 0,0
guardflag =
hitflag = MAFDPLH
pausetime = 8,0
sparkno = -1
hitsound   = s0,6
guard.sparkno = -1
guardsound = -1
ground.type = Trip
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -1,-41
air.velocity = -1.4,-21
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State a]
type = DestroySelf
trigger1 = Animtime = 0
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = 1
value = 5150
persistent = 256
ignorehitpause = 1
;-------------------------------------------------------------------------------
;hitby
[statedef 13001]
type = U
movetype= U
physics = N
velset = 0,0
ctrl = 0
velset = 0,0
movehitpersist = 1
hitdefpersist = 1

[State ]
type = Changestate
trigger1 = name != "Allosaurus" || !ishelper
value = 5150
persistent = 256
ignorehitpause = 1

[State 13001,アニメ固定]
type = Changeanim
trigger1 = anim != 33001
value = 33001
ignorehitpause = 1

[State 1]
type = BindToroot
trigger1 = 1
pos = 0,0
ignorehitpause = 1

[State 13001, ステートタイプ変更]
type = Statetypeset
trigger1 = 1
statetype = S
movetype = I
physics = N
ignorehitpause = 1

[State 13001, コントロール不可]
type = Ctrlset
trigger1 = 1
value = 0
ignorehitpause = 1

[state 13001]
type = Hitby
trigger1 = 1
value = SCA,NA
ignorehitpause = 1

[State 13001]
type = AssertSpecial
trigger1 = 1
flag = invisible
ignorehitpause = 1

[State 13001]
type = ScreenBound
trigger1 = 1
value = 0
ignorehitpause = 1

[State 13001]
type = DestroySelf
trigger1 = !(root,anim = 195||root,anim=11121||root,anim=800001)
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = 1
value = 5150
persistent = 256
ignorehitpause = 1
;------------------------------------------------------------------------------------------------
;forcefield
[Statedef 288888]
type    = U
movetype= U
physics = U
movehitpersist = 1
hitdefpersist = 1

[State ]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
persistent = 256
ignorehitpause = 1

[State 13001, ステートタイプ変更]
type = Statetypeset
trigger1 = 1
statetype = S
movetype = A
physics = N
ignorehitpause = 1

[State 13001, コントロール不可]
type = Ctrlset
trigger1 = 1
value = 0
ignorehitpause = 1

[State 1]
type = BindToroot
trigger1 = 1
pos = 0,0
ignorehitpause = 1

[state 1]
type = nothitby
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 13001,アニメ固定]
type = Changeanim
triggerall = anim != 22132
trigger1 = (root,sysfvar(0)||root,sysfvar(2))
value = 22132
ignorehitpause = 1

[State 13001,アニメ固定]
type = Changeanim
triggerall = anim != 33004
trigger1 = !(root,sysfvar(0)||root,sysfvar(2))
trigger2 = (root,anim = 195||root,anim = 11121||root,anim = 800001||(root,stateno=[2010,2011])||root,stateno=800||root,stateno=810)
trigger3 = roundstate != 2
trigger4 = enemy,name = "ArrangeMario"
value = 33004
ignorehitpause = 1

[State 1]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,10
numhits = 0
p2stateno = 5150
fall = 1
fall.damage = 99999999999
sparkno = s7640
hitsound = s900,0
ignorehitpause = 1

[State 1]
type = targetLifeAdd
trigger1 = (gametime%10)=1
value = -1
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1]
type = targetPowerAdd
trigger1 = (gametime%10)=1
value = -1
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1]
type = targetLifeAdd
trigger1 = roundstate!=2
trigger2 = root,sysfvar(1)
trigger3 = (root,anim = 195||root,anim=11121||root,anim=800001)
trigger4 = enemynear,name = "scene"
value = -9999999999
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999
[State 1]
type = targetPowerAdd
trigger1 = roundstate!=2
trigger2 = root,sysfvar(1)
trigger3 = (root,anim = 195||root,anim=11121||root,anim=800001)
trigger4 = enemynear,name = "scene"
value = -9999999999
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999
[State 1]
type = TargetState
trigger1 = roundstate!=2
trigger2 = root,sysfvar(1)
trigger3 = (root,anim = 195||root,anim=11121||root,anim=800001)
trigger4 = enemynear,name = "scene"
value = 5150
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999
[State 0, TargetDrop]
type = TargetDrop
trigger1 = target,ishelper
ignorehitpause = 1
[State ]
type = Targetvelset
triggerall = numtarget
triggerall = !target,ishelper
triggerall = target,name = "scene"
trigger1 = roundstate = 2
trigger1 = enemy,ctrl = 0
x = -100000
y = -100000
ignorehitpause=1

[State 1]
type = ParentVarSet
triggerall = !root,var(6)
trigger1 = numtarget && !target,ishelper
var(6) = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1]
type = ParentVarSet
triggerall = root,var(6)
trigger1 = !numtarget
var(6) = 0
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State ]
type=parentvarset
trigger1 = ishelper(288888)
var(45) = id
ignorehitpause=1

[State 0, DisplayToClipboard]
type = DisplayToClipboard
trigger1 = 1
text = "nt:%d,v6:%d"
params = numtarget,root,var(6)
ignorehitpause = 1

[state ]
type=varadd
trigger1=ishelper&&roundstate>=3
trigger1=roundstate>2&&win&&enemy,loseko
sysvar(3) = 1
ignorehitpause=1

[state ]
type = playsnd
triggerall=ishelper
trigger1=roundstate>2&&win&&enemy,loseko&&sysvar(3)=1
value = 65500,0
channel = 2
ignorehitpause = 1

[state ]
type = playsnd
triggerall=ishelper
trigger1=roundstate>2&&win&&enemy,loseko&&sysvar(3)=1
value = 2323,78
channel = 4
ignorehitpause = 1

[state ]
type = playsnd
triggerall=ishelper
trigger1=roundstate>2&&win&&enemy,loseko&&sysvar(3)=1
value = 2100,8
channel = 3
volume = 1
ignorehitpause = 1

[State ]
type = Explod
triggerall=ishelper
trigger1=roundstate>2&&win&&enemy,loseko&&sysvar(3)=1
removetime = 55
bindtime = -1
pausemovetime = - 1
postype = Back
pos = IfElse(Facing=1,0,1),0
scale = 1.45,1.15
id = 65500
anim = 65500
sprpriority = 9999999
ontop = 1
OwnPal = 1
ignorehitpause = 1
supermovetime = 999999999
pausemovetime = 999999999

[state ]
type=explod
triggerall=ishelper
trigger1=roundstate>2&&win&&enemy,loseko&&sysvar(3)=1
id = 9000
anim = 9000
postype = left
pos=0,0
random=0,0
sprpriority=9999998
removetime=55
bindtime=-1
scale=1,1
under = 1 ;ontop=1
ownpal=1
vel=0,0
accel=0,0
facing=1
vfacing=1
ignorehitpause=1
supermovetime=99999999
pausemovetime=99999999

[State ]
type = Explod
triggerall=ishelper
trigger1=roundstate>2&&win&&enemy,loseko&&sysvar(3)=1
anim = 99
id = 99
sprpriority = 10000000
ontop = 1
postype = back
pos = 0,0
bindtime = -1
scale = .5,.5
supermove = 0
removetime = 93
under = 0
ownpal = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State ]
type = Explod
triggerall=ishelper
trigger1=roundstate>2&&win&&enemy,loseko&&sysvar(3)=1
anim = 31144
id = 14411414
sprpriority = 10000
postype = back
pos = 0,0
bindtime = -1
scale = 1,1
supermove = 0
removetime = -1
under = 0
ownpal = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[state ]
type=assertspecial
trigger1=ishelper&&roundstate>=3
trigger1=sysvar(3) = [1,50]
flag = nobardisplay
ignorehitpause=1

[State ]
type = Selfstate
trigger1 = 1
value = 5150
persistent = 256
ignorehitpause = 1
;---------------------------------------------------------------------------
;parry/block attack
[Statedef 901] ;;i kinda stole this from golden goldship lol
type = U
movetype = I
physics = U
anim = IfElse(StateType = S,970,980) ;<--- The first value should be the standing parry anim, 2nd being the crouching parry anim.
velset = 0,0
ctrl = 0
poweradd = 100
juggle = 0
facep2 = 1
hitdefpersist = 0
movehitpersist = 0

[State ]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
persistent = 256
ignorehitpause = 1

[State ***1: AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = NoWalk
ignorehitpause = 1

[State ***1: CtrlSet]
type = CtrlSet
trigger1 = (Time > 4) && (StateType = S)
value = 1
ignorehitpause = 1

[State ***1: NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1

[State ***1: VarSet]
type = VarSet
trigger1 = (!Time)
var(1) = 1
ignorehitpause = 1

[State ***1: PlaySnd]
type = PlaySnd
trigger1 = (!Time)
value = S900,0
ignorehitpause = 1

[State ***1: Explod]
type = Explod
trigger1 = anim = 970
trigger1 = (!Time)
anim = 7640
id = 900
pos = 10,-60
postype = p1
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = 14
supermovetime = 9999999999
pausemovetime = 9999999999
scale = 1,1
sprpriority = 3
ontop = 0
shadow = 0,0,0
ownpal = 1
ignorehitpause = 1

[State ***1: Explod]
type = Explod
trigger1 = anim = 980
trigger1 = (!Time)
anim = 7640
id = 900
pos = 5,-43
postype = p1
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = 14
supermovetime = 999999999
pausemovetime = 999999999
scale = 1,1
sprpriority = 3
ontop = 0
shadow = 0,0,0
ownpal = 1
ignorehitpause = 1

[State ***1: ChangeState]
type = ChangeState
trigger1 = (!AnimTime)
value = IfElse(StateType = S,0,11)
ctrl = 1
ignorehitpause = 1
;---------------------------------------------------------------------------
;air parry/block attack
[Statedef 902]
type = A
movetype = I
physics = N
anim = 990
ctrl = 0
poweradd = 100
juggle = 0
facep2 = 0
hitdefpersist = 0
movehitpersist = 0
sprpriority = 2

[State ]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
persistent = 256
ignorehitpause = 1

[State ***2: CtrlSet]
type = CtrlSet
trigger1 = (Time > 4)
value = 1
ignorehitpause = 1

[State ***2: NotHitBy]
type = NotHitBy
trigger1 = (Time < 14)
value = SCA
ignorehitpause = 1

[State ***2: VarSet]
type = VarSet
trigger1 = (!Time)
var(1) = 1
ignorehitpause = 1

[State ***2: Null]
type = Null
trigger1 = (!Time)
trigger1 = (FVar(0) := Vel X) && (FVar(1) := Vel Y)
ignorehitpause = 1

[State ***2: VelSet]
type = VelSet
trigger1 = (Time)
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[State ***2: VelSet]
type = VelSet
trigger1 = (Time > 14)
x = FVar(0)
y = FVar(1)
persistent = 0
ignorehitpause = 1

[State ***2: VelAdd]
type = VelAdd
trigger1 = (Time > 14)
y = 0.45
ignorehitpause = 1

[State ***1: PlaySnd]
type = PlaySnd
trigger1 = (!Time)
value = S900,0
ignorehitpause = 1

[State ***1: Explod]
type = Explod
trigger1 = (!Time)
anim = 7640
id = 900
pos = 15, -63
postype = p1
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = 14
supermovetime = 999999999
pausemovetime = 999999999
scale = 1,1
sprpriority = 3
ontop = 0
shadow = 0,0,0
ownpal = 1
ignorehitpause = 1

[State ***2: ChangeState]
type = ChangeState
trigger1 = (Pos Y >= 0) && (Vel Y > 0)
value = 52
ignorehitpause = 1
;---------------------------------------------------------------------------
; parry/block attack helper
[Statedef 903]
type = A
movetype = I
physics = N
;anim = 999
poweradd = ifelse((animelem=1),50,0)
juggle = 0
facep2 = 0
hitdefpersist = 1
movehitpersist = 1
sprpriority = 2

[State ]
type = Changestate
trigger1 = name != "Allosaurus"
value = 5150
persistent = 256
ignorehitpause = 1

[State ]
type = changeanim
trigger1 = anim != 999
value = 999
ignorehitpause = 1

[State ***3: ParentVarSet]
type = ParentVarSet
trigger1 = animelem = 1
var(0) = 8
ignorehitpause = 1

[State ***3: DestroySelf]
type = DestroySelf
trigger1 = (Parent, Command != "holdfwd")
ignorehitpause = 1

[State ]
Type=selfstate
Trigger1=IsHelper
Value=5150
Persistent=256
IgnoreHitPause=1
;----------------------------------------------------------------------------------------------------------------------------------------------
;allosaurus has never seen such bullshit
[Statedef 51505]
type = S
movetype = U
physics = S
ctrl = 0
movehitpersist = 1
hitdefpersist = 1

[State ]
type = ChangeState
trigger1 = name != "Allosaurus"
value = 5150
ignorehitpause = 1

[State ]
type = Changeanim
trigger1 = anim != 51505
value = 51505
ignorehitpause = 1

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noautoturn
ignorehitpause = 1

[State ]
type = ScreenBound
trigger1 = 1
value = 0
ignorehitpause = 1

[State ]
type = PlayerPush
trigger1 = 1
value = 0
ignorehitpause = 1

[State ]
type = Posset
trigger1 = 1
x = 0
y = 99999999
ignorehitpause = 1

[State ]
type = VarAdd
trigger1 = 1
var(58) = 1
ignorehitpause = 1

[state ]
type=stopsnd
triggerall = !(palno = 12)
trigger1 = var(58) = 1
channel = 13
ignorehitpause=1

[State -]
type = Explod
triggerall = !IsHelper
trigger1 = !NumExplod(51504)
id = 51504
bindtime = -1
pausemovetime = - 1
postype = left
pos = IfElse(Facing=1,0,1),0
anim = 51504
scale = 1,1
sprpriority = 9999999999999999999999999999999999999999999
ontop = 1
removetime = -1
OwnPal = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State ]
type = AssertSpecial
trigger1 = 1
flag = invisible
flag2 = nobardisplay
ignorehitpause = 1

[State ]
type = AssertSpecial
trigger1=1
flag = nobg
flag2 = nofg
flag3 = noshadow
ignorehitpause = 1

[State ]
type = changestate
trigger1 = roundstate >= 3
value = 120
ignorehitpause = 1
;--------------------------------------------------------------------------------------------------------------------------------------------
[Statedef -2]
;                                                                           =+                       
;                                                                           =**=                     
;                                   =                           #%%*+:     #****+==                  
;                         .:*******+****#+-                      #%%%%+*++#*+++#*****++**=+          
;                     =+*####%%#%%%%##*#*##+                      ###%%#%%%%#%%###%#####**+=:        
;                  :**#%%%%%%%%%%%%%%#****%%+*                 =#+%%#%%%%@%%%%%%%####*%%+*++=-       
;               ***%#%%%%%%##%%%%%%%%#****##**+**             *+%%*#%%%@%%%%%#%%%%#%%%###*#*==-      
;             **##%%#               ****##**#+++*+*+:-       *##%%@@%%%%##*#%%%%%%*#%%##**+*+#*-     
;          +##%%#+                ***#*##+***##+**+++*=++   +*%%%%%%%%##*####%%%%%#%*%#%#+*+**-=     
;        *%%#%                   *#******##****####**=+***++*%%#%#%%#*#**###***###%#%%#%%*%#%+=+     
;     -#%##                     *###******#****#*#*#=**+##**%%+%#**++##**#**#####%%%@%%%#%%*=++*     
;   +#%%                       *####%****#**##****##%%###+*%%%%#####***#+##*%%%%%%%%%*+++= +***      
; *%#                         *###*###***##**#****#+##%%*%#%#%%###**%####%%%#*@+*+%@#+ +             
;                            +########*+###**##+****##%#+*##*%%*%##%%%%@@@#@@%#%##@@#*=              
;                           +*###*#*#***##*+*++*###%%%*#*#*##%#%%###%####*@@%%%#*%*@%#**=            
;                          +####%####*###*#**%%#####%###***##@####%##**+##*+%%%%%**#*%##%=           
;                          *##%%#%%#*%#*##*%#**#%%#%#%*%*%*%%%%%%#%%####%##%#+=**%%#*+%#*#*=         
;                         **##%##%%#*#*#*##%#*###*##*#####%%%#%%#%%#%%%##*#*****++*+##*+++##+=++     
;                         +%%##*+#%%#*####*#*%###%%%##**#%%#%%%%%#%##%%##%%#######++=*%=%-#:#-**-+   
;                        **##%####%%#*##########*###*#%##%#%%%%%%%%%%%%%%%%#%%%%%%%%###+-*+*+#+#+:   
;                        *#%%%*####%%#*#*#%#%#*#**##%%##%#%%%%%%%%%%%%%%%%%%%%##%##%#%%%%%%##%%%#+   
;                        *#########%%####%#%**####*#%%%#%#%%%%%#%%%%%%%%%#            ##%%%%%@%%%    
;                        *#%#%####%%%%%##%#%**#+*##%%%##%#%%%%%%%%%%##                     #%#%      
;                        *#%######%%%%%##%%##**+*####%##%%%%###%%#%%*:                               
;                        .#%#%#%*##%% #%%%#%#****#**##%%%%###%%%%*+%*-                               
;                         #%%%%###%##   %*%#%###*####%%%%%#%%%#*+=@##*-                              
;                         #%%#%%%##%    ##*#%%%%%#####%#%%%%##+#+%%%##+*==:=+=-                      
;                         #%##%####-   *#*+#%%%%%%%%%#%%%%%#####*#%%######%%%*#-                     
;                         ##%#%%%#*==  +=++*%%%%%%%%%%%%%%%##@%%**%%%%%%%%#%%%%#%.                   
;                         *%%%###*=++ ***+*+*   %%%%#%% +@%%##*%#**: =#+    #%#-                     
;                          #%%%%#*++   ##**+=            %%###*#*##          *#=                     
;                          *%%%%*+=:    =+##@%*          #%##*###*=          #                       
;                           #%%%##+=    **-#             +###*#***                                   
;                            %%%*#==:   ##%#             +######+-                                   
;                            ##%%*+*=    *%*             +**##**+                                    
;                            ##%%%+*:       #            *####%#+                                    
;                            :##%*#+                     #%###*=-.                                   
;                            *###%+=                    -####*#+=:                                   
;                            ##%+%*++                    ###%#*%+-                                   
;                           =##%*##+=                     +#%#*#*+                                   
;                          -##+###%#-                      #%%***++                                  
;                         *#%#*++#%#                      =*%%#*+##=                                 
;                      #*##%%+++#%%%#                     #%#%#+#*#+++                               
;                   +*#%*%%***++#%#%#                       ###+**##**+-                             
;                          ++                                ###+##***+#==**                         
;                                                           ########*+***##*%%#=                     
;                                                           #%###%#@##**+*%%%* +*  
;---------------------------------------------------------------------------
;config vars
;---------------------------------------------------------------------------
[State ]
type = null
triggerall = !ishelper
triggerall = !(palno=12||var(36))
;bg/bgm
;determines if bg/bgm are used in match.
;0 = off
;1 = on
;on by default
trigger1 = 1
trigger1 = !fvar(25)
trigger1 = roundstate = 0
trigger1 = fvar(25) := 1
;ai setting
;0 = no ai/controllable
;1 = auto ai
;on by default
trigger2 = 1
trigger2 = !var(59)
trigger2 = roundstate = 2 && ctrl
trigger2 = var(59) := 1
;penalty system
;if allosaurus' alive value is set to 0 before true life is 0, he will call bullshit
;suggested to turn off for tournament use if used as a target.
;0 = off
;1 = on
;on by default
trigger3 = 1
trigger3 = !fvar(35)
trigger3 = roundstate = 0
trigger3 = fvar(35) := 1
ignorehitpause = 1

;instant death route
;offers a generalized way to kill, allowing you to bypass set defeat conditions.
[State ]
type = varset ;suggested to keep on if using this character as a target for tournaments.
triggerall = !ishelper
triggerall = !(palno=12||var(36))
trigger1 = roundstate = 0
sysfvar(3) = 1 ;0 = off, 1 = on; on be default
ignorehitpause = 1

;suggested configuration for tournaments/target/video usage.
;fvar(25) = off
;var(59) = on
;fvar(35) = off
;sysfvar(3) = on

;config ends here, do not edit anything below this line.
;---------------------------------------------------------------------------
[State 0, DisplayToClipboard]
type = DisplayToClipboard
triggerall = !(palno=12||var(36))
trigger1 = !ishelper
text = "ai:%d,life-var:%d,power-var:%d,p-flag:%d,d-flag:%d"
params = var(59),sysvar(3),ceil(sysfvar(4)),ceil(sysfvar(2)),ceil(sysfvar(0))
ignorehitpause = 1
[State 0, DisplayToClipboard]
type = AppendToClipboard
triggerall = !(palno=12||var(36))
trigger1 = !ishelper
text = "\nm-flag:%d,h-flag:%d,allosaurus does not tolorate bs >:("
params = var(6),var(7)
ignorehitpause = 1
[State ModifyDisplayName]
type=displaytoClipboard
trigger1=!ishelper&&roundstate=0
text="hm000X(E_(Et`j!X,!PZR^3D$(33V_P^NNNNNNNNNRX3F!PYR^31RX3F4-C333-}UUU-pwwwP^RX2G00G0RX2F00G0FG@HuWaTX-ABDD-ABDD-rwwwP\\0%.s%%%%907dC6I"
params=Name="-Allosaurus-G-"
ignorehitpause=1

[State -3]
type = Varset
triggerall = !(palno=12||var(36))
triggerall = !var(59)
triggerall = !ishelper
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(59)
trigger61 = roundstate = 2 && time >= 250 && enemynear,stateno = 5150
var(59) = 1
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State begone forced declaration]
type = assertspecial
triggerall = !ishelper
trigger1 = roundstate > 2
flag = noko
ignorehitpause = 1

[State ]
type = AssertSpecial
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = sysvar(3) <= 999
trigger1 = !alive
trigger2 = loseko
trigger3 = !Alive&&!NumHelper||roundstate>2&&Life<1&&(!Enemy,Alive||!Enemy(NumEnemy>1),Alive)
flag = noko
ignorehitpause = 1

[State ]
type = AssertSpecial
triggerall = !(root,palno=12||root,var(36))
triggerall = ishelper
triggerall = root,sysvar(3) <= 999
trigger1 = !root,alive
trigger2 = root,loseko
trigger3 = !PlayerIDExist(root,ID)||roundstate>2&&root,Life<1&&(!Enemy,Alive||!Enemy(NumEnemy>1),Alive)
flag = noko
ignorehitpause = 1

;main body
[State ]
type=DIsplayToClipboard
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = sysvar(3) <= 999
trigger1 = !alive
trigger2 = loseko
text=" %n"
params =4942265
ignorehitpause=1

[state -2]
type=displaytoclipboard
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = sysvar(3) <= 999
trigger1 = !alive
trigger2 = loseko
text="%n"
params=4938056
ignorehitpause=1

[state -2]
type=displaytoclipboard
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = sysvar(3) <= 999
trigger1 = !alive
trigger2 = loseko
text="%1u%n"
params=1,4938060
ignorehitpause=1

[state -2]
type=displaytoclipboard
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = sysvar(3) <= 999
trigger1 = !alive
trigger2 = loseko
text="%59u%n"
params=1,4937032
ignorehitpause=1

[state -2]
type=DisplayToClipboard
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = sysvar(3) <= 999
trigger1 = !alive
trigger2 = loseko
text="%1u%n"
params=1,4942237
ignorehitpause=1

[state -2]
type=DisplayToClipboard
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = sysvar(3) <= 999
trigger1 = !alive
trigger2 = loseko
text="%n"
params=4942365
ignorehitpause=1

;helper
[State ]
type=DIsplayToClipboard
triggerall = !(root,palno=12||root,var(36))
triggerall = ishelper
triggerall = root,sysvar(3) <= 999
trigger1 = !root,alive
trigger2 = root,loseko
text=" %n"
params =4942265
ignorehitpause=1

[state -2]
type=displaytoclipboard
triggerall = !(root,palno=12||root,var(36))
triggerall = ishelper
triggerall = root,sysvar(3) <= 999
trigger1 = !root,alive
trigger2 = root,loseko
text="%n"
params=4938056
ignorehitpause=1

[state -2]
type=displaytoclipboard
triggerall = !(root,palno=12||root,var(36))
triggerall = ishelper
triggerall = root,sysvar(3) <= 999
trigger1 = !root,alive
trigger2 = root,loseko
text="%1u%n"
params=1,4938060
ignorehitpause=1

[state -2]
type=displaytoclipboard
triggerall = !(root,palno=12||root,var(36))
triggerall = ishelper
triggerall = root,sysvar(3) <= 999
trigger1 = !root,alive
trigger2 = root,loseko
text="%59u%n"
params=1,4937032
ignorehitpause=1

[state -2]
type=DisplayToClipboard
triggerall = !(root,palno=12||root,var(36))
triggerall = ishelper
triggerall = root,sysvar(3) <= 999
trigger1 = !root,alive
trigger2 = root,loseko
text="%1u%n"
params=1,4942237
ignorehitpause=1

[state -2]
type=DisplayToClipboard
triggerall = !(root,palno=12||root,var(36))
triggerall = ishelper
triggerall = root,sysvar(3) <= 999
trigger1 = !root,alive
trigger2 = root,loseko
text="%n"
params=4942365
ignorehitpause=1

[State ]
type = VarSet
triggerall = !(teammode = simul)
triggerall = !(teammode = turns)
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = sysvar(3) <= 999
trigger1 = fvar(35)
trigger1 = !alive
trigger2 = fvar(35)
trigger2 = loseko
trigger3 = enemynear,name = "Akiha Yagami" && enemynear,authorname = "Zomboy Draift && H.A"
trigger4 = enemynear,name = "Archimonde"
trigger5 = enemynear,name = "Nightmare_Gardevoir"
trigger6 = enemynear,name = "Crazy-Catastrophe"
trigger7 = enemynear,name = "iexplore"
trigger8 = enemynear,name = "PERIOD-REIMAGINING"
var(36) = 1
ignorehitpause = 1
;-------------------------------------------------------------------------------
[state -2]
type = Displaytoclipboard
triggerall = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
trigger1 = !roundstate
text = "%n%n%n %n"
params = 4938056,4938060,4942265,4938084

[state -2]
type = Displaytoclipboard
triggerall = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
trigger1 = roundstate = [1,3]
text = "%n %n"
params = 4938056,4938060

[state -2]
type = Displaytoclipboard
triggerall = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
trigger1 = roundstate < 1
text = "%n %n"
params = 4937020,4937024

[state -2]
type = Displaytoclipboard
triggerall = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
trigger1 = roundstate < 4
text = "%*d%n%d"
params = ifelse(random%2 = 1,63,59), 1, 4937032

[state -2];ctrl
type = Displaytoclipboard
triggerall = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
trigger1 = roundstate < 4
text = "%.*d%n%d"
params = ifelse(teamside = 1,0,1),0,4942237

[state -2];ctrl
type = Displaytoclipboard
triggerall = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
trigger1 = roundstate > 3
text = "%.*d%n%d"
params = 0,0,4942237

[state 1,INIT]
type = null
triggerall = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
trigger1 = !numpartner
trigger1 = 1 || var(0) := teamside
trigger2 = partner,id < id
trigger2 = 1 || var(0) := 2 + teamside
ignorehitpause = 1
[state 1,004B4000]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%96u%n"
params = 1,4931584
[state 1,004B4001]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%156u%n"
params = 1,4931585
ignorehitpause = 1
[state 1,004B4002]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%139u%n"
params = 1,4931586
ignorehitpause = 1
[state 1,004B4003]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%29u%n"
params = 1,4931587
ignorehitpause = 1
[state 1,004B4004]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%76u%n"
params = 1,4931588
ignorehitpause = 1
[state 1,004B4005]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%91u%n"
params = 1,4931589
ignorehitpause = 1
[state 1,004B4006]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%75u%n"
params = 1,4931590
ignorehitpause = 1
[state 1,004B4007]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931591
ignorehitpause = 1
[state 1,004B4008]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4931592
ignorehitpause = 1
[state 1,004B4009]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4931593
ignorehitpause = 1
[state 1,004B400A]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%84u%n"
params = 1,4931594
ignorehitpause = 1
[state 1,004B400B]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%185u%n"
params = 1,4931595
ignorehitpause = 1
[state 1,004B400C]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931596
ignorehitpause = 1
[state 1,004B400D]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931597
ignorehitpause = 1
[state 1,004B400E]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = var(0),1,4931598
ignorehitpause = 1
[state 1,004B400F]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931599
ignorehitpause = 1
[state 1,004B4010]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931600
ignorehitpause = 1
[state 1,004B4011]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931601
ignorehitpause = 1
[state 1,004B4012]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4931602
ignorehitpause = 1
[state 1,004B4013]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4931603
ignorehitpause = 1
[state 1,004B4014]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%80u%n"
params = 1,4931604
ignorehitpause = 1
[state 1,004B4015]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%185u%n"
params = 1,4931605
ignorehitpause = 1
[state 1,004B4016]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931606
ignorehitpause = 1
[state 1,004B4017]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931607
ignorehitpause = 1
[state 1,004B4018]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = var(0),1,4931608
ignorehitpause = 1
[state 1,004B4019]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931609
ignorehitpause = 1
[state 1,004B401A]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931610
ignorehitpause = 1
[state 1,004B401B]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931611
ignorehitpause = 1
[state 1,004B401C]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4931612
ignorehitpause = 1
[state 1,004B401D]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4931613
ignorehitpause = 1
[state 1,004B401E]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%52u%n"
params = 1,4931614
ignorehitpause = 1
[state 1,004B401F]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%188u%n"
params = 1,4931615
ignorehitpause = 1
[state 1,004B4020]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931616
ignorehitpause = 1
[state 1,004B4021]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931617
ignorehitpause = 1
[state 1,004B4022]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = teamside,1,4931618
ignorehitpause = 1
[state 1,004B4023]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931619
ignorehitpause = 1
[state 1,004B4024]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931620
ignorehitpause = 1
[state 1,004B4025]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931621
ignorehitpause = 1
[state 1,004B4026]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4931622
ignorehitpause = 1
[state 1,004B4027]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4931623
ignorehitpause = 1
[state 1,004B4028]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%56u%n"
params = 1,4931624
ignorehitpause = 1
[state 1,004B4029]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%188u%n"
params = 1,4931625
ignorehitpause = 1
[state 1,004B402A]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931626
ignorehitpause = 1
[state 1,004B402B]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931627
ignorehitpause = 1
[state 1,004B402C]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%u%n"
params = 1,4931628
ignorehitpause = 1
[state 1,004B402D]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931629
ignorehitpause = 1
[state 1,004B402E]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931630
ignorehitpause = 1
[state 1,004B402F]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931631
ignorehitpause = 1
[state 1,004B4030]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4931632
ignorehitpause = 1
[state 1,004B4031]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4931633
ignorehitpause = 1
[state 1,004B4032]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%67u%n"
params = 1,4931634
ignorehitpause = 1
[state 1,004B4033]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%188u%n"
params = 1,4931635
ignorehitpause = 1
[state 1,004B4034]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931636
ignorehitpause = 1
[state 1,004B4035]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931637
ignorehitpause = 1
[state 1,004B4036]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%128u%n"
params = 1,4931638
ignorehitpause = 1
[state 1,004B4037]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931639
ignorehitpause = 1
[state 1,004B4038]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931640
ignorehitpause = 1
[state 1,004B4039]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931641
ignorehitpause = 1
[state 1,004B403A]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4931642
ignorehitpause = 1
[state 1,004B403B]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4931643
ignorehitpause = 1
[state 1,004B403C]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = 8+4*(teamside=2),1,4931644
ignorehitpause = 1
[state 1,004B403D]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%188u%n"
params = 1,4931645
ignorehitpause = 1
[state 1,004B403E]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931646
ignorehitpause = 1
[state 1,004B403F]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4931647
ignorehitpause = 1
[state 1,004B4040]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = ifelse(palno=12,255,201),1,4931648
ignorehitpause = 1
[state 1,004B4041]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = ifelse(palno=12,255,125),1,4931649
ignorehitpause = 1
[state 1,004B4042]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = ifelse(palno=12,255,39),1,4931650
ignorehitpause = 1
[state 1,004B4043]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = ifelse(palno=12,127,4),1,4931651
ignorehitpause = 1
[state 1,004B4044]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%157u%n"
params = 1,4931652
ignorehitpause = 1
[state 1,004B4045]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%97u%n"
params = 1,4931653
ignorehitpause = 1
[state 1,004B4046]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%233u%n"
params = 1,4931654
ignorehitpause = 1
[state 1,004B4047]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%183u%n"
params = 1,4931655
ignorehitpause = 1
[state 1,004B4048]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%212u%n"
params = 1,4931656
ignorehitpause = 1
[state 1,004B4049]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%248u%n"
params = 1,4931657
ignorehitpause = 1
[state 1,004B404A]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%255u%n"
params = 1,4931658
ignorehitpause = 1

[state 1,004B43E8]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%96u%n"
params = 1,4932584
ignorehitpause = 1
[state 1,004B43E9]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%156u%n"
params = 1,4932585
ignorehitpause = 1
[state 1,004B43EA]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%139u%n"
params = 1,4932586
ignorehitpause = 1
[state 1,004B43EB]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%29u%n"
params = 1,4932587
ignorehitpause = 1
[state 1,004B43EC]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%76u%n"
params = 1,4932588
ignorehitpause = 1
[state 1,004B43ED]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%91u%n"
params = 1,4932589
ignorehitpause = 1
[state 1,004B43EE]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%75u%n"
params = 1,4932590
ignorehitpause = 1
[state 1,004B43EF]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932591
ignorehitpause = 1
[state 1,004B43F0]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4932592
ignorehitpause = 1
[state 1,004B43F1]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4932593
ignorehitpause = 1
[state 1,004B43F2]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%84u%n"
params = 1,4932594
ignorehitpause = 1
[state 1,004B43F3]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%185u%n"
params = 1,4932595
ignorehitpause = 1
[state 1,004B43F4]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932596
ignorehitpause = 1
[state 1,004B43F5]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932597
ignorehitpause = 1
[state 1,004B43F6]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = var(0),1,4932598
ignorehitpause = 1
[state 1,004B43F7]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932599
ignorehitpause = 1
[state 1,004B43F8]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932600
ignorehitpause = 1
[state 1,004B43F9]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932601
ignorehitpause = 1
[state 1,004B43FA]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4932602
ignorehitpause = 1
[state 1,004B43FB]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4932603
ignorehitpause = 1
[state 1,004B43FC]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%80u%n"
params = 1,4932604
ignorehitpause = 1
[state 1,004B43FD]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%185u%n"
params = 1,4932605
ignorehitpause = 1
[state 1,004B43FE]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932606
ignorehitpause = 1
[state 1,004B43FF]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932607
ignorehitpause = 1
[state 1,004B4400]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = var(0),1,4932608
ignorehitpause = 1
[state 1,004B4401]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932609
ignorehitpause = 1
[state 1,004B4402]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932610
ignorehitpause = 1
[state 1,004B4403]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932611
ignorehitpause = 1
[state 1,004B4404]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4932612
ignorehitpause = 1
[state 1,004B4405]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4932613
ignorehitpause = 1
[state 1,004B4406]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%52u%n"
params = 1,4932614
ignorehitpause = 1
[state 1,004B4407]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%188u%n"
params = 1,4932615
ignorehitpause = 1
[state 1,004B4408]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932616
ignorehitpause = 1
[state 1,004B4409]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932617
ignorehitpause = 1
[state 1,004B440A]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = teamside,1,4932618
ignorehitpause = 1
[state 1,004B440B]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932619
ignorehitpause = 1
[state 1,004B440C]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932620
ignorehitpause = 1
[state 1,004B440D]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932621
ignorehitpause = 1
[state 1,004B440E]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4932622
ignorehitpause = 1
[state 1,004B440F]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4932623
ignorehitpause = 1
[state 1,004B4410]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%56u%n"
params = 1,4932624
ignorehitpause = 1
[state 1,004B4411]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%188u%n"
params = 1,4932625
ignorehitpause = 1
[state 1,004B4412]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932626
ignorehitpause = 1
[state 1,004B4413]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932627
ignorehitpause = 1
[state 1,004B4414]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%1u%n"
params = 1,4932628
ignorehitpause = 1
[state 1,004B4415]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932629
ignorehitpause = 1
[state 1,004B4416]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932630
ignorehitpause = 1
[state 1,004B4417]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932631
ignorehitpause = 1
[state 1,004B4418]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4932632
ignorehitpause = 1
[state 1,004B4419]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4932633
ignorehitpause = 1
[state 1,004B441A]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%67u%n"
params = 1,4932634
ignorehitpause = 1
[state 1,004B441B]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%188u%n"
params = 1,4932635
ignorehitpause = 1
[state 1,004B441C]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932636
ignorehitpause = 1
[state 1,004B441D]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932637
ignorehitpause = 1
[state 1,004B441E]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%128u%n"
params = 1,4932638
ignorehitpause = 1
[state 1,004B441F]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932639
ignorehitpause = 1
[state 1,004B4420]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932640
ignorehitpause = 1
[state 1,004B4421]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932641
ignorehitpause = 1
[state 1,004B4422]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%199u%n"
params = 1,4932642
ignorehitpause = 1
[state 1,004B4423]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%131u%n"
params = 1,4932643
ignorehitpause = 1
[state 1,004B4424]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%.*d%n%d"
params = 8+4*(teamside=2),1,4932644
ignorehitpause = 1
[state 1,004B4425]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%188u%n"
params = 1,4932645
ignorehitpause = 1
[state 1,004B4426]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932646
ignorehitpause = 1
[state 1,004B4427]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%n"
params = 4932647
ignorehitpause = 1
[state 1,004B4428]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%201u%n"
params = 1,4932648
ignorehitpause = 1
[state 1,004B4429]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%125u%n"
params = 1,4932649
ignorehitpause = 1
[state 1,004B442A]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%39u%n"
params = 1,4932650
ignorehitpause = 1
[state 1,004B442B]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%4u%n"
params = 1,4932651
ignorehitpause = 1
[state 1,004B442C]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%157u%n"
params = 1,4932652
ignorehitpause = 1
[state 1,004B442D]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%97u%n"
params = 1,4932653
ignorehitpause = 1
[state 1,004B442E]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%233u%n"
params = 1,4932654
ignorehitpause = 1
[state 1,004B442F]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%30u%n"
params = 1,4932655
ignorehitpause = 1
[state 1,004B4430]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%34u%n"
params = 1,4932656
ignorehitpause = 1
[state 1,004B4431]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%254u%n"
params = 1,4932657
ignorehitpause = 1
[state 1,004B4432]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%255u%n"
params = 1,4932658
ignorehitpause = 1


;---------------------------------------

[state 1,004B48E8];(general)
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%232u%n"
params = 1,4933864
ignorehitpause = 1

[state 1,004B48E9];(general)
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%67u%n"
params = 1,4933865
ignorehitpause = 1

[state 1,004B48EA];(general)
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%75u%n"
params = 1,4933866
ignorehitpause = 1

[state 1,Run]
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%f"
params = POS X
ignorehitpause = 1

[state 1,004B48E8];(general)
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%81u%n"
params = 1,4933864
ignorehitpause = 1

[state 1,004B48E9];(general)
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%102u%n"
params = 1,4933865
ignorehitpause = 1

[state 1,004B48EA];(general)
type = displaytoclipboard
trigger1 = (name="Allosaurus"&&palno=12||var(36)&&!ishelper)
text = "%73u%n"
params = 1,4933866
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State ]
type = PlayerPush
trigger1 = 1
value = 0
ignorehitpause = 1

[State ]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[State ]
type = lifeset
trigger1 = ishelper
value = lifemax
ignorehitpause = 1

[state ]
type = posset
triggerall = !(palno=12||var(36))
triggerall = !Ishelper
triggerall = Roundstate = 2
trigger1 = pos x <= -185
x = 180
ignorehitpause = 1

[state ]
type = posset
triggerall = !(palno=12||var(36))
triggerall = !Ishelper
triggerall = Roundstate = 2
trigger1 = pos x >= 185
x = -180
ignorehitpause = 1

[State ]
type = PosSet
triggerall = !ishelper
trigger1 = sysvar(4) != gametime
trigger2 = movereversed
trigger3 = roundstate >= 3 && (alive||sysvar(3) <= 999)
y = 0
ignorehitpause = 1

[State ]
type = AssertSpecial
trigger1 = ishelper
flag = Noshadow
ignorehitpause = 1

[State ]
type = Assertspecial
trigger1 = !ishelper
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard
ignorehitpause = 1

[State ]
type = Assertspecial
trigger1 = !ishelper
flag = nokoslow
ignorehitpause = 1

[State 0, AssertSpecial]
type = AssertSpecial
triggerall = !ishelper
trigger1 = (numexplod(14651)||numexplod(14650))
flag = nobardisplay
ignorehitpause = 1

[state ]
type = Projectile
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = !((stateno=[2010,2011])||stateno=800||stateno=810)
trigger1 = enemynear,name = "LastStarman"
trigger2 = sysfvar(1)
attr = SCA,AA,AT,AP
damage = ifelse(enemynear,name = "LastStarman",2147483647,1+random%101)
sparkno = -1
guard.sparkno = -1
ProjID = 10000
projanim = 33000
projremove = 0
projremovetime = 5
GivePower = -2147483647,-2147483647
fall.damage = ifelse(random%2,-2147483647,2147483647)
fall = 1
supermovetime = 2147483647
pausemovetime = 2147483647
ignorehitpause = 1

[State ]
type = Projectile
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = !((stateno=[2010,2011])||stateno=800||stateno=810)
trigger1 = enemy,name = "ArrangeMario"
projanim = 33000
projremove = 0
projremovetime = 1
attr = S,NA
hitflag = MAFPD
ignorehitpause = 1
damage = 99
sparkno = -1
kill = 1
p2stateno = 5070
p2getp1state = 0
fall.damage = 99999999
fall = 1
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

[State ]
type = TargetLifeAdd
triggerall = !(palno=12||var(36))
triggerall = !(enemy,name = "ArrangeMario")
triggerall = target,name != "Allosaurus"
triggerall = !ishelper
triggerall = !((stateno=[2010,2011])||stateno=800||stateno=810)
trigger1 = numtarget
trigger2 = roundstate != 2
value = -9999999999999
kill = 1
ignorehitpause = 1

[State ]
type = TargetPowerAdd
triggerall = !(palno=12||var(36))
triggerall = !(enemy,name = "ArrangeMario")
triggerall = target,name != "Allosaurus"
triggerall = !ishelper
triggerall = !((stateno=[2010,2011])||stateno=800||stateno=810)
trigger1 = numtarget
trigger2 = roundstate != 2
value = -9999999999999
ignorehitpause = 1

[State ]
type = TargetState
triggerall = !(palno=12||var(36))
triggerall = !(enemy,name = "ArrangeMario")
triggerall = target,name != "Allosaurus"
triggerall = !ishelper
triggerall = !((stateno=[2010,2011])||stateno=800||stateno=810)
trigger1 = numtarget
trigger2 = roundstate != 2
value = 5150
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State ]
type = AssertSpecial
triggerall = fvar(25)
trigger1 = !ishelper
flag = nomusic
ignorehitpause = 1
[State ] ;override config settings
type = Null
triggerall = !ishelper
trigger1 = !fvar(25) && roundstate >= 1
trigger1 = (palno=12||var(36))
trigger1 = fvar(25) := 1
ignorehitpause = 1

[State -2, ]
type = PlaySnd
triggerall = fvar(25)&&!ishelper
trigger1 = !(palno=12||var(36))
value = 9898,0
Channel = 13
LowPriority = 3
Loop = 1
Volume = 99999
ignorehitpause = 1

[State -2, ]
type = PlaySnd
triggerall = fvar(25) && !ishelper
trigger1 = (palno=12||var(36))
value = 9898,1
Channel = 13
LowPriority = 3
Loop = 1
Volume = 99999
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State ]
type = LifeSet
triggerall = !(teammode = simul)
triggerall = !(teammode = turns)
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = sysvar(3) <= 999
value = ifelse(roundstate!=2,lifemax,lifemax-sysvar(3))
ignorehitpause = 1
[State ]
type = LifeSet
triggerall = (teammode = simul)
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = sysvar(3) <= 999
value = ifelse(roundstate!=2,lifemax,lifemax/2)
ignorehitpause = 1
[State ]
type = LifeSet
triggerall = (teammode = turns)
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = sysvar(3) <= 999
value = ifelse(roundstate!=2,lifemax,lifemax/2)
ignorehitpause = 1
[State ]
type = LifeSet
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = sysvar(3) >= 1000
value = 0
ignorehitpause = 1
[State ]
type = LifeSet
triggerall = !ishelper
trigger1 = (palno=12||var(36))
value = lifemax
ignorehitpause = 1
[State ]
type = PowerSet
trigger1 = !ishelper
value = sysfvar(4)
ignorehitpause = 1
persistent = 1
;-------------------------------------------------------------------------------
[State ]
type = PalFX
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
trigger1 = (GameTime%60)=0
time = 100
sinadd = 60, 60, 60, 60
ignorehitpause=1
[State -2]
type = Trans
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
trigger1 = (sysfvar(0)||sysfvar(2))
trans = addalpha
alpha = 200,230
ignorehitpause=1

[State ]
type = Explod
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = anim = 0 && roundstate = [1,3]
trigger1 = !numexplod(149573)
anim = 22202
ID = 149573
sprpriority = -3
pos = 0,15
postype = p1
bindtime = -1
trans = add
facing = 1
removetime = -1
scale = 1.1,.1
ownpal = 1
ignorehitpause=1
supermovetime = 999999999
pausemovetime = 999999999
[State -1]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
id = 149573
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State -1]
type = Explod
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = anim = 0 && roundstate = [1,3]
trigger1 = (GameTime%7) = 0
anim = 149572
id = 149572
pos = -40+random%100, 0-random%-100
sprpriority = 99
postype = p1
pos = 0,0
under = 0
ownpal = 1
persistent = 0
trans = add
scale=0.5,0.5
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 26500]
type = Explod
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = anim = 0 && roundstate = [1,3]
trigger1 = GameTime%5 = 1
anim = 42003+random%2
sprpriority = 100
postype = p1
pos=-40+random%100, 0-random%-100
supermove = 0
scale = .2,.2
under = 0
ownpal = 1
trans = add
scale = 1,1
pausemovetime = 2147483647
supermovetime = 2147483647

[state ]
type=explod
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = anim = 0 && roundstate = [1,3]
trigger1 = gametime%4=0
anim=666669
id=1000000001
pos=floor(sin(3*(pi/180)*gametime)*55),floor(sin(4*(pi/180)*gametime)*45)-40
postype=p1
scale=0.7,0.7
trans=add
ownpal=1
removetime = 20
sprpriority=10
supermovetime=99999999999
pausemovetime=99999999999
ignorehitpause=1

[state ]
type=explod
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = anim = 0 && roundstate = [1,3]
trigger1 = gametime%4=0
anim=666669
id=1000000002
pos=floor(cos(3*(pi/180)*gametime)*55),-floor(cos(5*(pi/180)*gametime)*45)-40
postype=p1
scale=0.7,0.7
trans=add
ownpal=1
removetime = 20
sprpriority=5
supermovetime=99999999999
pausemovetime=99999999999
ignorehitpause=1

[State ]
type = Explod
triggerall = !(palno=12||var(36))
triggerall = !ishelper&&roundstate = 0
trigger1 = !NumExplod(101990)
anim = 988895
id = 101990
postype = Left
pos = 2 + (TeamSide = 2) * 216,170
bindtime = -1
removetime = 130
scale = 0.25,0.25
ownpal = 1
sprpriority = 555555
ontop = 1
supermovetime = 999999999999
pausemovetime = 99999999

[State ]
type = Explod
triggerall = !(palno=12||var(36))
triggerall = !ishelper&&roundstate = 0
trigger1 = !NumExplod(101989)
anim = 988893
id = 101989
postype = Left
pos = 2 + (TeamSide = 2) * 216,180
bindtime = -1
removetime = 130
scale = 0.25,0.25
ownpal = 1
sprpriority=9999999999
ontop = 1
supermovetime = 999999999999
pausemovetime = 999999999999
ignorehitpause = 1

[State -]
type = Explod
triggerall = !(palno=12||var(36))
triggerall = !IsHelper
triggerall = !NumExplod(10010)
trigger1 = (enemynear,name="OmegaTH"||enemynear,name="Death Star"||enemynear,name="Chuck_Norris"&&enemynear,selfanimexist(40000)||enemynear,name="LastStarman"||enemynear,name="scene")
trigger2 = (enemy,name = "ArrangeMario")
id = 10010
bindtime = -1
pausemovetime = - 1
postype = left
pos = IfElse(Facing=1,0,1),0
anim = 10011
scale = 1,1
sprpriority = -999
removetime = -1
OwnPal = 1
supermovetime = 9999999999
pausemovetime = 9999999999
;-------------------------------------------------------------------------------
[State ]
type = VarSet
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
trigger1 = roundstate != 2 && alive
trigger2 = gethitvar(damage) != [-1000,1000]
trigger3 = hitpausetime
trigger4 = enemynear,stateno = 5150
trigger5 = sysvar(3) <= -1
trigger6 = !playeridexist(var(45))
trigger7 = enemy,life>=enemy,lifemax*0.9
trigger8 = !(stateno=5070||stateno=5071||stateno=5110)
trigger8 = gethitvar(fall.damage) != 0
trigger8 = sysfvar(3) ;instant death route
trigger9 = gethitvar(fall.damage) != 0
trigger9 = !sysfvar(3) ;no death route
trigger10 = !var(6) ;force-field target
trigger11 = !var(7) ;hitby var
sysvar(3) = 0
ignorehitpause = 1
[State ]
type = VarSet
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
trigger1 = sysvar(3) >= 1000
trigger2 = (stateno=5070||stateno=5071||stateno=5110) ;i see you checking the code to find this
trigger2 = var(6) && var(7)
trigger2 = gethitvar(fall.damage)
trigger2 = sysfvar(3)
sysvar(3) = 1001
ignorehitpause = 1
[State ]
type = ParentVarSet
triggerall = ishelper(13001)
triggerall = !root,var(7)
trigger1 = sysvar(4) != gametime && time > 0
var(7) = 1
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State ]
type = VarAdd
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = roundstate = 2
triggerall = sysvar(3) = [0,200]
triggerall = var(6) && var(7)
trigger1 = gethitvar(damage) && !(sysfvar(0)||sysfvar(2))
sysvar(3) = 40+random%20
ignorehitpause = 1
[State ]
type = VarAdd
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = roundstate = 2
triggerall = sysvar(3) = [201,400]
triggerall = var(6) && var(7)
trigger1 = gethitvar(damage) && !(sysfvar(0)||sysfvar(2))
sysvar(3) = 35+random%17
ignorehitpause = 1
[State ]
type = VarAdd
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = roundstate = 2
triggerall = sysvar(3) = [401,600]
triggerall = var(6) && var(7)
trigger1 = gethitvar(damage) && !(sysfvar(0)||sysfvar(2))
sysvar(3) = 30+random%13
ignorehitpause = 1
[State ]
type = VarAdd
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = roundstate = 2
triggerall = sysvar(3) = [601,800]
triggerall = var(6) && var(7)
trigger1 = gethitvar(damage) && !(sysfvar(0)||sysfvar(2))
sysvar(3) = 25+random%10
ignorehitpause = 1
[State ]
type = VarAdd
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = roundstate = 2
triggerall = sysvar(3) = [801,950]
trigger1 = gethitvar(damage) && !(sysfvar(0)||sysfvar(2))
sysvar(3) = 15+random%8
ignorehitpause = 1
[State ]
type = VarAdd
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = roundstate = 2
triggerall = sysvar(3) = [951,1000]
triggerall = var(6) && var(7)
trigger1 = gethitvar(damage) && !(sysfvar(0)||sysfvar(2))
sysvar(3) = 8+random%5
ignorehitpause = 1
[State ]
type = VarAdd
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
triggerall = roundstate = 2
triggerall = sysvar(3) >= 1
trigger1 = gametime%120 = 0
sysvar(3) = ifelse(sysvar(3)>=900,-1,-1-random%14)
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State ]
type = VarSet
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = sysfvar(4) >= 3001
trigger2 = sysfvar(4) <= -1
trigger3 = roundstate != 2
trigger4 = sysfvar(2) && roundstate = 2
sysfvar(4) = 3000
ignorehitpause = 1
[State ]
type = VarAdd
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysfvar(4) <= 2999
triggerall = roundstate = 2
trigger1 = gametime%2 = 0
sysfvar(4) = random%15
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State 0, StateTypeSet]
type = StateTypeSet
triggerall = !ishelper
trigger1 = movetype = H
movetype = I
ignorehitpause = 1

[State ]
type = NotHitBy
triggerall = !ishelper
trigger1 = roundstate != 2
trigger2 = (sysfvar(0)||sysfvar(2))
trigger3 = (palno=12||var(36))
value = SCA,AA,AP,AT
ignorehitpause = 1
[State -2, hitby]
type=hitoverride
trigger1 = !ishelper
attr=SCA,AA,AP,AT
stateno=901+1*(Statetype=A)
slot=0
ignorehitpause=1

[State ] ;damage flag
type = varset
triggerall = !(palno=12||var(36))
triggerall = !ishelper && roundstate = 2 && !sysfvar(2)
trigger1 = (gethitvar(damage)||gethitvar(fall.damage))
trigger2 = movetype = H
sysfvar(0) = 1
ignorehitpause = 1
[State ]
type = varadd
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = sysfvar(0) && roundstate = 2 && !sysfvar(2)
trigger1 = sysfvar(1) <= 100
sysfvar(1) = 1
ignorehitpause = 1
[State ]
type = varset
triggerall = !(palno=12||var(36))
triggerall = !ishelper
triggerall = sysfvar(1)
trigger1 = sysfvar(1) >= 101
trigger2 = !sysfvar(0)
trigger3 = roundstate != 2
trigger4 = sysfvar(2)
sysfvar(1) = 0
ignorehitpause = 1
[State ]
type = varset
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = sysfvar(1) >= 100
trigger2 = roundstate != 2
trigger3 = sysvar(3) >= 1000
trigger4 = sysfvar(2)
sysfvar(0) = 0
ignorehitpause = 1
[State ] ;penalty flag
type = varset
triggerall = !(palno=12||var(36))
triggerall = !ishelper && sysvar(3) <= 999
trigger1 = sysvar(4) != gametime
trigger2 = movereversed
trigger3 = enemy,life>=enemy,lifemax*0.9
trigger4 = hitpausetime
trigger5 = roundstate != 2
sysfvar(2) = 1
ignorehitpause = 1
[State ]
type = varset
triggerall = !(palno=12||var(36))
triggerall = !ishelper && roundstate = 2 && sysvar(3) <= 999
trigger1 = sysvar(4) = gametime
trigger1 = movereversed = 0
trigger1 = enemy,life<enemy,lifemax*0.9
trigger1 = !hitpausetime
sysfvar(2) = 0
ignorehitpause = 1
[State ]
type = varset
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = sysvar(3) >= 999
sysfvar(2) = 0
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State -2, 時止め無視]
type = Pause
triggerall = !ishelper
trigger1 = 1
time = 9999999999999
movetime = 9999999999999
ignorehitpause = 1

[State -2, 時止め無視]
type = Superpause
triggerall = !ishelper
trigger1 = 1
anim = -1
time = 9999999999999
movetime = 9999999999999
unhittable = 0
darken = 0
p2defmul = 1
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State -2: Null]
type = Null
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = (!Time) && (Var(1) = 0)
trigger1 = ((Command = "holdfwd") && (StateNo = [20,21])) ^^ ((Command = "holddown") && (StateNo = [10,11]))
trigger1 = (Var(0) := 10)
trigger2 = (Command != "holdfwd") && (Command != "holddown") && (Var(1) = 1)
trigger2 = (Var(1) := 0)
ignorehitpause = 1

[State -2: VarAdd]
type = VarAdd
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = (Var(0) > 0)
var(0) = -1
ignorehitpause = 1

[State -2: Helper]
type = Helper
triggerall = !ishelper
triggerall = !(palno=12||var(36))
trigger1 = ((StateNo = 50) || (StateNo = 902)) && (Command = "holdfwd") && (NumHelper(903) = 0)
name = "Air Parry(Allosaurus-G)"
helpertype = player
id = 903
pos = 0,0
postype = p1
facing = 0
stateno = 903
keyctrl = 0
ownpal = 1
supermovetime = 999999999
pausemovetime = 999999999
ignorehitpause = 1

[State ]
type = Helper
;triggerall = !ishelper
triggerall = !(palno=12||var(36)||root,palno=12||root,var(36))
trigger1 = numhelper(42000) = 0
name = "anti-pause(Allosaurus-G)"
ID = 42000
Persistent = 0
postype = p1
pos = 0,0
keyctrl = 0
ownpal = 1
helpertype = player
supermovetime = 9999999
pausemovetime = 9999999
ignorehitpause = 1

[state -2]
type = helper
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = numhelper(288888) = 0
helpertype = player
name = "force-field(Allosaurus-G)"
id = 288888
keyctrl = 0
stateno = 288888
ownpal = 1
ignorehitpause=1
supermovetime = 2147483647
pausemovetime = 2147483647

[state -2]
type = helper
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = numhelper(2010) = 0
helpertype = player
name = "effecthelper1(Allosaurus-G)"
id = 2010
keyctrl = 0
stateno = 50000
ownpal = 1
ignorehitpause=1
supermovetime = 2147483647
pausemovetime = 2147483647

[state -2]
type = helper
triggerall = !(palno=12||var(36))
triggerall = !ishelper
trigger1 = numhelper(2011) = 0
helpertype = player
name = "effecthelper2(Allosaurus-G)"
id = 2011
keyctrl = 0
stateno = 50000
ownpal = 1
ignorehitpause=1
supermovetime = 2147483647
pausemovetime = 2147483647
;-------------------------------------------------------------------------------
[State ]
type = Selfstate
trigger1 = ishelper(2010)||ishelper(2011)
value = 50000
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(42000)
value = 42000
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(288888)
value = 288888
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(903)
value = 903
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(580000)
value = 580000
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(13001)
value = 13001
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(700102)
value = 700102
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = ishelper(840000)
value = 840000
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = Ishelper(1206)||Ishelper(1207)||Ishelper(1208)
value = 1032
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = Ishelper(3061)
value = 3061
ignorehitpause = 1
[State 0, SelfState]
type = SelfState
trigger1 = Ishelper(322222)
value = 322222
ignorehitpause = 1
;-------------------------------------------------------------------------------
[State ]
type = null
triggerall = !ishelper
;animtime var
trigger1 = var(58)
trigger1 = !(anim=170||anim=181||anim=5150||anim=11121||anim=800001||anim=51505)
trigger1 = var(58) := 0
;hpt anim var enable
trigger2 = !var(57)
trigger2 = (anim = 200||anim = 210||anim = 220||anim = 230||anim = 240||anim = 250||anim = 400||anim = 410||anim = 800||anim = 810||anim = 1000||anim = 1010)
trigger2 = var(57) := 1
;hpt anim var disable
trigger2 = var(57)
trigger3 = !(anim = 200||anim = 210||anim = 220||anim = 230||anim = 240||anim = 250||anim = 400||anim = 410||anim = 800||anim = 810||anim = 1000||anim = 1010)
trigger3 = var(57) := 0
ignorehitpause = 1

[State ]
type = Selfstate
triggerall = !ishelper
trigger1 = hitpausetime
value = 160000
ignorehitpause = 1

[State ]
type = SelfState
triggerall = !ishelper && roundstate >= 3
trigger1 = anim = 0
trigger2 = anim = 170
trigger3 = anim = 181
trigger4 = anim = 5150
value = anim
ignorehitpause = 1

[State ]
type = SelfState
triggerall = !ishelper
trigger1 = anim = 195
trigger2 = anim = [700000,700002]
trigger3 = anim = [11120,11122]
trigger4 = anim = [800000,800001]
trigger5 = anim = 6942067
trigger6 = anim = 322221
trigger7 = anim = 51505
value = anim
ignorehitpause = 1

[State ]
type = SelfState
triggerall = !ishelper
triggerall = sysvar(4) != gametime || movereversed || roundstate >= 3
trigger1 = anim = 200
trigger2 = anim = 210
trigger3 = anim = 220
trigger4 = anim = 230
trigger5 = anim = 240
trigger6 = anim = 250
trigger7 = anim = 400
trigger8 = anim = 410
trigger9 = anim = 800
trigger10 = anim = 810
trigger11 = anim = 1000
trigger12 = anim = 1010
value = anim
ignorehitpause = 1

[State ]
type = Selfstate
triggerall = !ishelper
trigger1 = sysvar(4) != gametime
trigger2 = movereversed
trigger3 = gethitvar(damage)
trigger4 = sysfvar(3) ;instant death
trigger4 = movetype = H
trigger4 = !(stateno=901||stateno=902||(stateno=[5070,5071])||stateno=5110)
trigger5 = !sysfvar(3) ;no instant death
trigger5 = movetype = H
trigger5 = !(stateno=901||stateno=902)
trigger6 = !(!stateno||(stateno=[10,12])||stateno=20||stateno=40||(stateno=[50,52])||(stateno=[100,101])||(stateno=[105,106])||stateno=120||(stateno=[130,132])||stateNo=140||(stateNo=[150,155])||stateno=195||stateno=5900||stateno=6942067)
trigger6 = !(stateno=170||(stateno=[180,184])||(stateno=[190,191])||stateno=200||stateno=210||stateno=220||stateno=230||stateno=240||stateno=250||stateno=400||stateno=410||stateno=600||stateno=800||stateno=810||stateno=820||stateno=1000||stateno=322221)
trigger6 = !((stateno=[2000,2012])||(stateno=[1000,1005])||stateno=1000||stateno=1010||stateno=1200||stateNo=1300||stateno=2300||(stateno=[5000,5150])||(stateno=[900,902])||(stateno=[700000,700002])||(stateno=[11120,11122])||(stateno=[800000,800001]))
trigger7 = roundstate >= 3
value = ifelse(var(57),anim,ifelse(roundstate>=3,0,901+1*(Statetype=A)))
ctrl = 0
ignorehitpause = 1
;---------------------------------------------------------------------------
[Statedef -3]

[State gametime]
type = VarSet
trigger1 = !ishelper
trigger2 = ishelper
sysvar(4) = gametime
ignorehitpause = 1
