;---------------------------------------------------------------------------
; States that are always executed (use statedef -2)
;---------------------------------------------------------------------------

[StateDef -2]

;;==================================================
;; [Editable Part]
;;==================================================
[State -3, AIFor1stto11thPallete]
type = VarSet
trigger1 = palno < 12
var(59) = 7          ;;;;;(From 0 to 10)

[State -3, AIFor12thPallete]
type = VarSet
trigger1 = palno = 12
var(59) = 10

[State -2, ????????]
type = VarSet
triggerall = var(59) >= 10
trigger1 = palno = 12
trigger2 = var(57) = 2
var(56) = 1

[State -2, Mode]
type = VarSet
trigger1 = palno = [1,6] ;;;From Pallete 1 to 6
var(57) = 1      ;;0 - Old,   1 - New,    2 - Mixed(this one is later....)

[State -2, Mode]
type = VarSet
trigger1 = palno = [7,11] ;;;From Pallete 7 to 11
var(57) = 0      ;;0 - Old,   1 - New,    2 - Mixed(this one is later....)

[State -2, Always in Mixed Mode]
type = VarSet
trigger1 = palno = 12  ;;12th Pallete
trigger2 = name = "Shadow Alpha"
var(57) = 2

[State -2, NoJuggle]
type = assertspecial
trigger1 = var(57) = 2
flag = nojugglecheck

;;=======================================================
;; [For Below is Experts Only] um better not to do it
;;=======================================================

[State -2, Cannot Yell at all]
type = VarSet
trigger1 = p2name = "Zengar Zonvolt" || p4name = "Zengar Zonvolt" || p2name = "Sanger Zonvolt" || p4name = "Sanger Zonvolt"
trigger2 = p2name = "Elzam V Branstein" || p4name = "Elzam V Branstein" || p2name = "Ratzel Fanchmenger" || p4name = "Ratzel Fanchmenger" || p2name = "Aussensider" || p4name = "Aussensider"
trigger3 = p2name = "Kusuha Mizuha" || p4name = "Kusuha Mizuha" || p2name = "Shin Ryukooh" || p4name = "Shin Ryukooh" || p2name = "Ryukooh" || p4name = "Ryukooh"
trigger4 = p2name = "Brooklyn Rockfield" || p4name = "Brooklyn Rockfield" || p2name = "Koryuoh" || p4name = "Koryuoh" || p2name = "Shin Ryukooh" || p4name = "Shin Ryukooh"
trigger5 = p2name = "Mai Tokiha" || p4name = "Mai Tokiha" || p2name = "Kagotsuchi" || p4name = "Kagotsuchi"
trigger6 = p2name = "Natsuki Kuga" || p4name = "Natsuki Kuga" || p2name = "Natsuki Krueger" || p4name = "Natsuki Krueger" || p2name = "Duran" || p4name = "Duran"
trigger7 = p2name = "Mikoto Minagi" || p4name = "Mikoto Minagi" || p2name = "Miroku" || p4name = "Miroku"
trigger8 = p2name = "Shizuru Fujino" || p4name = "Shizuru Fujino" || p2name = "Shizuru Viola" || p4name = "Shizuru Viola" || p2name = "Kiyohime" || p4name = "Kiyohime"
trigger9 = p2name = "Lamia Loveless" || p4name = "Lamia Loveless" || p2name = "Angelg" || p4name = "Angelg"
trigger10 = p2name = "Axel Almer" || p4name = "Axel Almer" || p2name = "Soulgain" || p4name = "Soulgain"
trigger11 = p2name = "Bian Zoldark" || p4name = "Bian Zoldark"
trigger12 = p2name = "Thomas Galewind" || p4name = "Thomas Galewind"
trigger13 = p2name = "Himeko Kurusugawa" || p4name = "Himeko Kurusugawa" || p2name = "Himiko" || p4name = "Himiko"
trigger14 = p2name = "Chikane Himemiya" || p4name = "Chikane Himemiya" || p2name = "Kaon" || p4name = "Kaon"
trigger15 = p2name = "Mayo Kagura" || p4name = "Mayo Kagura"
trigger16 = p2name = "FPJ" || p4name = "FPJ" || p2name = "Fernando Poe Jr" || p4name = "Fernando Poe Jr"
trigger17 = p2name = "Erap" || p4name = "Erap" || p2name = "Joseph Ejercito Estrada" || p4name = "Joseph Ejercito Estrada"
trigger18 = p2name = "Kuon Minazuki" || p4name = "Kuon Minazuki" || p2name = "Altema" || p4name = "Altema"
trigger19 = p2name = "Kai Kitamura" || p4name = "Kai Kitamura"
trigger20 = p2name = "Etno" || p4name = "Etno"
trigger21 = p2name = "Bud" || p4name = "Bud"
trigger22 = p2name = "Gorgeous" || p4name = "Gorgeous"
trigger23 = p2name = "Candy" || p4name = "Candy"
trigger24 = p2name = "Stereo" || p4name = "Stereo"
trigger25 = p2name = "Hazuki Azuma" || p4name = "Hazuki Azuma" || p2name = "Hatsuki" || p4name = "Hatsuki"
trigger26 = p2name = "Hatsumi Azuma" || p4name = "Hatsumi Azuma" || p2name = "Eve" || p4name = "Eve" || p2name = "Jiru" || p4name = "Jiru"
trigger27 = p2name = "Nagare Ryoma" || p4name = "Nagare Ryoma" || p2name = "Shingetter" || p4name = "Shingetter"
trigger28 = p2name = "HEERO YUY" || p4name = "HEERO YUY" || p2name = "Wing Gundam" || p4name = "Wing Gundam" || p2name = "Wing Gundam Zero" || p4name = "Wing Gundam Zero"
trigger29 = p2name = "Baron G" || p4name = "Baron G" || p2name = "Fathom X" || p4name = "Fathom X" || p2name = "Nazgarld" || p4name = "Nazgarld"
trigger30 = p2name = "Kane" || p4name = "Kane" || p2name = "Joe Kucan" || p4name = "Joe Kucan"
trigger31 = p2name = "dragon" || p4name = "dragon"
trigger32 = p2name = "Hikaru Shidou" || p4name = "Hikaru Shidou"
trigger33 = p2name = "Manny Pacquiao" || p4name = "Manny Pacquiao" || p2name = "PAC-MAN" || p4name = "PAC-MAN"
trigger34 = p2name = "Siopaoman" || p4name = "Siopaoman" || p2name = "Yae Mizushiro" || p4name = "Yae Mizushiro"
trigger35 = p2name = "Mang Ambo" || p4name = "Mang Ambo" || p2name = "Misao Kotoshiro" || p4name = "Misao Kotoshiro"
trigger36 = p2name = "Touka Kaminuki" || p4name = "Touka Kaminuki" || p2name = "Thunderf00t" || p4name = "Thunderf00t"     ;;;THIS NAME IS TOO RARE!
trigger37 = p2name = "Maya Kutsuwa" || p4name = "Maya Kutsuwa" || p2name = "AronRa" || p4name = "AronRa"     ;;;ANOTHER RARE NAME!
var(10) = 1

[State -2, ]
type = VarSet
trigger1 = movetype = I
v = 15
value = 0

[State 0, I HATE YOU, GO TO HELL, MASUNOG KAYONG LAHAT SA IMPYERNO, PUTANG INA NYONG LAHAT]
type = VarSet
Triggerall = var(56) = 1
Triggerall = Lose || LoseKO || LoseTime
trigger1 = p2name = "Kohaku" || p4name = "Kohaku"
trigger2 = p2name = "Hisui&Kohaku" || p4name = "Hisui&Kohaku"
trigger3 = p2name = "Hisui" || p4name = "Hisui"
trigger4 = p2name = "Arcueid Brunestud" || p4name = "Arcueid Brunestud" || p2name = "Arcueid_Brunestud" || p4name = "Arcueid_Brunestud"
trigger5 = p2name = "Akiha_Tohno" || p4name = "Akiha_Tohno" || p2name = "seifuku_akiha" || p4name = "seifuku_akiha"
trigger6 = p2name = "Aoko Aozaki" || p4name = "Aoko Aozaki" || p2name = "Aozaki_Aoko(CPU)"  || p4name = "Aozaki_Aoko(CPU)"
trigger7 = p2name = "Miyako Arima" || p4name = "Miyako Arima" || p2name = "Arima_Miyako" || p4name = "Arima_Miyako"
trigger8 = p2name = "CIEL" || p2name = "Ciel" || p4name = "CIEL" || p4name = "Ciel" || p2name = "CIEL(ELEICIA)" || p4name = "CIEL(ELEICIA)"
trigger9 = p2name = "Nero Chaos" || p4name = "Nero Chaos" || p2name = "Nrvnqsr_Chaos" || p4name = "Nrvnqsr_Chaos" || p2name = "necoarc_abyss" || p4name = "necoarc_abyss"
trigger10 = p2name = "Len" || p4name = "Len"
trigger11 = p2name = "Akaitsuki" || p4name = "Akaitsuki"
trigger12 = p2name = "White_Len" || p4name = "White_Len" || p2name = "White_Len(CPU)" || p4name = "White_Len(CPU)"
trigger13 = p2name = "Warcueid" || p4name = "Warcueid"
trigger14 = p2name = "Sion Eltnam Atlasia" || p4name = "Sion Eltnam Atlasia"
trigger15 = p2name = "Mech-HISUI" || p4name = "Mech-HISUI" 
trigger16 = p2name = "Red Arcueid" || p4name = "Red Arcueid" || p2name = "Red_Arcueid" || p4name = "Red_Arcueid"
trigger17 = p2name = "Neco-Arc" || p4name = "Neco-Arc" || p2name = "Neco-Arc Z" || p4name = "Neco-Arc Z"
trigger18 = p2name = "7th Heaven Ciel" || p4name = "7th Heaven Ciel" || p2name = "Full Armor Ciel" || p4name = "Full Armor Ciel"
trigger19 = p2name = "mechhisui"|| p4name = "mechhisui"|| p2name = "mechhisuiex" || p4name = "mechhisuiex"
trigger20 = p2name = "Stupid Mech-HISUIX" || p4name = "Stupid Mech-HISUIX"
trigger21 = p2name = "Shiki_Tohno" || p4name = "Shiki_Tohno" || p2name = "Shiki Tohno" || p4name = "Shiki Tohno" || p2name = "Tohno_Shiki" || p4name = "Tohno_Shiki"
trigger22 = p2name = "Shiki_Nanaya" || p4name = "Shiki_Nanaya" || p2name = "Nanaya_T" || p4name = "Nanaya_T" || p2name = "Nanaya_Shiki" || p4name = "Nanaya_Shiki"
trigger23 = p2name = "Arcueid The Stinkbag" || p4name = "Arcueid The Stinkbag"
trigger24 = p2name = "Shiki Asshole" || p4name = "Shiki Asshole" || p2name = "The Dirtiest SOB" || p4name = "The Dirtiest SOB"
trigger25 = p2name = "Kishima Kouma" || p4name = "Kishima Kouma"
trigger26 = p2name = "Warakia" || p4name = "Warakia"
trigger27 = p2name = "Warachia" || p4name = "Warachia"
trigger28 = p2name = "Akiha_Vermilion" || p4name = "Akiha_Vermilion"
trigger29 = p2name = "Dark Arcueid" || p4name = "Dark Arcueid" || p2name = "Dark Arcueid mk2" || p4name = "Dark Arcueid mk2"
trigger30 = p2name = "Sion TATARI" || p4name = "Sion TATARI" || p2name = "Sion_TATARI" || p4name = "Sion_TATARI"
trigger31 = p2name = "Kishima_kouma" || p4name = "Kishima_kouma" || p2name = "Kishima Kouma" || p4name = "Kishima Kouma"
trigger32 = p2name = "Neco-Arc Chaos" || p4name = "Neco-Arc Chaos" || p2name = "necochaosblackG666mk2" || p4name = "necochaosblackG666mk2"
trigger33 = p2name = "Satsuki_Yumiduka" || p4name = "Satsuki_Yumiduka" || p2name = "Yumiduka_Satsuki" || p4name = "Yumiduka_Satsuki"
trigger34 = p2name = "Sion_Eltnam_Atlasia" || p4name = "Sion_Eltnam_Atlasia"
trigger35 = p2name = "Totally Pissed off Haruhi" || p4name = "Totally Pissed off Haruhi" || p2name = "Aku no Tamashi Haruhi" || p4name = "Aku no Tamashi Haruhi" || p2name = "God Haruhi" || p4name = "God Haruhi"
trigger36 = p2name = "Shana" || p4name = "Shana"
trigger37 = p2name = "rena_lv5" || p4name = "rena_lv5"
trigger38 = p2name = "Maebara_keiichi" || p4name = "Maebara_keiichi"
trigger39 = p2name = "furude_rika" || p4name = "furude_rika"
trigger40 = p2name = "Haruhi Suzumiya" || p4name = "Haruhi Suzumiya" || p2name = "Suzumiya Haruhi" || p4name = "Suzumiya Haruhi"
trigger41 = p2name = "Nagato Yuki" || p4name = "Nagato Yuki" || p2name = "Yuki Nagato" || p4name = "Yuki Nagato"
trigger42 = p2name = "asakura ryouko" || p4name = "asakura ryouko"
trigger43 = p2name = "Mikuru Asahina" || p4name = "Mikuru Asahina" || p2name = "asahina mikuru" || p4name = "asahina mikuru"
trigger44 = p2name = "koizumi itsuki" || p4name = "koizumi itsuki"
trigger45 = p2name = "kyon" || p4name = "kyon"
trigger46 = p2name = "kotonoha katsura" || p4name = "kotonoha katsura" || p2name = "katsura" || p4name = "katsura"
trigger47 = p2name = "Saionzi Sekai"  || p4name = "Saionzi Sekai"
trigger48 = p2name = "Setsuna of SD" || p4name = "Setsuna of SD"
trigger49 = p2name = "Kino Makoto"  || p4name = "Kino Makoto"
trigger50 = p2name = "Takano_Miyo" || p4name = "Takano_Miyo"
trigger51 = p2name = "Chie_Rumiko" || p4name = "Chie_Rumiko"
trigger52 = p2name = "tsuruya-san" || p4name = "tsuruya-san"
trigger53 = p2name = "Hojo Satoko" || p4name = "Hojo Satoko"
trigger54 = p2name = "Sonozaki_Mion" || p4name = "Sonozaki_Mion"
trigger55 = p2name = "Ryoko Asakura" || p4name = "Ryoko Asakura"
trigger56 = p2name = "Sonozaki_Shion" || p4name = "Sonozaki_Shion"
trigger57 = p2name = "ore_no_moto_yome" || p4name = "ore_no_moto_yome"
trigger58 = p2name = "Shiki Kageya" || p4name = "Shiki Kageya" || p2name = "Nanaya-Satsujinki" || p4name = "Nanaya-Satsujinki"
trigger59 = p2name = "Michael_Roa_Valdamjong" || p4name = "Michael_Roa_Valdamjong"
trigger60 = p2name = "Riesbyfe_Stridberg" || p4name = "Riesbyfe_Stridberg"
trigger61 = p2name = "Shiki Ryougi" || p4name = "Shiki Ryougi" || p2name = "ryougishiki" || p4name = "ryougishiki"
trigger62 = p2name = "beatrice" || p4name = "beatrice"
trigger63 = p2name = "hanyu" || p4name = "hanyu"
trigger64 = enemy,authorname = "Hostiles"
trigger65 = enemy,authorname = "Toma & Raien Makoto"
trigger66 = enemy,authorname = "Raien Makoto"
var(37) = 1

[State -2, Wordsvsall]
type = VarSet
trigger1 = 1
var(40) = 0

[State -2, WordsvsMB]
type = VarSet
trigger1 = p2name = "Kohaku" || p4name = "Kohaku"
trigger2 = p2name = "Hisui&Kohaku" || p4name = "Hisui&Kohaku"
trigger3 = p2name = "Hisui" || p4name = "Hisui"
trigger4 = p2name = "Arcueid Brunestud" || p4name = "Arcueid Brunestud" || p2name = "Arcueid_Brunestud" || p4name = "Arcueid_Brunestud"
trigger5 = p2name = "Akiha_Tohno" || p4name = "Akiha_Tohno" || p2name = "seifuku_akiha" || p4name = "seifuku_akiha"
trigger6 = p2name = "Aoko Aozaki" || p4name = "Aoko Aozaki" || p2name = "Aozaki_Aoko(CPU)"  || p4name = "Aozaki_Aoko(CPU)"
trigger7 = p2name = "Miyako Arima" || p4name = "Miyako Arima" || p2name = "Arima_Miyako" || p4name = "Arima_Miyako"
trigger8 = p2name = "CIEL" || p2name = "Ciel" || p4name = "CIEL" || p4name = "Ciel" || p2name = "CIEL(ELEICIA)" || p4name = "CIEL(ELEICIA)"
trigger9 = p2name = "Nero Chaos" || p4name = "Nero Chaos" || p2name = "Nrvnqsr_Chaos" || p4name = "Nrvnqsr_Chaos" || p2name = "necoarc_abyss" || p4name = "necoarc_abyss"
trigger10 = p2name = "Len" || p4name = "Len"
trigger11 = p2name = "Akaitsuki" || p4name = "Akaitsuki"
trigger12 = p2name = "White_Len" || p4name = "White_Len" || p2name = "White_Len(CPU)" || p4name = "White_Len(CPU)"
trigger13 = p2name = "Warcueid" || p4name = "Warcueid" 
trigger14 = p2name = "Sion Eltnam Atlasia" || p4name = "Sion Eltnam Atlasia"
trigger15 = p2name = "Mech-HISUI" || p4name = "Mech-HISUI"
trigger16 = p2name = "Red Arcueid" || p4name = "Red Arcueid" || p2name = "Red_Arcueid" || p4name = "Red_Arcueid"
trigger17 = p2name = "Neco-Arc" || p4name = "Neco-Arc" || p2name = "Neco-Arc Z" || p4name = "Neco-Arc Z"
trigger18 = p2name = "7th Heaven Ciel" || p4name = "7th Heaven Ciel" || p2name = "Full Armor Ciel" || p4name = "Full Armor Ciel"
trigger19 = p2name = "mechhisui"|| p4name = "mechhisui"|| p2name = "mechhisuiex" || p4name = "mechhisuiex"
trigger20 = p2name = "Stupid Mech-HISUIX" || p4name = "Stupid Mech-HISUIX"
trigger21 = p2name = "Shiki_Tohno" || p4name = "Shiki_Tohno" || p2name = "Tohno_Shiki" || p4name = "Tohno_Shiki"
trigger22 = p2name = "Shiki_Nanaya" || p4name = "Shiki_Nanaya" || p2name = "Nanaya_T" || p4name = "Nanaya_T" || p2name = "Nanaya_Shiki" || p4name = "Nanaya_Shiki"
trigger23 = p2name = "Shiki Tohno" || p4name = "Shiki Tohno" || p2name = "Tohno_Shiki" || p4name = "Tohno_Shiki"
trigger24 = p2name = "Arcueid The Stinkbag" || p4name = "Arcueid The Stinkbag"
trigger25 = p2name = "Shiki Asshole" || p4name = "Shiki Asshole"
trigger26 = p2name = "The Dirtiest SOB" || p4name = "The Dirtiest SOB"
trigger27 = p2name = "Kishima Kouma" || p4name = "Kishima Kouma"
trigger28 = p2name = "Warakia" || p4name = "Warakia"
trigger29 = p2name = "Warachia" || p4name = "Warachia"
trigger30 = p2name = "Akiha_Vermilion" || p4name = "Akiha_Vermilion"
trigger31 = p2name = "Dark Arcueid" || p4name = "Dark Arcueid" || p2name = "Dark Arcueid mk2" || p4name = "Dark Arcueid mk2"
trigger32 = p2name = "Sion TATARI" || p4name = "Sion TATARI" || p2name = "Sion_TATARI" || p4name = "Sion_TATARI"
trigger33 = p2name = "Kishima_kouma" || p4name = "Kishima_kouma"
trigger34 = p2name = "Neco-Arc Chaos" || p4name = "Neco-Arc Chaos"
trigger35 = p2name = "Satsuki_Yumiduka" || p4name = "Satsuki_Yumiduka" || p2name = "Yumiduka_Satsuki" || p4name = "Yumiduka_Satsuki"
trigger36 = p2name = "Sion_Eltnam_Atlasia" || p4name = "Sion_Eltnam_Atlasia"
trigger37 = p2name = "Neco-Arc Chaos" || p4name = "Neco-Arc Chaos" || p2name = "necochaosblackG666mk2" || p4name = "necochaosblackG666mk2"
trigger38 = p2name = "ore_no_moto_yome" || p4name = "ore_no_moto_yome"
trigger39 = p2name = "Shiki Kageya" || p4name = "Shiki Kageya" || p2name = "Nanaya-Satsujinki" || p4name = "Nanaya-Satsujinki"
trigger40 = p2name = "Michael_Roa_Valdamjong" || p4name = "Michael_Roa_Valdamjong"
trigger41 = p2name = "Riesbyfe_Stridberg" || p4name = "Riesbyfe_Stridberg"
trigger42 = p2name = "Shiki Ryougi" || p4name = "Shiki Ryougi" || p2name = "ryougishiki" || p4name = "ryougishiki"
trigger43 = enemy,authorname = "Hostiles"
trigger44 = enemy,authorname = "Toma & Raien Makoto"
trigger45 = enemy,authorname = "Raien Makoto"
var(40) = 1

[State -2, WordsvsSOS]
type = VarSet
trigger1 = p2name = "Haruhi Suzumiya" || p4name = "Haruhi Suzumiya"
trigger2 = p2name = "Nagato Yuki" || p4name = "Nagato Yuki" || p2name = "Yuki Nagato" || p4name = "Yuki Nagato"
trigger3 = p2name = "asakura ryouko" || p4name = "asakura ryouko" || p2name = "Ryoko Asakura" || p4name = "Ryoko Asakura"
trigger4 = p2name = "Mikuru Asahina" || p4name = "Mikuru Asahina"
trigger5 = p2name = "asahina mikuru" || p4name = "asahina mikuru"
trigger6 = p2name = "koizumi itsuki" || p4name = "koizumi itsuki"
trigger7 = p2name = "Konata Izumi" || p4name = "Konata Izumi" || p2name = "konata" || p4name = "konata"
trigger8 = p2name = "Tsukasa Hiiragi" || p4name = "Tsukasa Hiiragi" || p2name = "tsukasa" || p4name = "tsukasa"
trigger9 = p2name = "Kagami Hiiragi" || p4name = "Kagami Hiiragi" || p2name = "kagamin" || p4name = "kagamin"
trigger10 = p2name = "kyon" || p4name = "kyon"
trigger11 = p2name = "Shana" || p4name = "Shana"
trigger12 = p2name = "rena_lv5" || p4name = "rena_lv5"
trigger13 = p2name = "Maebara_keiichi" || p4name = "Maebara_keiichi"
trigger14 = p2name = "furude_rika" || p4name = "furude_rika"
trigger15 = p2name = "kotonoha katsura" || p4name = "kotonoha katsura" || p2name = "katsura" || p4name = "katsura"
trigger16 = p2name = "Saionzi Sekai"  || p4name = "Saionzi Sekai"
trigger17 = p2name = "Setsuna of SD" || p4name = "Setsuna of SD"
trigger18 = p2name = "Kino Makoto"  || p4name = "Kino Makoto"
trigger19 = p2name = "HATSUNE MIKU" || p4name = "HATSUNE MIKU"
trigger20 = p2name = "Takano_Miyo" || p4name = "Takano_Miyo"
trigger21 = p2name = "tsuruya-san" || p4name = "tsuruya-san"
trigger22 = p2name = "Hojo Satoko" || p4name = "Hojo Satoko"
trigger23 = p2name = "Sonozaki_Mion" || p4name = "Sonozaki_Mion"
trigger24 = p2name = "Sonozaki_Shion" || p4name = "Sonozaki_Shion"
var(40) = 3

[State -2, MatchovervsKFM]
type = VarSet
trigger1 = p2name = "Kung Fu Man" || p4name = "Kung Fu Man"
trigger2 = p2name = "Super Kung Fu Man" || p4name = "Super Kung Fu Man"
trigger3 = p2name = "Hokuto KFM" || p4name = "Hokuto KFM"
trigger4 = p2name = "KFM Plus" || p4name = "KFM Plus"
trigger5 = p2name = "Kung Fu Man in add004" || p4name = "Kung Fu Man in add004"
trigger6 = p2name = "Kung Fu Man AI" || p4name = "Kung Fu Man AI"
trigger7 = p2name = "SF3 Kfm" || p4name = "SF3 Kfm"
trigger8 = p2name = "Combo Kung Fu Man" || p4name = "Combo Kung Fu Man"
trigger9 = p2name = "Kung Fu Man SSJ" || p4name = "Kung Fu Man SSJ"
trigger10 = p2name = "Joe Mayama" || p4name = "Joe Mayama"
var(46) = 1

[State -2, MatchovervsEFZ-AIR]
type = VarSet
trigger1 = p2name = "Ayu Tukimiya" || p4name = "Ayu Tukimiya"
trigger2 = p2name = "Mizuka Nagamori" || p4name = "Mizuka Nagamori"
trigger3 = p2name = "Rumi Nanase" || p4name = "Rumi Nanase"
trigger4 = p2name = "Ikumi Amasawa" || p4name = "Ikumi Amasawa"
trigger5 = p2name = "Shiiko Yuzuki" || p4name = "Shiiko Yuzuki"
trigger6 = p2name = "Akane Satomura" || p4name = "Akane Satomura"
trigger7 = p2name = "Mai Kawasumi" || p4name = "Mai Kawasumi" || p2name = "Mai_K" || p4name = "Mai_K"
trigger8 = p2name = "Makoto Sawatari" || p4name = "Makoto Sawatari"
trigger9 = p2name = "Kaori Misaka" || p4name = "Kaori Misaka"
trigger10 = p2name = "Shiori Misaka" || p4name = "Shiori Misaka" || p2name = "Shiori" || p4name = "Shiori"
trigger11 = p2name = "Misaki Kawana" || p4name = "Misaki Kawana"
trigger12 = p2name = "Nayuki Minase" || p4name = "Nayuki Minase"
trigger13 = p2name = "Mio Kouzuki" || p4name = "Mio Kouzuki" || p2name = "Mio" || p4name = "Mio"
trigger14 = p2name = "Mayu Shiina" || p4name = "Mayu Shiina" || p2name = "Mayu" || p4name = "Mayu"
trigger15 = p2name = "Nayuki Minase" || p4name = "Nayuki Minase"
trigger16 = p2name = "Sayuri Kurata" || p4name = "Sayuri Kurata"
trigger17 = p2name = "Mishio Amano" || p4name = "Mishio Amano" || p2name = "Hyperlion_DeaBN" || p4name = "Hyperlion_DeaBN"
trigger18 = p2name = "UNKNOWN" || p4name = "UNKNOWN" || p2name = "Eien no Mizuka" || p4name = "Eien no Mizuka"
var(46) = 2

[State -2, MatchovervsHUH]
type = VarSet
trigger1 = p2name = "Mr.Bean" || p4name = "Mr.Bean"
trigger2 = enemy,authorname = "Omega Series"
trigger3 = p2name = "naruto-kun" || p4name = "naruto-kun"
trigger4 = p2name = "sasuke-kun" || p4name = "sasuke-kun"
trigger5 = p2name = "OmegaTH" || p4name = "OmegaTH"
trigger6 = p2name = "Adolf Hitler" || p4name = "Adolf Hitler"
trigger7 = p2name = "Omega Tiger Woods" || p4name = "Omega Tiger Woods"
trigger8 = p2name = "Developer Fags You Imbecile" || p4name = "Developer Fags You Imbecile"
var(46) = 3

[State -2, MatchovervsST]
type = VarSet
trigger1 = p2name = "Shiki_Tohno" || p4name = "Shiki_Tohno" 
trigger2 = p2name = "Shiki_Nanaya" || p4name = "Shiki_Nanaya"
trigger3 = p2name = "Shiki Tohno" || p4name = "Shiki Tohno"
trigger4 = p2name = "Shiki Asshole" || p4name = "Shiki Asshole"
trigger5 = p2name = "The Dirtiest SOB" || p4name = "The Dirtiest SOB"
trigger6 = p2name = "Nanaya_T" || p4name = "Nanaya_T"
trigger7 = p2name = "Nanaya_Shiki" || p4name = "Nanaya_Shiki"
trigger8 = p2name = "Shiki Kageya" || p4name = "Shiki Kageya"
trigger9 = p2name = "Nanaya-Satsujinki" || p4name = "Nanaya-Satsujinki"
trigger10 = p2name = "Tohno_Shiki" || p4name = "Tohno_Shiki"
var(46) = 4

[State 180, 1]
type = VarSet
trigger1 = p2name = "Kohaku" || p4name = "Kohaku"
trigger2 = p2name = "Hisui&Kohaku" || p4name = "Hisui&Kohaku"
trigger3 = p2name = "Hisui" || p4name = "Hisui"
trigger4 = p2name = "Arcueid Brunestud" || p4name = "Arcueid Brunestud" || p2name = "Arcueid_Brunestud" || p4name = "Arcueid_Brunestud"
trigger5 = p2name = "Akiha_Tohno" || p4name = "Akiha_Tohno" || p2name = "seifuku_akiha" || p4name = "seifuku_akiha"
trigger6 = p2name = "Satsuki_Yumiduka" || p4name = "Satsuki_Yumiduka" || p2name = "Yumiduka_Satsuki" || p4name = "Yumiduka_Satsuki"
trigger7 = p2name = "Miyako Arima" || p4name = "Miyako Arima" || p2name = "Arima_Miyako" || p4name = "Arima_Miyako"
trigger8 = p2name = "CIEL" || p2name = "Ciel" || p4name = "CIEL" || p4name = "Ciel" || p2name = "CIEL(ELEICIA)" || p4name = "CIEL(ELEICIA)"
trigger9 = p2name = "Nero Chaos" || p4name = "Nero Chaos" || p2name = "Nrvnqsr_Chaos" || p4name = "Nrvnqsr_Chaos" || p2name = "necoarc_abyss" || p4name = "necoarc_abyss"
trigger10 = p2name = "Len" || p4name = "Len"
trigger11 = p2name = "Akaitsuki" || p4name = "Akaitsuki"
trigger12 = p2name = "White_Len" || p4name = "White_Len" || p2name = "White_Len(CPU)" || p4name = "White_Len(CPU)"
trigger13 = p2name = "Warcueid" || p4name = "Warcueid"
trigger14 = p2name = "Sion Eltnam Atlasia" || p4name = "Sion Eltnam Atlasia" || p2name = "Sion TATARI" || p4name = "Sion TATARI" || p2name = "Sion_Eltnam_Atlasia" || p4name = "Sion_Eltnam_Atlasia"
trigger15 = p2name = "Mech-HISUI" || p4name = "Mech-HISUI" 
trigger16 = p2name = "Red Arcueid" || p4name = "Red Arcueid" || p2name = "Red_Arcueid" || p4name = "Red_Arcueid"
trigger17 = p2name = "Neco-Arc" || p4name = "Neco-Arc" || p2name = "Neco-Arc Z" || p4name = "Neco-Arc Z"
trigger18 = p2name = "7th Heaven Ciel" || p4name = "7th Heaven Ciel" || p2name = "Full Armor Ciel" || p4name = "Full Armor Ciel"
trigger19 = p2name = "mechhisui"|| p4name = "mechhisui"|| p2name = "mechhisuiex" || p4name = "mechhisuiex"
trigger20 = p2name = "Stupid Mech-HISUIX" || p4name = "Stupid Mech-HISUIX"
trigger21 = p2name = "Aoko Aozaki" || p4name = "Aoko Aozaki" || p2name = "Aozaki_Aoko(CPU)"  || p4name = "Aozaki_Aoko(CPU)"
trigger22 = p2name = "Arcueid The Stinkbag" || p4name = "Arcueid The Stinkbag"
trigger23 = p2name = "Kishima Kouma" || p4name = "Kishima Kouma"
trigger24 = p2name = "Akiha_Vermilion" || p4name = "Akiha_Vermilion"
trigger25 = p2name = "Dark Arcueid" || p4name = "Dark Arcueid" || p2name = "Dark Arcueid mk2" || p4name = "Dark Arcueid mk2"
trigger26 = p2name = "Kishima_kouma" || p4name = "Kishima_kouma"
trigger27 = p2name = "Neco-Arc Chaos" || p4name = "Neco-Arc Chaos" || p2name = "necochaosblackG666mk2" || p4name = "necochaosblackG666mk2"
trigger28 = p2name = "Warakia" || p4name = "Warakia" || p2name = "Warachia" || p4name = "Warachia"
trigger29 = p2name = "Michael_Roa_Valdamjong" || p4name = "Michael_Roa_Valdamjong"
trigger30 = p2name = "Riesbyfe_Stridberg" || p4name = "Riesbyfe_Stridberg"
trigger31 = p2name = "Shiki Ryougi" || p4name = "Shiki Ryougi" || p2name = "ryougishiki" || p4name = "ryougishiki"
var(46) = 5

[State 180, 1]
type = VarSet
trigger1 = p2name = "Geese Howard" || p4name = "Geese Howard" || p2name = "Geese" || p4name = "Geese"
trigger2 = p2name = "Master Geese" || p4name = "Master Geese"
trigger3 = p2name = "Master Cheese" || p4name = "Master Cheese"
trigger4 = p2name = "Zengar Zonvolt" || p4name = "Zengar Zonvolt" || p2name = "Sanger Zonvolt" || p4name = "Sanger Zonvolt"
trigger5 = p2name = "Kusuha Mizuha" || p4name = "Kusuha Mizuha"
trigger6 = p2name = "Brooklyn Rockfield" || p4name = "Brooklyn Rockfield"
trigger7 = p2name = "Elzam V Branstein" || p4name = "Elzam V Branstein" || p2name = "Ratzel Fanchmenger" || p4name = "Ratzel Fanchmenger"
trigger8 = p2name = "Mai Tokiha" || p4name = "Mai Tokiha" || p2name = "Kagotsuchi" || p4name = "Kagotsuchi"
trigger9 = p2name = "Natsuki Kuga" || p4name = "Natsuki Kuga" || p2name = "Duran" || p4name = "Duran"
trigger10 = p2name = "Mikoto Minagi" || p4name = "Mikoto Minagi" || p2name = "Miroku" || p4name = "Miroku"
trigger11 = p2name = "Bian Zoldark" || p4name = "Bian Zoldark"
trigger12 = p2name = "Thomas Galewind" || p4name = "Thomas Galewind"
trigger13 = p2name = "Himeko Kurusugawa" || p4name = "Himeko Kurusugawa" || p2name = "Himiko" || p4name = "Himiko"
trigger14 = p2name = "Chikane Himemiya" || p4name = "Chikane Himemiya" || p2name = "Kaon" || p4name = "Kaon"
trigger15 = p2name = "Maya Kagura" || p4name = "Maya Kagura"
trigger16 = p2name = "FPJ" || p4name = "FPJ" || p2name = "Fernando Poe Jr" || p4name = "Fernando Poe Jr"
trigger17 = p2name = "Erap" || p4name = "Erap" || p2name = "Joseph Ejercito Estrada" || p4name = "Joseph Ejercito Estrada"
trigger18 = p2name = "Kuon Minazuki" || p4name = "Kuon Minazuki" || p2name = "Altema" || p4name = "Altema"
trigger19 = p2name = "Nightmare Geese" || p4name = "Nightmare Geese"
trigger20 = p2name = "Etno" || p4name = "Etno"
trigger21 = p2name = "Bud" || p4name = "Bud"
trigger22 = p2name = "Gorgeous" || p4name = "Gorgeous"
trigger23 = p2name = "Candy" || p4name = "Candy"
trigger24 = p2name = "Stereo" || p4name = "Stereo"
trigger25 = p2name = "Hazuki Azuma" || p4name = "Hazuki Azuma" || p2name = "Hatsuki" || p4name = "Hatsuki"
trigger26 = p2name = "Hatsumi Azuma" || p4name = "Hatsumi Azuma" || p2name = "Eve" || p4name = "Eve" || p2name = "Jiru" || p4name = "Jiru"
trigger27 = p2name = "Baron G" || p4name = "Baron G" || p2name = "Fathom X" || p4name = "Fathom X" || p2name = "Nazgarld" || p4name = "Nazgarld"
var(46) = 6

[State 180, 1]
type = VarSet
trigger1 = p2name = "Etoile Chrono Tokiko" || p4name = "Etoile Chrono Tokiko"
trigger2 = p2name = "hory marlu" || p4name = "hory marlu"
trigger3 = p2name = "Haruhi Suzumiya" || p4name = "Haruhi Suzumiya"
trigger4 = p2name = "Nagato Yuki" || p4name = "Nagato Yuki" || p2name = "Yuki Nagato" || p4name = "Yuki Nagato"
trigger5 = p2name = "asakura ryouko" || p4name = "asakura ryouko" || p2name = "Ryoko Asakura" || p4name = "Ryoko Asakura"
trigger6 = p2name = "Mikuru Asahina" || p4name = "Mikuru Asahina"
trigger7 = p2name = "Hoshi Monako" || p4name = "Hoshi Monako"
trigger8 = p2name = "Princess Comet" || p4name = "Princess Comet"
trigger9 = p2name = "Monako Ogura" || p4name = "Monako Ogura"
trigger10 = p2name = "Onpu Segawa" || p4name = "Onpu Segawa"
trigger11 = p2name = "asahina mikuru" || p4name = "asahina mikuru"
trigger12 = p2name = "koizumi itsuki" || p4name = "koizumi itsuki"
trigger13 = p2name = "kyon" || p4name = "kyon"
trigger14 = p2name = "Konata Izumi" || p4name = "Konata Izumi" || p2name = "konata" || p4name = "konata"
trigger15 = p2name = "Tsukasa Hiiragi" || p4name = "Tsukasa Hiiragi" || p2name = "tsukasa" || p4name = "tsukasa"
trigger16 = p2name = "Kagami Hiiragi" || p4name = "Kagami Hiiragi" || p2name = "kagamin" || p4name = "kagamin"
trigger17 = p2name = "Shana" || p4name = "Shana"
trigger18 = p2name = "rena_lv5" || p4name = "rena_lv5"
trigger19 = p2name = "Maebara_keiichi" || p4name = "Maebara_keiichi"
trigger20 = p2name = "furude_rika" || p4name = "furude_rika"
trigger21 = p2name = "Takano_Miyo" || p4name = "Takano_Miyo"
trigger22 = p2name = "tsuruya-san" || p4name = "tsuruya-san"
trigger23 = p2name = "Hojo Satoko" || p4name = "Hojo Satoko"
trigger24 = p2name = "Sonozaki_Mion" || p4name = "Sonozaki_Mion"
trigger25 = p2name = "Sonozaki_Shion" || p4name = "Sonozaki_Shion"
trigger26 = p2name = "Chie_Rumiko" || p4name = "Chie_Rumiko"
var(46) = 7

[State 180, 1]
type = VarSet
trigger1 = p2name = "kotonoha katsura" || p4name = "kotonoha katsura" || p2name = "katsura" || p4name = "katsura"
trigger2 = p2name = "Saionzi Sekai"  || p4name = "Saionzi Sekai"
trigger3 = p2name = "Setsuna of SD" || p4name = "Setsuna of SD"
trigger4 = p2name = "Kino Makoto"  || p4name = "Kino Makoto"
trigger5 = p2name = "HATSUNE MIKU" || p4name = "HATSUNE MIKU"
var(46) = 8

[State 180, 1]
type = VarSet
trigger1 = enemy,authorname = "Kurogane"
trigger2 = p2name = "Yuyuko Saigyouji" || p4name = "Yuyuko Saigyouji"
trigger3 = p2name = "Yukari Yakumo" || p4name = "Yukari Yakumo"
trigger4 = p2name = "Reisen Udongein Inaba" || p4name = "Reisen Udongein Inaba" || p2name = "Moon Rabbit" || p4name = "Moon Rabbit" || p2name = "Reisen Dono" || p4name = "Reisen Dono"
trigger5 = p2name = "Yumeka Ohajiki" || p4name = "Yumeka Ohajiki"
trigger6 = p2name = "Uino" || p4name = "Uino"
trigger7 = p2name = "Reimu Hakurei" || p4name = "Reimu Hakurei" || p2name = "Reimu_Hakurei" || p4name = "Reimu_Hakurei"
trigger8 = p2name = "Heart_Aino" || p4name = "Heart_Aino"
trigger9 = p2name = "Saki_Tsuzura" || p4name = "Saki_Tsuzura"
trigger10 = p2name = "Youmu Konpaku" || p4name = "Youmu Konpaku" || p2name = "Youmu_Konpaku" || p4name = "Youmu_Konpaku"
trigger11 = p2name = "Remilia Scarlet" || p4name = "Remilia Scarlet" || p2name = "Remilia_Scarlet" || p4name = "Remilia_Scarlet"
trigger12 = p2name = "Sakuya Izayoi" || p4name = "Sakuya Izayoi" || p2name = "Sakuya Izayoi" || p4name = "Sakuya_Izayoi"
trigger13 = p2name = "Marisa Kirisame" || p4name = "Marisa Kirisame" || p2name = "Marisa_Kirisame" || p4name = "Marisa_Kirisame"
trigger14 = p2name = "Aya Syameimaru" || p4name = "Aya Syameimaru" || p2name = "Aya Shameimaru" || p4name = "Aya Shameimaru"
var(46) = 9

[State -2, MatchovervsAIR]
type = VarSet
trigger1 = p2name = "Misuzu_K" || p4name = "Misuzu_K" || p2name = "Misuzu_M" || p4name = "Misuzu_M"
trigger2 = p2name = "Misuzu Kamio" || p4name = "Misuzu Kamio" || p2name = "Seiryuu no Misuzu" || p4name = "Seiryuu no Misuzu"
trigger3 = p2name = "Kannabi no Mikoto" || p4name = "Kannabi no Mikoto" || p2name = "kanna" || p4name = "kanna"
trigger4 = p2name = "Kano Kirishima" || p4name = "Kano Kirishima" || p2name = "Suzaku no Kano" || p4name = "Suzaku no Kano"
trigger5 = p2name = "Minagi Tohno" || p4name = "Minagi Tohno" || p2name = "Genbu no Minagi" || p4name = "Genbu no Minagi"
trigger6 = p2name = "Michiru" || p4name = "Michiru" || p2name = "Byakko no Michiru" || p4name = "Byakko no Michiru"
trigger7 = p2name = "Misuzu_G" || p4name = "Misuzu_G"
var(46) = 10

[State -2, MatchovervsGurrenLaganorwhoever]
type = VarSet
trigger1 = p2name = "cvsyoko" || p4name = "cvsyoko"
trigger2 = p2name = "nia" || p4name = "nia"
var(46) = 11

[State 0, ]
type = VarSet
trigger1 = p2name = "Kohaku" || p4name = "Kohaku"
trigger2 = p2name = "Hisui&Kohaku" || p4name = "Hisui&Kohaku"
trigger3 = p2name = "Hisui" || p4name = "Hisui"
trigger4 = p2name = "Arcueid Brunestud" || p4name = "Arcueid Brunestud" || p2name = "Arcueid_Brunestud" || p4name = "Arcueid_Brunestud"
trigger5 = p2name = "Akiha_Tohno" || p4name = "Akiha_Tohno" || p2name = "seifuku_akiha" || p4name = "seifuku_akiha"
trigger6 = p2name = "Aoko Aozaki" || p4name = "Aoko Aozaki" || p2name = "Aozaki_Aoko(CPU)"  || p4name = "Aozaki_Aoko(CPU)"
trigger7 = p2name = "Miyako Arima" || p4name = "Miyako Arima" || p2name = "Arima_Miyako" || p4name = "Arima_Miyako"
trigger8 = p2name = "CIEL" || p2name = "Ciel" || p4name = "CIEL" || p4name = "Ciel" || p2name = "CIEL(ELEICIA)" || p4name = "CIEL(ELEICIA)"
trigger9 = p2name = "Nero Chaos" || p4name = "Nero Chaos" || p2name = "Nrvnqsr_Chaos" || p4name = "Nrvnqsr_Chaos" || p2name = "necoarc_abyss" || p4name = "necoarc_abyss"
trigger10 = p2name = "Len" || p4name = "Len"
trigger11 = p2name = "Akaitsuki" || p4name = "Akaitsuki"
trigger12 = p2name = "White_Len" || p4name = "White_Len" || p2name = "White_Len(CPU)" || p4name = "White_Len(CPU)"
trigger13 = p2name = "Warcueid" || p4name = "Warcueid"
trigger14 = p2name = "Sion Eltnam Atlasia" || p4name = "Sion Eltnam Atlasia"
trigger15 = p2name = "Mech-HISUI" || p4name = "Mech-HISUI" 
trigger16 = p2name = "Red Arcueid" || p4name = "Red Arcueid" || p2name = "Red_Arcueid" || p4name = "Red_Arcueid"
trigger17 = p2name = "Neco-Arc" || p4name = "Neco-Arc" || p2name = "Neco-Arc Z" || p4name = "Neco-Arc Z"
trigger18 = p2name = "7th Heaven Ciel" || p4name = "7th Heaven Ciel" || p2name = "Full Armor Ciel" || p4name = "Full Armor Ciel"
trigger19 = p2name = "mechhisui"|| p4name = "mechhisui"|| p2name = "mechhisuiex" || p4name = "mechhisuiex"
trigger20 = p2name = "Stupid Mech-HISUIX" || p4name = "Stupid Mech-HISUIX"
trigger21 = p2name = "Shiki_Tohno" || p4name = "Shiki_Tohno" || p2name = "Shiki Tohno" || p4name = "Shiki Tohno" || p2name = "Tohno_Shiki" || p4name = "Tohno_Shiki"
trigger22 = p2name = "Shiki_Nanaya" || p4name = "Shiki_Nanaya" || p2name = "Nanaya_T" || p4name = "Nanaya_T" || p2name = "Nanaya_Shiki" || p4name = "Nanaya_Shiki"
trigger23 = p2name = "Arcueid The Stinkbag" || p4name = "Arcueid The Stinkbag"
trigger24 = p2name = "Shiki Asshole" || p4name = "Shiki Asshole" || p2name = "The Dirtiest SOB" || p4name = "The Dirtiest SOB"
trigger25 = p2name = "Kishima Kouma" || p4name = "Kishima Kouma"
trigger26 = p2name = "Warakia" || p4name = "Warakia"
trigger27 = p2name = "Warachia" || p4name = "Warachia"
trigger28 = p2name = "Akiha_Vermilion" || p4name = "Akiha_Vermilion"
trigger29 = p2name = "Dark Arcueid" || p4name = "Dark Arcueid" || p2name = "Dark Arcueid mk2" || p4name = "Dark Arcueid mk2"
trigger30 = p2name = "Sion TATARI" || p4name = "Sion TATARI" || p2name = "Sion_TATARI" || p4name = "Sion_TATARI"
trigger31 = p2name = "Kishima_kouma" || p4name = "Kishima_kouma" || p2name = "Kishima Kouma" || p4name = "Kishima Kouma"
trigger32 = p2name = "Neco-Arc Chaos" || p4name = "Neco-Arc Chaos" || p2name = "necochaosblackG666mk2" || p4name = "necochaosblackG666mk2"
trigger33 = p2name = "Satsuki_Yumiduka" || p4name = "Satsuki_Yumiduka" || p2name = "Yumiduka_Satsuki" || p4name = "Yumiduka_Satsuki"
trigger34 = p2name = "Sion_Eltnam_Atlasia" || p4name = "Sion_Eltnam_Atlasia"
trigger35 = p2name = "Totally Pissed off Haruhi" || p4name = "Totally Pissed off Haruhi" || p2name = "Aku no Tamashi Haruhi" || p4name = "Aku no Tamashi Haruhi" || p2name = "God Haruhi" || p4name = "God Haruhi"
trigger36 = p2name = "Shana" || p4name = "Shana"
trigger37 = p2name = "rena_lv5" || p4name = "rena_lv5"
trigger38 = p2name = "Maebara_keiichi" || p4name = "Maebara_keiichi"
trigger39 = p2name = "furude_rika" || p4name = "furude_rika"
trigger40 = p2name = "Haruhi Suzumiya" || p4name = "Haruhi Suzumiya" || p2name = "Suzumiya Haruhi" || p4name = "Suzumiya Haruhi"
trigger41 = p2name = "Nagato Yuki" || p4name = "Nagato Yuki" || p2name = "Yuki Nagato" || p4name = "Yuki Nagato"
trigger42 = p2name = "asakura ryouko" || p4name = "asakura ryouko"
trigger43 = p2name = "Mikuru Asahina" || p4name = "Mikuru Asahina" || p2name = "asahina mikuru" || p4name = "asahina mikuru"
trigger44 = p2name = "koizumi itsuki" || p4name = "koizumi itsuki"
trigger45 = p2name = "kyon" || p4name = "kyon"
trigger46 = p2name = "kotonoha katsura" || p4name = "kotonoha katsura" || p2name = "katsura" || p4name = "katsura"
trigger47 = p2name = "Saionzi Sekai"  || p4name = "Saionzi Sekai"
trigger48 = p2name = "Setsuna of SD" || p4name = "Setsuna of SD"
trigger49 = p2name = "Kino Makoto"  || p4name = "Kino Makoto"
trigger50 = p2name = "Takano_Miyo" || p4name = "Takano_Miyo"
trigger51 = p2name = "Chie_Rumiko" || p4name = "Chie_Rumiko"
trigger52 = p2name = "tsuruya-san" || p4name = "tsuruya-san"
trigger53 = p2name = "Hojo Satoko" || p4name = "Hojo Satoko"
trigger54 = p2name = "Sonozaki_Mion" || p4name = "Sonozaki_Mion"
trigger55 = p2name = "Ryoko Asakura" || p4name = "Ryoko Asakura"
trigger56 = p2name = "Sonozaki_Shion" || p4name = "Sonozaki_Shion"
trigger57 = p2name = "ore_no_moto_yome" || p4name = "ore_no_moto_yome"
trigger58 = p2name = "Shiki Kageya" || p4name = "Shiki Kageya" || p2name = "Nanaya-Satsujinki" || p4name = "Nanaya-Satsujinki"
trigger59 = p2name = "Michael_Roa_Valdamjong" || p4name = "Michael_Roa_Valdamjong"
trigger60 = p2name = "Riesbyfe_Stridberg" || p4name = "Riesbyfe_Stridberg"
trigger61 = p2name = "Shiki Ryougi" || p4name = "Shiki Ryougi" || p2name = "ryougishiki" || p4name = "ryougishiki"
trigger62 = p2name = "beatrice" || p4name = "beatrice"
trigger63 = p2name = "hanyu" || p4name = "hanyu"
trigger64 = enemy,authorname = "Hostiles"
trigger65 = enemy,authorname = "Toma & Raien Makoto"
trigger66 = enemy,authorname = "Raien Makoto"
var(45) = 1

[State 0, ]
type = ChangeState
trigger1 = stateno = 0
trigger1 = roundstate = 1
trigger1 = p2stateno = [1940,1949]
trigger1 = p2bodydist x <= 40
value = 220
ctrl = 0

[State 0, ]
type = Helper
triggerall = numhelper(666) = 0
triggerall = loseko = 1
trigger1 = p2name = "Mai Tokiha" || p4name = "Mai Tokiha" || p2name = "Kagotsuchi" || p4name = "Kagotsuchi"
trigger2 = p2name = "Natsuki Kuga" || p4name = "Natsuki Kuga" || p2name = "Duran" || p4name = "Duran"
trigger3 = p2name = "Mikoto Minagi" || p4name = "Mikoto Minagi" || p2name = "Miroku" || p4name = "Miroku"
trigger4 = p2name = "Ryo Sakazaki" || p4name = "Ryo Sakazaki"
trigger5 = p2name = "Mary_Deiyon" || p4name = "Mary_Deiyon"
trigger6 = p2name = "Robert Garcia" || p4name = "Robert Garcia"
trigger7 = p2name = "Ayu Tukimiya" || p4name = "Ayu Tukimiya"
trigger8 = p2name = "Eien no Mizuka" || p4name = "Eien no Mizuka"
trigger9 = p2name = "Rumi Nanase" || p4name = "Rumi Nanase"
trigger10 = p2name = "Ikumi Amasawa" || p4name = "Ikumi Amasawa"
trigger11 = p2name = "Shiiko Yuzuki" || p4name = "Shiiko Yuzuki"
trigger12 = p2name = "Akane Satomura" || p4name = "Akane Satomura"
trigger13 = p2name = "Kannabi no Mikoto" || p4name = "Kannabi no Mikoto" || p2name = "Kanna" || p4name = "Kanna"
trigger14 = p2name = "Kano Kirishima" || p4name = "Kano Kirishima"
trigger15 = p2name = "Mai Kawasumi" || p4name = "Mai Kawasumi" || p2name = "Mai_K" || p4name = "Mai_K"
trigger16 = p2name = "Makoto Sawatari" || p4name = "Makoto Sawatari"
trigger17 = p2name = "Misaki Kawana" || p4name = "Misaki Kawana"
trigger18 = p2name = "Nayuki Minase" || p4name = "Nayuki Minase"
trigger19 = p2name = "Sayuri Kurata" || p4name = "Sayuri Kurata"
trigger20 = p2name = "Geese Howard" || p4name = "Geese Howard" || p2name = "Geese" || p4name = "Geese"
trigger21 = p2name = "SuperMario" || p4name = "SuperMario"
trigger22 = p2name = "Ryu" || p4name = "Ryu"
trigger23 = p2name = "Rock Howard" || p4name = "Rock Howard"
trigger24 = p2name = "Terry Bogard" || p4name = "Terry Bogard"
trigger25 = p2name = "Xltima" || p4name = "Xltima"
trigger26 = p2name = "Kung Fu Man" || p4name = "Kung Fu Man"
trigger27 = p2name = "Kung Fu Dude" || p4name = "Kung Fu Dude"
trigger28 = p2name = "Max Payne" || p4name = "Max Payne"
trigger29 = p2name = "SuperLuigi" || p4name = "SuperLuigi"
trigger30 = p2name = "Akira Honjoji" || p4name = "Akira Honjoji"
trigger31 = p2name = "Kung Fu girl" || p4name = "Kung Fu girl"
trigger32 = p2name = "Kung Fu Bender" || p4name = "Kung Fu Bender"
trigger33 = p2name = "Zengar Zonvolt" || p4name = "Zengar Zonvolt"
trigger34 = p2name = "Dyan Weinert Kirichenko da Silva" || p4name = "Dyan Weinert Kirichenko da Silva"
trigger35 = p2name = "TigreNegro" || p4name = "TigreNegro"
trigger36 = p2name = "Another Unknown" || p4name = "Another Unknown"
trigger37 = p2name = "Kaori Misaka" || p4name = "Kaori Misaka"
trigger38 = p2name = "Ken" || p4name = "Ken"
trigger39 = p2name = "Misuzu_K" || p4name = "Misuzu_K" || p2name = "Misuzu Kamio" || p4name = "Misuzu Kamio" || p2name = "Misuzu" || p4name = "Misuzu" || p2name = "Misuzu_M" || p4name = "Misuzu_M"
trigger40 = p2name = "Elzam V Branstein" || p4name = "Elzam V Branstein" || p2name = "TROMBE" || p4name = "TROMBE" || p2name = "Aussensider" || p4name = "Aussensider"
trigger41 = p2name = "Himeko Kurusugawa" || p4name = "Himeko Kurusugawa" || p2name = "Himiko" || p4name = "Himiko"
trigger42 = p2name = "Chikane Himemiya" || p4name = "Chikane Himemiya" || p2name = "Kaon" || p4name = "Kaon"
trigger43 = p2name = "Shizuru Fujino" || p4name = "Shizuru Fujino" || p2name = "Kiyohime" || p4name = "Kiyohime"
trigger44 = p2name = "Mishio Amano" || p4name = "Mishio Amano" || p2name = "Hyperlion_DeaBN" || p4name = "Hyperlion_DeaBN"
trigger45 = p2name = "Dan Hawkins" || p4name = "Dan Hawkins"
trigger46 = p2name = "Shiki_Tohno" || p4name = "Shiki_Tohno" || p2name = "Shiki Tohno" || p4name = "Shiki Tohno" || p2name = "Tohno_Shiki" || p4name = "Tohno_Shiki"
trigger47 = p2name = "Shiki_Nanaya" || p4name = "Shiki_Nanaya" || p2name = "Shiki Nanaya" || p4name = "Shiki Nanaya" || p2name = "Nanaya_Shiki" || p4name = "Nanaya_Shiki"
trigger48 = p2name = "Kohaku" || p4name = "Kohaku"
trigger49 = p2name = "Hisui&Kohaku" || p4name = "Hisui&Kohaku"
trigger50 = p2name = "Hisui" || p4name = "Hisui"
trigger51 = p2name = "Arcueid Brunestud" || p4name = "Arcueid Brunestud" || p2name = "Arcueid_Brunestud" || p4name = "Arcueid_Brunestud"
trigger52 = p2name = "Akiha_Tohno" || p4name = "Akiha_Tohno" || p2name = "seifuku_akiha" || p4name = "seifuku_akiha"
trigger53 = p2name = "Satsuki_Yumiduka" || p4name = "Satsuki_Yumiduka" || p2name = "Yumiduka_Satsuki" || p4name = "Yumiduka_Satsuki"
trigger54 = p2name = "Miyako Arima" || p4name = "Miyako Arima" || p2name = "Arima_Miyako" || p4name = "Arima_Miyako"
trigger55 = p2name = "CIEL" || p2name = "Ciel" || p4name = "CIEL" || p4name = "Ciel" || p2name = "CIEL(ELEICIA)" || p4name = "CIEL(ELEICIA)"
trigger56 = p2name = "Nero Chaos" || p4name = "Nero Chaos" || p2name = "Nrvnqsr_Chaos" || p4name = "Nrvnqsr_Chaos" || p2name = "necoarc_abyss" || p4name = "necoarc_abyss"
trigger57 = p2name = "Len" || p4name = "Len"
trigger58 = p2name = "Akaitsuki" || p4name = "Akaitsuki"
trigger59 = p2name = "White_Len" || p4name = "White_Len" || p2name = "White_Len(CPU)" || p4name = "White_Len(CPU)"
trigger60 = p2name = "Warcueid" || p4name = "Warcueid"
trigger61 = p2name = "Sion Eltnam Atlasia" || p4name = "Sion Eltnam Atlasia" || p2name = "Sion TATARI" || p4name = "Sion TATARI" || p2name = "Sion_Eltnam_Atlasia" || p4name = "Sion_Eltnam_Atlasia"
trigger62 = p2name = "Mech-HISUI" || p4name = "Mech-HISUI" || p2name = "mechhisuiex" || p4name = "mechhisuiex"
trigger63 = p2name = "Red Arcueid" || p4name = "Red Arcueid" || p2name = "Red_Arcueid" || p4name = "Red_Arcueid"
trigger64 = p2name = "Neco-Arc" || p4name = "Neco-Arc" || p2name = "Neco-Arc Z" || p4name = "Neco-Arc Z"
trigger65 = p2name = "7th Heaven Ciel" || p4name = "7th Heaven Ciel" || p2name = "Full Armor Ciel" || p4name = "Full Armor Ciel"
trigger66 = p2name = "mechhisui" || p4name = "mechhisui"
trigger67 = p2name = "Stupid Mech-HISUIX" || p4name = "Stupid Mech-HISUIX"
trigger68 = p2name = "Master Cheese" || p4name = "Master Cheese" || p2name = "Master Geese" || p4name = "Master Geese"
trigger69 = p2name = "Arcueid The Stinkbag" || p4name = "Arcueid The Stinkbag"
trigger70 = p2name = "Shiki Asshole" || p4name = "Shiki Asshole" || p2name = "Nanaya_T" || p4name = "Nanaya_T"
trigger71 = p2name = "The Dirtiest SOB" || p4name = "The Dirtiest SOB"
trigger72 = p2name = "Big Albert T-Lechy" || p4name = "Big Albert T-Lechy"
trigger73 = p2name = "Homer J Simpson" || p4name = "Homer J Simpson"
trigger74 = p2name = "Peter Griffin" || p4name = "Peter Griffin"
trigger75 = p2name = "Popeye" || p4name = "Popeye"
trigger76 = p2name = "Shin Gouki" || p4name = "Shin Gouki"
trigger77 = p2name = "Mayu Shiina" || p4name = "Mayu Shiina"
trigger78 = p2name = "Kishima Kouma" || p4name = "Kishima Kouma"
trigger79 = p2name = "Akiha_Vermilion" || p4name = "Akiha_Vermilion"
trigger80 = p2name = "Dark Arcueid" || p4name = "Dark Arcueid" || p2name = "Dark Arcueid mk2" || p4name = "Dark Arcueid mk2"
trigger81 = p2name = "Kishima_kouma" || p4name = "Kishima_kouma"
trigger82 = p2name = "Neco-Arc Chaos" || p4name = "Neco-Arc Chaos" || p2name = "necochaosblackG666mk2" || p4name = "necochaosblackG666mk2"
trigger83 = p2name = "Etoile Chrono Tokiko" || p4name = "Etoile Chrono Tokiko"
trigger84 = p2name = "hory marlu" || p4name = "hory marlu"
trigger85 = p2name = "Haruhi Suzumiya" || p4name = "Haruhi Suzumiya"
trigger86 = p2name = "Nagato Yuki" || p4name = "Nagato Yuki" || p2name = "Yuki Nagato" || p4name = "Yuki Nagato"
trigger87 = p2name = "asakura ryouko" || p4name = "asakura ryouko" || p2name = "Ryoko Asakura" || p4name = "Ryoko Asakura"
trigger88 = p2name = "Mikuru Asahina" || p4name = "Mikuru Asahina"
trigger89 = p2name = "Hoshi Monako" || p4name = "Hoshi Monako"
trigger90 = p2name = "Princess Comet" || p4name = "Princess Comet"
trigger91 = p2name = "Monako Ogura" || p4name = "Monako Ogura"
trigger92 = p2name = "Onpu Segawa" || p4name = "Onpu Segawa"
trigger93 = p2name = "asahina mikuru" || p4name = "asahina mikuru"
trigger94 = p2name = "koizumi itsuki" || p4name = "koizumi itsuki"
trigger95 = p2name = "kyon" || p4name = "kyon"
trigger96 = p2name = "Nightmare Geese" || p4name = "Nightmare Geese"
trigger97 = p2name = "Kyoukon Haruhi" || p2name = "Kyoukon Haruhi"
trigger98 = p2name = "God Haruhi" || p4name = "God Haruhi"
trigger99 = p2name = "Pinakamaduming tao sa balat ng lupa" || p4name = "Pinakamaduming tao sa balat ng lupa"
trigger100 = p2name = "Aku no Tamashi Haruhi" || p4name = "Aku no Tamashi Haruhi"
trigger101 = p2name = "Totally Pissed off Haruhi" || p4name = "Totally Pissed off Haruhi"
trigger102 = p2name = "Aoko Aozaki" || p4name = "Aoko Aozaki" || p2name = "Aozaki_Aoko(CPU)"  || p4name = "Aozaki_Aoko(CPU)"
trigger103 = p2name = "Warakia" || p4name = "Warakia" || p2name = "Warachia" || p4name = "Warachia"
trigger104 = p2name = "HATSUNE MIKU" || p4name = "HATSUNE MIKU"
trigger105 = p2name = "tsuruya-san" || p4name = "tsuruya-san"
trigger106 = p2name = "Kane" || p4name = "Kane"
trigger107 = p2name = "dragon" || p4name = "dragon"
trigger108 = p2name = "Shiki Kageya" || p4name = "Shiki Kageya" || p2name = "Nanaya-Satsujinki" || p4name = "Nanaya-Satsujinki"
trigger109 = p2name = "Misuzu_G" || p4name = "Misuzu_G" || p2name = "Seiryuu no Misuzu" || p4name = "Seiryuu no Misuzu"
trigger110 = p2name = "Moon Rabbit" || p4name = "Moon Rabbit" || p2name = "Reisen Dono" || p4name = "Reisen Dono"
trigger111 = p2name = "Reisen Udongein Inaba" || p4name = "Reisen Udongein Inaba"
trigger112 = p2name = "Yuyuko Saigyouji" || p4name = "Yuyuko Saigyouji"
trigger113 = p2name = "Bloosom Ghost" || p4name = "Bloosom Ghost"
trigger114 = p2name = "Yukari Yakumo" || p4name = "Yukari Yakumo"
trigger115 = p2name = "The Fat Bug" || p4name = "The Fat Bug"
trigger116 = p2name = "Aner" || p4name = "Aner"
trigger117 = p2name = "Sonsaku Hakufu" || p4name = "Sonsaku Hakufu"
trigger118 = p2name = "Reimu_Hakurei" || p4name = "Reimu_Hakurei" || p2name = "Reimu Hakurei" || p4name = "Reimu Hakurei"
trigger119 = p2name = "Youmu Konpaku" || p4name = "Youmu Konpaku" || p2name = "Youmu_Konpaku" || p4name = "Youmu_Konpaku"
trigger120 = p2name = "Remilia Scarlet" || p4name = "Remilia Scarlet" || p2name = "Remilia_Scarlet" || p4name = "Remilia_Scarlet"
helpertype = normal
name = "NOOOOOOOOOOO"
ID = 666
pos = 0,0
postype = p1
facing = 1
stateno = 69
supermovetime = 65535
pausemovetime = 65535
ignorehitpause = 1

[State 0, ]
type = Helper
trigger1 = roundstate != 4
trigger1 = var(10) = 0
trigger1 = var(31) = 0
trigger1 = winko = 1
trigger1 = numhelper(666) = 0
helpertype = normal
name = "LOSER!"
ID = 666
pos = 0,0
postype = p1
facing = 1
stateno = 666
supermovetime = 65535
pausemovetime = 65535
ignorehitpause = 1

[State 0, ]
type = PlaySnd
trigger1 = anim = 5300
trigger1 = Animelem = 2
value = S2,12
channel = 0

; Within StateDef -2, none of your own AI-related code should be placed
; above these next two controllers.

; This controller is optional.  It lets you slightly simplify the triggers
; in your AI code: var(0) and !var(0) instead of var(59)>0 and var(59)<1.
; Another benefit is that it makes it easier for users to disable your AI,
; if they so choose.
[State -2, DTC]
type = DisplayToClipboard
trigger1 = 1
text = "var(59) = %d, var(57) = %d, var(58) = %d"
params = var(59), var(57), var(58)
IgnoreHitPause = 1
;;;======================================================
[State -2, DamageDampner]
type = VarSet
trigger1 = enemynear,gethitvar(hitcount) < 4
trigger2 = stateno = [4700,4899]
trigger3 = p2movetype != H
trigger4 = enemynear,movetype != H
fv = 18
value = 0

[State -2, DamageDampner]
type = VarSet
triggerall = enemynear,gethitvar(hitcount) = [5,8]
triggerall = stateno != [4700,4899]
trigger1 = p2movetype = H
trigger2 = enemynear,movetype = H
fv = 18
value = 0.1

[State -2, DamageDampner]
type = VarSet
triggerall = enemynear,gethitvar(hitcount) = [9,12]
triggerall = stateno != [4700,4899]
trigger1 = p2movetype = H
trigger2 = enemynear,movetype = H
fv = 18
value = 0.2

[State -2, DamageDampner]
type = VarSet
triggerall = enemynear,gethitvar(hitcount) = [13,16]
triggerall = stateno != [4700,4899]
trigger1 = p2movetype = H
trigger2 = enemynear,movetype = H
fv = 18
value = 0.3

[State -2, DamageDampner]
type = VarSet
triggerall = enemynear,gethitvar(hitcount) = [17,20]
triggerall = stateno != [4700,4899]
trigger1 = p2movetype = H
trigger2 = enemynear,movetype = H
fv = 18
value = 0.4

[State -2, DamageDampner]
type = VarSet
triggerall = enemynear,gethitvar(hitcount) = [21,25]
triggerall = stateno != [4700,4899]
trigger1 = p2movetype = H
trigger2 = enemynear,movetype = H
fv = 18
value = 0.5

[State -2, DamageDampner]
type = VarSet
triggerall = enemynear,gethitvar(hitcount) = [26,30]
triggerall = stateno != [4700,4899]
trigger1 = p2movetype = H
trigger2 = enemynear,movetype = H
fv = 18
value = 0.5

[State -2, DamageDampner]
type = VarSet
triggerall = enemynear,gethitvar(hitcount) >= 31
triggerall = stateno != [4700,4899]
trigger1 = p2movetype = H
trigger2 = enemynear,movetype = H
fv = 18
value = 0.6

[State -2, Max Power]
type = AttackMulSet
trigger1 = power < 4500
trigger1 = PalNo < 12
trigger1 = var(30) = 0
value = ifelse(life>=250,1-fvar(18),1.05-fvar(18))
ignorehitpause = 1
persistent = 1

[State -2, Normal]
type = AttackMulSet
trigger1 = power = [4500,8999]
trigger1 = PalNo < 12
trigger1 = var(30) = 0
value = ifelse(life>=250,1.05-fvar(18),1.1-fvar(18))
ignorehitpause = 1
persistent = 1

[State -2, Normal]
type = AttackMulSet
trigger1 = power >= 9000
trigger1 = PalNo < 12
trigger1 = var(30) = 0
value = ifelse(life>=250,1.1-fvar(18),1.15-fvar(18))
ignorehitpause = 1
persistent = 1

[State -2, MaxPower_LowLife]
type = DefenceMulSet
trigger1 = power < 4500
trigger1 = PalNo < 12
trigger1 = var(30) = 0
value = ifelse(life>=250,1,0.95)
ignorehitpause = 1
persistent = 1

[State -2, LowLife]
type = DefenceMulSet
trigger1 = power = [4500,8999]
trigger1 = PalNo < 12
trigger1 = var(30) = 0
value = ifelse(life>=250,0.95,0.9)
ignorehitpause = 1
persistent = 1

[State -2, LowLife]
type = DefenceMulSet
trigger1 = power >= 9000
trigger1 = PalNo < 12
trigger1 = var(30) = 0
value = ifelse(life>=250,0.9,0.8)
ignorehitpause = 1
persistent = 1
;;;======================================================
[State -2, Simplifier]
type = PowerSet
trigger1 = PalNo = 12
value = 10000

[State -2, Simplifier]
type = PowerAdd
triggerall = timemod = 5, 0 
triggerall = PalNo < 12
trigger1 = var(38) = 1
trigger2 = var(30) = 1
trigger2 = roundstate = [0,2]
value = Ceil(0.02*const(data.power))

[State -2, Simplifier]
type = PowerSet
triggerall = var(30) = 1
trigger1 = win
trigger2 = lose
value = 0

[State 0, ]
type = PowerSet
trigger1 = var(31) = 1
value = 0
ignorehitpause = 1

[State -2]
type = LifeAdd
trigger1 = gametime%2 && movetype!= H
trigger1 = var(30) = 1
trigger1 = PalNo < 12
value = ifelse(roundstate=2,-2,0)
kill = 0
absolute = 1
ignorehitpause = 1

[State -2, DivineModeATT]
type = AttackMulSet
triggerall = PalNo < 12
trigger1 = var(30) = 1
trigger2 = var(38) = 1
value = 1.4
ignorehitpause = 1
persistent = 1

[State -2, DivineModeDEF]
type = DefenceMulSet
trigger1 = PalNo < 12
trigger1 = var(30) = 1
value = 1.5
ignorehitpause = 1
persistent = 1

[State -2, DivineModeDEF]
type = DefenceMulSet
trigger1 = PalNo < 12
trigger1 = var(38) = 1
value = 0.5
ignorehitpause = 1
persistent = 1
;;;=====================

;---------------------------------------------------------------------------
;; Just Defended Ability
;---------------------------------------------------------------------------
[State -2]
type = Varset
triggerall = Var(13) = 0
triggerall = command != "BB"
triggerall = movetype != A
triggerall = ctrl = 1
trigger1 = command = "back"
trigger2 = command = "C_R_Guard"
v = 13
value = 10
ignorehitpause = 1
persistent = 0

[State -2]
type = Varadd
triggerall = Var(13) != 0
triggerall = Var(13) >= 0
trigger1 = timemod = 1,0
v = 13
value = -1
ignorehitpause = 1
persistent = 0

[State -2]
type = Varset
triggerall = Var(13) != 0
trigger1 = stateno = 0
trigger2 = stateno = 160 || stateno = 161 || stateno = 162
trigger2 = AnimTime = 0
trigger3 = Movetype = A
v = 13
value = 0
ignorehitpause = 1
persistent = 0

[State -2]
type = HitOverride
triggerall = Statetype != A
triggerall = Movetype != A && Movetype != H
triggerall = Ctrl = 1
trigger1 = Var(13) != 0
trigger1 = StateType = S
trigger1 = StateType != C
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 160
time = 4

[State -2]
type = HitOverride
triggerall = Statetype != A
triggerall = Movetype != A && Movetype != H
triggerall = Ctrl = 1
trigger1 = Var(13) != 0
trigger1 = StateType != S
trigger1 = StateType = C
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 161
time = 4

[State -2]
type = HitOverride
triggerall = Statetype = A
triggerall = Movetype != A && Movetype != H
triggerall = Ctrl = 1
trigger1 = Var(13) != 0
trigger1 = Pos Y <= -35
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 162
time = 4
;;;======================================================
;;;==                HYPER MODE                        ==
;;;======================================================

[State 3000, Exception]
type = VarSet
trigger1 = 1
var(27) = 0

[State 3000, Exception]
type = VarSet
trigger1 = p2name = "Kohaku" || p4name = "Kohaku"
trigger2 = p2name = "Hisui&Kohaku" || p4name = "Hisui&Kohaku"
trigger3 = p2name = "Hisui" || p4name = "Hisui"
trigger4 = p2name = "Arcueid Brunestud" || p4name = "Arcueid Brunestud" || p2name = "Arcueid_Brunestud" || p4name = "Arcueid_Brunestud"
trigger5 = p2name = "Akiha_Tohno" || p4name = "Akiha_Tohno" || p2name = "seifuku_akiha" || p4name = "seifuku_akiha"
trigger6 = p2name = "Aoko Aozaki" || p4name = "Aoko Aozaki" || p2name = "Aozaki_Aoko(CPU)"  || p4name = "Aozaki_Aoko(CPU)"
trigger7 = p2name = "Miyako Arima" || p4name = "Miyako Arima" || p2name = "Arima_Miyako" || p4name = "Arima_Miyako"
trigger8 = p2name = "CIEL" || p2name = "Ciel" || p4name = "CIEL" || p4name = "Ciel" || p2name = "CIEL(ELEICIA)" || p4name = "CIEL(ELEICIA)"
trigger9 = p2name = "Nero Chaos" || p4name = "Nero Chaos" || p2name = "Nrvnqsr_Chaos" || p4name = "Nrvnqsr_Chaos" || p2name = "necoarc_abyss" || p4name = "necoarc_abyss"
trigger10 = p2name = "Len" || p4name = "Len"
trigger11 = p2name = "Akaitsuki" || p4name = "Akaitsuki"
trigger12 = p2name = "White_Len" || p4name = "White_Len" || p2name = "White_Len(CPU)" || p4name = "White_Len(CPU)"
trigger13 = p2name = "Warcueid" || p4name = "Warcueid"
trigger14 = p2name = "Sion Eltnam Atlasia" || p4name = "Sion Eltnam Atlasia"
trigger15 = p2name = "Mech-HISUI" || p4name = "Mech-HISUI" 
trigger16 = p2name = "Red Arcueid" || p4name = "Red Arcueid" || p2name = "Red_Arcueid" || p4name = "Red_Arcueid"
trigger17 = p2name = "Neco-Arc" || p4name = "Neco-Arc" || p2name = "Neco-Arc Z" || p4name = "Neco-Arc Z"
trigger18 = p2name = "7th Heaven Ciel" || p4name = "7th Heaven Ciel" || p2name = "Full Armor Ciel" || p4name = "Full Armor Ciel"
trigger19 = p2name = "mechhisui"|| p4name = "mechhisui"|| p2name = "mechhisuiex" || p4name = "mechhisuiex"
trigger20 = p2name = "Stupid Mech-HISUIX" || p4name = "Stupid Mech-HISUIX"
trigger21 = p2name = "Shiki_Tohno" || p4name = "Shiki_Tohno" || p2name = "Shiki Tohno" || p4name = "Shiki Tohno" || p2name = "Tohno_Shiki" || p4name = "Tohno_Shiki"
trigger22 = p2name = "Shiki_Nanaya" || p4name = "Shiki_Nanaya" || p2name = "Nanaya_T" || p4name = "Nanaya_T" || p2name = "Nanaya_Shiki" || p4name = "Nanaya_Shiki"
trigger23 = p2name = "Arcueid The Stinkbag" || p4name = "Arcueid The Stinkbag"
trigger24 = p2name = "Shiki Asshole" || p4name = "Shiki Asshole" || p2name = "The Dirtiest SOB" || p4name = "The Dirtiest SOB"
trigger25 = p2name = "Kishima Kouma" || p4name = "Kishima Kouma"
trigger26 = p2name = "Warakia" || p4name = "Warakia"
trigger27 = p2name = "Warachia" || p4name = "Warachia"
trigger28 = p2name = "Akiha_Vermilion" || p4name = "Akiha_Vermilion"
trigger29 = p2name = "Dark Arcueid" || p4name = "Dark Arcueid" || p2name = "Dark Arcueid mk2" || p4name = "Dark Arcueid mk2"
trigger30 = p2name = "Sion TATARI" || p4name = "Sion TATARI" || p2name = "Sion_TATARI" || p4name = "Sion_TATARI"
trigger31 = p2name = "Kishima_kouma" || p4name = "Kishima_kouma" || p2name = "Kishima Kouma" || p4name = "Kishima Kouma"
trigger32 = p2name = "Neco-Arc Chaos" || p4name = "Neco-Arc Chaos" || p2name = "necochaosblackG666mk2" || p4name = "necochaosblackG666mk2"
trigger33 = p2name = "Satsuki_Yumiduka" || p4name = "Satsuki_Yumiduka" || p2name = "Yumiduka_Satsuki" || p4name = "Yumiduka_Satsuki"
trigger34 = p2name = "Sion_Eltnam_Atlasia" || p4name = "Sion_Eltnam_Atlasia"
trigger35 = p2name = "Totally Pissed off Haruhi" || p4name = "Totally Pissed off Haruhi" || p2name = "Aku no Tamashi Haruhi" || p4name = "Aku no Tamashi Haruhi" || p2name = "God Haruhi" || p4name = "God Haruhi"
trigger36 = p2name = "Shana" || p4name = "Shana"
trigger37 = p2name = "rena_lv5" || p4name = "rena_lv5"
trigger38 = p2name = "Maebara_keiichi" || p4name = "Maebara_keiichi"
trigger39 = p2name = "furude_rika" || p4name = "furude_rika"
trigger40 = p2name = "Haruhi Suzumiya" || p4name = "Haruhi Suzumiya"
trigger41 = p2name = "Nagato Yuki" || p4name = "Nagato Yuki" || p2name = "Yuki Nagato" || p4name = "Yuki Nagato"
trigger42 = p2name = "asakura ryouko" || p4name = "asakura ryouko"
trigger43 = p2name = "Mikuru Asahina" || p4name = "Mikuru Asahina" || p2name = "asahina mikuru" || p4name = "asahina mikuru"
trigger44 = p2name = "koizumi itsuki" || p4name = "koizumi itsuki"
trigger45 = p2name = "kyon" || p4name = "kyon"
trigger46 = p2name = "kotonoha katsura" || p4name = "kotonoha katsura" || p2name = "katsura" || p4name = "katsura"
trigger47 = p2name = "Saionzi Sekai"  || p4name = "Saionzi Sekai"
trigger48 = p2name = "Setsuna of SD" || p4name = "Setsuna of SD"
trigger49 = p2name = "Kino Makoto"  || p4name = "Kino Makoto"
trigger50 = p2name = "Takano_Miyo" || p4name = "Takano_Miyo"
trigger51 = p2name = "Chie_Rumiko" || p4name = "Chie_Rumiko"
trigger52 = p2name = "tsuruya-san" || p4name = "tsuruya-san"
trigger53 = p2name = "Hojo Satoko" || p4name = "Hojo Satoko"
trigger54 = p2name = "Sonozaki_Mion" || p4name = "Sonozaki_Mion"
trigger55 = p2name = "Ryoko Asakura" || p4name = "Ryoko Asakura"
trigger56 = p2name = "Sonozaki_Shion" || p4name = "Sonozaki_Shion"
trigger57 = p2name = "ore_no_moto_yome" || p4name = "ore_no_moto_yome"
trigger58 = p2name = "Shiki Kageya" || p4name = "Shiki Kageya" || p2name = "Nanaya-Satsujinki" || p4name = "Nanaya-Satsujinki"
trigger59 = enemy,authorname = "Hostiles"
trigger60 = enemy,authorname = "Toma & Raien Makoto"
trigger61 = enemy,authorname = "Raien Makoto"
var(27) = 1

[State -2, Simplifier]
type = AttackMulSet
trigger1 = PalNo = 12
value = 1.4
ignorehitpause = 1
persistent = 1

[State -2, Simplifier]
type = DefenceMulSet
trigger1 = PalNo = 12
trigger1 = var(19) = 0
value = 0.01
ignorehitpause = 1
persistent = 1

[State -2]
type = LifeSet
trigger1 = PalNo = 12
trigger1 = var(27) = 1
value = Ceil(5*const(data.life))
ignorehitpause = 1

[State -2]
type = LifeAdd
triggerall = gametime%2 && movetype!= H
trigger1 = PalNo = 12
trigger1 = var(27) = 0
trigger2 = var(38) = 1
value = 1
ignorehitpause = 1

[State helper]
type = Helper
trigger1 = life > 0
trigger1 = numhelper(10000) = 0
trigger1 = PalNo = 12
trigger1 = Var(27) = 1
name = "armor"
stateno = 10000
ID =  10000
pausemovetime = 9999
supermovetime = 9999
ignorehitpause = 1

[State hit]
type = NotHitBy
trigger1 = numhelper(10000)>= 1
trigger1 = Var(27) = 1
trigger1 = PalNo = 12
trigger2 = Var(38) = 1
trigger2 = p2name = "Mech-HISUI" || p4name = "Mech-HISUI" || p2name = "mechhisuiex" || p4name = "mechhisuiex"
trigger3 = Var(38) = 1
trigger3 = p2name = "Shiki Kageya" || p4name = "Shiki Kageya"
trigger4 = Var(38) = 1
trigger4 = p2name = "ore_no_moto_yome" || p4name = "ore_no_moto_yome"
trigger5 = (p2name = "Nanaya-Satsujinki" || p4name = "Nanaya-Satsujinki") && (enemy,var(26) = 1)
value = SCA, NT, ST, HT ,NA, SA, HA ,NP, SP, HP, AA, AP, AT
ignorehitpause = 1

[State -2, Normal]
Type = VarSet
trigger1 = life >= 250
trigger1 = power < 4500
fv = 8
value = ifelse(var(38)=1,1.2-fvar(18),1-fvar(18))

[State -2, vsHardOpp]
Type = VarSet
trigger1 = life < 250
trigger1 = power < 4500
fv = 8
value = ifelse(var(38)=1,1.3-fvar(18),1.05-fvar(18))

[State -2, Normal]
Type = VarSet
trigger1 = life >= 250
trigger1 = power >= 4500
fv = 8
value = ifelse(var(38)=1,1.3-fvar(18),1.05-fvar(18))

[State -2, vsHardOpp]
Type = VarSet
trigger1 = life < 250
trigger1 = power >= 4500
fv = 8
value = ifelse(var(38)=1,1.4-fvar(18),1.1-fvar(18))

[State -2, Nuked]
type = Helper
triggerall = NumHelper(6650) <= 0
triggerall = roundstate = 3
triggerall = Winko
trigger1 = NumHelper(6660) >= 1
helpertype = normal
name = "NUKED"
ID = 6650
stateno = 6650
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1
persistent = 0

;;================================================================================================
[State -2, Try to do that, you'll see]
type = SelfState
triggerall = p2name = "Haruhi Suzumiya" || p4name = "Haruhi Suzumiya" || enemy,name = "Haruhi Suzumiya"
triggerall = movetype = H
trigger1 = stateno = 1521
trigger2 = stateno = 3285 && power < 8000
value = 705

[State -2, Try to do that, you'll see]
type = SelfState
triggerall = p2name = "Haruhi Suzumiya" || p4name = "Haruhi Suzumiya" || enemy,name = "Haruhi Suzumiya"
triggerall = movetype = H
trigger1 = stateno = 3550
value = 299

[State -2, Try to do that, you'll see]
type = SelfState
triggerall = p2name = "Haruhi Suzumiya" || p4name = "Haruhi Suzumiya" || enemy,name = "Haruhi Suzumiya"
triggerall = movetype = H
trigger1 = stateno = 3285 && power >= 8000
value = 4060

[State -2, Try to do that, you'll see]
type = SelfState
triggerall = var(38) = 1
triggerall = p2name = "Warcueid" || p4name = "Warcueid" || enemy,name = "Warcueid"
triggerall = movetype = H
trigger1 = stateno = 1129
trigger2 = stateno = 1139
value = ifelse(statetype=A,1856,1855)

[State -2, Try to do that, you'll see]
type = SelfState
triggerall = var(38) = 1
triggerall = p2name = "Akaitsuki" || p4name = "Akaitsuki" || enemy,name = "Akaitsuki"
triggerall = movetype = H
trigger1 = stateno = 1607
trigger2 = stateno = 2182
trigger3 = stateno = 2502
trigger4 = stateno = 3102
value = ifelse(statetype=A,1856,1855)

[State -2, Try to do that, you'll see]
type = SelfState
triggerall = var(38) = 1
triggerall = p2name = "Shiki_Nanaya" || p4name = "Shiki_Nanaya" || enemy,name = "Shiki_Nanaya"
triggerall = movetype = H
trigger1 = stateno = 1020
trigger2 = stateno = 1110
trigger3 = stateno = 1160
trigger4 = stateno = 1210
trigger5 = stateno = 1212
trigger6 = stateno = [3070,3199]
trigger7 = stateno = [22050,22070]
trigger8 = stateno = 23350
trigger9 = stateno = 24200
value = ifelse(statetype=A,1856,1855)

[State -2, Try to do that, you'll see]
type = SelfState
triggerall = movetype = H
triggerall = stateno = 24511
trigger1 = p2name = "Shiki_Nanaya" || p4name = "Shiki_Nanaya" || enemy,name = "Shiki_Nanaya"
trigger2 = p2name = "Shiki_Tohno" || p4name = "Shiki_Tohno" || enemy,name = "Shiki_Tohno"
trigger3 = p2name = "Tohno_Shiki" || p4name = "Tohno_Shiki" || enemy,name = "Tohno_Shiki"
value = 4080

[State -2, Try to do that, you'll see]
type = SelfState
triggerall = p2name = "Sion TATARI" || p4name = "Sion TATARI" || enemy,name = "Sion TATARI"
triggerall = movetype = H
trigger1 = stateno = [4210,4211]
value = 4210

[State -2, Try to do that, you'll see]
type = SelfState
triggerall = var(38) = 1
triggerall = p2name = "Shiki_Tohno" || p4name = "Shiki_Tohno" || enemy,name = "Shiki_Tohno"
triggerall = movetype = H
trigger1 = stateno = 1110
trigger2 = stateno = 1160
trigger3 = stateno = 1210
trigger4 = stateno = 1212
trigger5 = stateno = [3070,3199]
value = ifelse(statetype=A,1856,1855)

[State -2, Try to do that, you'll see]
type = SelfState
triggerall = var(38) = 1
triggerall = p2name = "Shiki_Nanaya" || p4name = "Shiki_Nanaya" || enemy,name = "Shiki_Nanaya"
triggerall = movetype = H
trigger1 = stateno = 1280
value = 3918

[State -2, Try to do that, you'll see]
type = SelfState
triggerall = var(38) = 1
triggerall = p2name = "mechhisuiex" || p4name = "mechhisuiex" || enemy,name = "mechhisuiex"
triggerall = movetype = H
trigger1 = stateno = [810,899]
trigger2 = stateno = 961
trigger3 = stateno = 1301
trigger4 = stateno = [1402,1403]
trigger5 = stateno = 1501
trigger6 = stateno = 2002
value = ifelse(statetype=A,1856,1855)

[State -2, KILL KILL KILL]
type = Helper
triggerall = NumHelper(19770) = 0
triggerall = roundstate = 2
triggerall = var(38) = 1
triggerall = random % 2
trigger1 = p2movetype = A
trigger2 = enemy,movetype = A
helpertype = normal
name = "PRANK BUSTER"
ID = 19770
stateno = 19770
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -3, AI]
type = SelfState
value = ifelse(statetype=A,1810,1800)
triggerall = alive
triggerall = var(38) = 1
triggerall = var(59) >= 10
triggerall = var(58) != 0
triggerall = random % 2
trigger1 = movetype = H
trigger1 = life >= 500
trigger1 = stateno = [5000,5099]
trigger2 = movetype = H
trigger2 = life < 500

[State -3]
Type = VarRandom
Trigger1 = Time = 1
Trigger2 = GameTime %10= 1
v = 55
Range = 1,10

[State -3, AI]
type = SelfState
value = 1810
triggerall = var(58) = 0
triggerall = command = "start"
triggerall = movetype = H
triggerall = power >= 1500
triggerall = statetype = A
trigger1 = (stateno = [150,155])
trigger2 = stateno = [5000,5099] 

[State -3, AI]
type = SelfState
value = 1800
triggerall = var(58) = 0
triggerall = command = "start"
triggerall = movetype = H
triggerall = power >= 1500
triggerall = statetype != A
trigger1 = (stateno = [150,155])
trigger2 = stateno = [5000,5099] 
;---------------------------------------------------------------------------
; States that are executed when in self's state file (use statedef -3)
;---------------------------------------------------------------------------
[Statedef -3]

[State -3, AIActivator]
type = VarSet
triggerall = var(58) = 0
trigger1 = Command = "AI0"
trigger2 = Command = "AI1"
trigger3 = Command = "AI2"
trigger4 = Command = "AI3"
trigger5 = Command = "AI4"
trigger6 = Command = "AI5"
trigger7 = Command = "AI6"
trigger8 = Command = "AI7"
trigger9 = Command = "AI8"
trigger10 = Command = "AI9"
trigger11 = Command = "AI10"
trigger12 = Command = "AI11"
trigger13 = Command = "AI12"
trigger14 = Command = "AI13"
trigger15 = Command = "AI14"
trigger16 = Command = "AI15"
trigger17 = Command = "AI16"
trigger18 = Command = "AI17"
trigger19 = Command = "AI18"
trigger20 = Command = "AI19"
trigger21 = Command = "AI20"
trigger22 = Command = "AI21"
trigger23 = Command = "AI22"
trigger24 = Command = "AI23"
trigger25 = Command = "AI24"
trigger26 = Command = "AI25"
trigger27 = Command = "AI26"
trigger28 = Command = "AI27"
trigger29 = Command = "AI28"
trigger30 = Command = "AI29"
trigger31 = Command = "AI30"
trigger32 = Command = "AI31"
trigger33 = Command = "AI32"
trigger34 = Command = "AI33"
trigger35 = Command = "AI34"
trigger36 = Command = "AI35"
trigger37 = Command = "AI36"
trigger38 = Command = "AI37"
trigger39 = Command = "AI38"
trigger40 = Command = "AI39"
trigger41 = Command = "AI40"
trigger42 = Command = "AI41"
trigger43 = Command = "AI42"
trigger44 = Command = "AI43"
trigger45 = Command = "AI44"
trigger46 = Command = "AI45"
trigger47 = Command = "AI46"
trigger48 = Command = "AI47"
trigger49 = Command = "AI48"
trigger50 = Command = "AI49"
trigger51 = Command = "AI50"
;trigger52 = NumHelper(9741) != 0
;trigger52 = Helper(9741),var(58) = 1
var(58) = 1

[State -3]
Type = null;;;Helper
TriggerAll = Var(58) = 0
TriggerAll = NumHelper(9741) = 0
TriggerAll = Ctrl && StateNo = 0
TriggerAll = RoundState = 2
Trigger1 = PrevStateNo = 191 || PrevStateNo = 5900
StateNo = 9741
PosType = P1
Pos = 0, 0
KeyCtrl = 1
Ownpal = 1
ID = 9741
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -3, AI]
type = SelfState
value = ifelse(statetype=A,1810,1800)
TriggerAll = var(58) != 0
triggerall = alive
triggerall = var(59) = [8,10]
triggerall = Power >= 1500 && random < 250
triggerall = p2bodydist X = [0,70]
triggerall = prevstateno != 1989
trigger1 = stateno = [120,163]
trigger2 = movetype = H
trigger2 = stateno = [5000,5099]

[State -3,]
type = ChangeState
triggerall = var(58) != 0
triggerall = var(59) >= 9
triggerall = RoundState = 2
triggerall = Alive
triggerall = NumEnemy
triggerall = StateType != A
triggerall = Power >= 8000
triggerall = Ctrl
triggerall = Roundno >= 3
triggerall = prevstateno != 1989
trigger1 = Life < 500
trigger1 = Random < 500
trigger2 = var(38) = 1
trigger2 = Random < 750
trigger3 = palno = 12
trigger4 = random % 2
trigger4 = p2name = "Shiki Kageya" || p4name = "Shiki Kageya" || p2name = "Nanaya-Satsujinki" || p4name = "Nanaya-Satsujinki"
value = ifelse(random%2&&power>=9000,4520,4200)

[State -3,搳偘]
Type = ChangeState
value = ifelse(var(57)=0,4000,4300)
triggerall = var(59) >= 9
triggerall = var(57) < 2
triggerall = alive
triggerall = roundstate = 2
triggerall = var(58) != 0
triggerall = StateType != A
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = (p2statetype != L && EnemyNear, statetype != L)
triggerall = (p2statetype != A && EnemyNear, statetype != A)
triggerall = (p2movetype != H && EnemyNear,MoveType != H)
triggerall = P2BodyDist X = [-5,15]
triggerall = P2BodyDist Y>=0
triggerall = Ctrl || stateno = 100
triggerall = EnemyNear,AnimTime <= -4
triggerall = EnemyNear,MoveType = I
triggerall = (EnemyNear,StateNo=[120,159])
triggerall = Power >= 7000
triggerall = Random <= var(59)*50
triggerall = Roundno >= 2
triggerall = prevstateno != 1989
trigger1 = Life < 300
trigger1 = var(31) = 0
trigger1 = palno < 12
trigger2 = var(38) = 1
trigger3 = palno = 12

[State -3,搳偘]
Type = ChangeState
value = ifelse(random%2,4000,4300)
triggerall = var(59) >= 9
triggerall = var(57) >= 2
triggerall = alive
triggerall = roundstate = 2
triggerall = var(58) != 0
triggerall = StateType != A
triggerall = (p2movetype != A || EnemyNear,Facing = Facing)
triggerall = (p2statetype != L && EnemyNear,statetype != L)
triggerall = (p2statetype != A && EnemyNear,statetype != A)
triggerall = (p2movetype != H && EnemyNear,moveType != H)
triggerall = P2BodyDist X = [-5,15]
triggerall = P2BodyDist Y>=0
triggerall = Ctrl || stateno = 100
triggerall = EnemyNear,AnimTime <= -4
triggerall = EnemyNear,MoveType = I
triggerall = (EnemyNear,StateNo=[120,159])
triggerall = Power >= 7000
triggerall = Random <= var(59)*50
triggerall = Roundno >= 2
triggerall = prevstateno != 1989
trigger1 = Life < 500
trigger1 = var(31) = 0
trigger1 = palno < 12
trigger2 = var(38) = 1
trigger3 = palno = 12

[State -1, Taunt]
type = ChangeState
value = 705
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = movetype = H
triggerall = Random <=var(59)*12 || (var(59) >= 9 && random < 666)
triggerall = pos y >= -40
triggerall = prevstateno != 1989
trigger1 = stateno = 5050
trigger2 = stateno = 5071

[state -1]
type = changestate
triggerall = var(58) != 0
triggerall = var(59) >= 10
triggerall = roundstate = 2
triggerall = p2bodydist x < 50
triggerall = statetype != A
triggerall = p2movetype = A
triggerall = ctrl
triggerall = prevstateno != 1989
trigger1 = random < 499
value = ifelse(var(57)=1,2100,1350)

[State -1, AI assault]
type = ChangeState
triggerall = var(58) != 0
triggerall = statetype != A
triggerall = var(59) >= 10
triggerall = Power >= 7000
triggerall = roundstate = 2
triggerall = Alive
triggerall = P2BodyDist X = [-5,15]
triggerall = P2BodyDist Y >= 0
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = (p2statetype != L && EnemyNear, statetype != L)
triggerall = (p2statetype != A && EnemyNear, statetype != A)
triggerall = random % 2
triggerall = var(38) = 1 || palno = 12
triggerall = ctrl
triggerall = prevstateno != 1989
trigger1 = stateno = 160 && AnimTime = 0
trigger2 = stateno = 161 && AnimTime = 0
value = ifelse(var(57)=0,4000,4300)

[State -1, AI]
type = ChangeState
value = ifelse(var(57)=1,1667,1450)
triggerall = var(57) < 2
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = var(59) >= 7
triggerall = statetype != A
triggerall = p2stateno != [5100,5200]
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = (p2statetype != L && EnemyNear, statetype != L)
triggerall = (p2statetype != A && EnemyNear, statetype != A)
triggerall = Pos Y = 0
triggerall = (Random <= var(59)*15 && var(59) < 10 ) || (Random <= var(59)*50 && var(59)>=10)
triggerall = P2BodyDist X < 60 && p2bodydist Y >= 0
triggerall = prevstateno != 1989
trigger1 = Ctrl
trigger2 = stateno = [200,499]
trigger2 = stateno != 440
trigger2 = movecontact || animtime = 0

[State -1, AI]
type = ChangeState
value = ifelse(random%2,1667,1450)
triggerall = var(57) >= 2
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = var(59) >= 7
triggerall = statetype != A
triggerall = p2stateno != [5100,5200]
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = (p2statetype != A && EnemyNear, statetype != A)
triggerall = Pos Y = 0
triggerall = (Random <= var(59)*20 && var(59) < 10 ) || (Random <= var(59)*40 && var(59)>=10)
triggerall = P2BodyDist X < 60 && p2bodydist Y >= 0
triggerall = prevstateno != 1989
trigger1 = ctrl
trigger2 = stateno = [200,499]
trigger2 = stateno != 440
trigger2 = movecontact || animtime = 0

[State -3]
type = ChangeState
value = 2000   ;;;ifelse(power>=500&&Random%2,1510,1500)
TriggerAll = var(58) != 0
triggerall = var(57) >= 1
triggerall = alive
triggerall = roundstate = 2
triggerall = p2stateno != [5100,5200]
triggerall = enemynear,stateno != [5100,5200]
triggerall = statetype != A
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = p2bodydist x >= 160
triggerall = EnemyNear,StateType != L
triggerall = ctrl || (prevstateno != 1989 && stateno = 0)
triggerall = NumHelper(11251) = 0
triggerall = NumProjID(1500) = 0
trigger1 = var(59) = [7,9]
trigger1 = Random <= var(59)*1
trigger2 = var(59) >= 10
trigger2 = Random <= var(59)*50

[State -3]
type = ChangeState
value = ifelse(power>=500&&Random%2,1270,1250)
TriggerAll = var(58) != 0
triggerall = var(57) = 0
triggerall = alive
triggerall = roundstate = 2
triggerall = p2stateno != [5100,5200]
triggerall = enemynear,stateno != [5100,5200]
triggerall = statetype != A
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = p2bodydist x >= 160
triggerall = EnemyNear,StateType != L
triggerall = ctrl || (prevstateno != 1989 && stateno = 0)
triggerall = NumHelper(11251) = 0
triggerall = NumProjID(1500) = 0
trigger1 = var(59) = [7,9]
trigger1 = Random <= var(59)*1
trigger2 = var(59) >= 10
trigger2 = Random <= var(59)*50
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;AI
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3, ];嬻拞惂屼梡
type = Ctrlset
TriggerAll = RoundState = 2
triggerAll = var(58) != 0
trigger1 = StateNo = [50,51]
trigger1 = ctrl
value = 0

[State -3, ]
type = Ctrlset
TriggerAll = RoundState = 2
triggerAll = var(58) != 0
triggerall = prevstateno != 191
trigger1 = StateNo = 0
trigger1 = ctrl = 0
value = 1

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;朶敪
;Time=1 Random StateNo
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;愗傝懼偊偟
;PrevStateNo = [120,159] PrevStateNo = [5000,5270] EnemyNear,HitDefAttr = SCA,AT;搳偘
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
[State -3,]
Type = ChangeState
Value = ifelse(var(57)=1,3600,3250)
TriggerAll = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
TriggerAll = var(59) >= 7
TriggerAll = StateType!=A
TriggerAll = power >= 4000
TriggerAll = P2BodyDist X=[-5,15]
TriggerAll = P2BodyDist Y>=0
TriggerAll = Ctrl
TriggerAll = EnemyNear,HitDefAttr = SC,NA,SA,AP
TriggerAll = Random<=var(59)*50 || var(59)>9
TriggerAll = EnemyNear,AnimTime<=-11||var(59)<7
TriggerAll = Enemynear,Time>=30||(!Time&&var(59)>9)||var(59)>10
Trigger1 = Enemynear,Time>=50||var(59)=10
Trigger2 = (PrevStateNo=[5000,5270])
Trigger3 = (PrevStateNo=[120,159])

; Shun goku satsu (or Dragon Cannon)
[State -1, AI assault]
type = ChangeState
Triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = random % 2
triggerall = Pos Y = 0
triggerall = var(57) >= 1
triggerall = power >= 3000
triggerall = p2stateno != [5100,5200]
triggerall = var(59) >= 10
triggerall = statetype != A
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = (p2statetype != L && EnemyNear, statetype != L)
triggerall = (p2statetype != A && EnemyNear, statetype != A)
triggerall = P2BodyDist X < 40 && p2bodydist Y >= 0
trigger1 = ctrl
trigger2 = stateno = [200,499]
trigger2 = movecontact
trigger2 = stateno != 440
Trigger3 = StateNo = 3000
Trigger3 = hitcount = 2
Trigger4 = StateNo = 3010
Trigger4 = hitcount = 4
value = 3500

; Shun goku satsu (or Dragon Cannon)
[State -1, AI assault]
type = ChangeState
TriggerAll = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = random % 2
triggerall = Pos Y = 0
triggerall = var(57) = 0 || var(57) = 2
triggerall = power >= 3000
triggerall = p2stateno != [5100,5200]
triggerall = var(59) >= 10
triggerall = var(38) = 1 || palno = 12
triggerall = statetype != A
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
trigger1 = ctrl
trigger2 = stateno = [200,499]
trigger2 = movecontact = 1
trigger2 = stateno != 440
value = 3900

; Death From Above
[State -1, AI assault]
type = ChangeState
Triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = random % 2
triggerall = Pos Y = 0
triggerall = power >= 4000
triggerall = p2stateno != [5100,5200]
triggerall = var(59) >= 10
triggerall = statetype != A
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = Pos Y = 0
triggerall = p2bodydist x >= 160
trigger1 = ctrl
trigger2 = stateno = [200,499]
trigger2 = movecontact = 1
trigger2 = stateno != 440
trigger3 = stateno = [3000,3010]
trigger3 = movecontact
value = ifelse(var(57)=1,3600,3250)

[State -1, AI assault]
type = ChangeState
TriggerAll = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = random % 2
triggerall = Pos Y = 0
triggerall = power >= 5000
triggerall = p2stateno != [5100,5200]
triggerall = var(59) >= 10
triggerall = statetype != A
triggerall = p2bodydist x >= 100
triggerall = EnemyNear, Facing = Facing
trigger1 = ctrl
trigger2 = stateno = [200,499]
trigger2 = movecontact = 1
trigger2 = stateno != 440
trigger3 = stateno = [3000,3010]
trigger3 = movecontact
value = 3700

[State -3,]
Type = ChangeState
Value = 3172
TriggerAll = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
Triggerall = StateType!=A||StateType=A
Triggerall = power >= 2000
Triggerall = P2BodyDist X=[-5,45]
Triggerall = P2BodyDist Y=[-20,10]
Triggerall = Ctrl
Triggerall = EnemyNear,HitDefAttr=SA,NA,SA,AT,AP
Triggerall = Random<=var(59)*60||var(59)>9
Triggerall = EnemyNear,AnimTime<=-6||var(59)<7
Triggerall = Enemynear,Time>=30||(!Time&&var(59)>9)||var(59)>10
Trigger1 = Enemynear,Time>=50||var(59)=10
Trigger2 = (PrevStateNo=[5000,5270])
Trigger3 = (PrevStateNo=[120,159])
Trigger4 = (PrevStateNo=[1300,1320])

[State -3,]
Type = ChangeState
Value = 430
TriggerAll = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
TriggerAll = StateType!=A
TriggerAll = P2BodyDist X=[-5,42]
TriggerAll = (PrevStateNo=[1300,1320])
TriggerAll = EnemyNear,HitDefAttr=SA,AA,AP
TriggerAll = Random<=var(59)*60||var(59)>9
TriggerAll = EnemyNear,AnimTime<=-7||var(59)<7
TriggerAll = Enemynear,Time>=30||(!Time&&var(59)>9)||var(59)>10
Trigger1 = Enemynear,Time>=50||var(59)=10
Trigger2 = (PrevStateNo=[5000,5270])
Trigger3 = (PrevStateNo=[120,159])

[State -3,夞傝崬傒]
Type = ChangeState
Value = 257
TriggerAll = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
TriggerAll = StateType != A
TriggerAll = Ctrl
TriggerAll = P2BodyDist X>10*(6+var(6))||(EnemyNear,AnimTime<=-(11)&&!EnemyNear,Ctrl)
TriggerAll = EnemyNear,HitDefAttr=SCA,AA,AP
TriggerAll = InGuardDist
TriggerAll = Random<=var(59)*50||var(59) > 9
TriggerAll = EnemyNear,Time>=30||(!Time&&var(59)>9)||var(59)>10||EnemyNear,Ctrl
Trigger1 = EnemyNear,Time>=50||var(59)>9
Trigger2 = PrevStateNo = [5000,5270]
Trigger3 = (PrevStateNo = [120,159])
Trigger4 = EnemyNear,Ctrl

[State -3,兽矫遌
Type = ChangeState
Value = 105
TriggerAll = var(58) != 0
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType != A
TriggerAll = BackEdgeBodyDist >= 40
Triggerall = EnemyNear,HitDefAttr = SA,NT,ST,HT
TriggerAll = EnemyNear,Time>=30||(!Time&&var(59)>9)||var(59)>10
TriggerAll = Ctrl||StateNo=100
TriggerAll = Random<=var(59)*60||var(59)>9
Trigger1 = EnemyNear,Time>=50||var(59)>10
Trigger2 = (PrevStateNo=[5000,5270])
Trigger3 = (PrevStateNo=[120,159])

[State -3,僕儍儞僾]
Type = ChangeState
Value = 41
TriggerAll = var(58) != 0
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType!=A
TriggerAll = Ctrl||StateNo=100
TriggerAll = EnemyNear,HitDefAttr=SCA,AT
TriggerAll = Random<=var(59)*60||var(59)>9
TriggerAll = EnemyNear,Time>=30||(!Time&&var(59)>9)||var(59)>10
Trigger1 = EnemyNear,Time>=50||var(59)>10
Trigger2 = (PrevStateNo=[5000,5270])
Trigger3 = (PrevStateNo=[120,159])

; Rocket Punch
[State -1, AI]
type = ChangeState
TriggerAll = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = var(59) >= 7
triggerall = var(57) != 1
triggerall = statetype != A
triggerall = p2statetype = S
triggerall = p2movetype != A
triggerall = p2bodydist x <= 50
triggerall = random % 2
triggerall = p2stateno = [120,169]
trigger1 = ctrl
value = 1400
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;僈乕僪 
;inguarddist EnemyNear,HitDefAttr = SCA,AA;懪寕
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
[State -3]
type = HitOverride
triggerall = alive
triggerall = roundstate = 2
triggerall = Statetype = S
triggerall = P2MoveType = A
triggerall = MoveType != H
triggerall = MoveType != A
triggerall = Ctrl
triggerall = var(58) != 0
trigger1 = p2dist X = [-75,65]
trigger1 = random < var(59)*50
attr = SCA, NA, SA, HA
stateno = 160

[State -3]
type = HitOverride
triggerall = alive
triggerall = roundstate = 2
triggerall = Statetype != A
triggerall = Statetype != L
triggerall = P2MoveType = A
triggerall = MoveType != H
triggerall = MoveType != A
triggerall = Ctrl
TriggerAll = var(58) != 0
trigger1 = p2statetype = C
trigger1 = p2dist X = [-70,70]
trigger1 = random < var(59)*50
attr = C, NA, SA, HA
stateno = 161

[State -3]
type = HitOverride
triggerall = alive
triggerall = roundstate = 2
triggerall = Statetype = A
triggerall = P2MoveType = A
triggerall = MoveType != H
triggerall = MoveType != A
triggerall = Ctrl
triggerall = var(58) != 0
trigger1 = p2dist X = [-80,80]
trigger1 = random < var(59)*50
attr = SCA, NA, SA, HA
stateno = 162

[State -3]
type = PosSet
trigger1 = stateno = [160,161]
trigger1 = AnimTime = 0
y = 0
;---------------------------------------------
;棫偪僈乕僪
[State -3]
type = ChangeState
value = 130
triggerall = Alive
triggerall = roundstate = 2
TriggerAll = var(58) != 0
triggerall = p2statetype != C
triggerall = inguarddist
trigger1 = statetype != A && ctrl
trigger1 = random < var(59)*100

;---------------------------------------------
;孅傒僈乕僪
[State -3]
type = ChangeState
value = 131
triggerall = Alive
triggerall = roundstate = 2
TriggerAll = var(58) != 0
triggerall = p2statetype = C
triggerall = inguarddist
trigger1 = statetype != A && ctrl
trigger1 = random < var(59)*100

;---------------------------------------------
;嬻拞僈乕僪
[State -3]
type = ChangeState
value = 132
triggerall = Alive
triggerall = roundstate = 2
TriggerAll = var(58) != 0
triggerall = inguarddist
trigger1 = statetype = A && ctrl
trigger1 = random < var(59)*100
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;抧忋婲偒峌傔 
;EnemyNear,StateType = L EnemyNear,AnimTime P2bodyDist Y P2bodyDist X
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,]
Type = ChangeState
value = 410
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
TriggerAll = StateType != A
TriggerAll = EnemyNear,StateType = L
TriggerAll = Random <= var(59)*100
TriggerAll = Ctrl || stateno = 100
TriggerAll = P2BodyDist X <= 45
Trigger1 = EnemyNear,StateNo = 5120
Trigger1 = EnemyNear,AnimTime = -(4+3)

[State -3,僟僢僔儏]
Type = ChangeState
value = 100
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
TriggerAll = StateType != A
TriggerAll = Random <= var(59)*100
TriggerAll = Ctrl
TriggerAll = P2BodyDist X = [160,320]
Trigger1 = EnemyNear,StateType = L

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;嬻拞婲偒峌傔(嵓媆旘傃) 
;EnemyNear,StateType = L EnemyNear,AnimTime P2bodyDist Y P2bodyDist X 
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;抧忋栚墴偟 
;Prevstateno EnemyNear,Movetype = H EnemyNear,stateno = [120,159]
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,]
type = ChangeState
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = StateType != A
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = Random <= var(59)*100
triggerall = P2bodydist X = [14,100]
triggerall = P2bodydist Y = [-50,0]
triggerall = Ctrl
trigger1 = EnemyNear,MoveType = H
trigger2 = (EnemyNear,StateNo = [120,159])
value = 100

[State -1,庛僇儞僼乕僯乕]
type = ChangeState
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = StateType != A
triggerall = EnemyNear,StateType != L
Triggerall = !inguarddist
Triggerall = Random <= var(59)*35
TriggerAll = P2BodyDist X=[0,30]
TriggerAll = P2BodyDist Y>=-60
triggerall = Ctrl || (PrevStateNo=[1300,1320])||stateno=100
trigger1 = EnemyNear,MoveType = H
trigger1 = (EnemyNear,StateNo != [120,159])
value = 1050

[State -1,庛僇儞僼乕僉僢僋]
type = ChangeState
triggerall = var(57) != 1
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = StateType != A
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = Random <= var(59)*30
triggerall = P2BodyDist X = [0,30]
triggerall = P2BodyDist Y >= -15
triggerall = Ctrl || stateno=100
trigger1 = EnemyNear,MoveType = H
trigger1 = (EnemyNear,StateNo != [120,159])
value = ifelse(power>=500&&random%2,1502,1500)

[State -1,庛僇儞僼乕僉僢僋]
type = ChangeState
triggerall = var(57) >= 1
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = StateType != A
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = Random <= var(59)*30
triggerall = P2BodyDist X = [0,100]
triggerall = P2BodyDist Y>=-66
triggerall = Ctrl || (PrevStateNo=[1300,1320]) || stateno=100
trigger1 = EnemyNear,MoveType = H
trigger1 = (EnemyNear,StateNo != [120,159])
value = ifelse(power>=500&&random%2,1545,1542)

[State -1,庛倫]
type = ChangeState
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = StateType != A;(StateType = A)
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = Random <= var(59)*100
triggerall = P2BodyDist X=[0,30]
triggerall = P2BodyDist Y>=-82
triggerall = Ctrl || (PrevStateNo=[1300,1320]) || stateno=100
trigger1 = EnemyNear,MoveType = H
trigger1 = (EnemyNear,StateNo != [120,159])
value = 200

[State -1,嫮倫]
Type = ChangeState
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = StateType != A;(StateType = A)
triggerall = EnemyNear,StateType != L
Triggerall = !inguarddist
Triggerall = Random <= var(59)*91
Triggerall = P2BodyDist X=[0,58]
Triggerall = P2BodyDist Y>=-82
triggerall = Ctrl || (PrevStateNo=[1300,1320])||stateno=100
trigger1 = EnemyNear,MoveType = H
trigger1 = (EnemyNear,StateNo != [120,159])
value = 210

[State -3,]
type = ChangeState
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
TriggerAll = power >= 500
triggerall = StateType != A
triggerall = EnemyNear,StateType != L
Triggerall = !inguarddist
Triggerall = Random <= var(59)*90
triggerall = P2bodydist X = [-5,150]
triggerall = P2bodydist Y = [-56,0]
triggerall = Ctrl || (PrevStateNo=[1300,1320])||stateno=100
triggerAll = EnemyNear,vel y > 0
trigger1 = EnemyNear,MoveType = H
trigger1 = (EnemyNear,StateNo != [120,159])
value = 1020

[State -3,]
type = ChangeState
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = StateType != A
triggerall = EnemyNear,StateType != L
Triggerall = !inguarddist
Triggerall = Random <= var(59)*100
triggerall = P2bodydist X = [-5,72]
triggerall = P2bodydist Y = [-56,0]
triggerall = Ctrl || (PrevStateNo=[1300,1320])||stateno=100
trigger1 = EnemyNear,MoveType = H
trigger1 = (EnemyNear,StateNo != [120,159])
value = 1000

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;抧忋宷偓 
;Movecontact MoveHit MoveGuarded AnimElem = ,>0
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -1,孅庛k]
Type = ChangeState
TriggerAll = (var(58) != 0 && Random <= var(59)*100)
triggerall = alive
triggerall = roundstate = 2
TriggerAll = StateType != A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,31]
TriggerAll = P2BodyDist Y>=-82
TriggerAll = MoveGuarded=1
Trigger1 = StateNo=430
Trigger1 = time > 5
Trigger2 = StateNo=400
Trigger2 = time > 5
Value = 430

[State -1,庛倫]
Type = ChangeState
triggerall=var(58) != 0
triggerall=Random <= var(59)*100
triggerall=alive
triggerall=roundstate = 2
Triggerall=StateType != A
Triggerall=EnemyNear,Alive
Triggerall=EnemyNear,MoveType=H
Triggerall=!InGuardDist
Triggerall=P2BodyDist X=[0,30]
Triggerall=P2BodyDist Y>=-82
Triggerall=MoveGuarded=1
Trigger1 = StateNo=200
Trigger1 = time > 5
Trigger2 = StateNo=230
Trigger2 = time > 6
Value = 200

[State -1,庛僇儞僼乕僯乕]
Type = ChangeState
triggerall=alive
triggerall=roundstate = 2
TriggerAll=(var(58) != 0&&Random<=var(59)*100)
TriggerAll=StateType != A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[0,30]
TriggerAll=P2BodyDist Y>-60
TriggerAll=MoveContact=1
Trigger1 = StateNo=200
Trigger1 = time > 5
Trigger2 = StateNo=230
Trigger2 = time > 6
Value = 1050

[State -1,嫮僇儞僼乕僯乕]
Type = ChangeState
triggerall = var(58) != 0
triggerall = Random <= var(59)*100
triggerall = alive
triggerall = roundstate = 2
TriggerAll = StateType != A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,30]
TriggerAll = MoveContact=1
Trigger1 = StateNo=200
Trigger1 = time > 5
Trigger2 = StateNo=230
Trigger2 = time > 6
Value = 1060


[State -1,嫮倫]
Type = ChangeState
triggerall=var(58) != 0
triggerall=Random <= var(59)*100
triggerall=alive
triggerall=roundstate = 2
TriggerAll=StateType != A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[0,58]
TriggerAll=P2BodyDist Y>=-82
TriggerAll=MoveContact=1
Trigger1 = StateNo=430
Trigger1 = time > 5
Trigger2 = StateNo=200
Trigger2 = time > 5
Value = 210

[State -1,嫮k]
Type = ChangeState
triggerall = var(58) != 0
triggerall = Random <= var(59)*100
triggerall = alive
triggerall = roundstate = 2
TriggerAll = StateType != A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,58]
TriggerAll = P2BodyDist Y>=-82
TriggerAll = MoveContact=1
Trigger1 = StateNo=400
Trigger1 = time > 5
Trigger2 = StateNo=230
Trigger2 = time > 6
Value = 240

[State -1,嫮僂僢僷乕]
Type = ChangeState
triggerall = var(58) != 0
triggerall = Random <= var(59)*100
triggerall = alive
triggerall = roundstate = 2
triggerall = StateType != A
triggerall = EnemyNear,Alive
triggerall = EnemyNear,MoveType=H
triggerall = !InGuardDist
triggerall = P2bodydist X = [-5,10]
triggerall = P2bodydist Y = [-70,0]
triggerall = MoveContact=1
Trigger1 = StateNo=210
Trigger1 = P2BodyDist X=[0,10]
Trigger1 = P2BodyDist Y=[-60,0]
Trigger2 = StateNo=240
Trigger2 = P2BodyDist X=[0,10]
Trigger2 = P2BodyDist Y=[-60,0]
Trigger3 = StateNo=210
Trigger4 = StateNo=240
Value = 1110

[State -1,庛僽儘僂]
Type = ChangeState
triggerall = var(58) != 0
triggerall = Random = var(59)*100
triggerall = alive
triggerall = roundstate = 2
TriggerAll = StateType != A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
triggerall = P2bodydist X = [-5,55]
triggerall = P2bodydist Y = [-72,0]
TriggerAll = MoveContact=1
Trigger1 = StateNo=210
Trigger1 = P2BodyDist X=[0,10]
Trigger1 = P2BodyDist Y=[-60,0]
Trigger2 = StateNo=240
Trigger2 = P2BodyDist X=[0,10]
Trigger2 = P2BodyDist Y=[-60,0]
Trigger3 = StateNo=210
Trigger4 = StateNo=240
Value = 1200

[State -1,懍撍偒庤]
Type = ChangeState
triggerall = var(58) != 0
triggerall = Random <= var(59)*100
triggerall = alive
triggerall = roundstate = 2
triggerall = StateType != A
triggerall = EnemyNear,Alive
triggerall = EnemyNear,MoveType=H
triggerall = !InGuardDist
triggerall = P2BodyDist X=[0,170]
triggerall = P2BodyDist Y>=-66
triggerall = MoveHit=1
triggerall = power >= 500
Trigger1 = StateNo=210
Trigger1 = P2BodyDist X=[0,10]
Trigger1 = P2BodyDist Y=[-60,0]
Trigger2 = StateNo=240
Trigger2 = P2BodyDist X=[0,10]
Trigger2 = P2BodyDist Y=[-60,0]
Trigger3 = StateNo=210
Trigger4 = StateNo=240
Value = 1020

[State -1,庛撍偒庤]
type = ChangeState
triggerall = var(58) != 0
triggerall = Random <= var(59)*100
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType != A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,72]
TriggerAll = P2BodyDist Y>=-66
TriggerAll = MoveContact=1
Trigger1 = StateNo=210
Trigger1 = P2BodyDist X=[0,10]
Trigger1 = P2BodyDist Y=[-60,0]
Trigger1 = var(55)=[9,10]
Trigger2 = StateNo=240
Trigger2 = P2BodyDist X=[0,10]
Trigger2 = P2BodyDist Y=[-60,0]
Trigger2 = var(55)=[9,10]
Trigger3 = StateNo=410
Trigger4 = StateNo=210
Trigger5 = StateNo=240
Value = 1000

[State -1,俁撍偒庤]
type = ChangeState
triggerall = var(58) != 0
triggerall = Random = var(59)*100
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType != A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,47]
TriggerAll = P2BodyDist Y>=-66
TriggerAll = MoveHit=1
TriggerAll = power >= 1000
Trigger1 = StateNo = 1000
value = ifelse(power>=2000&&random%2,3010,3000)

[State -1,旈僇儞僼乕僉僢僋]
type = ChangeState
triggerall = var(58) != 0
triggerall = Random <= var(59)*100
triggerall = var(57) >= 1
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType != A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,47]
TriggerAll = P2BodyDist Y>=-66
TriggerAll = power >= 2000
Trigger1 = hitcount=2
Trigger1 = StateNo=3000
Trigger2 = MoveHit=1
Trigger2 = PrevStateNo=1542
Trigger3 = MoveHit=1
Trigger3 = PrevStateNo=1220
value = 3172

[State -1,旈僂僢僷乕]
type = ChangeState
triggerall = var(58) != 0
triggerall = Random <= var(59)*100
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType != A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,37]
TriggerAll = P2BodyDist Y>=-71
TriggerAll = power >= 1000
Trigger1 = StateNo = 3000
Trigger1 = hitcount = 2
Trigger2 = StateNo = 3010
Trigger2 = hitcount = 4 || hitcount = 5
value = ifelse(power>=2000&&random%2,3060,3050)

[State -1,嫮僇儞僼乕僉僢僋]
type = ChangeState
triggerall = var(57) != 1
triggerall = var(58) != 0
triggerall = Random <= var(59)*99
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType != A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,20]
TriggerAll = P2BodyDist Y>=-10
TriggerAll = MoveHit = 1
Trigger1 = StateNo = 1000
value = ifelse(power>=500&&random%4,1502,1500)

[State -1,嫮僇儞僼乕僉僢僋]
type = ChangeState
triggerall = var(57) >= 1
triggerall = var(58) != 0
triggerall = Random <= var(59)*99
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType != A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,100]
TriggerAll = P2BodyDist Y>=-66
TriggerAll = MoveHit=1
Trigger1 = StateNo = 1000
value = ifelse(power>=500&&random%4,1545,1542)

[State -1,庛僇儞僼乕僯乕]
type = ChangeState
triggerall = (var(58) != 0 && Random<=var(59)*100)
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType = A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
triggerall = Vel y < -1
Trigger1 = StateNo=1051
Trigger2 = StateNo=1061
Value = 1055

[State -1,嫮僇儞僼乕僯乕]
type = ChangeState
triggerall = var(58) != 0 
triggerall = var(57) >= 1
triggerall = Random <= var(59)*100
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType = A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
Triggerall = var(59) > 5
Trigger1 = StateNo = 1055
trigger1 = Time > 7
value = 1532

[State -1,庛僇儞僼乕僯乕]
type = ChangeState
triggerall = var(58) != 0 
triggerall = Random <= var(59)*100
triggerall = var(57) >= 1
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType = A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
Triggerall = var(59) <= 5
Trigger1 = StateNo = 1055
trigger1 = Time > 7
Value = 1530

[State -1,庛僇儞僼乕僯乕]
type = ChangeState
triggerall = var(58) != 0 
triggerall = Random <= var(59)*100
triggerall = var(57) >= 1
triggerall = alive
triggerall = power >= 500
triggerall = roundstate = 2
triggerall = StateType = A
triggerall = EnemyNear,Alive
triggerall = EnemyNear,MoveType=H
triggerall = !InGuardDist
Trigger1 = var(59) > 5
trigger1 = StateNo = 1075
trigger1 = Time > 7
Value = 1535
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;嬻拞栚墴偟 
;AnimTime=0 Prevstateno EnemyNear,Movetype = H EnemyNear,stateno = [120,159]
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;寗晅偒
;EnemyNear,MoveType=I !EnemyNearCtrl EnemyNear,StateType=A
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

; Assault Supper
[State -1, AI assault]
type = ChangeState
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = power >= 1000
triggerall = p2stateno != [5100,5200]
triggerall = statetype != A
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = p2bodydist x >= 120
triggerall = EnemyNear,StateType != L
triggerall = NumProjID(3277) = 0
triggerall = NumProjID(3104) = 0
triggerall = ctrl
trigger1 = Random <= var(59)*5
trigger1 = var(59) < 9 
trigger2 = Random <= var(59)*80
trigger2 = var(59) >= 9
value = ifelse(var(57)=1,3270,3100)

; Assault Supper
[State -1, AI assault]
type = ChangeState
triggerall = alive
triggerall = roundstate = 2
triggerall = var(58) != 0
triggerall = power >= 2000
triggerall = p2stateno != [5100,5200]
triggerall = statetype != A
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = p2bodydist x >= 120
triggerall = EnemyNear,StateType != L
triggerall = NumProjID(3277) = 0
triggerall = NumProjID(3104) = 0
triggerall = ctrl
trigger1 = Random <= var(59)*5
trigger1 = var(59) < 9 
trigger2 = Random <= var(59)*80
trigger2 = var(59) >= 9
value = ifelse(var(57)=1,3275,3110)

; Assault Supper
[State -1, AI assault]
type = ChangeState
triggerall = alive
triggerall = roundstate = 2
triggerall = var(58) != 0
triggerall = power >= 5000
triggerall = p2stateno != [5100,5200]
triggerall = statetype != A
triggerall = (p2movetype != A || EnemyNear, Facing = Facing)
triggerall = p2bodydist x >= 120
triggerall = p2bodydist y = [-50,0]
triggerall = EnemyNear,StateType != L
triggerall = numhelper(3735) = 0
triggerall = ctrl
trigger1 = Random <= var(59)*80
trigger1 = var(59) >= 9
value = 3700

[State -3,]
type = ChangeState
triggerall = alive
triggerall = roundstate = 2
triggerall = var(58) != 0
triggerall = var(57) < 2
triggerall = StateType != A
triggerall = power >= 4000
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = P2bodydist X = [-5,15]
triggerall = P2bodydist Y >=0
triggerall = Ctrl || StateNo = 100
triggerall = EnemyNear,AnimTime <= -11
triggerall = EnemyNear,MoveType = I
triggerall = (EnemyNear,StateNo = [200,649]) || (!EnemyNear,Ctrl)
trigger1 = Random <= var(59)*20
trigger1 = var(59) < 9 
trigger2 = Random <= var(59)*85
trigger2 = var(59) >= 9
value = ifelse(var(57)=1,3600,3250)

[State -3,]
type = ChangeState
triggerall = alive
triggerall = roundstate = 2
triggerall = var(58) != 0
triggerall = var(57) = 2
triggerall = StateType != A
triggerall = power >= 4000
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = Random <= var(59)*50
triggerall = P2bodydist X = [-5,15]
triggerall = P2bodydist Y >=0
triggerall = Ctrl || (PrevStateNo=[1300,1320])
triggerall = EnemyNear,AnimTime <= -11
triggerall = EnemyNear,MoveType = I
trigger1 = (EnemyNear,StateNo = [200,649])
trigger2 = !EnemyNear,Ctrl
value = ifelse(random < 500,3600,3250)

[State -3,]
type = ChangeState
triggerall = alive
triggerall = roundstate = 2
triggerall = var(58) != 0
triggerall = StateType != A
triggerAll = power >= 1000
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = Random <= var(59)*100
triggerall = P2bodydist X = [-5,18]
triggerall = P2bodydist Y = [-121,0]
triggerall = Ctrl || (PrevStateNo=[1300,1320])||stateno=100
TriggerAll = EnemyNear,AnimTime <= -11
triggerAll = EnemyNear,MoveType = I
trigger1 = (EnemyNear,StateNo = [200,649])
trigger2 = EnemyNear,StateType = A
trigger2 = !EnemyNear,Ctrl
trigger3 = P2bodydist X = [-5,10]
trigger3 = P2bodydist Y = [-56,0]
value = ifelse(power>=2000&&random%2,3060,3050)

[State -3,搳偘]
Type = ChangeState
value = ifelse(var(57)=1,1655,1650)
triggerall = alive
triggerall = roundstate = 2
triggerall = var(58) != 0
triggerall = StateType != A
triggerall = EnemyNear,StateType != L
triggerall = EnemyNear,MoveType != H
triggerall = (p2statetype != A && EnemyNear,StateType != A)
triggerall = P2BodyDist X = [-5,15]
triggerall = P2BodyDist Y >= 0
triggerall = Ctrl || stateno = 100
trigger1 = EnemyNear,MoveType = I
trigger1 = Random <= var(59)*5
trigger1 = var(59) < 9
trigger2 = EnemyNear,MoveType = I
trigger2 = Random <= var(59)*50
trigger2 = var(59) >= 9
trigger3 = EnemyNear,StateNo = [120,159]
trigger3 = stateno = 1457
trigger3 = random % 4
trigger3 = var(59) = [7,8]
trigger4 = EnemyNear,StateNo = [120,159]
trigger4 = stateno = 1457
trigger4 = random % 2
trigger4 = var(59) >= 9

[State -3,]
type = ChangeState
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = StateType != A
triggerAll = power >= 500
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = Random <= var(59)*100
triggerall = P2bodydist X = [-5,10]
triggerall = P2bodydist Y = [-67,0]
triggerall = Ctrl || (PrevStateNo=[1300,1320]) || stateno=100
triggerAll = EnemyNear,AnimTime <= -8
triggerAll = EnemyNear,MoveType = I
trigger1 = (EnemyNear,StateNo = [200,649])
trigger2 = EnemyNear,StateType = A
Trigger2 = !EnemyNear,Ctrl
trigger3 = P2bodydist X = [-5,10]
trigger3 = P2bodydist Y = [-56,0]
trigger3 = var(55)=[3,4]
value = 1070


[State -3,]
type = ChangeState
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = StateType != A
triggerAll = power >= 500
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = Random <= var(59)*100
triggerall = P2bodydist X = [-5,120]
triggerall = P2bodydist Y = [-56,0]
triggerall = EnemyNear,vel y > 0
triggerall = Ctrl || (PrevStateNo=[1300,1320])||stateno=100
triggerAll = EnemyNear,AnimTime <= -12
triggerAll = EnemyNear,MoveType = I
trigger1 = (EnemyNear,StateNo = [200,649])
trigger2 = EnemyNear,StateType = A
trigger2 = !EnemyNear,Ctrl
trigger3 = P2bodydist X = [-5,10]
trigger3 = P2bodydist Y = [-56,0]
trigger3 = var(55)=[5,6]
value = 1020

[State -3,]
type = ChangeState
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = StateType != A
triggerAll = power >= 500
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = Random <= var(59)*100
triggerall = P2bodydist X = [-5,22]
triggerall = P2bodydist Y = [-58,0]
triggerall = Ctrl || (PrevStateNo=[1300,1320])||stateno=100
triggerAll = EnemyNear,AnimTime <= -5
triggerAll = EnemyNear,MoveType = I
trigger1 = (EnemyNear,StateNo = [200,649])
trigger2 = EnemyNear,StateType = A
trigger2 = !EnemyNear,Ctrl
trigger3 = P2bodydist X = [-5,10]
trigger3 = P2bodydist Y = [-56,0]
trigger3 = var(55)=[7,8]
value = 1120

[State -3,]
type = ChangeState
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = StateType != A
triggerall = power >= 500
triggerall = EnemyNear,StateType != L
triggerall = !inguarddist
triggerall = Random <= var(59)*100
triggerall = P2bodydist X = [-5,75]
triggerall = P2bodydist Y = [-72,0]
triggerall = Ctrl || (PrevStateNo=[1300,1320])||stateno=100
triggerAll = EnemyNear,AnimTime <= -11
triggerAll = EnemyNear,MoveType = I
trigger1 = (EnemyNear,StateNo = [200,649])
trigger2 = EnemyNear,StateType = A
trigger2 = !EnemyNear,Ctrl
trigger3 = P2bodydist X = [-5,10]
trigger3 = P2bodydist Y = [-56,0]
trigger3 = var(55)=[9,10]
value = 1220

[State -3,孅庛p]
Type = ChangeState
value = 400
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
Triggerall=StateType != A
Triggerall=EnemyNear,StateType != L
Triggerall=!InGuardDist
Triggerall=P2BodyDist X=[0,38]
Triggerall=EnemyNear,StateType=S
Triggerall=Ctrl||(PrevStateNo=[1300,1320])||stateno=100
Triggerall=Random <= var(59)*100
Triggerall=EnemyNear,AnimTime <= -4
triggerall=EnemyNear,MoveType = I
trigger1 = (EnemyNear,StateNo = [200,649])
Trigger2 = EnemyNear,StateType = A
Trigger2 = !EnemyNear,Ctrl

[State -3,孅庛倠]
Type = ChangeState
value = 430
triggerall = alive
triggerall = roundstate=2
TriggerAll = var(58) != 0
TriggerAll = StateType != A
TriggerAll = EnemyNear,StateType != L
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,42]
TriggerAll = EnemyNear,StateType=S
TriggerAll = Ctrl||(PrevStateNo=[1300,1320])||stateno=100
Triggerall = Random <= var(59)*100
TriggerAll = EnemyNear,AnimTime <= -5
triggerAll = EnemyNear,MoveType = I
trigger1 = (EnemyNear,StateNo = [200,649])
Trigger2 = EnemyNear,StateType = A
Trigger2 = !EnemyNear,Ctrl

[State -3,庛p]
Type = ChangeState
value = 200
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = StateType != A
triggerall = EnemyNear,StateType != L
triggerall = !InGuardDist
triggerall = P2BodyDist X=[0,40]
triggerall = EnemyNear,StateType=S
triggerall = Ctrl||(PrevStateNo=[1300,1320])||stateno=100
triggerall = Random <= var(59)*100
triggerall = EnemyNear,AnimTime <= -4
triggerall = EnemyNear,MoveType = I
trigger1 = (EnemyNear,StateNo = [200,649])
trigger2 = EnemyNear,StateType = A
trigger2 = !EnemyNear,Ctrl

[State -3,庛k]
Type = ChangeState
value = 230
triggerall = alive
triggerall = roundstate=2
TriggerAll = var(58) != 0
TriggerAll = StateType != A
TriggerAll = EnemyNear,StateType != L
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,53]
TriggerAll = EnemyNear,StateType=S
TriggerAll = Ctrl||(PrevStateNo=[1300,1320])||stateno=100
Triggerall = Random <= var(59)*100
TriggerAll = EnemyNear,AnimTime <= -5
triggerAll = EnemyNear,MoveType = I
trigger1 = (EnemyNear,StateNo = [200,649])
trigger2 = EnemyNear,StateType = A
trigger2 = !EnemyNear,Ctrl

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;嬻拞宷偓 
;Movecontact MoveHit MoveGuarded AnimElem = ,>0
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -1,(媄柤)]
Type = ChangeState
TriggerAll=(var(58) != 0 && Random <= var(59)*100)
triggerall=alive
triggerall=roundstate=2
TriggerAll=StateType = A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=(P2BodyDist X=[0,64])
TriggerAll=MoveContact=1
Trigger1 = StateNo=630
Trigger2 = StateNo=600
Value = 640

[State -1,(媄柤)]
Type = ChangeState
triggerall=alive
triggerall=roundstate=2
TriggerAll=(var(58) != 0 && Random<=var(59)*100)
TriggerAll=StateType = A
TriggerAll=EnemyNear,Alive
TriggerAll=EnemyNear,MoveType=H
TriggerAll=!InGuardDist
TriggerAll=(P2BodyDist X=[0,52])
TriggerAll=MoveContact=1
Trigger1 = StateNo=600
Trigger2 = StateNo=630
Value = 610

[State -1,庛僇儞僼乕僯乕]
Type = ChangeState
triggerall = var(58) != 0
triggerall = Random <= var(59)*100
triggerall = var(57) >= 1
triggerall = alive
triggerall = roundstate=2
TriggerAll = StateType = A
TriggerAll = EnemyNear,Alive
TriggerAll = EnemyNear,MoveType=H
TriggerAll = !InGuardDist
TriggerAll = (atan((p2dist x-(p2dist x=0))/(p2dist y-(p2dist y=0)))*180/pi)-((p2dist y>0)-(p2dist y<=0))*90=[-40,-20]
TriggerAll = MoveHit=1
TriggerAll = var(59) > 5
Trigger1 = StateNo=640
Value = 1530

[State -1,庛僇儞僼乕僯乕]
Type = ChangeState
triggerall = var(58) != 0
triggerall = Random <= var(59)*100
triggerall = var(57) >= 1
triggerall = alive
triggerall = roundstate=2
triggerAll = StateType = A
triggerAll = EnemyNear,Alive
triggerAll = EnemyNear,MoveType=H
triggerAll = !InGuardDist
triggerAll = (atan((p2dist x-(p2dist x=0))/(p2dist y-(p2dist y=0)))*180/pi)-((p2dist y>0)-(p2dist y<=0))*90=[-40,-20]
triggerAll = MoveHit = 1
triggerAll = var(59) > 5
trigger1 =  StateNo = 610
Value = 1532
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;傇偭傁
;EnemyNear,Ctrl EnemyNear,MoveType=A P2BodyDist X
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,傇偭傁]
Type = ChangeState
value = ifelse(power>=2000&&random%2,3172,3170)
triggerall = var(57) >= 1
Triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate=2
TriggerAll = power >= 1000
TriggerAll = StateType != A
triggerall = (p2statetype != L && EnemyNear, statetype != L)
TriggerAll = EnemyNear,MoveType != H
TriggerAll = EnemyNear,MoveType=A||EnemyNear,Ctrl
TriggerAll = Ctrl || stateno=100
Trigger1 = var(59)<6
Trigger1 = Random<=var(59)*30
Trigger2 = var(59)=[5,9]
Trigger2 = Random<=(10-var(59))*30

[State -3,傇偭傁]
Type = ChangeState
value = ifelse(power>=2000&&random%2,3160,3150)
triggerall = var(57) != 1
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerAll = power >= 1000
triggerAll = StateType != A
triggerall = (p2statetype != A && EnemyNear, statetype != A)
triggerAll = EnemyNear,MoveType=A || EnemyNear,Ctrl
triggerAll = Ctrl || stateno=100
triggerAll = P2BodyDist X < 60 && p2bodydist Y >= 0
trigger1 = var(59)<6
trigger1 = Random<=var(59)*30
trigger2 = var(59)=[5,9]
trigger2 = Random<=(10-var(59))*30

[State -3,傇偭傁]
Type = ChangeState
value = ifelse(power>=2000 && random%2,3160,3150)
triggerall = var(57) != 1
triggerall = var(58) != 0
triggerall = alive
triggerall = roundstate = 2
triggerall = power >= 1000
triggerall = StateType != A
triggerall = var(59)>=7
triggerall = Random<=var(59)*75
triggerall = P2bodydist Y = [-20,0]
triggerall = P2bodydist X <= 60
triggerall = enemynear,movetype = H
triggerall = EnemyNear, Facing = Facing
triggerall = stateno != 3150 && prevstateno != 3150
triggerall = stateno != 3160 && prevstateno != 3160
trigger1 = enemynear,stateno = 1357
trigger2 = enemynear,stateno = 1355
trigger3 = enemynear,stateno = 1406
trigger4 = enemynear,stateno = 5071 || p2stateno = 5071
trigger5 = enemynear,stateno = 5100 || p2stateno = 5100
trigger6 = enemynear,stateno = 5101 || p2stateno = 5101
trigger7 = enemynear,stateno = 5110 || p2stateno = 5110
trigger8 = ctrl

[State -3,傇偭傁]
Type = ChangeState
value = ifelse(power>=2000&&random%2,3010,3000)
TriggerAll = var(58) != 0
triggerall = alive
triggerall = roundstate=2
TriggerAll = Power >= 1000
TriggerAll = StateType != A
TriggerAll = EnemyNear,StateType != L
TriggerAll = EnemyNear,MoveType != H
TriggerAll = EnemyNear,MoveType=A||EnemyNear,Ctrl
TriggerAll = Ctrl||stateno=100
Trigger1 = var(59)<6
Trigger1 = Random<=var(59)*30
Trigger2 = var(59)=[6,9]
Trigger2 = Random<=(10-var(59))*30
Trigger3 = var(59)=10
Trigger3 = Random % 2

[State -3,傇偭傁]
Type = ChangeState
value = ifelse(power>=500&&random%4,1545,1542)
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=var(57) >= 1
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=EnemyNear,MoveType=A||EnemyNear,Ctrl
TriggerAll=Ctrl||stateno=100
Trigger1 = var(59)<6
Trigger1 = Random<=var(59)*40
Trigger2 = var(59)=[6,10]
Trigger2 = Random<=(10-var(59))*40

[State -3,傇偭傁]
Type = ChangeState
value = 1020
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=StateType != A
TriggerAll=power >= 500
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=EnemyNear,MoveType=A||EnemyNear,Ctrl
TriggerAll=Ctrl||stateno=100
Trigger1 = var(59)<6
Trigger1 = Random<=var(59)*50
Trigger2 = var(59)=[6,10]
Trigger2 = Random<=(10-var(59))*50

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;抧忋堏摦 
;Ctrl Random P2bodyDist X
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,僟僢僔儏]
Type = ChangeState
Value = 257
triggerall = alive
triggerall = roundstate=2
Triggerall = var(58) != 0
Triggerall = StateType != A
Triggerall = EnemyNear,StateType != L
Triggerall = Ctrl || stateno=100
triggerall = Random <= var(59)*30||var(59)=10
Triggerall = P2BodyDist X >= 80
Trigger1 = EnemyNear,HitDefAttr=SCA,AA,AP
trigger2 = EnemyNear,Numproj != 0

;旘傃崬傒
[State -1, Run Fwd]
type = ChangeState
value = 41
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = random <= var(59) *  7
triggerall = statetype = S
triggerall = p2bodydist X = [80, 120]
Triggerall = !inguarddist
trigger1 = ctrl || stateno = 100

[State -3,僟僢僔儏]
Type = ChangeState
Value = 100
triggerall = alive
triggerall = roundstate = 2
Triggerall = var(58) != 0
Triggerall = StateType != A
Triggerall = EnemyNear,StateType != L
Triggerall = EnemyNear,MoveType = H
Triggerall = EnemyNear,StateType = A
Triggerall = !inguarddist
Triggerall = Ctrl
trigger1 = Random <= var(59)*65
Trigger1 = P2BodyDist X >= 20
Trigger1 = Prevstateno = 1020

[State -3,僟僢僔儏]
Type = ChangeState
Value = 100
triggerall = alive
triggerall = roundstate = 2
Triggerall = var(58) != 0
Triggerall = StateType != A
Triggerall = EnemyNear,StateType != L
Triggerall = EnemyNear,MoveType = I
Triggerall = !inguarddist
Triggerall = Ctrl
trigger1 = Random <= var(59)*20
Trigger1 = P2BodyDist X >= 80

[State -3,兽矫遌
Type = ChangeState
Value = 105
triggerall = alive
triggerall = roundstate = 2
Triggerall = var(58) != 0
Triggerall = StateType != A
Triggerall = EnemyNear,StateType != L
Triggerall = EnemyNear,MoveType != H
Triggerall = EnemyNear,Stateno != [120,159]
Triggerall = Ctrl
Triggerall = backedgebodydist > 62
Trigger1 = P2BodyDist X <= 140
Trigger1 = stateno != 900
Trigger1 = Prevstateno != 100
trigger1 = Random <= var(59)*20

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;抧忋棫偪夞傝媄怳傝 
;Ctrl Random EnemyNear,Movetype = I丂inguarddist  P2bodyDist Y P2bodyDist X
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,搳偘]
Type = ChangeState
value = ifelse(var(57)=1,1655,1650)
triggerall = var(59) >= 10
triggerall = alive
triggerall = roundstate = 2
TriggerAll = var(58) != 0
TriggerAll = StateType != A
TriggerAll = EnemyNear,StateType != L
TriggerAll = EnemyNear,MoveType != H
TriggerAll = Ctrl
Triggerall = P2BodyDist X = [-5,15]
TriggerAll = P2BodyDist Y>=0
Trigger1 = Random <= var(59)*45
Trigger2 = (EnemyNear,StateNo=[120,159])
trigger3 = stateno = 1457
trigger3 = random % 4
trigger3 = var(59) >= 7


[State -3,搳偘]
Type = ChangeState
value = 800
Triggerall = var(59) < 10
triggerall = alive
triggerall = roundstate = 2
Triggerall = var(58) != 0
Triggerall = StateType != A
Triggerall = EnemyNear,StateType != L
Triggerall = EnemyNear,MoveType != H
Triggerall = Ctrl
Triggerall = P2BodyDist X = [-5,15]
Triggerall = P2BodyDist Y >= 0
Trigger1 = Random <= var(59)*20
Trigger2 = (EnemyNear,StateNo=[120,159]) && (random % 4)

[State -1,嫮僇儞僼乕僯乕]
Type = ChangeState
triggerall = alive
triggerall = roundstate=2
TriggerAll = var(58) != 0
TriggerAll = StateType != A
TriggerAll = EnemyNear,StateType != L
TriggerAll = EnemyNear,MoveType != H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[-15,30]
TriggerAll = P2BodyDist Y>-60
TriggerAll = EnemyNear,StateType=S
TriggerAll = Ctrl||stateno=100
TriggerAll = var(55)=[9,10]
Trigger1 = Random <= var(59)*50
Value    = 1060

[State -1,庛僇儞僼乕僯乕]
Type = ChangeState
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[-15,30]
TriggerAll=P2BodyDist Y>-60
TriggerAll=EnemyNear,StateType=S
TriggerAll=Ctrl||stateno=100
Trigger1 = Random <= var(59)*50
Value = 1050

[State -3,孅庛p]
Type = ChangeState
value = 430
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[0,38]
TriggerAll=EnemyNear,StateType=S
TriggerAll=Ctrl||stateno=100
Trigger1=Random <= var(59)*70

[State -3,孅庛倠]
Type = ChangeState
value = 430
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[0,42]
TriggerAll=EnemyNear,StateType=S
TriggerAll=Ctrl||stateno=100
Trigger1 = Random <= var(59)*70

[State -3,庛p]
Type = ChangeState
value = 200
triggerall = alive
triggerall = roundstate=2
TriggerAll = var(58) != 0
TriggerAll = StateType != A
TriggerAll = EnemyNear,StateType != L
TriggerAll = EnemyNear,MoveType != H
TriggerAll = !InGuardDist
TriggerAll = P2BodyDist X=[0,40]
TriggerAll = P2BodyDist Y>=-70
TriggerAll = EnemyNear,StateType=S||EnemyNear,StateType=A
TriggerAll = Ctrl||stateno=100
Trigger1 = Random <= var(59)*70

[State -3,庛k]
Type = ChangeState
value = 200
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[0,53]
TriggerAll=EnemyNear,StateType=S
TriggerAll=Ctrl||stateno=100
Trigger1 = Random <= var(59)*70

;懳嬻偺僇儞僼乕丒僂僢僷乕乮庛
[State -3]
type = ChangeState
triggerall = var(57) >= 1
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = random <= var(59) * 50
triggerall = StateType != A 
triggerall = ctrl
triggerall = p2statetype = A
triggerall = enemynear,Pos Y > -70
triggerall = enemynear, Numproj = 0
trigger1 = p2movetype != H
trigger1 = p2bodydist X = [5,30]
value = 1340

;懳嬻偺僇儞僼乕丒僂僢僷乕乮庛
[State 215, 5]
type = ChangeState
triggerall = var(57) >= 1
triggerall = alive
triggerall = roundstate = 2
triggerall = var(58) != 0
triggerall = var(59) >= 10
triggerall = statetype != A
triggerall = random <= 550
triggerall = p2bodydist X <= 30
triggerall = p2statetype = A
triggerall = p2stateno != 1355 && movetype != H
triggerall = p2stateno != 1357 && movetype != H
triggerall = p2stateno != 5050
triggerall = p2stateno != 5060
triggerall = p2stateno != 5120
triggerall = p2stateno != 5110
trigger1 = ctrl
value = ifelse(random<500,1340,1341)

;懳嬻偺僇儞僼乕丒僂僢僷乕乮嫮
[State -3]
type = ChangeState
triggerall = var(57) >= 1
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = StateType != A 
triggerall = ctrl
triggerall = p2statetype = A
triggerall = enemynear,Pos Y > -70
triggerall = enemynear, Numproj = 0
trigger1 = p2bodydist X = [5,30]
trigger1 = random <= var(59) * 70 || (var(10) = 1 && random <= var(59) * 80)
value = 1341

;偟傖偑傒嫮僷儞僠
[State -3]
type = ChangeState
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = StateType != A 
triggerall = p2bodydist X = [2, 20]
triggerall = random <= var(59)*80
triggerall = p2statetype != C
trigger1 = (stateno = 400) || (stateno = 430)
trigger1 = movecontact && time > 5
value = 410

;嫮僷儞僠
[State -3]
type = ChangeState
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) != 0
triggerall = StateType != A 
triggerall = enemynear,Pos Y > -40
trigger1 = random <= var(59) * 5
trigger1 = ctrl = 1
trigger1 = (p2statetype = S) || (p2statetype = A)
trigger1 = p2bodydist X = [18, 30]
trigger2 = p2bodydist X = [15, 40]
trigger2 = p2StateType != A 
trigger2 = (stateno = 200) && time > 5 && MoveContact && random <= var(59)*80
trigger3 = p2bodydist X = [15, 40]
trigger3 = p2StateType != A 
trigger3 = (stateno = 230) && time > 6 && MoveContact && random <= var(59)* 5
trigger4 = p2bodydist X = [5, 25]
trigger4 = p2StateType = A 
trigger4 = (stateno = 200) && time > 5 && MoveContact && random <= var(59)*80
value = 210

;嫮僉僢僋
[State -3]
type = ChangeState
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) !=0
triggerall = StateType != A 
triggerall = enemynear,Pos Y > -30
trigger1 = random <= var(59) * 5
trigger1 = ctrl = 1
trigger1 = (p2statetype = S) || (p2statetype = C) || (p2statetype = A)
trigger1 = p2bodydist X = [18, 40]
trigger2 = p2bodydist X > 15
trigger2 = (stateno = 200) && time > 5 && MoveContact
trigger3 = p2bodydist X > 0
trigger3 = random <= var(59) *  100
trigger3 = (stateno = 230) && time > 6 && MoveContact
value = 240

;偟傖偑傒嫮僉僢僋
[State -3]
type = ChangeState
triggerall = alive
triggerall = roundstate=2
triggerall = var(58) !=0
triggerall = StateType != A 
trigger1 = p2bodydist X = [18, 35]
trigger1 = random <= var(59) * 5
trigger1 = ctrl = 1
trigger1 = p2statetype = S
trigger2 = p2bodydist X = [20, 33]
trigger2 = random <= var(59) *100
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = movecontact && time > 5
value = 440

[State -3,]
Type = ChangeState
value = 210
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[50,60]
TriggerAll=P2BodyDist Y >= -50
TriggerAll=Ctrl||stateno=100
TriggerAll=(EnemyNear,StateNo != [120,159])||EnemyNear,StateType=A
Trigger1 = Random <= var(59)*80

[State -3,尅惂]
Type = ChangeState
value = 1000
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X = [50,67]
TriggerAll=P2BodyDist Y >= -66
TriggerAll=(EnemyNear,StateNo != [120,159])||EnemyNear,StateType=A
TriggerAll=Ctrl||stateno=100
Trigger1 = Random <= var(59)*70

[State -1,嫮僇儞僼乕僉僢僋]
Type = ChangeState
value = ifelse(power>=500&&random%4,1545,1542)
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=var(57) >= 1
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[70,140]
TriggerAll=P2BodyDist Y >= -50
TriggerAll=Ctrl||stateno=100
TriggerAll=(EnemyNear,StateNo != [120,159])||EnemyNear,StateType=A
Trigger1 = Random <= var(59)*50

[State -1,嫮僇儞僼乕僉僢僋]
Type = ChangeState
value = ifelse(power>=500&&random%4,1502,1500)
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=var(57) != 1
TriggerAll=StateType != A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=!InGuardDist
TriggerAll=P2BodyDist X=[0,33]
TriggerAll=P2BodyDist Y >= -15
TriggerAll=Ctrl||stateno=100
TriggerAll=(EnemyNear,StateNo != [120,159])||EnemyNear,StateType=A
Trigger1 = Random <= var(59)*50
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;嬻拞堏摦 
;Ctrl Random P2bodyDist X
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;嬻拞棫偪夞傝媄怳傝 
;Ctrl Random EnemyNear,Movetype = I inguarddist P2bodyDist Y P2bodyDist X
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3,嬻拞]
Type = ChangeState
value = 1530
triggerall= var(57) >= 1
TriggerAll= var(58) != 0
triggerall= alive
triggerall= roundstate=2
TriggerAll= var(59) > 5
TriggerAll= StateType=A
TriggerAll= EnemyNear,StateType != L
TriggerAll= EnemyNear,MoveType != H
TriggerAll= EnemyNear,MoveType != A
TriggerAll= !InGuardDist
TriggerAll= (atan((p2dist x-(p2dist x=0))/(p2dist y-(p2dist y=0)))*180/pi)-((p2dist y>0)-(p2dist y<=0))*90=[-40,-20]
triggerall= EnemyNear,Numproj = 0
TriggerAll= StateNo=50
TriggerAll= var(55)=[1,5]
Trigger1 = Random <= var(59)*45

[State -3,嬻拞]
Type = ChangeState
value = 1532
triggerall=var(57)>=1
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=var(59) > 5
TriggerAll=StateType=A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=EnemyNear,MoveType != A
TriggerAll=!InGuardDist
TriggerAll=(atan((p2dist x-(p2dist x=0))/(p2dist y-(p2dist y=0)))*180/pi)-((p2dist y>0)-(p2dist y<=0))*90=[-40,-20]
triggerall=EnemyNear,Numproj = 0
TriggerAll=StateNo=50
TriggerAll=var(55)=[6,10]
Trigger1 = Random <= var(59)*45

[State -3,嬻拞]
Type = ChangeState
value = 630
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=StateType=A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=(P2BodyDist X=[0,30])
TriggerAll=(P2BodyDist Y=[-4,13])
TriggerAll=StateNo=50
TriggerAll=var(59)=[6,10]
Trigger1=Random <= var(59)*100

[State -3,嬻拞]
Type = ChangeState
value = 600
triggerall=alive
triggerall=roundstate=2
TriggerAll=var(58) != 0
TriggerAll=StateType=A
TriggerAll=EnemyNear,StateType != L
TriggerAll=EnemyNear,MoveType != H
TriggerAll=(P2BodyDist X=[0,44])
TriggerAll=(P2BodyDist Y=[-20,-4])
TriggerAll=StateNo=50
TriggerAll=var(59)=[1,5]
Trigger1 = Random <= var(59)*100

; Finally some non-AI stuff

[State 0, ]
type = ChangeState
trigger1 = ctrl = 1
trigger1 = statetype != A
trigger1 = screenpos x != [-10,330]
value = 229
ignorehitpause = 1

[State 0, ]
type = ScreenBound
trigger1 = p2stateno = [225,229]
value = 0
ignorehitpause = 1

[State 0, ]
type = PlaySnd
trigger1 = movetype = H
trigger1 = alive
trigger1 = time = 1
trigger1 = stateno = 5000 || stateno = 5010 || stateno = 5030 || stateno = 5040
trigger1 = random < 500
value = S5000,0+(random%4)
channel = 0
freqmul = 0.85
volume = 255

[State 0, ]
type = PlaySnd
trigger1 = alive
trigger1 = time = 1
trigger1 = stateno = 5100
trigger1 = random < 500
value = S5100,0+(random%2)
channel = 0

[State 0, ]
type = AssertSpecial
trigger1 = numexplod(1999) = 1
flag = nobardisplay
flag2 = intro
ignorehitpause = 1

[State 0, ]
type = AssertSpecial
trigger1 = numexplod(19999) = 1
flag = nobardisplay
flag2 = intro
flag3 = nomusic
ignorehitpause = 1

[State 0, ]
type = VarAdd
trigger1 = stateno != [120,169]
trigger1 = gethitvar(damage)
trigger1 = palno < 12
trigger1 = var(38) = 0
v = 20
value = gethitvar(damage)

[State 0, ]
type = VarAdd
trigger1 = timemod = 6,2
v = 20
value = -1

[State -3, Landing Sound]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 52 ;Jump land
trigger2 = stateno = 106 ;Run-back land
value = 40, 0

[State 0, ]
type = ChangeState
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = var(20) >= 500
trigger1 = palno < 12
trigger2 = var(38) = 0
value = 5300