[statedef -2]




;
;自分の好きなパーティを編成しましょう
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;スイッチの切り替えは
;value = *  ←この値を変えて行う（下のvalueの値）
;----------------------------------------------------------------------------

;栞推参
;　1でオン、0でオフ
;
[State -2, 59]
type = VarSet
trigger1 = 1
v = 35
value = 0
;----------------------------------------------------

;天使あゆ参加
;　1でオン、0でオフ
[State -2, 59]
type = VarSet
triggerall = palno != 12
trigger1 = 1
v = 48
value = 0
;---------------------------------------------------------
;名雪参戦
;　1でオン、0でオフ
[State -2, 59]
type = VarSet
triggerall = palno != 12
trigger1 = 1
v = 50
value = 0
;-------------------------------------------------------
;まい登場
;　1でオン、0でオフ
[State -2, 2]
type = VarSet
triggerall = palno != 12
trigger1 = 1
v = 53
value = 0

;----------------------------------------------------
;佐祐理現る
;　1でオン、0でオフ
[State -2, 59]
type = VarSet
triggerall = palno != 12
trigger1 = 1
v = 37
value = 0
;-------------------------------------------------------
;ネロ出撃
;出撃するネロ・カオスの人数を選べる
;
;  0〜15までの値を入力してください
;あんまり出すと処理落ちします。あと、うるさいので注意
;
[State -2, 59]
type = VarSet
trigger1 = 1
v = 36
value = 0

;---------------------------------------------------------------------
;MISUZU爆誕
;出現する神尾観鈴の人数を選べる
;
;  0〜15までの値を入力してください
;あんまり出すと処理落ちします。
;
[State -2, 59]
type = VarSet
triggerall = palno != 12
trigger1 = 1
v = 26
value = 0

;---------------------------------------------------------------------
;画像変換スイッチ
;勝利演出の画像が変わる
;「これがボクの本体のキュート顔だよ!!!」
;使用については各自判断して下さい
;
;　1でオン、0でオフ
[State -2, 59]
type = VarSet
triggerall = palno != 12
trigger1 = 1
v = 5
value = 0

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

;これより下
;本体性能変更用
;最強の設定で君を葬るのに罪悪感なし！
;-------------------------------------------------------
　







;---------------------------------------------
;狂攻撃スイッチ
;↓←yで発動可能
;基本的な画面全体即死技
;1でオン、0でオフ
;

[State -2, 59]
type = varset
trigger1 = 1
v = 43
value = 0

;
;----------------------------------------
;OTHキラーand超即死
;なんとなく搭載
;↓←↓←yで発動可能
;おまけ機能なのでエフェクト無し
;
;1でオン、0でオフ
[State -2, 59]
type = varset
trigger1 = 1
v = 41
value = 0






;--------------------------------------------------
;バグスイッチ
;相手のヘルパーを奪う
;狂攻撃が味方にも当たる
;
;1でオン、0で11,12P以外オフ、2で完全オフ
[State -2, 59]
type = varset
trigger1 = 1
v = 30
value = 0



;------------------------------------------------------------------------
;
;画像変換スイッチ
;未搭載
;
;
[State -2, 59]
type = VarSet
trigger1 = 1
v = 24
value = 1

;-----------------------------------------------------------------------
;流影陣で打ち出す弾を変える
;
;
;0だとネロカオス
;1だと星
[State -2, 59]
type = VarSet
triggerall = palno != 12
trigger1 = 1
v = 23
value = 1













[State -2, 59]
type = Varset
trigger1 = roundstate!=2
v = 22
value = 0

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



;RF
[State -2]
type = VarAdd
triggerall = !ishelper
triggerall = Var(6) < 200
triggerall = Var(7) = 0
trigger1 = 1
v = 6
value = 1



;遊び
[State -2, 59]
type = VarSet
triggerall = palno = 12
trigger1 = 1
v = 23
value = 0




[State -2]
type = NotHitBy
trigger1 = roundstate!=2
value = SCA
ignorehitpause = 1
SuperMoveTime = 999999999999999
PauseMoveTime = 999999999999999

;---------------------------------------------------
;判断
[State -2, 59]
type = Varadd
triggerall = palno = [11,12]
trigger1 = MoveReversed
v = 25
value = 10

[State -2, 59]
type = Varadd
triggerall = palno = [11,12]
trigger1 = MoveReversed = 1
trigger1 = hitpausetime>200
v = 25
value = 200


;----------------------------------------------------------------
;判定勝ち用記述
;
[State -2]
type = Pause
triggerall = !ishelper
triggerall = palno = 12
triggerall = alive
triggerall = enemy,alive
triggerall = roundstate > 2
trigger1 = Var(25) > 200
time = 15
movetime = 15
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -2]
type = SuperPause
triggerall = !ishelper
triggerall = palno = 12
triggerall = alive
triggerall = enemy,alive
triggerall = roundstate>2
trigger1 = Var(25) > 200
time = 15
movetime = 15
anim = -1
sound = -1
pos = 0,0
darken = 0
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -2]
type = lifeset
triggerall = !ishelper
triggerall = palno = 12
triggerall = alive
triggerall = enemy,alive
triggerall = roundstate>2
trigger1 = life < 1
trigger2 = Var(25) > 200
value = lifemax
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = lifeset
triggerall = !ishelper
triggerall = palno = 12
triggerall = alive
triggerall = enemy,alive
triggerall = Var(25) <= 200
trigger1 = roundstate>2
value = Var(31)
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = SelfState
triggerall = !ishelper
triggerall = palno = 12
triggerall = alive
triggerall = enemy,alive
trigger1 = Var(25) > 200
trigger1 = roundstate>2
trigger2 = roundstate>2
trigger2 = var(54) != gametime+235
value=140
ignorehitpause = 1
pausemovetime = 99999999999
supermovetime = 99999999999




;--------------------------------------------------------------------
;11P用
[State -2]
type = Pause
triggerall = !ishelper
triggerall = palno = 11
triggerall = alive
triggerall = enemy,alive
trigger1 = roundstate > 2
time = 15
movetime = 15
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -2]
type = SuperPause
triggerall = !ishelper
triggerall = palno = 11
triggerall = alive
triggerall = enemy,alive
trigger1 = roundstate>2
time = 15
movetime = 15
anim = -1
sound = -1
pos = 0,0
darken = 0
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999


[State -2]
type = lifeset
triggerall = !ishelper
triggerall = palno = 11
triggerall = alive
triggerall = enemy,alive
trigger1 = roundstate>2
value = lifemax
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = SelfState
triggerall = !ishelper
triggerall = palno = 11
triggerall = alive
triggerall = enemy,alive
trigger1 = roundstate>2
value=140
ignorehitpause = 1
pausemovetime = 99999999999
supermovetime = 99999999999






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



;11Pカラー用
[state -2]
type = assertspecial
triggerall = palno = 11
trigger1 = var(54) != gametime+235
trigger2 = gethitvar(damage) >= lifemax
trigger3 = gethitvar(damage) < 0
trigger4 = helper(45755),var(40)-life>lifemax*0.1
trigger5 = stateno != [0,1]
trigger5 = stateno != [4,52]
trigger5 = stateno != [100,865];     通常攻撃
trigger5 = stateno != 1000;          パンチ
trigger5 = stateno != 1100;          アッパー
trigger5 = stateno != 1200;          くずれるせかい
trigger5 = stateno != [1255,1258];    叩きつけ投げ
trigger5 = stateno != 1600;           オズワルド召喚
trigger5 = stateno != 1700;           アンノーン召喚
trigger5 = stateno != [2000,2001];    羽カッター
trigger5 = stateno != [3000,3001];    羽カッター
trigger5 = stateno != 3950;           召喚術
trigger5 = stateno != 3550;           すごいくずれるせかい
trigger5 = stateno != [3660,3665];    ゲージ叩きつけ投げ
trigger5 = stateno != [3750,3751];     瞬獄
trigger5 = stateno != 3820;            まこと
trigger5 = stateno != 3880;            スロー再生
trigger5 = stateno != [5000,5900];     コモンやられステート
trigger5 = stateno != [10000,10651]
trigger5 = stateno != 50000;          一撃必殺奥義
trigger5 = stateno != [50002,50004];   一撃必殺奥義
trigger5 = stateno != [50006,50017];   一撃必殺奥義
trigger5 = stateno != [50019,50020];   一撃必殺奥義
trigger5 = stateno != 26483;           プライマルアーマー
trigger5 = stateno != 26484;           プライマルアーマー2
trigger5 = stateno != 31000;             トキ
trigger5 = stateno != [180000,180001];    特殊攻撃
trigger5 = stateno != [35000,35001];    特殊攻撃
trigger5 = stateno != 4000
trigger6 = stateno = 140
trigger7 = RoundState != 2
flag = noko
ignorehitpause = 1
SuperMoveTime = 99999999
PauseMoveTime = 99999999







;------------------------------------------------------------------
;F2が無効になる
[State -2]
type = lifeadd
triggerall = !ishelper
triggerall = palno = [11,12]
trigger1 = helper(45755),var(40)-life>lifemax*0.1
value=(helper(45755),var(40)-life)
ignorehitpause = 1
supermovetime = 9999999
sausemovetime = 9999999



;------------------------------------------------------------------------
;コンボの邪魔用
;
;
;攻撃受ける前のライフ
[State -2, 59]
type = VarSet
triggerall = !ishelper
triggerall = palno = 12
triggerall = movetype != H
trigger1 = var(39) = 255
v = 31
value = life

;最初にセット
[State -2, 59]
type = VarSet
triggerall = !ishelper
triggerall = palno = 12
trigger1 = var(31) = 0
v = 31
value = lifemax

;攻撃受けてる間のライフ
[state life]
type = varset
triggerall = !ishelper
triggerall = palno = 12
triggerall = movetype = H
trigger1 = var(39) = 5
v = 12
value = life

;最初にセット
[state life]
type = varset
triggerall = !ishelper
triggerall = palno = 12
trigger1 = var(12) = 0
v = 12
value = lifemax

;攻撃受けたら
[State -2, 59]
type = VarSet
triggerall = !ishelper
triggerall = palno = 12
trigger1 = gethitvar(damage) > 0
trigger2 = gethitvar(hitcount)>0
trigger3 = gethitvar(damage) < 0
trigger4 = MoveReversed
v = 39
value = 5

;減衰防止
[State -2]
type = lifeadd
triggerall = !ishelper
triggerall = palno = 12
triggerall = alive
triggerall = movetype != H
trigger1 = var(12)-life>1
value = var(12)-life


;ダメージカット
[State -2]
type = lifeadd
triggerall = !ishelper
triggerall = palno = 12
triggerall = alive
trigger1 = var(31)-life >= lifemax*0.1
value = var(31)-life-lifemax*0.1

[State -2]
type = NotHitBy
triggerall = !ishelper
triggerall = palno = 12
triggerall = alive
trigger1 = var(31)-life >= lifemax*0.099
value = SCA
time = 1


[State -2, 59]
type = VarSet
triggerall = !ishelper
triggerall = palno = 12
triggerall = var(31)-life <= lifemax*0.1
trigger1 = RoundState != 2
trigger2 = stateno = 0
trigger3 = stateno = 52
v = 39
value = 255




;---------------------------------------------------
;通常カラー用
:
[State -2, 59]
type = VarSet
triggerall = !ishelper
triggerall = palno != [11,12]
triggerall = movetype != H
trigger1 = 1
v = 31
value = life

;攻撃受けてる間のライフ
[state life]
type = varset
triggerall = !ishelper
triggerall = palno != [11,12]
triggerall = movetype = H
trigger1 = 1
v = 12
value = life

;減衰防止
[State -2]
type = null;lifeadd
triggerall = !ishelper
triggerall = RoundState = 2
triggerall = alive
triggerall = palno != [11,12]
triggerall = movetype != H
triggerall = stateno != 160
triggerall = stateno != 1000
triggerall = stateno != 1100
trigger1 = var(12)-life > 1
value = var(12)-life

[State -2]
type = lifeadd
triggerall = !ishelper
triggerall = alive
triggerall = palno != [11,12]
trigger1 = gethitvar(damage) > 0
trigger1 = var(31)-life >= 200
value = gethitvar(damage)/2

[State -2]
type = lifeset
triggerall = !ishelper
triggerall = palno != [11,12]
triggerall = alive
triggerall = movetype = H
trigger1 = var(31)-life >= 400
value = var(31)-400

[State -2]
type = NotHitBy
triggerall = !ishelper
triggerall = palno != [11,12]
triggerall = alive
triggerall = movetype = H
trigger1 = var(31)-life >= 400
value = SCA
time = 1

[State -2]
type = lifeset
triggerall = Var(29) = 3
triggerall = !ishelper
triggerall = palno != [11,12]
triggerall = alive
triggerall = movetype = H
trigger1 = var(31)-life >= 350
value = var(31)-350

[State -2]
type = NotHitBy
triggerall = !ishelper
triggerall = Var(29) = 3
triggerall = palno != [11,12]
triggerall = alive
triggerall = movetype = H
trigger1 = var(31)-life >= 350
value = SCA
time = 1


[State -2, 59]
type = VarSet
triggerall = palno = [11,12]
triggerall = !ishelper
trigger1 = var(54) != gametime+235
v = 19
value = stateno

;-----------------------------------------------------------
;ヘルパーバグ防止用

;playerのヘルパー
;ID = 26485　プライマルアーマーヘルパー
;ID = 10000  みすずEX
;id = 30000  栞
;id = 106510  OTH
;id = 10651  OTH
;id = 180002  バグ用

[State -2]
type = lifeset
triggerall = ishelper
trigger1 = 1
value = lifemax
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999



[State 169994]
type = destroyself
triggerall = IsHelper
trigger1 = movetype = H
trigger1 = var(54) != gametime+235

[State -2]
type = SelfState
triggerall = IsHelper(26485)
trigger1 = stateno != 26485
value = 4
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

;みすずEX
[State -2]
type = SelfState
triggerall = IsHelper(10000)
trigger1 = stateno != [10000,10651]
trigger2 = var(54) != gametime+235
value = 4
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

;OTH用ヘルパー消し
[State -2]
type = SelfState
triggerall = IsHelper
trigger1 = stateno != 10651
trigger1 = IsHelper(106510)
trigger2 = IsHelper(10651)
trigger2 = stateno != 10651
value = 4
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

;WG
[State 169994]
type = destroyself
triggerall = IsHelper(4001)
trigger1 = stateno != 4001
trigger2 = var(54) != gametime+235
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

;救出
[State -2]
type = SelfState
triggerall = IsHelper(45766)
trigger1 = stateno != 45766
trigger2 = var(54) != gametime+235
value = 4
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999



[State -2]
type = SelfState
triggerall = IsHelper(180002)
trigger1 = stateno != 180002
trigger1 = stateno != 170000
value = 4
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 169994]
type = destroyself
triggerall = IsHelper(180002)
trigger1 = stateno != 180002
trigger1 = stateno != 170000
trigger2 = var(54) != gametime+235
ignorehitpause = 1
SuperMoveTime = 99999999
PauseMoveTime = 99999999

;星管理
[State -2]
type = SelfState
triggerall = IsHelper(45755)
trigger1 = stateno != 45755
trigger2 = var(54) != gametime+235
value = 4
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = SelfState
triggerall = IsHelper(67027)
trigger1 = var(54) != gametime+235
value = 4
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999



[State 4555]
type = Hitby
triggerall = palno = [11,12]
trigger1 = MoveReversed = 1
trigger1 = hitpausetime>120
value = SCA,HA
time = 1



;救出攻撃
[State -2]
type = Helper
triggerall = !ishelper
triggerall = palno = [11,12]
triggerall = numhelper(45766) = 0
trigger1 = roundstate >= 2
ID = 45766
name = "help2"
postype = p1
pos = 0,Const(size.mid.pos.y)
stateno = 45766
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999
ignorehitpause = 1



;--------------------------------------------------
;バグまき散らし用ヘルパー
;
;自分のtargetstate付きの攻撃に食わせると(食ったらすぐ消す)
;相手の新しく出すヘルパーを奪える
;
[State -2]
type = Helper
triggerall = numhelper(180002) = 0
trigger1 = roundstate = 2
trigger1 = stateno = 180000
trigger1 = var(30) = 1
trigger2 = var(30) = [0,1]
trigger2 = palno = [11,12]
trigger2 = stateno = 145
trigger2 = Var(25) >= 200
ID = 180002
name = "bagu"
postype = p1
pos = 0,0
stateno = 180002
helpertype = player
keyctrl = 0



[State -2]
type = HitDef
triggerall = palno = [11,12]
trigger1 = MoveReversed = 1
trigger1 = hitpausetime>120
attr = , SA
damage = 0
getpower = 0
givepower = 0
hitflag	 = MAFD
sparkno = -1
guard.sparkno = -1
pausetime = 1, 0
guard.pausetime	= 1, 0
ignorehitpause	= 1
affectteam = F

;---------------------------------------------
;;;;SelfState
[State -2]
type = null;SelfState
triggerall = !ishelper
triggerall = palno = [11,12]
trigger1 = helper(45755),var(4)>1200
trigger1 = stateno != 140
value = 140
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999



;12ステート奪われたら抜ける
[State -2]
type = SelfState
triggerall = !ishelper
triggerall = palno = [11,12]
trigger1 = var(54) != gametime+235
trigger1 = stateno != 145
value = 145
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

;通常装備
[State -2]
type = SelfState
triggerall = !ishelper
triggerall = Var(34) != 254
trigger1 = MoveReversed
trigger2 = GetHitVar(Damage) >= 400
trigger3 = Alive
trigger3 = life < 1
trigger4 = stateno != 145
trigger4 = var(51) != 2
trigger5 = stateno != 145
trigger5 = var(51) = 3
value= 145
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999


;12ステート奪われたら抜ける2
[State -2]
type = SelfState
triggerall = !ishelper
triggerall = palno = [11,12]
trigger1 = stateno != [0,1]
trigger1 = stateno != [4,52]
trigger1 = stateno != [100,865];     通常攻撃
trigger1 = stateno != 1000;          パンチ
trigger1 = stateno != 1100;          アッパー
trigger1 = stateno != 1200;          くずれるせかい
trigger1 = stateno != [1255,1258];    叩きつけ投げ
trigger1 = stateno != 1600;           オズワルド召喚
trigger1 = stateno != 1700;           アンノーン召喚
trigger1 = stateno != [2000,2001];    羽カッター
trigger1 = stateno != [3000,3001];    羽カッター
trigger1 = stateno != 3950;           召喚術
trigger1 = stateno != 3550;           すごいくずれるせかい
trigger1 = stateno != [3660,3690];    ゲージ叩きつけ投げ ビーム
trigger1 = stateno != [3750,3751];     瞬獄
trigger1 = stateno != 3820;            まこと
trigger1 = stateno != 3880;            スロー再生
trigger1 = stateno != [3900,3901]
trigger1 = stateno != [5000,5900];     コモンやられステート
trigger1 = stateno != [10000,10651]
trigger1 = stateno != 50000;          一撃必殺奥義
trigger1 = stateno != [50002,50004];   一撃必殺奥義
trigger1 = stateno != [50006,50017];   一撃必殺奥義
trigger1 = stateno != [50019,50020];   一撃必殺奥義
trigger1 = stateno != 26483;           プライマルアーマー
trigger1 = stateno != 26484;           プライマルアーマー2
trigger1 = stateno != 31000;             トキ
trigger1 = stateno != [180000,180001];    特殊攻撃
trigger1 = stateno != [35000,35001];    特殊攻撃
trigger1 = stateno != 4000
value = 145
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

;12ダメージ大で抜ける
[State -2]
type = SelfState
triggerall = Alive
triggerall = !ishelper
triggerall = palno = [11,12]
trigger1 = GetHitVar(Damage) >= 200
trigger2 = gethitvar(damage) < 0
trigger3 = ((stateno=[5150,5199])||!alive&&helper(45755),var(40)>1)
trigger4 = helper(45755),var(40)-life>lifemax*0.2
trigger4 = stateno != 145
trigger5 = var(31)-life >= lifemax*0.2
trigger5 = stateno != 145
value = 145
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

;バグ回避
;16.8秒ステート奪われると強制復帰
[State -2]
type = SelfState
triggerall = !ishelper
triggerall = alive
trigger1 = var(54) != gametime+235
trigger1 = time = 1008
value = 145
Persistent = 1
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999


;投げ無効
[State -3]
type = HitOverride
triggerall = !ishelper
triggerall = palno = 12
trigger1 = 1
attr = SCA, NT,ST,HT
stateno = 145

;投げ無効
[State -3]
type = HitOverride
triggerall = !ishelper
trigger1 = Var(22) = 1
attr = SCA, NT,ST,HT
stateno = 145

;死亡時ライフ0
[State -2]
type = lifeset
triggerall = !ishelper
trigger1 = !Alive
trigger1 = stateno !=145
trigger1 = stateno = [5050,5152]
trigger1 = Var(34) = 254
trigger1 = var(54) = gametime+235
value = 0

;変数を使うことによってステート抜けのタイミングを変える
[State -2, 59]
type = VarSet
triggerall = !ishelper
trigger1 = !Alive
v = 34
value = 254

[State -2, 59]
type = VarSet
triggerall = !ishelper
trigger1 = Alive
v = 34
value = 0

;F2が無効になる
[State -2]
type = lifeadd
triggerall = !ishelper
triggerall = palno = 12
trigger1 = helper(45755),var(40)-life>lifemax*0.1
value=(helper(45755),var(40)-life)
ignorehitpause = 1
supermovetime = 9999999
sausemovetime = 9999999





;-----------------------------------------------------------------------
;カラー

[State -2]
type = lifeadd
triggerall = !ishelper
triggerall = movetype != H
triggerall = alive
triggerall = life < 1
trigger1 = 1
value = 1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999



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

;最初にライフを入れておく
[State -2, 59]
type = VarSet
triggerall = !ishelper
trigger1 = Var(58) = 0
v = 58
value = lifemax


;-----------------------------------------------
;PA用
[State -2, NotHitby]
type = NotHitBy
triggerall = palno != [11,12]
triggerall = !ishelper
trigger1 = numhelper(26485) >= 1
value = ,NP,SP,HP,NT,ST,HT
ignorehitpause = 1


;PA用
[State -2]
type = lifeset
triggerall = !ishelper
triggerall = palno != [11,12]
trigger1 = numhelper(26485) >= 1
trigger1 = GetHitVar(Damage) > 0
trigger1 = stateno != [160,162]
trigger1 = stateno != 802
Value = life+(GetHitVar(Damage))-5




;--------------------------------------------------------
;死亡時強制復帰
[State 5150, 12]
type = SelfState
trigger1 = !Alive
trigger1 = !IsHelper
trigger1 = RoundState = 4
trigger1 = MatchOver = 0
trigger1 = name = "Ayu Tukumiya"
trigger1 = stateno !=5151
trigger1 = stateno !=145
value = 5151
Persistent = 1
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 5150, 13]
type = SelfState
trigger1 = !Alive
trigger1 = !IsHelper
trigger1 = RoundState = 4
trigger1 = MatchOver = 1
trigger1 = name = "Ayu Tukumiya"
trigger1 = stateno !=5152
trigger1 = stateno !=145
value = 5152
Persistent = 1
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 0, 4] ;Are you dead?
type = ChangeState
triggerall = !ishelper
trigger1 = !Alive
trigger1 = stateno !=[5050,5152] 
value = 5050

[State -2]
type = NotHitBy
trigger1 = !Alive
value = SCA
time = 1

;------------------------------------------------------------------------
;個人対策
;----------------------------------------------------------------------


[State -2]
type = lifeset
triggerall = palno = 12
triggerall = !ishelper
trigger1 = p2name = "UNKNOWN"
trigger1 = p2stateno = 1
trigger1 = p2life = lifemax
trigger1 = Var(25) >= 20
trigger1 = EnemyNear,palno=12
trigger1 = EnemyNear,Var(36) = 1
value = 0

;こっちの方が楽しい
[State -2]
type = poweradd
triggerall = !ishelper
triggerall = palno = [11,12]
triggerall = TeamMode = Single
triggerall = enemy,name = "Oniwarud"
trigger1 = 1
Value = -2

;
[State -2]
type = poweradd
triggerall = !ishelper
triggerall = palno = 12
triggerall = TeamMode = Single
triggerall = enemy,name = "[Necromancer's] Broli"
trigger1 = 1
Value = -2

[State -2,VarSet]
type = VarSet
triggerall = !ishelper
triggerall = TeamMode = Single
triggerall = palno = [11,12]
triggerall = enemy,name = "Oniwarud"
trigger1 = 1
var(20) = 7

[State -2]
type = Helper
triggerall = !ishelper
triggerall = enemy,name = "JAGI"
triggerall = NumHelper(60000) = 0
trigger1 = var(54) != gametime+235
trigger1 = p2stateno = [903,970]
trigger1 = time = 0
trigger1 = stateno = 901
ignorehitpause = 1
helpertype = normal
name = "UN"
postype = p1
pos = -20,0
stateno = 60000
sprpriority = 10
keyctrl = 1
id = 60000
ownpal = 1

[State 181]
type = AssertSpecial
triggerall = !ishelper
triggerall = enemy,name = "JAGI"
trigger1 = var(54) != gametime+235
trigger1 = p2stateno = [903,970]
trigger1 = stateno = 901
flag = Invisible

[State 5150, 13]
type = SelfState
triggerall = !ishelper
triggerall = enemy,name = "SHIN"
trigger1 = name = "Ayu Tukumiya"
trigger1 = stateno =2554
value = 60001
Persistent = 1
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999

[state -2]
type = assertspecial
triggerall = !ishelper
trigger1 = stateno =60001
flag = NoKOSnd
ignorehitpause = 1
SuperMoveTime = 99999999
PauseMoveTime = 99999999

;勝利用

[State -2]
type = VarSet
trigger1 = P2Name = "Ayu Tukimiya" || P4Name = "Ayu Tukimiya"
trigger2 = P2Name = "Ayu&Misuzu&Mizuka" || P4Name = "Ayu&Misuzu&Mizuka"
v = 9
value = 1

[State -2]
type = VarSet
triggerall = Var(9) = 0
trigger1 = P2Name = "Satsuki_Yumiduka" || P4Name = "Satsuki_Yumiduka"
v = 9
value = 2

[State -2]
type = VarSet
trigger1 = P2Name = "Misuzu" || P4Name = "Misuzu"
trigger2 = P2Name = "Mizuka Nagamori" || P4Name = "Mizuka Nagamori"
v = 9
value = 3

[State -2]
type = VarSet
trigger1 = P2Name = "DISRUPTER" || P4Name = "DISRUPTER"
v = 9
value = 4

;逆根性
[State 400]
type = attackmulset
triggerall = stateno != 3550
trigger1 = P2Name = "DISRUPTER"
value = 0.0005*((p2life)+1000)

[State -2]
type = VarSet
trigger1 = P2Name = "Ayu Tukumiya" || P4Name = "Ayu Tukumiya"
v = 9
value = 5

[State -2]
type = VarSet
trigger1 = P2Name = "JAGI" || P4Name = "JAGI"
v = 9
value = 6

[State -2]
type = VarSet
trigger1 = P2Name = "TOKI-(NERICYA)" || P4Name = "TOKI-(NERICYA)"
trigger2 = P2Name = "TOKI" || P4Name = "TOKI"
v = 9
value = 7

[State -2]
type = VarSet
trigger1 = P2Name = "SHIN" || P4Name = "SHIN"
trigger2 = P2Name = "REI" || P4Name = "REI"
trigger3 = P2Name = "JUDA-(NERICYA)" || P4Name = "JUDA-(NERICYA)"
trigger4 = P2Name = "JUDA" || P4Name = "JUDA"
trigger5 = P2Name = "Mr.HEART" || P4Name = "Mr.HEART"
trigger6 = P2Name = "Heart&Heart" || P4Name = "Heart&Heart"
v = 9
value = 8

[State -2]
type = VarSet
trigger1 = P2Name = "Akane Satomura" || P4Name = "Akane Satomura"
trigger2 = P2Name = "millia" || P4Name = "millia"
v = 9
value = 9

[State -2]
type = VarSet
trigger1 = P2Name = "FUWA JIN" || P4Name = "FUWA JIN"
v = 9
value = 10

;あゆの素顔
;服装は気にしてはいけない
;どうせ誰も気づくまい
;気づいてもこのことはReadMeに書くなよ
[State -2]
type = VarSet
trigger1 = P2Name = "Rubber Soul" || P4Name = "Rubber Soul"
v = 9
value = 11

;Nameカタカナかよ
[State -2]
type = VarSet
trigger1 = P2Name = "dio" || P4Name = "dio"
trigger2 = P2Name = "ザ・ワールド" || P4Name = "ザ・ワールド"
v = 9
value = 12

[State -2]
type = VarSet
trigger1 = P2Name = "Shiori" || P4Name = "Shiori"
trigger2 = P2Name = "Misaka Shiori" || P4Name = "Misaka Shiori"
v = 9
value = 13

[State -2]
type = VarSet
trigger1 = P2Name = "Sayuri Kurata" || P4Name = "Sayuri Kurata"
trigger2 = P2Name = "Sayuri" || P4Name = "Sayuri"
v = 9
value = 14

[State -2]
type = VarSet
trigger1 = P2Name = "RAOH" || P4Name = "RAOH"
v = 9
value = 15

[State -2]
type = VarSet
trigger1 = P2Name = "KENSHIRO" || P4Name = "KENSHIRO"
v = 9
value = 16


[State -2]
type = VarSet
trigger1 = P2Name = "THOUTHER" || P4Name = "THOUTHER"
v = 9
value = 17

[State -2]
type = VarSet
trigger1 = P2Name = "joseph" || P4Name = "joseph"
v = 9
value = 18


;-----------------------------------------
;OTH
[State -1]
type = helper
triggerall = stateno=180001
triggerall = !ishelper
triggerall = numhelper(10651)=0
trigger1 = enemy,numprojid(179996)>=1
trigger2 = enemy,numprojid(179997)>=1
trigger3 = enemy,numprojid(179998)>=1
id = 10651
persistent = 0
name = "Ayu Tukumiya"
pos = 0,0
postype = P1
stateno = 10651
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;OTH11p
[State -1]
type = helper
triggerall = stateno=3550
triggerall = palno = 11
triggerall = !ishelper
triggerall = numhelper(10651)=0
trigger1 = enemy,numprojid(179996)>=1
trigger2 = enemy,numprojid(179997)>=1
trigger3 = enemy,numprojid(179998)>=1
id = 10651
persistent = 0
name = "Ayu Tukumiya"
pos = 0,0
postype = P1
stateno = 10651
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999


;-------------------------------------------------------------------------
;通常キャラとしての設定
;--------------------------------------------------------------------------
;
;栞
[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(30000) = 0
triggerall = Var(35) = 1
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "siori"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 30000
sprpriority = 10
keyctrl = 1
id = 30000
ownpal = 1


[State -2]
type = Helper
triggerall = !ishelper
triggerall = palno = 9
triggerall = NumHelper(30000) = 0
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "siori"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 30000
sprpriority = 10
keyctrl = 1
id = 30000
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = palno = 8
triggerall = NumHelper(30000) = 0
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "siori"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 30000
sprpriority = 10
keyctrl = 1
id = 30000
ownpal = 1

;名雪
[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(40000) = 0
triggerall = Var(50) = 1
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "nayuki"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 40000
sprpriority = 10
keyctrl = 1
id = 40000
pausemovetime = 9999999999
supermovetime = 999999999
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(40000) = 0
triggerall = palno = 5
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "nayuki"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 40000
sprpriority = 10
keyctrl = 1
id = 40000
pausemovetime = 9999999999
supermovetime = 999999999
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(40000) = 0
triggerall = palno = 8
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "nayuki"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 40000
sprpriority = 10
keyctrl = 1
id = 40000
pausemovetime = 9999999999
supermovetime = 999999999
ownpal = 1

;天使あゆ
[State -2]
type = Helper
triggerall = !ishelper
triggerall = numhelper(45000) = 0
triggerall = Var(48) = 1
trigger1 = roundstate = 2
ID = 45000
name = "ayu2"
postype = p1
pos = 200,-380
sprpriority = 2
stateno = 45000
helpertype = normal
keyctrl = 0
persistent = 0
ignorehitpause = 1
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = numhelper(45000) = 0
triggerall = palno = 5
trigger1 = roundstate = 2
ID = 45000
name = "ayu2"
postype = p1
pos = 200,-380
sprpriority = 2
stateno = 45000
helpertype = normal
keyctrl = 0
persistent = 0
ignorehitpause = 1
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = numhelper(45000) = 0
triggerall = palno = 8
trigger1 = roundstate = 2
ID = 45000
name = "ayu2"
postype = p1
pos = 200,-380
sprpriority = 2
stateno = 45000
helpertype = normal
keyctrl = 0
persistent = 0
ignorehitpause = 1
ownpal = 1


;まい
[State -2]
type = Helper
triggerall = !ishelper
triggerall = numhelper(46000) = 0
triggerall = Var(53) = 1
trigger1 = roundstate = 2
ID = 46000
name = "mai"
postype = p1
pos = 200,-380
sprpriority = 2
stateno = 46000
helpertype = normal
keyctrl = 0
persistent = 0
ignorehitpause = 1
ownpal = 1
supermovetime = 999999999

[State -2]
type = Helper
triggerall = !ishelper
triggerall = numhelper(46000) = 0
triggerall = palno = 7
trigger1 = roundstate = 2
ID = 46000
name = "mai"
postype = p1
pos = 200,-380
sprpriority = 2
stateno = 46000
helpertype = normal
keyctrl = 0
persistent = 0
ignorehitpause = 1
ownpal = 1
supermovetime = 999999999

[State -2]
type = Helper
triggerall = !ishelper
triggerall = numhelper(46000) = 0
triggerall = palno = 8
trigger1 = roundstate = 2
ID = 46000
name = "mai"
postype = p1
pos = 200,-380
sprpriority = 2
stateno = 46000
helpertype = normal
keyctrl = 0
persistent = 0
ignorehitpause = 1
ownpal = 1
supermovetime = 999999999

;さゆ
[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(41500) = 0
triggerall = Var(37) = 1
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "sayuri"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 46500
sprpriority = 10
keyctrl = 1
id = 41500
pausemovetime = 999999999999999
supermovetime = 999999999999999
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(41500) = 0
triggerall = palno = 3
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "sayuri"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 46500
sprpriority = 10
keyctrl = 1
id = 41500
pausemovetime = 999999999999999
supermovetime = 999999999999999
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(41500) = 0
triggerall = palno = 8
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "sayuri"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 46500
sprpriority = 10
keyctrl = 1
id = 41500
pausemovetime = 999999999999999
supermovetime = 999999999999999
ownpal = 1


;ネロ
[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(40509) < Var(36)
triggerall = Var(36) >= 1
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "nero"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 40509
sprpriority = 10
keyctrl = 1
id = 40509
pausemovetime = 999999999999999
supermovetime = 999999999999999
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(40509) = 0
triggerall = palno = 7
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "nero"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 40509
sprpriority = 10
keyctrl = 1
id = 40509
pausemovetime = 999999999999999
supermovetime = 999999999999999
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(40509) = 0
triggerall = palno = 8
trigger1 = roundstate = 2
ignorehitpause = 1
helpertype = normal
name = "nero"
postype = back
pos = ifelse(random < 300 ,-100,420),-3
stateno = 40509
sprpriority = 10
keyctrl = 1
id = 40509
pausemovetime = 999999999999999
supermovetime = 999999999999999
ownpal = 1



;みすずEX
[State -2]
type = Helper
triggerall = !ishelper
triggerall = numhelper(10000) < Var(26)
triggerall = Var(26) >= 1
trigger1 = roundstate = 2
ID = 10000
name = "misuzu"
postype = p1
pos = ifelse(random < 300 ,-100,420),-3
sprpriority = 2
stateno = 10000
helpertype = player
keyctrl = 0
persistent = 0
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = numhelper(10000) = 0
triggerall = palno = 4
trigger1 = roundstate = 2
ID = 10000
name = "misuzu"
postype = p1
pos = ifelse(random < 300 ,-100,420),-3
sprpriority = 2
stateno = 10000
helpertype = player
keyctrl = 0
persistent = 0
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = numhelper(10000) = 0
triggerall = palno = 8
trigger1 = roundstate = 2
ID = 10000
name = "misuzu"
postype = p1
pos = ifelse(random < 300 ,-100,420),-3
sprpriority = 2
stateno = 10000
helpertype = player
keyctrl = 0
persistent = 0
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999
ownpal = 1

[State -2]
type = Helper
triggerall = !ishelper
triggerall = numhelper(10000) <= 6
triggerall = palno = 6
trigger1 = roundstate = 2
ID = 10000
name = "misuzu"
postype = p1
pos = ifelse(random < 300 ,-100,420),-3
stateno = 10000
helpertype = player
keyctrl = 0
persistent = 5
ownpal = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999


;星管理
[State -2]
type = helper
triggerall = !ishelper
triggerall = palno != [11,12]
triggerall = NumHelper(45755) = 0
trigger1 = roundstate < 3
id = 45755
name = "hosikan"
pos =0,Const(size.mid.pos.y)
postype = P1
stateno = 45755
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

;星管理
[State -2]
type = helper
triggerall = !ishelper
triggerall = palno = [11,12]
triggerall = NumHelper(45755) = 0
trigger1 = roundstate < 3
id = 45755
name = "hosikan"
pos =0,Const(size.mid.pos.y)
postype = P1
stateno = 45755
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999
ignorehitpause = 1





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


;根性値
[State -2]
type = DefenceMulSet
triggerall = !ishelper
trigger1 = Alive = 1
value = 0.0005*((life)+1000)

;振り向き
[State -2]
type = turn
triggerall = !ishelper
triggerall = P2Dist X < 0
trigger1 = stateno = [40,47]
trigger2 = stateno = [10,12]
value = 1

;残像処理
[State -2]
type = AfterImageTime
triggerall = !ishelper
trigger1 = stateno != [100,101]
trigger1 = stateno != [105,106]
trigger1 = stateno != 108
trigger1 = stateno != 2001
trigger1 = stateno != 2202
time = 0


[State 4550, 30]
type = RemoveExplod
trigger1 = NumExplod(31662) > 0
trigger1 = stateno != 4000
ID = 31662

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

[State -2]
type = VarSet
triggerall = !ishelper
trigger1 = Var(6) < 0
v = 6
value = 1
supermove = 1
ignorehitpause = 1

;RFゲージ処理青ゲージ用
[State -2]
type = VarAdd
triggerall = !ishelper
triggerall = Var(7) = 0
triggerall = Var(6) >= 0
triggerall = Var(6) <= 199
triggerall = Movetype != H
trigger1 = Gametime%3 = 0
trigger1 = palno != [1,6]
trigger2 = palno = [1,6]
trigger2 = stateno != [70,73]
trigger2 = Gametime%3 = 0
v = 6
value = 1
supermove = 1
ignorehitpause = 1

;赤ゲージ用
[State -2]
type = VarAdd
triggerall = !ishelper
triggerall = Var(7) = 0
triggerall = Var(6) >= 200
triggerall = Var(6) <= 399
triggerall = Movetype != H
trigger1 = Gametime%8 = 0
trigger1 = palno != [1,6]
trigger2 = palno = [1,6]
trigger2 = stateno != [70,73]
trigger2 = Gametime%8 = 0
v = 6
value = 1
supermove = 1
ignorehitpause = 1
Persistent = 1

;青ゲージ_ガード時
[State -2]
type = VarAdd
triggerall = !ishelper
triggerall = Var(7) = 0
triggerall = Var(6) >= 0
triggerall = Var(6) <= 199
triggerall = Gametime%1 = 0
trigger1 = stateno = 150 || stateno = 152 || stateno = 154
trigger2 = stateno = [160,162]
v = 6
value = 1
supermove = 1
ignorehitpause = 1

;赤ゲージ_ガード時
[State -2]
type = VarAdd
triggerall = !ishelper
triggerall = Var(7) = 0
triggerall = Var(6) >= 200
triggerall = Var(6) <= 399
triggerall = Gametime%4 = 0
trigger1 = stateno = 150 || stateno = 152 || stateno = 154
trigger2 = stateno = [160,162]
v = 6
value = 1
supermove = 1
ignorehitpause = 1

[State -2]
type = VarAdd
triggerall = !ishelper
triggerall = Var(7) = 0
triggerall = Var(6) >= 0
triggerall = Var(6) <= 399
triggerall = Stateno != [120,155]
triggerall = Stateno != [160,162]
trigger1 = movetype = H
v = 6
value = 0
supermove = 1
ignorehitpause = 1

[State -2]
type = VarAdd
triggerall = !ishelper
triggerall = Var(7) = 1
triggerall = Var(6) >= 0
triggerall = Var(6) <= 400
triggerall = Stateno != [120,155]
triggerall = Stateno != [160,162]
triggerall = Stateno != [5080,5099]
triggerall = Stateno != [5100,5120]
triggerall = StateType != L
trigger1 = movetype = H
trigger1 = Gametime%9 = 0
v = 6
value = -1
supermove = 1
ignorehitpause = 1

[State -2]
type = VarSet
triggerall = !ishelper
trigger1 = Var(6) = 0
v = 7
value = 0
supermove = 1
ignorehitpause = 1

[State -2]
type = VarSet
triggerall = !ishelper
trigger1 = Var(6) = 400
v = 7
value = 1
supermove = 1
ignorehitpause = 1

[State -2]
type = VarSet
triggerall = !ishelper
trigger1 = Var(7) = 0
trigger1 = Var(6) >= 101
trigger1 = palno = [1,11]
v = 8
value = 0
supermove = 1
ignorehitpause = 1

[State -2]
type = VarSet
triggerall = !ishelper
trigger1 = Var(7) = 1
trigger1 = Var(6) <= 100
trigger1 = palno = [1,11]
v = 8
value = 1
supermove = 1
ignorehitpause = 1

[State -2]
type = VarSet
triggerall = !ishelper
trigger1 = Var(7) = 0
trigger1 = Var(6) >= 51
trigger1 = palno = 12
v = 8
value = 0
supermove = 1
ignorehitpause = 1

[State -2]
type = VarSet
triggerall = !ishelper
trigger1 = Var(7) = 1
trigger1 = Var(6) <= 50
trigger1 = palno = 12
v = 8
value = 1
supermove = 1
ignorehitpause = 1

;RFゲージP1側
[State -2]
type = Explod
triggerall = !ishelper
triggerall = Numexplod(7508) = 0
triggerall = Teamside = 1
trigger1 = 1
anim = 7508
id = 7508
postype = left
pos = 17, 55
supermove = 1
bindtime = -1
ignorehitpause = 1
removetime = -1
pausemovetime = 99999999999999
supermovetime = 99999999999999
sprpriority = 3
;ontop = 1
ownpal = 1

[State -2]
type = Explod
triggerall = !ishelper
triggerall = Numexplod(7502) = 0
triggerall = Teamside = 1
triggerall = Var(6) >= 0
triggerall = Var(6) <= 199
trigger1 = 1
anim = 7502
id   = 7502
postype = left
pos = 17, 55
supermove = 1
bindtime = -1
removetime = -1
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999999999999
supermovetime = 99999999999999
scale = var(6)/199.0,1
sprpriority = 6
;ontop = 1

[State -2]
type = ModifyExplod
triggerall = !ishelper
triggerall = Teamside = 1
triggerall = Var(6) >= 0
triggerall = Var(6) <= 199
trigger1 = 1
ID = 7502
scale = var(6)/199.0,1
ignorehitpause = 1

[State -2]
type = Explod
triggerall = !ishelper
triggerall = Numexplod(7504) = 0
triggerall = Teamside = 1
triggerall = Var(6) >= 200
triggerall = Var(6) <= 399
trigger1 = 1
anim = 7504
id   = 7504
postype = left
pos = 17, 55
supermove = 1
bindtime = -1
removetime = -1
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999999999999
supermovetime = 99999999999999
;scale = (Var(6)-200)/199.0
sprpriority = 6
;ontop = 1

[State -2]
type = ModifyExplod
triggerall = !ishelper
triggerall = Teamside = 1
triggerall = Var(6) >= 200
triggerall = Var(6) <= 399
trigger1 = 1
ID = 7504
scale = (Var(6)-200)/199.0
ignorehitpause = 1

[State -2]
type = Explod
triggerall = !ishelper
triggerall = Numexplod(7506) = 0
triggerall = Var(7) = 1
triggerall = Teamside = 1
trigger1 = 1
anim = 7506
id   = 7506
postype = left
pos = 17, 55
supermove = 1
bindtime = -1
removetime = -1
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999999999999
supermovetime = 99999999999999
;scale = var(6)/400.0,1
sprpriority = 6
;ontop = 1

[State -2]
type = ModifyExplod
triggerall = !ishelper
triggerall = Var(7) = 1
triggerall = Teamside = 1
trigger1 = 1
ID = 7506
scale = var(6)/400.0,1
ignorehitpause = 1

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = var(7) = 1
trigger2 = var(6) >= 200
trigger2 = var(6) <= 399
id = 7502
ignorehitpause = 1

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = var(7) = 1
trigger2 = var(6) >= 0
trigger2 = var(6) <= 199
id = 7504
ignorehitpause = 1

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = var(7) = 0
id = 7506
ignorehitpause = 1

;RFゲージP2側
[State -2]
type = Explod
triggerall = !ishelper
triggerall = Numexplod(7501) = 0
triggerall = Teamside = 2
trigger1 = 1
anim = 7501
id = 7501
postype = right
pos = -18, 55
supermove = 1
ignorehitpause = 1
removetime = -1
pausemovetime = 99999999999999
supermovetime = 99999999999999
bindtime = -1
ownpal = 1
;ontop = 1
sprpriority = 3
Facing = -1

[State -2]
type = Explod
triggerall = !ishelper
triggerall = Numexplod(7503) = 0
triggerall = Teamside = 2
triggerall = Var(6) >= 0
triggerall = Var(6) <= 199
trigger1 = 1
anim = 7503
id   = 7503
postype = right
pos = -18, 55
supermove = 1
bindtime = -1
removetime = -1
ownpal = 1
;ontop = 1
sprpriority = 6
ignorehitpause = 1
pausemovetime = 99999999999999
supermovetime = 99999999999999
;scale = var(6)/199.0,1
Facing = -1

[State -2]
type = ModifyExplod
triggerall = !ishelper
triggerall = Teamside = 2
triggerall = Var(7) = 0
triggerall = Var(6) >= 0
triggerall = Var(6) <= 199
trigger1 = 1
ID = 7503
scale = var(6)/199.0,1
ignorehitpause = 1

[State -2]
type = Explod
triggerall = !ishelper
triggerall = Numexplod(7505) = 0
triggerall = Teamside = 2
triggerall = Var(6) >= 200
triggerall = Var(6) <= 399
trigger1 = 1
anim = 7505
id   = 7505
postype = right
pos = -18, 55
supermove = 1
bindtime = -1
removetime = -1
ownpal = 1
;ontop = 1
sprpriority = 6
ignorehitpause = 1
pausemovetime = 99999999999999
supermovetime = 99999999999999
;scale = (Var(6)-200)/200.0
Facing = -1

[State -2]
type = ModifyExplod
triggerall = !ishelper
triggerall = Teamside = 2
triggerall = Var(6) >= 200
triggerall = Var(6) <= 399
trigger1 = 1
ID = 7505
scale = (Var(6)-200)/199.0
ignorehitpause = 1

[State -2]
type = Explod
triggerall = !ishelper
triggerall = Numexplod(7507) = 0
triggerall = var(7) = 1
triggerall = Teamside = 2
trigger1 = 1
anim = 7507
id   = 7507
postype = right
pos = -18, 55
supermove = 1
bindtime = -1
removetime = -1
ownpal = 1
;ontop = 1
sprpriority = 6
ignorehitpause = 1
pausemovetime = 99999999999999
supermovetime = 99999999999999
;scale = var(6)/400.0,1
Facing = -1

[State -2]
type = ModifyExplod
triggerall = !ishelper
triggerall = var(7) = 1
triggerall = Teamside = 2
trigger1 = 1
ID = 7507
scale = var(6)/400.0,1
ignorehitpause = 1

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = var(7) = 1
trigger2 = var(6) >= 0
trigger2 = var(6) <= 199
id = 7505
ignorehitpause = 1

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = var(7) = 1
trigger2 = var(6) >= 200
trigger2 = var(6) <= 399
id = 7503
ignorehitpause = 1

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = var(7) = 0
id = 7507
ignorehitpause = 1

;---------------------------------------------------
[State -2,VarSet]
type = VarSet
triggerall = !ishelper
trigger1 = Var(20) <= 0
var(20) = 0

[State -2,VarSet]
type = VarSet
triggerall = !ishelper
trigger1 = Var(20) >= 7
var(20) = 7

[State -2,RemoveExplod]
type = RemoveExplod
triggerall = !ishelper
trigger1 = Var(20) != 7
id = 31612
ignorehitpause = 1


[State -2,RemoveExplod]
type = RemoveExplod
triggerall = !ishelper
trigger1 = Var(20) != 6
id = 31611
ignorehitpause = 1

[State -2,RemoveExplod]
type = RemoveExplod
triggerall = !ishelper
trigger1 = Var(20) != 5
id = 31610
ignorehitpause = 1

[State -2,RemoveExplod]
type = RemoveExplod
triggerall = !ishelper
trigger1 = Var(20) != 4
id = 31609
ignorehitpause = 1

[State -2,RemoveExplod]
type = RemoveExplod
triggerall = !ishelper
trigger1 = Var(20) != 3
id = 31608
ignorehitpause = 1

[State -2,RemoveExplod]
type = RemoveExplod
triggerall = !ishelper
trigger1 = Var(20) != 2
id = 31607
ignorehitpause = 1

[State -2,RemoveExplod]
type = RemoveExplod
triggerall = !ishelper
trigger1 = Var(20) != 1
id = 31606
ignorehitpause = 1

[State -2,RemoveExplod]
type = RemoveExplod
triggerall = !ishelper
trigger1 = Var(20) > 0
id = 31605
ignorehitpause = 1

[State -2,RemoveExplod]
type = RemoveExplod
triggerall = !ishelper
trigger1 = Var(20) > 0
id = 31613
ignorehitpause = 1



[State -2,Explod1];星７つ
type = Explod
triggerall = !ishelper
trigger1 = NumExplod(31612) = 0
trigger1 = Var(20) = 7
anim = 31612
id = 31612
pos = ifelse(TeamSide = 1,240,80),43
postype = left
facing = ifelse(TeamSide = 1,1,-1) ;１ｐ側か２ｐ側かで向き反転
ontop = 1
sprpriority = 9999
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0 ;※注意
ignorehitpause = 1
scale = 0.5,0.5

[State -2,Explod1];星6つ
type = Explod
triggerall = !ishelper
trigger1 = NumExplod(31611) = 0
trigger1 = Var(20) = 6
anim = 31611
id = 31611
pos = ifelse(TeamSide = 1,240,80),43
postype = left
facing = ifelse(TeamSide = 1,1,-1) ;１ｐ側か２ｐ側かで向き反転
ontop = 1
sprpriority = 9999
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0 ;※注意
ignorehitpause = 1
scale = 0.5,0.5

[State -2,Explod1];星5つ
type = Explod
triggerall = !ishelper
trigger1 = NumExplod(31610) = 0
trigger1 = Var(20) = 5
anim = 31610
id = 31610
pos = ifelse(TeamSide = 1,240,80),43
postype = left
facing = ifelse(TeamSide = 1,1,-1) ;１ｐ側か２ｐ側かで向き反転
ontop = 1
sprpriority = 9999
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0 ;※注意
ignorehitpause = 1
scale = 0.5,0.5

[State -2,Explod1];星4つ
type = Explod
triggerall = !ishelper
trigger1 = NumExplod(31609) = 0
trigger1 = Var(20) = 4
anim = 31609
id = 31609
pos = ifelse(TeamSide = 1,240,80),43
postype = left
facing = ifelse(TeamSide = 1,1,-1) ;１ｐ側か２ｐ側かで向き反転
ontop = 1
sprpriority = 9999
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0 ;※注意
ignorehitpause = 1
scale = 0.5,0.5

[State -2,Explod1];星3つ
type = Explod
triggerall = !ishelper
trigger1 = NumExplod(31608) = 0
trigger1 = Var(20) = 3
anim = 31608
id = 31608
pos = ifelse(TeamSide = 1,240,80),43
postype = left
facing = ifelse(TeamSide = 1,1,-1) ;１ｐ側か２ｐ側かで向き反転
ontop = 1
sprpriority = 9999
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0 ;※注意
ignorehitpause = 1
scale = 0.5,0.5

[State -2,Explod1];星2つ
type = Explod
triggerall = !ishelper
trigger1 = NumExplod(31607) = 0
trigger1 = Var(20) = 2
anim = 31607
id = 31607
pos = ifelse(TeamSide = 1,240,80),43
postype = left
facing = ifelse(TeamSide = 1,1,-1) ;１ｐ側か２ｐ側かで向き反転
ontop = 1
sprpriority = 9999
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0 ;※注意
ignorehitpause = 1
scale = 0.5,0.5

[State -2,Explod1];星1つ
type = Explod
triggerall = !ishelper
trigger1 = NumExplod(31606) = 0
trigger1 = Var(20) = 1
anim = 31606
id = 31606
pos = ifelse(TeamSide = 1,240,80),43
postype = left
facing = ifelse(TeamSide = 1,1,-1) ;１ｐ側か２ｐ側かで向き反転
ontop = 1
sprpriority = 9999
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0 ;※注意
ignorehitpause = 1
scale = 0.5,0.5

[State -2,Explod1];星0・死兆星
type = Explod
triggerall = !ishelper
trigger1 = NumExplod(31605) = 0
trigger1 = Var(20) <= 0
anim = 31605
id = 31605
pos = ifelse(TeamSide = 1,240,80),43
postype = left
facing = ifelse(TeamSide = 1,1,-1) ;１ｐ側か２ｐ側かで向き反転
ontop = 1
sprpriority = 9999
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0 ;※注意
ignorehitpause = 1
scale = 0.5,0.5

[State -2,Explod1];死兆星エフェクト部分
type = Explod
triggerall = !ishelper
trigger1 = NumExplod(31613) = 0
trigger1 = Var(20) <= 0
anim = 31613
id = 31613
pos = ifelse(TeamSide = 1,249,71),55
postype = left
facing = ifelse(TeamSide = 1,1,-1) ;１ｐ側か２ｐ側かで向き反転
ontop = 1
sprpriority = 9999
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0 ;※注意
ignorehitpause = 1
scale = 0.27,0.27





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

;中攻撃制御
[State -2]
type = varset
triggerall = !ishelper
trigger1 = stateno != 210
trigger1 = stateno != 410
v = 10
value = 0

;空中ジャンプ制御
[State -2]
type = varset
triggerall = !ishelper
trigger1 = statetype = S
trigger2 = statetype = L
v = 46
value = 0

;空中ジャンプ制御
[State -2]
type = varset
triggerall = !ishelper
trigger1 = stateno != 50
v = 47
value = 0

;コンボ関係
[State 45, 1]
type = VarSet
triggerall = !ishelper
trigger1 = stateno = [0,169]
var(45) = 0

;高速関係
[State -2]
type = varset
triggerall = !ishelper
trigger1 = stateno != [805,806]
v = 33
value = 0



;-----------------------------------------------
;---------------------------------------------------------------------------
;リコイルガード
[State -2]
type = Varset
triggerall = !ishelper
triggerall = Var(3) = 0
triggerall = command != "BB"
triggerall = movetype != A
triggerall = ctrl = 1
trigger1 = command = "R_Guard"
v = 3
value = 10
ignorehitpause = 1
persistent = 0

;リコイルガード
[State -2]
type = Varset
triggerall = !ishelper
triggerall = Var(3) = 0
triggerall = command != "BB"
triggerall = movetype != A
triggerall = ctrl = 1
trigger1 = command = "C_R_Guard"
v = 3
value = 10
ignorehitpause = 1
persistent = 0

;リコイルガード
[State -2]
type = Varadd
triggerall = !ishelper
triggerall = Var(3) != 0
triggerall = Var(3) >= 0
trigger1 = timemod = 1,0
v = 3
value = -1
ignorehitpause = 1
persistent = 0

;リコイルガード
[State -2]
type = Varset
triggerall = !ishelper
triggerall = Var(3) != 0
trigger1 = stateno = 0
trigger2 = stateno = 160 || stateno = 161 || stateno = 162
trigger2 = AnimTime = 0
trigger3 = Movetype = A
v = 3
value = 0
ignorehitpause = 1
persistent = 0

;リコイルガード
[State -2]
type = HitOverride
triggerall = !ishelper
triggerall = Statetype != A
triggerall = Movetype != A && Movetype != H
triggerall = Ctrl = 1
trigger1 = Var(3) != 0
trigger1 = StateType = S
trigger1 = StateType != C
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 160
time = 4

;リコイルガード
[State -2]
type =  HitOverride
triggerall = !ishelper
triggerall = Statetype != A
triggerall = Movetype != A && Movetype != H
triggerall = Ctrl = 1
trigger1 = Var(3) != 0
trigger1 = StateType != S
trigger1 = StateType = C
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 165
time = 4

;リコイルガード
[State -2]
type =  HitOverride
triggerall = !ishelper
triggerall = Statetype = A
triggerall = Movetype != A && Movetype != H
triggerall = Ctrl = 1
trigger1 = Var(3) != 0
trigger1 = Pos Y <= -35
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 162
time = 4


;---------------------------------------------------------------
[State -2, Y座標自己修復]
type = PosSet
triggerall = RoundState = 2
trigger1 = stateno = [0,12]      
trigger1 = floor(Pos Y) = [-2,3] 
y = 0

[State -2, Y座標自動修正]
type = PosAdd
triggerall = RoundState = 2
triggerall = Life < 1000     
trigger1 = stateno = [0,30]  
trigger1 = floor(Pos Y) < -2 
y = 2

[State -2, Y座標自動修正]
type = PosAdd
triggerall = RoundState = 2
triggerall = Life < 1000
trigger1 = stateno = [0,30]
trigger1 = floor(Pos Y) > 2 ;同じく
y = -2

[State -2, Y座標自己修復]
type = PosSet
trigger1 = !Alive    
trigger1 = Lose
trigger1 = RoundState = 4
y = 0

;-------------------------------------------------------------
[State 13100, 5]
type = Pause
triggerall = NumHelper(3881) >= 1
triggerall = roundstate = 2
trigger1 = GameTime%2 = 1
time = 1
movetime = 1

[State -2]
type = poweradd
trigger1 = GetHitVar(Damage) > 0
Value = (GetHitVar(Damage))*1.15



;------------------------------------------------------------
;アーマー系





[State -2]
type = LifeAdd
triggerall = !ishelper
triggerall = palno = 11
trigger1 = Helper(67027),Var(12)-life>1
value = Helper(67027),Var(12)-life

;アーマーダメージ
[State -2]
type = LifeAdd
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = NumHelper(67027)
triggerall = Helper(67027),GetHitVar(Damage) > 10
trigger1 = stateno != [120,155]
value = -15
absolute = 1


;アーマー用本体無敵
[State -2]
type = NotHitBy
triggerall = !ishelper
triggerall = palno = 11
trigger1 = 1
value = SCA

;アーマー用ヘルパー
[State -2]
type = Helper
triggerall = !ishelper
triggerall = NumHelper(67027)!
triggerall = palno = 11
trigger1 = roundstate = 2
stateno = 67027
ID = 67027
pos = 0,0
postype = p1
ownpal = 0
keyctrl = 0
helpertype = player

;アーマー用ヘルパー
[State -2]
type = null;Helper
triggerall = !ishelper
triggerall = NumHelper(67028)!
triggerall = palno != [11,12]
trigger1 = roundstate = 2
stateno = 67028
ID = 67028
pos = 0,0
postype = p1
ownpal = 0
keyctrl = 0
helpertype = normal






;----------------------------------------------------
;アーマーのヘルパー部分
[StateDef 67027]
physics  = N
sprpriority = -1
anim = 31666

[State 6000]
type = NotHitBy
trigger1 = parent,movetype = H
trigger2 = roundstate != 2
value = SCA,AA,AT,AP

[State -2]
type = NotHitBy
trigger1 = time = 0
value = SCA
time = 60

[State -2]
type = NotHitBy
trigger1 = GetHitVar(Damage) > 10
value = SCA
time = 60

[state life]
type = varset
trigger1 = GetHitVar(Damage) > 10
v = 12
value =root,life-8
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2]
type = NotHitBy
trigger1 = parent,stateno = [120,155]
trigger2 = parent,stateno = 3550
value = SCA
time = 1



[State 6000]
type = BindToRoot
trigger1 = 1

[State 6000]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 67027

;----------------------------------------------------
;アーマーのヘルパー部分2
[StateDef 67028]
type    = S
movetype= A
physics = N
ctrl = 0
anim = 10020




[State -2]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 160]
type = ChangeState
Trigger1 = !isHelper
value = 130


[State 6000]
type = AssertSpecial
trigger1 = 1
flag = Invisible

[State 6000]
type = BindToRoot
trigger1 = 1

[State 6000]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 67028

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

;立ち_リコイルガード
[Statedef 160]
type    = S
physics = S
anim = 160
ctrl = 0
SprPriority = -1

[state life]
type = varset
triggerall = !ishelper
triggerall = palno != [11,12]
trigger1 = time = 0
v = 12
value = life

;特殊コンボ
[State -2]
type = varset
trigger1 = time = 0
v = 45
value = 0

;特殊コンボ
[State -2]
type = varset
trigger1 = time = 8
v = 45
value = 1

[State 160]
type = PosFreeze
trigger1 = time >= 0


[State 160, 1]
type = Explod
trigger1 = time = 0
anim = 7200
ID = 7200
sprpriority = 2
postype = p1
pos = 0,0
ontop = 1
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State 160, 2]
type = PlaySnd
trigger1 = time = 0
value = s3,3
channel = 6
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 160, 3]
type = Pause
triggerall = var(44) >= 1
trigger1 = time = 0
time = 5
movetime = 5
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 160, 3]
type = Pause
triggerall = var(44) = 0
trigger1 = time = 0
time = 20 
movetime = 20 
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 160, 4]
type = VelSet
trigger1 = ctrl = 0
x = 0
y = 0

[State -2]
type = lifeadd
triggerall = !ishelper
triggerall = palno != [11,12]
trigger1 = prevstateno = 1000
trigger1 = time = 0
trigger2 = prevstateno = 1100
trigger2 = time = 0
value = -Var(18)
ignorehitpause = 1
supermovetime = 9999999
sausemovetime = 9999999

[State 160]
type = ChangeState
Trigger1 = AnimTime = 0
value = 130
ctrl = 1



;-----------------------------------------
;立ち_リコイルガード4,4
[Statedef 161]
type    = S
physics = S
anim = 160
ctrl = 0
SprPriority = -1

[State 160]
type = PosFreeze
trigger1 = time >= 0


[State 160, 1]
type = Explod
trigger1 = time = 0
anim = 7200
ID = 7200
sprpriority = 2
postype = p1
pos = 0,0
ontop = 1
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State 160, 2]
type = PlaySnd
trigger1 = time = 0
value = s3,3
channel = 6



[State 160, 4]
type = VelSet
trigger1 = ctrl = 0
x = 0
y = 0

[State 160]
type = ChangeState
Trigger1 = AnimTime = 0
value = 130
ctrl = 1


;-----------------------------------------------------------------------
;空中_リコイルガード
[Statedef 162]
type    = A
physics = N
anim = 162
ctrl = 0
SprPriority = -1

;特殊コンボ
[State -2]
type = varset
trigger1 = time = 0
v = 45
value = 0

;特殊コンボ
[State -2]
type = varset
trigger1 = time = 5
v = 45
value = 1

[State 162]
type = PosFreeze
trigger1 = time >= 0

[State 160, 1]
type = Explod
trigger1 = time = 0
anim = 7200
ID = 7200
sprpriority = 2
postype = p1
pos = 0,0
ontop = 1
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State 160, 2]
type = PlaySnd
trigger1 = time = 0
value = s3,3
channel = 6

[State -2]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 160, 3]
type = Pause
triggerall = var(44) >= 1
trigger1 = time = 0
time = 4
movetime = 4
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 160, 3]
type = Pause
triggerall = var(44) = 0
trigger1 = time = 0
time = 20 
movetime = 20 
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 160, 4]
type = VelSet
trigger1 = ctrl = 0
x = 0
y = 0

[State 162]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 52
ctrl = 0



[State 162]
type = ChangeState
Trigger1 = AnimTime = 0
value = 132
ctrl = 1

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






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



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

;しゃがみリコイルガード
[Statedef 165]
type    = S
physics = S
anim = 131
ctrl = 0
SprPriority = -1

;特殊コンボ
[State -2]
type = varset
trigger1 = time = 0
v = 45
value = 0

;特殊コンボ
[State -2]
type = varset
trigger1 = time = 8
v = 45
value = 1

[State 160]
type = PosFreeze
trigger1 = time >= 0


[State 160, 1]
type = Explod
trigger1 = time = 0
anim = 7200
ID = 7200
sprpriority = 2
postype = p1
pos = 0,0
ontop = 1
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State 160, 2]
type = PlaySnd
trigger1 = time = 0
value = s3,3
channel = 6

[State -2]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 160, 3]
type = Pause
triggerall = var(44) >= 1
trigger1 = time = 0
time = 4
movetime = 4
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 160, 3]
type = Pause
triggerall = var(44) = 0
trigger1 = time = 0
time = 20 
movetime = 20 
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 160, 4]
type = VelSet
trigger1 = ctrl = 0
x = 0
y = 0

[State 160]
type = ChangeState
Trigger1 = AnimTime = 0
value = 131
ctrl = 1


;-------------------------------------------------------
;ガード2
[Statedef 145]
type    = A
movetype = I
physics = N
ctrl = 0
SprPriority = -1

[State 162]
type = Changeanim
trigger1 = Pos Y < -1
value = 162

[State 162]
type = Changeanim
trigger1 = Pos Y >= -1
value = 160

[State 0, 4]
type = CtrlSet
trigger1 = 1
value = 0


[State -2, 59]
type = Varadd
trigger1 = time = 0
v = 25
value = 1

[State -2, 59]
type = Varset
trigger1 = 1
v = 22
value = 1


;全カラー共通回復
[State -2]
type = lifeset
triggerall = palno = [11,12]
trigger1 = life < 1
value = lifemax
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

;全カラー共通回復
[State -2]
type = lifeset
triggerall = palno != [11,12]
trigger1 = life < 1
value = 1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999


;通常カラー用回復防止
[State -2]
type = null;lifeset
triggerall = !ishelper
triggerall = palno != [11,12]
trigger1 = time = 1
value = Var(58)+2
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2, 59]
type = Varadd
triggerall = palno = 12
trigger1 = time = 1
trigger1 = Var(25) > 200
v = 12
value = 50

;12Pカラー用回復防止
[State -2]
type = lifeset
triggerall = !ishelper
triggerall = palno = 12
triggerall = Var(58) >= 3
trigger1 = Var(25) < 100
trigger1 = time = 1
value = Var(58)+3
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999



[State -2]
type = lifeadd
triggerall = !ishelper
triggerall = palno = 12
trigger1 = time = 1
value = 3
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

;このステート中は不死
[state -2]
type = assertspecial
trigger1 = 1
flag = noko
ignorehitpause = 1
SuperMoveTime = 99999999
PauseMoveTime = 99999999

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

[State 0]
type = Projectile
triggerall = palno = [11,12]
trigger1 = Time = 0
trigger1 = Var(25) < 200
attr = S, HA
projanim = 26485
projhitanim = -1
projid = 26486
animtype  = hard
damage = 20,4
pausetime = 0,0
numhits = 0

[State 0]
type = Projectile
triggerall = p2life != 0
triggerall = Var(25) >= 200
triggerall = palno = [11,12]
trigger1 = GameTime%16 = 1
trigger2 = GameTime%16 = 5
trigger3 = GameTime%16 = 9
trigger4 = GameTime%16 = 13
attr = S, HA
projanim = 26485
projhitanim = -1
projid = 26486
animtype  = hard
damage = 9999999999999999999999999999999999
pausetime = 0,0
numhits = 0
p2stateno = 170000

[State 0]
type = Projectile
triggerall = Var(25) >= 200
triggerall = p2life != 0
triggerall = palno = [11,12]
trigger1 = GameTime%16 = 0
trigger2 = GameTime%16 = 4
trigger3 = GameTime%16 = 8
trigger4 = GameTime%16 = 12
projanim = 26485
projid = 26486
velocity = 0
affectteam = B
animtype  = Hard
attr = S, HA
damage = 5
pausetime = 0,0
numhits = 0
ground.type = High
sparkno = S7020

[state 1]
type = targetstate
triggerall = palno = [11,12]
triggerall = Var(25) >= 200
triggerall = target,name != "nero2"
Trigger1 = 1
value = 170000

[state 1]
type = targetstate
triggerall = palno = [11,12]
triggerall = Var(25) >= 200
triggerall = target,name = "nero2"
triggerall = target,stateno != 170002
Trigger1 = 1
value = 170002


[State 1]
type = targetLifeAdd
triggerall = palno = [11,12]
triggerall = Var(25) >= 200
trigger1 = 1
value = -9999999999999
absolute = 1
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 1]
type = ReversalDef
triggerall = palno = [11,12]
triggerall = Var(25) >= 200
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
p2facing = 1
p2stateno = 170000

;通常
[State 1]
type = ReversalDef
triggerall = palno = [11,12]
triggerall = Var(25) < 200
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
p2facing = 1
p2stateno = 169998
;------------------------------



[State 162]
type = PosFreeze
trigger1 = time >= 0

[State -2]
type = NotHitBy
triggerall = palno = [11,12]
trigger1 = 1
value = SCA
time = 60

[State -2]
type = NotHitBy
triggerall = palno != [11,12]
trigger1 = 1
value = SCA
time = 15

[State -2]
type = varset
triggerall = !ishelper
trigger1 = time <= 11
v = 51
value = 3

[State -2]
type = varset
triggerall = !ishelper
trigger1 = time >= 12
v = 51
value = 2

[State 162]
type = ChangeState
trigger1 = time >= 12
trigger1 = Pos Y >= -1
value = 0
ctrl = 1

[State 162]
type = ChangeState
trigger1 = time >= 12
value = 50
ctrl = 1










