;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;丂倄倧倳倣倳丂俠倧値倱倲倎値倲倱丂俥倝倢倕丂俶倧俆
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅

;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
; 忢帪娔帇僗僥乕僩
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
[Statedef -2]


;-----------------
; Helper Storymode Armor
;-----------------

[State -2]
Type = Helper
Triggerall = NumHelper(11777) = 0
Trigger1 = StateNo=3201
Trigger1 = var(5) < IfElse(var(53)<3,75,70)
Trigger2 = StateNo=3202
Trigger2 = (var(5) < 179)
Trigger3 = StateNo=3203
Trigger3 = (var(5) < 64)
Trigger4 = StateNo=3204
Trigger4 = Anim = 3130
Trigger4 = !(var(5) = [68,117]) && !(var(5) = [119,261])
OwnPal = 1
PosType = P1
Pos = 0, 0
ID = 11777
StateNo = 11777
PauseMoveTime = 999999
SuperMoveTime = 999999
Name = "StoryModeArmor"

[State -2, LifeAdd]
Type = LifeAdd
Trigger1 = NumHelper(11777) > 0
Trigger1 = fVar(29) >=1
Value = -floor(fVar(29))
ignorehitpause=1

[State -2, VarSet]
Type = VarAdd
Trigger1 = 1
FV = 29
Value = -floor(fvar(29))
ignorehitpause=1

[State -2]
Type= NotHitBy
Trigger1= NumHelper(11777)>0
value=SAC

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

[State -2]
Type=VarAdd
Trigger1=var(32)>0
Trigger1=StateNo!=[3200,3299]
v=32
value=-1
ignorehitpause=1

[State -2]
Type=VarSet
Trigger1=var(32)>1000
v=32
value=1000
ignorehitpause=1

[State -2, 僨僶僢僌昞帵]
Type = DisplayToClipBoard
Trigger1 = 1
Text = "var(5)=%d, fvar(1)=%f, Spell1=%d, Spell2=%d, \n AI=%d "
Params = var(5), fvar(1), var(40), var(41), var(59)
IgnoreHitPause = 1

[State -2, 僨僶僢僌昞帵]
Type = AppendToClipBoard
Trigger1 = 1
Text = "P2Dist X=%f, fvar(39)=%f, P2Dist Y=%f"
Params = P2Dist X, fvar(39), P2Dist Y
IgnoreHitPause = 1

[State -2, 媉墍忛 憈婱偝傫偺楈晞媦傃庻柦偵懳墳-1]
Type = LifeAdd
TriggerAll = NumEnemy != 0
TriggerAll = GameTime%6 = 0
Trigger1 = Enemy(0),AuthorName = "Souki" && Enemy(0),Name = "Yuyuko Saigyouji"
Trigger1 = Enemy(0),Var(3) = 1 || Enemy(0),Var(3) = 2
Value = IfElse(Enemy(0),Var(3) = 1, -2, -3)
Kill = 0

[State -2, 媉墍忛 憈婱偝傫偺楈晞媦傃庻柦偵懳墳-2]
Type = LifeAdd
TriggerAll = NumEnemy = 2
TriggerAll = GameTime%6 = 0
Trigger1 = Enemy(1),AuthorName = "Souki" && Enemy(1),Name = "Yuyuko Saigyouji"
Trigger1 = Enemy(1),Var(3) = 1 || Enemy(1),Var(3) = 2
Value = IfElse(Enemy(1),Var(3) = 1, -2, -3)
Kill = 0

;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
[State -2, 敿恎]
Type = Helper
Trigger1 = NumHelper(6400) = 0
StateNo = 6400
ID = 6400
Name = "Hanshin"
Pos = 0,-40
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
Size.XScale = .5
Size.YScale = .5
SuperMoveTime = 1000000000000

[State -2, 擇廳偺嬯椫敿恎1]
Type = Helper
TriggerAll = RoundState = 2
Trigger1 = (StateNo != 710)
Trigger1 = (StateNo != [790,793])
Trigger1 = NumHelper(6401) = 0
Trigger1 = (var(56) = 1)
StateNo = 794
ID = 6401
Name = "Hanshin3"
Pos = -40,-65
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
Size.XScale = 1
Size.YScale = 1

[State -2, 擇廳偺嬯椫敿恎2]
Type = Helper
TriggerAll = RoundState = 2
Trigger1 = (StateNo != 710)
Trigger1 = (StateNo != [790,793])
Trigger1 = NumHelper(6402) = 0
Trigger1 = (var(56) = 1) && (var(53) > 1)
StateNo = 794
ID = 6402
Name = "Hanshin3"
Pos = -Floor(BackEdgeDist+90),-65
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
Size.XScale = 1
Size.YScale = 1

[State -2, 擇廳偺嬯椫敿恎3]
Type = Helper
TriggerAll = RoundState = 2
Trigger1 = (StateNo != 710)
Trigger1 = (StateNo != [790,793])
Trigger1 = NumHelper(6403) = 0
Trigger1 = (var(56) = 1) && (var(53) > 2)
StateNo = 794
ID = 6403
Name = "Hanshin3"
Pos = Floor(FrontEdgeDist+90),-65
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
Size.XScale = 1
Size.YScale = 1

[State -2, 楈傾僀僥儉]
Type = Helper
Trigger1 = var(2) = 1
StateNo = 6105
ID = IfElse(var(3)=15,6106,6105)
Name = "Item"
Pos = Ceil(Enemy(0),Pos X - Pos X)*Facing,Ceil(Enemy(0),Pos Y - Pos Y)-10
PosType = P1
Ownpal = 1
Facing = Facing
IgnoreHitPause = 1
SuperMoveTime = 1000
PauseMoveTime = 1000
Size.XScale = .5
Size.YScale = .5

[State -2, 楈傾僀僥儉]
Type = Helper
Trigger1 = var(2) = 2
StateNo = 6105
ID = IfElse(var(3)=15,6106,6105)
Name = "Item"
Pos = Ceil(Enemy(1),Pos X - Pos X)*Facing,Ceil(Enemy(1),Pos Y - Pos Y)-10
PosType = P1
Ownpal = 1
Facing = Facing
IgnoreHitPause = 1
SuperMoveTime = 1000
PauseMoveTime = 1000
Size.XScale = .5
Size.YScale = .5

[State -2, 僌儗僀僘]
Type = Helper
Trigger1 = StateNo = 100 || StateNo = 105
Trigger2 = var(1) = 1
Trigger2 = (StateNo = [40,50]) && (AnimElem = 5,<0)
Trigger3 = (StateNo = [110,115]) && (Anim = 110) || (Anim = 115)
Trigger4 = (Anim = 201) && (AnimElem = 7,<2) || (Anim = 406) && (AnimElem = 5,<7)
Trigger5 = (Anim = 1011) && ((AnimElem = 1,>=0) && (AnimElem = 17,<5))
Trigger6 = (Anim = [3010,3011]) && ((AnimElem = 3,>=0) && (AnimElem = 13,<0))
StateNo = 6110
ID = 6110
Name = "Graze"
Pos = 0,0
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
SuperMoveTime = 9
PauseMoveTime = 9

[State -2, 儃乕僟乕僋儔僢僔儏]
Type = Helper
TriggerAll = NumEnemy != 0
TriggerAll = MoveHit = 1
TriggerAll = (Enemy(0),Movetype = H)
TriggerAll = (Enemy(0),StateNo = 10020) && (Enemy(0),Time = 1)
TriggerAll = (Enemy(0),GetHitvar(ChainID) = [20,21]) || (Enemy(0),GetHitvar(ChainID) = [1003,1004]) || (Enemy(0),GetHitvar(ChainID) = 1007)
Trigger1 = (Enemy(0),AuthorName = "Kurogane") && (Enemy(0),var(50) != 101) && (Enemy(0),Name = "Reimu_Hakurei")
Trigger2 = (Enemy(0),AuthorName = "Kurogane") && (Enemy(0),var(50) != 101) && (Enemy(0),Name = "Yukari_Yakumo")
Trigger3 = (Enemy(0),AuthorName = "Kurogane") && (Enemy(0),var(50) != 101) && (Enemy(0),Name = "Yuyuko_Saigyouji")
Trigger4 = (Enemy(0),AuthorName = "Kurogane") && (Enemy(0),var(50) != 101) && (Enemy(0),Name = "Youmu_Konpaku")
Trigger5 = (Enemy(0),AuthorName = "Kurogane") && (Enemy(0),var(50) != 101) && (Enemy(0),Name = "Patchouli_Knowledge")
Trigger6 = (Enemy(0),AuthorName = "Aotsuki") && (Enemy(0),fvar(4) >= 0.00001) && (Enemy(0),Name = "Suika_Ibuki")
Trigger7 = (Enemy(0),AuthorName = "Aotsuki") && (Enemy(0),fvar(4) >= 0.00001) && (Enemy(0),Name = "Sakuya_Izayoi")
Trigger8 = (Enemy(0),AuthorName = "Aotsuki") && (Enemy(0),fvar(4) >= 0.00001) && (Enemy(0),Name = "Aya_Syameimaru")
Trigger9 = (Enemy(0),AuthorName = "Aotsuki") && (Enemy(0),fvar(4) >= 0.00001) && (Enemy(0),Name = "Hong_Meirin")
Trigger10 = (Enemy(0),AuthorName = "Nachel") && (Enemy(0),var(41) = 0) && (Enemy(0),Name = "Remilia_Scarlet")
Trigger11 = (Enemy(0),AuthorName = "Nachel") && (Enemy(0),var(41) = 0) && (Enemy(0),Name = "Reimu_Hakurei")
Trigger12 = (Enemy(0),AuthorName = "Toma") && (Enemy(0),fvar(15) >= 0.00001) && (Enemy(0),Name = "Patchouli")
Trigger13 = (Enemy(0),AuthorName = "Toma") && (Enemy(0),fvar(15) >= 0.00001) && (Enemy(0),Name = "Marisa Kirisame")
Trigger14 = (Enemy(0),AuthorName = "rouge noir") && (Enemy(0),var(22) = 0) && (Enemy(0),Name = "youmu_konpaku")
Trigger15 = (Enemy(0),AuthorName = "SUI") && (Enemy(0),var(3) = 0) && (Enemy(0),Name = "Alice_Margatroid")
Trigger16 = (Enemy(0),AuthorName = "ibukah") && (Enemy(0),fvar(15) >= 0.00001) && (Enemy(0),Name = "Ibuki_Suika")
Trigger17 = (Enemy(0),AuthorName = "Souki") && (Enemy(0),var(55) > 0) && (Enemy(0),Name = "Alice Margatroid")
Trigger18 = (Enemy(0),AuthorName = "Souki") && (Enemy(0),var(55) > 0) && (Enemy(0),Name = "Yuyuko Saigyouji")
Trigger19 = (Enemy(0),AuthorName = "ina") && (Enemy(0),var(20) = 0) && (Enemy(0),Name = "Ibuki_Suika")
Trigger20 = (Enemy(0),AuthorName = "Daiya (Diamond)") && (Enemy(0),var(11) = 0) && (Enemy(0),Name = "Yakumo Yukari")
Trigger21 = (Enemy(0),AuthorName = "Daiya(Diamond)") && (Enemy(0),var(5) = 0) && (Enemy(0),Name = "Yuyuko Saigyouji & Youmu Konpaku")
Trigger22 = (Enemy(0),AuthorName = "nukenashi") && (Enemy(0),fvar(2) = 0) && (Enemy(0),Name = "Sakuya Izayoi")
Trigger23 = (Enemy(0),AuthorName = "nukenashi") && (Enemy(0),fvar(2) = 0) && (Enemy(0),Name = "Aya Syameimaru")
Trigger24 = (Enemy(0),AuthorName = "kuri") && (Enemy(0),var(4) > 0) && (Enemy(0),Name = "yuyu")
Trigger25 = (Enemy(0),AuthorName = "Shiroto") && (Enemy(0),fvar(10) > 0) && (Enemy(0),Name = "Yukari Yakumo")
StateNo = 6150
ID = 6150
Name = "BorderCrush"
Pos = Ceil(Enemy(0),Pos X - Pos X)*Facing,Ceil(Enemy(0),Pos Y - Pos Y)+(Enemy(0),Const(Size.Mid.Pos.Y))
PosType = P1
Ownpal = 1
IgnoreHitPause = 1

[State -2, 儃乕僟乕僋儔僢僔儏]
Type = Helper
TriggerAll = NumEnemy = 2
TriggerAll = MoveHit = 1
TriggerAll = (Enemy(1),Movetype = H)
TriggerAll = (Enemy(1),StateNo = 10020) && (Enemy(1),Time = 1)
TriggerAll = (Enemy(1),GetHitvar(ChainID) = [20,21]) || (Enemy(1),GetHitvar(ChainID) = [1003,1004]) || (Enemy(1),GetHitvar(ChainID) = 1007)
Trigger1 = (Enemy(1),AuthorName = "Kurogane") && (Enemy(1),var(50) != 101) && (Enemy(1),Name = "Reimu_Hakurei")
Trigger2 = (Enemy(1),AuthorName = "Kurogane") && (Enemy(1),var(50) != 101) && (Enemy(1),Name = "Yukari_Yakumo")
Trigger3 = (Enemy(1),AuthorName = "Kurogane") && (Enemy(1),var(50) != 101) && (Enemy(1),Name = "Yuyuko_Saigyouji")
Trigger4 = (Enemy(1),AuthorName = "Kurogane") && (Enemy(1),var(50) != 101) && (Enemy(1),Name = "Youmu_Konpaku")
Trigger5 = (Enemy(1),AuthorName = "Kurogane") && (Enemy(1),var(50) != 101) && (Enemy(1),Name = "Patchouli_Knowledge")
Trigger6 = (Enemy(1),AuthorName = "Aotsuki") && (Enemy(1),fvar(4) >= 0.00001) && (Enemy(1),Name = "Suika_Ibuki")
Trigger7 = (Enemy(1),AuthorName = "Aotsuki") && (Enemy(1),fvar(4) >= 0.00001) && (Enemy(1),Name = "Sakuya_Izayoi")
Trigger8 = (Enemy(1),AuthorName = "Aotsuki") && (Enemy(1),fvar(4) >= 0.00001) && (Enemy(1),Name = "Aya_Syameimaru")
Trigger9 = (Enemy(1),AuthorName = "Aotsuki") && (Enemy(1),fvar(4) >= 0.00001) && (Enemy(1),Name = "Hong_Meirin")
Trigger10 = (Enemy(1),AuthorName = "Nachel") && (Enemy(1),var(41) = 0) && (Enemy(1),Name = "Remilia_Scarlet")
Trigger11 = (Enemy(1),AuthorName = "Nachel") && (Enemy(1),var(41) = 0) && (Enemy(1),Name = "Reimu_Hakurei")
Trigger12 = (Enemy(1),AuthorName = "Toma") && (Enemy(1),fvar(15) >= 0.00001) && (Enemy(1),Name = "Patchouli")
Trigger13 = (Enemy(1),AuthorName = "Toma") && (Enemy(1),fvar(15) >= 0.00001) && (Enemy(1),Name = "Marisa Kirisame")
Trigger14 = (Enemy(1),AuthorName = "rouge noir") && (Enemy(1),var(22) = 0) && (Enemy(1),Name = "youmu_konpaku")
Trigger15 = (Enemy(1),AuthorName = "SUI") && (Enemy(1),var(3) = 0) && (Enemy(1),Name = "Alice_Margatroid")
Trigger16 = (Enemy(1),AuthorName = "ibukah") && (Enemy(1),fvar(15) >= 0.00001) && (Enemy(1),Name = "Ibuki_Suika")
Trigger17 = (Enemy(1),AuthorName = "Souki") && (Enemy(1),var(55) > 0) && (Enemy(1),Name = "Alice Margatroid")
Trigger18 = (Enemy(1),AuthorName = "Souki") && (Enemy(1),var(55) > 0) && (Enemy(1),Name = "Yuyuko Saigyouji")
Trigger19 = (Enemy(1),AuthorName = "ina") && (Enemy(1),var(20) = 0) && (Enemy(1),Name = "Ibuki_Suika")
Trigger20 = (Enemy(1),AuthorName = "Daiya (Diamond)") && (Enemy(1),var(11) = 0) && (Enemy(1),Name = "Yakumo Yukari")
Trigger21 = (Enemy(1),AuthorName = "Daiya(Diamond)") && (Enemy(1),var(5) = 0) && (Enemy(1),Name = "Yuyuko Saigyouji & Youmu Konpaku")
Trigger22 = (Enemy(1),AuthorName = "nukenashi") && (Enemy(1),fvar(2) = 0) && (Enemy(1),Name = "Sakuya Izayoi")
Trigger23 = (Enemy(1),AuthorName = "nukenashi") && (Enemy(1),fvar(2) = 0) && (Enemy(1),Name = "Aya Syameimaru")
Trigger24 = (Enemy(1),AuthorName = "kuri") && (Enemy(1),var(4) > 0) && (Enemy(1),Name = "yuyu")
Trigger25 = (Enemy(1),AuthorName = "Shiroto") && (Enemy(1),fvar(10) > 0) && (Enemy(1),Name = "Yukari Yakumo")
StateNo = 6150
ID = 6150
Name = "BorderCrush"
Pos = Ceil(Enemy(0),Pos X - Pos X)*Facing,Ceil(Enemy(0),Pos Y - Pos Y)+(Enemy(0),Const(Size.Mid.Pos.Y))
PosType = P1
Ownpal = 1
IgnoreHitPause = 1

[State -2, 旘傃摴嬶柍揋]
Type = NotHitBy
Trigger1 = StateNo = 100
Trigger2 = var(1) = 1
Trigger2 = (StateNo = [40,50]) && (AnimElem = 5,<0)
Trigger3 = (StateNo = [110,115]) && (Anim = 110) || (Anim = 115)
Trigger4 = (Anim = 201) && (AnimElem = 7,<2) || (Anim = 406) && (AnimElem = 5,<7)
Trigger5 = (Anim = 1011) && ((AnimElem = 1,>=0) && (AnimElem = 17,<5))
Trigger6 = (Anim = [3010,3011]) && ((AnimElem = 3,>=0) && (AnimElem = 13,<0))
Value2 = ,AP

[State -2, 巆憸昞帵帪娫]
Type = AfterImageTime
Trigger1 = var(1) = 1
Trigger1 = (StateNo = [40,50]) && (AnimElem = 5,<0)
Trigger2 = (Anim = 100) || (Anim = 105) || (Anim = 110) || (Anim = 115)
Time = 2

[State -2, 摿庩岠壥]
Type = AssertSpecial
Trigger1 = var(59) = 1
Trigger1 = var(51) = 1
Trigger1 = var(42) = 1
Flag = TimerFreeze
IgnoreHitPause = 1

[State -2, 摿庩岠壥]
Type = AssertSpecial
TriggerAll = Alive
TriggerAll = var(59) = 1
TriggerAll = var(51) = 1
TriggerAll = var(42) = 1
TriggerAll = var(56) < 5
Trigger1 = NumEnemy = 1
Trigger1 = (Enemy,Alive) && (Enemy,Life > 0)
Trigger2 = NumEnemy = 2
Trigger2 = ((Enemy(0),Alive) && (Enemy(0),Life > 0) && (Enemy(1),Alive) && (Enemy(1),Life > 0))
Flag = NoKO

[State -2, 俠俹倀僗儁儖僇乕僪梡]
Type = LifeSet
TriggerAll = Alive
TriggerAll = var(59) = 1
TriggerAll = var(51) = 1
TriggerAll = var(42) = 1
TriggerAll = var(56) < 5
Trigger1 = StateNo = [790,793]
Trigger2 = (100*Life/LifeMax) < 48
Trigger3 = ((Life)-(GetHitVar(Damage))) < 1
Value = Ceil(LifeMax*.48)

[State -2, 僈乕僪偵偝偣側偄]
Type = AttackDist
Trigger1 = var(56) > 0
Value = 0

[State -2, 僄僼僃僋僩傪徚偡]
Type = RemoveExplod
Trigger1 = NumExplod(201) > 0
Trigger1 = StateNo != 201
ID = 201
IgnoreHitPause = 1

[State -2, 僄僼僃僋僩傪徚偡]
Type = RemoveExplod
Trigger1 = NumExplod(600) > 0
Trigger1 = StateNo != 600
ID = 600
IgnoreHitPause = 1

;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;丂旘傃摴嬶僸僢僩/僈乕僪張棟
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
[State -2, 峌寕椡曗惓]
Type = VarAdd
TriggerAll = NumEnemy != 0
TriggerAll = (ProjHitTime(2000) = 0)
Trigger1 = ((Enemy(0),GetHitvar(ChainID) = 2030) && (Enemy(0),Time = [0,1]))
Trigger2 = NumEnemy = 2
Trigger2 = ((Enemy(1),GetHitvar(ChainID) = 2030) && (Enemy(1),Time = [0,1]))
fvar(39) = -5
IgnoreHitPause = 1

[State -2, 峌寕椡曗惓]
Type = VarAdd
TriggerAll = NumEnemy != 0
TriggerAll = (ProjHitTime(2000) = 0)
Trigger1 = ((Enemy(0),GetHitvar(ChainID) = 3204) && (Enemy(0),Time = [0,1]))
Trigger2 = NumEnemy = 2
Trigger2 = ((Enemy(1),GetHitvar(ChainID) = 3204) && (Enemy(1),Time = [0,1]))
fvar(39) = -4
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
TriggerAll = NumEnemy != 0
TriggerAll = (ProjHitTime(2000) = 0)
Trigger1 = ((Enemy(0),GetHitvar(ChainID) = 2030) && (Enemy(0),Time = [0,1]))
Trigger2 = NumEnemy = 2
Trigger2 = ((Enemy(1),GetHitvar(ChainID) = 2030) && (Enemy(1),Time = [0,1]))
var(7) = 2
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
TriggerAll = NumEnemy != 0
TriggerAll = (ProjHitTime(2000) = 0)
Trigger1 = ((Enemy(0),GetHitvar(ChainID) = 3204) && (Enemy(0),Time = [0,1]))
Trigger2 = NumEnemy = 2
Trigger2 = ((Enemy(1),GetHitvar(ChainID) = 3204) && (Enemy(1),Time = [0,1]))
var(7) = 7
IgnoreHitPause = 1

;**************************************************
[State -2, 僸僢僩僄僼僃僋僩]
Type = Helper
TriggerAll = NumEnemy != 0
TriggerAll = ((ProjHitTime(2000) = 0) && (Enemy(0),Time = [0,1]))
TriggerAll = (Enemy(0),Movetype = H)
TriggerAll = (Enemy(0),StateNo != [5100,5150]) && (Enemy(0),StateNo != [120,155])
Trigger1 = (Enemy(0),GetHitvar(ChainID) = 2030)
StateNo = 6000
ID = 6001
Name = "HitSpark"
Pos = Ceil(Enemy(0),Pos X - Pos X)*Facing,Ceil(Enemy(0),Pos Y - Pos Y)+(Enemy(0),Const(Size.Mid.Pos.Y))
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
Persistent = 1
SuperMoveTime = 100
PauseMoveTime = 100
Size.XScale = .5
Size.YScale = .5

[State -2, 僸僢僩僄僼僃僋僩]
Type = Helper
TriggerAll = NumEnemy = 2
TriggerAll = ((ProjHitTime(2000) = 0) && (Enemy(1),Time = [0,1]))
TriggerAll = (Enemy(1),Movetype = H)
TriggerAll = (Enemy(1),StateNo != [5100,5150]) && (Enemy(1),StateNo != [120,155])
Trigger1 = (Enemy(1),GetHitvar(ChainID) = 2030)
StateNo = 6000
ID = 6001
Name = "HitSpark"
Pos = Ceil(Enemy(1),Pos X - Pos X)*Facing,Ceil(Enemy(1),Pos Y - Pos Y)+(Enemy(1),Const(Size.Mid.Pos.Y))
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
Persistent = 1
SuperMoveTime = 100
PauseMoveTime = 100
Size.XScale = .5
Size.YScale = .5

;**************************************************
[State -2, 僸僢僩僄僼僃僋僩]
Type = Helper
TriggerAll = NumEnemy != 0
TriggerAll = ((ProjHitTime(2000) = 0) && (Enemy(0),Time = [0,1]))
TriggerAll = (Enemy(0),Movetype = H)
TriggerAll = (Enemy(0),StateNo != [5100,5150]) && (Enemy(0),StateNo != [120,155])
Trigger1 = (Enemy(0),GetHitvar(ChainID) = 3204)
StateNo = 6000
ID = 6005
Name = "HitSpark"
Pos = Ceil(Enemy(0),Pos X - Pos X)*Facing,Ceil(Enemy(0),Pos Y - Pos Y)+(Enemy(0),Const(Size.Mid.Pos.Y))
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
Persistent = 1
SuperMoveTime = 100
PauseMoveTime = 100
Size.XScale = .5
Size.YScale = .5

[State -2, 僸僢僩僄僼僃僋僩]
Type = Helper
TriggerAll = NumEnemy = 2
TriggerAll = ((ProjHitTime(2000) = 0) && (Enemy(1),Time = [0,1]))
TriggerAll = (Enemy(1),Movetype = H)
TriggerAll = (Enemy(1),StateNo != [5100,5150]) && (Enemy(1),StateNo != [120,155])
Trigger1 = (Enemy(1),GetHitvar(ChainID) = 3204)
StateNo = 6000
ID = 6005
Name = "HitSpark"
Pos = Ceil(Enemy(1),Pos X - Pos X)*Facing,Ceil(Enemy(1),Pos Y - Pos Y)+(Enemy(1),Const(Size.Mid.Pos.Y))
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
Persistent = 1
SuperMoveTime = 100
PauseMoveTime = 100
Size.XScale = .5
Size.YScale = .5

;**************************************************
[State -2, 僈乕僪僄僼僃僋僩]
Type = Helper
TriggerAll = NumEnemy != 0
TriggerAll = (ProjGuardedTime(2000) = 0)
TriggerAll = ((Enemy(0),Movetype = H) && (Enemy(0),Time = [0,1]))
TriggerAll = (Enemy(0),StateNo != [5100,5150]) && (Enemy(0),StateNo = [150,155])
Trigger1 = (Enemy(0),GetHitvar(ChainID) = 2030)
StateNo = 6005
ID = 6000
Name = "GuardSpark"
Pos = Ceil(Enemy(0),Pos X - Pos X)*Facing,Ceil(Enemy(0),Pos Y - Pos Y)+(Enemy(0),Const(Size.Mid.Pos.Y))
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
Persistent = 1
SuperMoveTime = 100
PauseMoveTime = 100
Size.XScale = .5
Size.YScale = .5

[State -2, 僈乕僪僄僼僃僋僩]
Type = Helper
TriggerAll = NumEnemy = 2
TriggerAll = (ProjGuardedTime(2000) = 0)
TriggerAll = ((Enemy(1),Movetype = H) && (Enemy(1),Time = [0,1]))
TriggerAll = (Enemy(1),StateNo != [5100,5150]) && (Enemy(1),StateNo = [150,155])
Trigger1 = (Enemy(1),GetHitvar(ChainID) = 2030)
StateNo = 6005
ID = 6000
Name = "GuardSpark"
Pos = Ceil(Enemy(1),Pos X - Pos X)*Facing,Ceil(Enemy(1),Pos Y - Pos Y)+(Enemy(1),Const(Size.Mid.Pos.Y))
PosType = P1
Ownpal = 1
IgnoreHitPause = 1
Persistent = 1
SuperMoveTime = 100
PauseMoveTime = 100
Size.XScale = .5
Size.YScale = .5

;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;丂僟僢僔儏姷惈
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
[State -2, 懍搙忔嶼]
Type = VelMul
TriggerAll = StateType != A
TriggerAll = MoveType != H
TriggerAll = Vel X != [-1.0,1.0]
Trigger1 = (StateNo = [200,499]) || (StateNo = [700,709]) || (StateNo = [1000,1005])
Trigger2 = (StateNo = [3000,3002]) || (StateNo = [3100,3101]) || (StateNo = [3200,3203])
X = .93

[State -2, 堏摦懍搙]
Type = VelSet
TriggerAll = StateType != A
TriggerAll = MoveType != H
TriggerAll = Vel X = [-1.0,1.0]
Trigger1 = (StateNo = [200,499]) || (StateNo = [700,709]) || (StateNo = [1000,1005])
Trigger2 = (StateNo = [3000,3002]) || (StateNo = [3100,3101]) || (StateNo = [3200,3203])
X = 0

;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;丂壒娭學
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;1-彫
;2-拞
;3-戝
;4-旘
;5-巃彫
;6-巃拞
;7-巃戝
;8-摿戝
[State -2, 僸僢僩壒]
Type = PlaySnd
Trigger1 = var(7) = [1,8]
Value = s0,99+var(7)
Channel = 20+var(7)
IgnoreHitPause = 1

[State -2, 僈乕僪壒]
Type = PlaySnd
Trigger1 = NumHelper(60499) > 0
Value = s0,108
Channel = 8
IgnoreHitPause = 1

[State -2, 僌儗僀僘壒]
Type = PlaySnd
Trigger1 = var(7) = 10
Value = s0,14
Channel = 9
IgnoreHitPause = 1

[State -2, 楈椡愗傟壒]
Type = PlaySnd
Trigger1 = fvar(5) = 2
Trigger1 = var(50) = 101
Value = s0,20
Channel = 11
IgnoreHitPause = 1

[State -2, 楈椡夞暅壒]
Type = PlaySnd
Trigger1 = fvar(5) > 999
Trigger1 = var(50) = 101
Value = s0,21
Channel = 12
IgnoreHitPause = 1

[State -2, 僋儔僢僔儏峌寕梡僸僢僩壒]
Type = PlaySnd
Trigger1 = var(7) = 700 || var(7) = 701
Value = s0,IfElse(var(7)=700,105,106)
Channel = 13
IgnoreHitPause = 1

[State -2, 儃乕僟乕僋儔僢僔儏壒]
Type = PlaySnd
TriggerAll = NumEnemy != 0
TriggerAll = MoveHit = 1
TriggerAll = (Enemy(0),Movetype = H)
TriggerAll = (Enemy(0),StateNo = 10020) && (Enemy(0),Time = 1)
TriggerAll = (Enemy(0),GetHitvar(ChainID) = [20,21]) || (Enemy(0),GetHitvar(ChainID) = [1003,1004]) || (Enemy(0),GetHitvar(ChainID) = 1007)
Trigger1 = (Enemy(0),AuthorName = "Kurogane") && (Enemy(0),var(50) != 101) && (Enemy(0),Name = "Reimu_Hakurei")
Trigger2 = (Enemy(0),AuthorName = "Kurogane") && (Enemy(0),var(50) != 101) && (Enemy(0),Name = "Yukari_Yakumo")
Trigger3 = (Enemy(0),AuthorName = "Kurogane") && (Enemy(0),var(50) != 101) && (Enemy(0),Name = "Yuyuko_Saigyouji")
Trigger4 = (Enemy(0),AuthorName = "Kurogane") && (Enemy(0),var(50) != 101) && (Enemy(0),Name = "Youmu_Konpaku")
Trigger5 = (Enemy(0),AuthorName = "Kurogane") && (Enemy(0),var(50) != 101) && (Enemy(0),Name = "Patchouli_Knowledge")
Trigger6 = (Enemy(0),AuthorName = "Aotsuki") && (Enemy(0),fvar(4) >= 0.00001) && (Enemy(0),Name = "Suika_Ibuki")
Trigger7 = (Enemy(0),AuthorName = "Aotsuki") && (Enemy(0),fvar(4) >= 0.00001) && (Enemy(0),Name = "Sakuya_Izayoi")
Trigger8 = (Enemy(0),AuthorName = "Aotsuki") && (Enemy(0),fvar(4) >= 0.00001) && (Enemy(0),Name = "Aya_Syameimaru")
Trigger9 = (Enemy(0),AuthorName = "Aotsuki") && (Enemy(0),fvar(4) >= 0.00001) && (Enemy(0),Name = "Hong_Meirin")
Trigger10 = (Enemy(0),AuthorName = "Nachel") && (Enemy(0),var(41) = 0) && (Enemy(0),Name = "Remilia_Scarlet")
Trigger11 = (Enemy(0),AuthorName = "Nachel") && (Enemy(0),var(41) = 0) && (Enemy(0),Name = "Reimu_Hakurei")
Trigger12 = (Enemy(0),AuthorName = "Toma") && (Enemy(0),fvar(15) >= 0.00001) && (Enemy(0),Name = "Patchouli")
Trigger13 = (Enemy(0),AuthorName = "Toma") && (Enemy(0),fvar(15) >= 0.00001) && (Enemy(0),Name = "Marisa Kirisame")
Trigger14 = (Enemy(0),AuthorName = "rouge noir") && (Enemy(0),var(22) = 0) && (Enemy(0),Name = "youmu_konpaku")
Trigger15 = (Enemy(0),AuthorName = "SUI") && (Enemy(0),var(3) = 0) && (Enemy(0),Name = "Alice_Margatroid")
Trigger16 = (Enemy(0),AuthorName = "ibukah") && (Enemy(0),fvar(15) >= 0.00001) && (Enemy(0),Name = "Ibuki_Suika")
Trigger17 = (Enemy(0),AuthorName = "Souki") && (Enemy(0),var(55) > 0) && (Enemy(0),Name = "Alice Margatroid")
Trigger18 = (Enemy(0),AuthorName = "Souki") && (Enemy(0),var(55) > 0) && (Enemy(0),Name = "Yuyuko Saigyouji")
Trigger19 = (Enemy(0),AuthorName = "ina") && (Enemy(0),var(20) = 0) && (Enemy(0),Name = "Ibuki_Suika")
Trigger20 = (Enemy(0),AuthorName = "Daiya (Diamond)") && (Enemy(0),var(11) = 0) && (Enemy(0),Name = "Yakumo Yukari")
Trigger21 = (Enemy(0),AuthorName = "Daiya(Diamond)") && (Enemy(0),var(5) = 0) && (Enemy(0),Name = "Yuyuko Saigyouji & Youmu Konpaku")
Trigger22 = (Enemy(0),AuthorName = "nukenashi") && (Enemy(0),fvar(2) = 0) && (Enemy(0),Name = "Sakuya Izayoi")
Trigger23 = (Enemy(0),AuthorName = "nukenashi") && (Enemy(0),fvar(2) = 0) && (Enemy(0),Name = "Aya Syameimaru")
Trigger24 = (Enemy(0),AuthorName = "kuri") && (Enemy(0),var(4) > 0) && (Enemy(0),Name = "yuyu")
Trigger25 = (Enemy(0),AuthorName = "Shiroto") && (Enemy(0),fvar(10) > 0) && (Enemy(0),Name = "Yukari Yakumo")
Value = s0,22
Channel = 13
IgnoreHitPause = 1

[State -2, 儃乕僟乕僋儔僢僔儏壒]
Type = PlaySnd
TriggerAll = NumEnemy = 2
TriggerAll = MoveHit = 1
TriggerAll = (Enemy(1),Movetype = H)
TriggerAll = (Enemy(1),StateNo = 10020) && (Enemy(1),Time = 1)
TriggerAll = (Enemy(1),GetHitvar(ChainID) = [20,21]) || (Enemy(1),GetHitvar(ChainID) = [1003,1004]) || (Enemy(1),GetHitvar(ChainID) = 1007)
Trigger1 = (Enemy(1),AuthorName = "Kurogane") && (Enemy(1),var(50) != 101) && (Enemy(1),Name = "Reimu_Hakurei")
Trigger2 = (Enemy(1),AuthorName = "Kurogane") && (Enemy(1),var(50) != 101) && (Enemy(1),Name = "Yukari_Yakumo")
Trigger3 = (Enemy(1),AuthorName = "Kurogane") && (Enemy(1),var(50) != 101) && (Enemy(1),Name = "Yuyuko_Saigyouji")
Trigger4 = (Enemy(1),AuthorName = "Kurogane") && (Enemy(1),var(50) != 101) && (Enemy(1),Name = "Youmu_Konpaku")
Trigger5 = (Enemy(1),AuthorName = "Kurogane") && (Enemy(1),var(50) != 101) && (Enemy(1),Name = "Patchouli_Knowledge")
Trigger6 = (Enemy(1),AuthorName = "Aotsuki") && (Enemy(1),fvar(4) >= 0.00001) && (Enemy(1),Name = "Suika_Ibuki")
Trigger7 = (Enemy(1),AuthorName = "Aotsuki") && (Enemy(1),fvar(4) >= 0.00001) && (Enemy(1),Name = "Sakuya_Izayoi")
Trigger8 = (Enemy(1),AuthorName = "Aotsuki") && (Enemy(1),fvar(4) >= 0.00001) && (Enemy(1),Name = "Aya_Syameimaru")
Trigger9 = (Enemy(1),AuthorName = "Aotsuki") && (Enemy(1),fvar(4) >= 0.00001) && (Enemy(1),Name = "Hong_Meirin")
Trigger10 = (Enemy(1),AuthorName = "Nachel") && (Enemy(1),var(41) = 0) && (Enemy(1),Name = "Remilia_Scarlet")
Trigger11 = (Enemy(1),AuthorName = "Nachel") && (Enemy(1),var(41) = 0) && (Enemy(1),Name = "Reimu_Hakurei")
Trigger12 = (Enemy(1),AuthorName = "Toma") && (Enemy(1),fvar(15) >= 0.00001) && (Enemy(1),Name = "Patchouli")
Trigger13 = (Enemy(1),AuthorName = "Toma") && (Enemy(1),fvar(15) >= 0.00001) && (Enemy(1),Name = "Marisa Kirisame")
Trigger14 = (Enemy(1),AuthorName = "rouge noir") && (Enemy(1),var(22) = 0) && (Enemy(1),Name = "youmu_konpaku")
Trigger15 = (Enemy(1),AuthorName = "SUI") && (Enemy(1),var(3) = 0) && (Enemy(1),Name = "Alice_Margatroid")
Trigger16 = (Enemy(1),AuthorName = "ibukah") && (Enemy(1),fvar(15) >= 0.00001) && (Enemy(1),Name = "Ibuki_Suika")
Trigger17 = (Enemy(1),AuthorName = "Souki") && (Enemy(1),var(55) > 0) && (Enemy(1),Name = "Alice Margatroid")
Trigger18 = (Enemy(1),AuthorName = "Souki") && (Enemy(1),var(55) > 0) && (Enemy(1),Name = "Yuyuko Saigyouji")
Trigger19 = (Enemy(1),AuthorName = "ina") && (Enemy(1),var(20) = 0) && (Enemy(1),Name = "Ibuki_Suika")
Trigger20 = (Enemy(1),AuthorName = "Daiya (Diamond)") && (Enemy(1),var(11) = 0) && (Enemy(1),Name = "Yakumo Yukari")
Trigger21 = (Enemy(1),AuthorName = "Daiya(Diamond)") && (Enemy(1),var(5) = 0) && (Enemy(1),Name = "Yuyuko Saigyouji & Youmu Konpaku")
Trigger22 = (Enemy(1),AuthorName = "nukenashi") && (Enemy(1),fvar(2) = 0) && (Enemy(1),Name = "Sakuya Izayoi")
Trigger23 = (Enemy(1),AuthorName = "nukenashi") && (Enemy(1),fvar(2) = 0) && (Enemy(1),Name = "Aya Syameimaru")
Trigger24 = (Enemy(1),AuthorName = "kuri") && (Enemy(1),var(4) > 0) && (Enemy(1),Name = "yuyu")
Trigger25 = (Enemy(1),AuthorName = "Shiroto") && (Enemy(1),fvar(10) > 0) && (Enemy(1),Name = "Yukari Yakumo")
Value = s0,22
Channel = 13
IgnoreHitPause = 1

;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;丂曄悢娗棟
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
[State -2, 嬻拞僟僢僔儏]
Type = VarSet
Trigger1 = StateType != A && var(0) != 0
Trigger1 = StateNo != 40
var(0) = 0

[State -2, 崅懍僕儍儞僾]
Type = VarSet
Trigger1 = StateType != A && var(1) != 0
Trigger1 = StateNo != 40
var(1) = 0

[State -2, 楈乚俛傾僀僥儉]
Type = VarSet
Trigger1 = fvar(39) != 0
Trigger1 = NumEnemy != 0
Trigger1 = (Enemy(0),StateNo = [5100,5110])
Trigger1 = var(2) = 0
var(2) = 1
IgnoreHitPause = 1

[State -2, 楈乚俛傾僀僥儉]
Type = VarSet
Trigger1 = fvar(39) != 0
Trigger1 = NumEnemy = 2
Trigger1 = (Enemy(1),StateNo = [5100,5110])
Trigger1 = var(2) = 0
var(2) = 2
IgnoreHitPause = 1

[State -2, 楈乚俛傾僀僥儉]
Type = VarSet
Trigger1 = NumHelper(6105) > 4
Trigger1 = (var(2) = [1,2])
var(2) = IfElse(var(2)=1,3,4)
IgnoreHitPause = 1

[State -2, 楈乚俛傾僀僥儉]
Type = VarSet
Trigger1 = NumEnemy != 0
Trigger1 = (Enemy(0),StateNo != [5100,5110])
Trigger1 = var(2) = 3
Trigger2 = NumEnemy = 2
Trigger2 = (Enemy(1),StateNo != [5100,5110])
Trigger2 = var(2) = 4
var(2) = 0
IgnoreHitPause = 1

[State -2, 俛傾僀僥儉]
Type = VarAdd
Trigger1 = (var(2) = [1,2])
var(3) = IfElse(var(3)=15,-15,1)
IgnoreHitPause = 1

[State -2, 壒梡]
Type = VarSet
Trigger1 = var(7) > 0
var(7) = 0
IgnoreHitPause = 1

[State -2, 壒梡]
Type = VarSet
Trigger1 = var(8) > 0
var(8) = 0
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
Trigger1 = RoundState > 2
Trigger2 = (StateNo = [790,793]) || (fvar(1) < 1)
var(12) = 0

[State -2, 庴恎晄擻帪娫曗惓]
Type = VarSet
Trigger1 = fvar(39) = 100
var(16) = 1000
IgnoreHitPause = 1

[State -2, 庴恎晄擻帪娫曗惓]
Type = VarAdd
Trigger1 = fvar(39) != 100
Trigger1 = var(16) > 100
var(16) = -1
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarAdd
Trigger1 = var(18) > 1
var(18) = -1

[State -2, 曄悢]
Type = VarSet
TriggerAll = (var(18) = 0) && (var(19) = 1)
TriggerAll = EnemyNear,MoveType = A
Trigger1 = EnemyNear,HitDefAttr = SCA,AA,AP,AT
var(18) = 11

[State -2, 曄悢]
Type = VarSet
Trigger1 = EnemyNear,MoveType != A
Trigger1 = (!MoveContact)
Trigger2 = EnemyNear,MoveType != A
Trigger2 = (MoveContact > 1)
var(18) = 0

[State -2, 曄悢]
Type = VarSet
Trigger1 = (MoveHit > 1) && (var(19) = 1)
var(18) = 1
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
Trigger1 = EnemyNear,MoveType = A
Trigger1 = var(19) = 0
var(19) = 1

[State -2, 曄悢]
Type = VarSet
Trigger1 = EnemyNear,MoveType != A
Trigger1 = (!MoveContact)
Trigger2 = EnemyNear,MoveType != A
Trigger2 = (MoveContact > 1)
Trigger3 = var(18) = 1
var(19) = 0

[State -2, 僇乕僪愰尵帪娫]
Type = VarSet
Trigger1 = (StateNo = 5900) && (fvar(1) > 0)
Trigger2 = (StateNo = [790,793])
fvar(1) = 0
IgnoreHitPause = 1

[State -2, 僇乕僪愰尵帪娫]
Type = VarAdd
Trigger1 = fvar(1) > 0
fvar(1) = -2.0
IgnoreHitPause = 1

[State -2, 擉晞愗傝懼偊]
Type = VarSet
Trigger1 = (Lose) || (LoseKO) || (LoseTime) || (DrawGame)
var(42) = 1

[State -2, 曄悢]
Type = VarSet
Trigger1 = Power = Const(Data.Power)
Trigger1 = (MatchNo = 1) && (RoundNo = 1) && (RoundState = [0,1])
Trigger1 = (NumPartner = 0) && (NumEnemy = 1)
var(11) = 1

[State -2, 曄悢]
Type = VarSet
Trigger1 = var(50) = 101
var(12) = 0

[State -2, 曄悢]
Type = VarSet
Trigger1 = var(11) = 1
Trigger1 = Life = 1
var(42) = IfElse((var(42)=0),1,0)

[State -2, 曄悢憹尭]
Type = VarAdd
Trigger1 = (var(11) = 1) && (RoundState = 2)
Trigger1 = Command = "start"
var(40) = IfElse(var(40)=2,-2,1)

[State -2, 曄悢憹尭]
Type = VarAdd
Trigger1 = (var(11) = 1) && (RoundState = 2)
Trigger1 = Command = "start"
var(41) = IfElse(var(41)=2,-2,1)

[State -2, 楈寕悢]
Type = VarSet
Trigger1 = (StateNo = 5900) || (RoundState = [0,1])
var(47) = 2
IgnoreHitPause = 1

[State -2, EX儌乕僪]
Type = VarSet
Trigger1 = PalNo = [7,12]
var(48) = 1

[State -2, 楈儌乕僪]
Type = VarSet
Trigger1 = 0
var(49) = 1

[State -2, 枴曽敾暿]
Type = VarSet
TriggerAll = NumPartner
TriggerAll = Partner,AuthorName = "Kurogane"
Trigger1 = Partner,Name = "Reimu_Hakurei"
Trigger2 = Partner,Name = "Yukari_Yakumo"
Trigger3 = Partner,Name = "Yuyuko_Saigyouji"
Trigger4 = Partner,Name = "Youmu_Konpaku"
Trigger5 = Partner,Name = "Patchouli_Knowledge"
var(52) = Partner,ID

[State -2, 枴曽敾暿]
Type = VarSet
Trigger1 = !var(52)
var(52) = ID

;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;楈椡僎乕僕
[State -2, 曄悢憹尭]
Type = VarAdd
Trigger1 = fvar(5) > 0
Trigger1 = var(50) < 100
Trigger1 = var(12) = 1
fvar(5) = -IfElse(var(42)=0,3.75,2.5)
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
Trigger1 = (StateNo = 5900) || (RoundState = [0,1])
Trigger2 = fvar(5) > 1000
fvar(5) = 1000
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
Trigger1 = fvar(5) < 0
fvar(5) = 0
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
Trigger1 = fvar(5) <= 0
Trigger1 = var(50) < 100
var(50) = 101
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
TriggerAll = var(50) < 100
Trigger1 = (Anim = 250) || (Anim = 252)
Trigger1 = (AnimElem = 4,=0)
Trigger2 = (Anim = 251) || (Anim = [450,452]) || (Anim = 650) || (Anim = 652)
Trigger2 = (AnimElem = 5,=0)
Trigger3 = (Anim = 651)
Trigger3 = AnimElem = 2,=12
Trigger4 = (Anim = 1000)
Trigger4 = (AnimElem = 3,=0)
var(50) = 50
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
TriggerAll = var(50) < 100
Trigger1 = (Anim = 3000) && (AnimElem = 6,=0)
Trigger2 = (Anim = [3010,3011]) && (AnimElem = 3,=0)
Trigger3 = (Anim = 3020) && (AnimElem = 2,=1)
Trigger4 = (Anim = 3030) && (AnimElem = 6,=0)
var(50) = 70
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
Trigger1 = fvar(5) > 999
Trigger1 = var(50) = 101
var(50) = 0
IgnoreHitPause = 1

[State -2, 曄悢憹尭]
Type = VarAdd
TriggerAll = fvar(5) < 1000
Trigger1 = var(50) = 0
Trigger2 = var(50) = 101
fvar(5) = IfElse((var(50)=101),2,6)
IgnoreHitPause = 1

[State -2, 曄悢憹尭]
Type = VarAdd
TriggerAll = var(12) = 0
TriggerAll = var(50) = [1,100]
Trigger1 = ((StateNo != [250,260]) && (StateNo != [450,460]) && (StateNo != [650,660]))
Trigger1 = (Anim != [3000,3001]) && (Anim != [3010,3011])
Trigger1 = StateNo != [3100,3101]
var(50) = -1
IgnoreHitPause = 1

;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
; 峌寕椡曗惓
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
[State -2, 峌寕椡]
Type = AttackMulSet
Trigger1 = var(12) = 0
Value = IfElse(fvar(39)<=3,.03,fvar(39)/100.0)

[State -2, 峌寕椡]
Type = AttackMulSet
Trigger1 = var(12) = 1
Value = IfElse(fvar(39)<=3,.015,fvar(39)/200.0)

[State -2, 儕僙僢僩]
Type = VarSet
Trigger1 = P2MoveType != H
Trigger2 = P2StateNo = 5120
fvar(39) = 100
IgnoreHitPause = 1

[State -2, 曄悢]
Type = VarSet
Trigger1 = fvar(39) <= 3
fvar(39) = 3
IgnoreHitPause = 1

;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;丂楈椡僎乕僕
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
[State -2, 僄僼僃僋僩傪徚偡];僗儘乕張棟偺揰柵夞旔張抲
Type = RemoveExplod
Trigger1 = NumExplod(9000)
ID = 9000
IgnoreHitPause = 1

[State -2, 僄僼僃僋僩傪徚偡]
Type = RemoveExplod
Trigger1 = NumExplod(9010)
ID = 9010
IgnoreHitPause = 1

[State -2, 僄僼僃僋僩傪徚偡]
Type = RemoveExplod
Trigger1 = NumExplod(9015)
ID = 9015
IgnoreHitPause = 1

;**************************************************
[State -2, 楈椡僎乕僕榞]
Type = Explod
TriggerAll = RoundState = 2
Trigger1 = !NumPartner
Trigger2 = NumPartner
Trigger2 = ((var(52) = ID) || (var(52) > ID))
Anim        = 9000
ID          = 9000
Pos         = IfElse(TeamSide=2,288,32)+var(45)*IfElse(TeamSide=2,-1,1),234+var(46)
PosType     = Left
Facing      = IfElse(TeamSide=2,-1,1)
BindTime    = -1
RemoveTime  = -1
Scale       = .5,.5
SprPriority = 10
OnTop       = IfElse(NumPartner,(var(52)=ID),1);壗屘偐僞僢僌偱忋偵昞帵偝傟傞帠偑偁傞偺偱偲傝偁偊偢懳嶔
Ownpal      = 1
SuperMove   = 1
PauseMoveTime  = -1
IgnoreHitPause = 1

[State -2, 楈椡僎乕僕-惵椢墿揰柵-1]
Type = Explod
Trigger1 = ((RoundState = 2) && (var(50) < 101))
Trigger1 = !NumPartner
Anim        = 9010+(fvar(5)=[501,750])+(fvar(5)=[251,500])*2+(fvar(5)=[0,250])*IfElse((Sin(GameTime*(Pi/10.))>=0),3,5)
ID          = 9010
Pos         = IfElse(TeamSide=2,288,32)+var(45)*IfElse(TeamSide=2,-1,1),234+IfElse(NumPartner,(var(52)<ID)*2,0)+var(46)
PosType     = Left
Facing      = IfElse(TeamSide=2,-1,1)
BindTime    = -1
RemoveTime  = -1
Scale       = fvar(5)/2000.,.5-((NumPartner)*.25*(var(52)!=ID))
SprPriority = 11
OnTop       = 1
Ownpal      = 1
SuperMove   = 1
PauseMoveTime  = -1
IgnoreHitPause = 1

[State -2, 楈椡僎乕僕-惵椢墿揰柵-2]
Type = Explod
Trigger1 = ((RoundState = 2) && (var(50) < 101))
Trigger1 = NumPartner
Anim        = 9010+(fvar(5)=[501,750])+(fvar(5)=[251,500])*2+(fvar(5)=[0,250])*IfElse((Sin(GameTime*(Pi/10.))>=0),3,5)
ID          = 9010
Pos         = IfElse(TeamSide=2,288,32)+IfElse(var(52)<ID,(Partner,var(45)),var(45))*IfElse(TeamSide=2,-1,1),234+((var(52)<ID)*2)+IfElse(var(52)<ID,(Partner,var(46)),var(46))
PosType     = Left
Facing      = IfElse(TeamSide=2,-1,1)
BindTime    = -1
RemoveTime  = -1
Scale       = fvar(5)/2000.,.5-(.25*(var(52)!=ID))
SprPriority = 11
OnTop       = 1
Ownpal      = 1
SuperMove   = 1
PauseMoveTime  = -1
IgnoreHitPause = 1

[State -2, 楈椡僎乕僕-愒-1]
Type = Explod
Trigger1 = ((RoundState = 2) && (var(50) = 101))
Trigger1 = !NumPartner
Anim        = 9015
ID          = 9015
Pos         = IfElse(TeamSide=2,288,32)+var(45)*IfElse(TeamSide=2,-1,1),234+IfElse(NumPartner,(var(52)<ID)*2,0)+var(46)
PosType     = Left
Facing      = IfElse(TeamSide=2,-1,1)
BindTime    = -1
RemoveTime  = -1
Scale       = fvar(5)/2000.,.5
SprPriority = 11
OnTop       = 1
Ownpal      = 1
SuperMove   = 1
PauseMoveTime  = -1
IgnoreHitPause = 1

[State -2, 楈椡僎乕僕-愒-2]
Type = Explod
Trigger1 = ((RoundState = 2) && (var(50) = 101))
Trigger1 = NumPartner
Anim        = 9015
ID          = 9015
Pos         = IfElse(TeamSide=2,288,32)+var(45)*IfElse(TeamSide=2,-1,1),234+IfElse(NumPartner,(var(52)<ID)*2,0)+var(46)
PosType     = Left
Facing      = IfElse(TeamSide=2,-1,1)
BindTime    = -1
RemoveTime  = -1
Scale       = fvar(5)/2000.,.5-(.25*(var(52)!=ID))
SprPriority = 11
OnTop       = 1
Ownpal      = 1
SuperMove   = 1
PauseMoveTime  = -1
IgnoreHitPause = 1

;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;丂儃儉
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
[State -2, 僄僼僃僋僩傪徚偡];僗儘乕張棟偺揰柵夞旔張抲
Type = RemoveExplod
Trigger1 = NumExplod(9020)
ID = 9020
IgnoreHitPause = 1

[State -2, 僄僼僃僋僩傪徚偡]
Type = RemoveExplod
Trigger1 = NumExplod(9030)
ID = 9030
IgnoreHitPause = 1

[State -2, 僄僼僃僋僩傪徚偡]
Type = RemoveExplod
Trigger1 = NumExplod(9040)
ID = 9040
IgnoreHitPause = 1

;**************************************************
[State -2, 儃儉昞帵-忋]
Type = Explod
TriggerAll = RoundState = 2
Trigger1 = !NumPartner
Trigger2 = NumPartner
Trigger2 = ((var(52) = ID) || (var(52) > ID))
Anim        = 9020+var(47)
ID          = 9020
Pos         = IfElse(TeamSide=2,288,32)+var(45)*IfElse(TeamSide=2,-1,1),234+var(46)
PosType     = Left
Facing      = IfElse(TeamSide=2,-1,1)
BindTime    = -1
RemoveTime  = -1
Scale       = .5,.5
SprPriority = 11
OnTop       = 1
Ownpal      = 1
SuperMove   = 1
PauseMoveTime  = -1
IgnoreHitPause = 1

[State -2, 儃儉昞帵-壓-惵-1]
Type = Explod
Trigger1 = RoundState = 2
Trigger1 = !NumPartner
Anim        = 9030+var(47)
ID          = 9030
Pos         = IfElse(TeamSide=2,288,32)+var(45)*IfElse(TeamSide=2,-1,1),234+var(46)
PosType     = Left
Facing      = IfElse(TeamSide=2,-1,1)
BindTime    = -1
RemoveTime  = -1
Scale       = .5,.5
SprPriority = 11
OnTop       = 1
Ownpal      = 1
SuperMove   = 1
PauseMoveTime  = -1
IgnoreHitPause = 1

[State -2, 儃儉昞帵-壓-惵-2]
Type = Explod
Trigger1 = ((RoundState = 2) && (var(52) = ID))
Trigger1 = NumPartner
Anim        = 9030+var(47)
ID          = 9030
Pos         = IfElse(TeamSide=2,288,32)+IfElse(var(52)<ID,(Partner,var(45)),var(45))*IfElse(TeamSide=2,-1,1),234+IfElse(var(52)<ID,(Partner,var(46)),var(46))
PosType     = Left
Facing      = IfElse(TeamSide=2,-1,1)
BindTime    = -1
RemoveTime  = -1
Scale       = .5,.5
SprPriority = 11
OnTop       = 1
Ownpal      = 1
SuperMove   = 1
PauseMoveTime  = -1
IgnoreHitPause = 1

[State -2, 儃儉昞帵-壓-愒]
Type = Explod
Trigger1 = ((RoundState = 2) && (var(52) < ID))
Trigger1 = NumPartner
Anim        = 9040+var(47)
ID          = 9040
Pos         = IfElse(TeamSide=2,288,32)+IfElse(var(52)<ID,(Partner,var(45)),var(45))*IfElse(TeamSide=2,-1,1),234+IfElse(var(52)<ID,(Partner,var(46)),var(46))
PosType     = Left
Facing      = IfElse(TeamSide=2,-1,1)
BindTime    = -1
RemoveTime  = -1
Scale       = .5,.5
SprPriority = 11
OnTop       = 1
Ownpal      = 1
SuperMove   = 1
PauseMoveTime  = -1
IgnoreHitPause = 1

;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅
;亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅

[State -2,旐偝偽愜]
type = PlaySnd
TriggerAll = Enemy,AuthorName = "Gal129" && Enemy,Name = "cvshonda"
trigger1 = AnimElem = 1,= 15
trigger1 = stateno = 826
trigger2 = AnimElem = 1,= 1
trigger2 = stateno = 827
value = 4218,21 + (Random%2)
channel = 0
volume = 255

[State -2,旐僆乕儔埇傝]
type = PlaySnd
triggerall = p2name = "Rasputin"
trigger1 = stateno = 9000
trigger1 = AnimElem = 3,= 1
value = 4218, 21
channel = 0
volume = 255

[State -2,旐偣偭偐傫僗僩乕儉]
type = PlaySnd
triggerall = p2name = "Rasputin"
triggerall = stateno = 9010
trigger1 = AnimElem = 6,= 1
trigger2 = AnimElem = 10,= 1
value = 4218, 22 + (Random%2)
channel = 0
volume = 255

[State -2,旐旈枾偺壴墍]
type = PlaySnd
triggerall = p2name = "Rasputin"
triggerall = stateno = 9050
triggerall = alive
trigger1 = AnimElem = 4,= 21
trigger2 = AnimElem = 4,= 42
trigger3 = AnimElem = 4,= 63
trigger4 = AnimElem = 4,= 84
trigger5 = AnimElem = 4,= 105
value = 4218,21 + (Random%2)
channel = 0
volume = 255

[State -2,旐旈枾偺壴墍MAX]
type = PlaySnd
triggerall = p2name = "Rasputin"
triggerall = stateno = 9052
triggerall = alive
trigger1 = AnimElem = 4,= 21
trigger2 = AnimElem = 4,= 42
trigger3 = AnimElem = 4,= 63
trigger4 = AnimElem = 4,= 84
trigger5 = AnimElem = 4,= 105
value = 4218,21 + (Random%2)
channel = 0
volume = 255

[State -2,奜摴偺鄝報墴偟]
type = PlaySnd
triggerall = p2name = "kusaregedo"
triggerall = stateno = 1121
trigger1 = AnimElem = 2,= 3
trigger2 = AnimElem = 6,= 3
value = 4218,21
channel = 0
volume = 255

[State -2,奜摴偺鄝報墴偟]
type = PlaySnd
triggerall = p2name = "kusaregedo"
triggerall = stateno = 1121
trigger1 = AnimElem = 10,= 3
value = 4218,23
channel = 0
volume = 255

[State -2, 擇恖栚偺僀儞僩儘]
type = ChangeState
value = 190
triggerall = RoundsExisted = 0
triggerall = TeamMode = Turns
trigger1 = stateno = 5900
