Thurler

Touhou Labyrinth 2 Plus Disk Boss AI

Jul 25th, 2020 (edited)
385
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > Shadow Kasen
  2. --------------
  3.  
  4. Every 5 turns:
  5. Breath of the Hermit (Self)
  6. Let H be the remaining HP %
  7. Use a regular spell with chance (H-10)%:
  8. 34% chance Instant Death Attack (A)
  9. 33% chance Attack (A)
  10. 33% chance Poison (A)
  11. Otherwise:
  12. 55% chance Echo of the Nine Forest Gods (A)
  13. 23% chance Diving Waltz of the Raijuu (A)
  14. 22% chance Higekiri's Cursed Arm (A)
  15.  
  16. e.g. at full HP has only 10% chance to use personal spell, half HP has 60%, 10% HP onwards has 100%
  17.  
  18. > Shadow Suika
  19. --------------
  20.  
  21. Once, when HP < 66%:
  22. Throwing Atlas (D)
  23. Once, when HP < 33%:
  24. Throwing Atlas (D)
  25. Let H be the remaining HP %
  26. Use a regular spell with chance (H-25)%:
  27. 34% chance Paralyzing Fog (A)
  28. 33% chance Attack (A)
  29. 33% chance Row Attack (A)
  30. Otherwise:
  31. 40% chance Art of Segaki Binding (A)
  32. 30% chance Throwing Mt.Togakushi (D)
  33. 30% chance Gathering and Dissipating (A)
  34.  
  35. e.g. at full HP has 25% chance to use personal spell, half HP has 75%, 25% HP onwards has 100%
  36.  
  37. > Shadow Yuugi
  38. --------------
  39.  
  40. Every turn:
  41. Knockout in Three Steps (A)
  42.  
  43. > Shadow Kogasa
  44. ---------------
  45.  
  46. If any ally is afflicted with TRR:
  47. Terror Eater (A)
  48. Otherwise:
  49. 36% chance Karakasa Surprising Flash (A)
  50. 18% chance A Rainy Night's Ghost Story (D)
  51. 18% chance Drizzling Large Raindrops (A)
  52. 10% chance Terrifying Wave (A) (Lv.5)
  53. 9% chance Void Flash Claw (A) (Lv.6)
  54. 9% chance Dividing Slash (A) (Lv.10)
  55.  
  56. Note: Terrifying Wave being Lv.5 increases TRR duration from usual 10000 to 30000
  57.  
  58. > Shadow Hina
  59. -------------
  60.  
  61. If Hina has any debuffs on her:
  62. 50% chance Curse Reversal (Self)
  63. If Hina is afflicted with HVY, SIL or TRR:
  64. Spinning Around More Than Usual (Self)
  65. If turn is even:
  66. Misfortune God's Biorhythm (A) (Affects enemies as well)
  67. Otherwise:
  68. 34% chance Piercing Light (A)
  69. 33% chance Old Lady Ohgane's Fire (A)
  70. 33% chance Magical Light (A)
  71.  
  72. > Shadow Parsee
  73. ---------------
  74.  
  75. 20% chance Grudge Returning (A)
  76. 20% chance Jealousy of Kind and Lovely (A)
  77. 12% chance Attack (A)
  78. 12% chance Destroy Magic (A)
  79. 12% chance Black Universe (A)
  80. 12% chance Dividing Slash (A)
  81. 12% chance Midnight Anathema Ritual (A)
  82.  
  83. > Shadow Alice
  84. --------------
  85.  
  86. If this is the first turn:
  87. Resummon Doll (Self) (Lv.2)
  88. Once, when HP < 75%:
  89. Trip Wire (A)
  90. Once, when HP < 60%:
  91. Little Legion (A)
  92. Once, when HP < 30%:
  93. Trip Wire (A)
  94. If there are no dolls remaining:
  95. 80% chance Resummon Doll (Self) (Lv.2)
  96. If there is 1 doll remaining:
  97. 60% chance Resummon Doll (Self) (Lv.2)
  98. If there are 2 dolls remaining:
  99. 40% chance Resummon Doll (Self) (Lv.2)
  100. If there are 3 dolls remaining:
  101. 20% chance Resummon Doll (Self) (Lv.2)
  102. If current HP >= 40% max HP:
  103. 20% chance Red Arrow (B)
  104. 20% chance Magical Light (B)
  105. 20% chance Artful Sacrifice (D)
  106. 14% chance Hanged Hourai Dolls (A)
  107. 13% chance Spark Storm (A)
  108. 13% chance Red Curse (A)
  109. Otherwise:
  110. 35% chance Artful Sacrifice (D)
  111. 20% chance Little Legion (A)
  112. 15% chance Hanged Hourai Dolls (A)
  113. 10% chance Red Arrow (B)
  114. 10% chance Piercing Light (A)
  115. 5% chance Red Curse (A)
  116. 5% chance Spark Storm (A)
  117.  
  118. > Shadow Keine
  119. --------------
  120.  
  121. If turn is odd and Mokou is alive:
  122. With Mokou (Self)
  123. If turn is odd and Mokou is dead:
  124. Were-Hakutaku's Rage (Self)
  125. If turn is a multiple of 6:
  126. 50% chance Three Treasures - Sword (All enemies)
  127. 50% chance Three Treasures - Mirror (All enemies)
  128. If Mokou is alive:
  129. 25% chance New History -Next History- (A)
  130. 25% chance Ancient History -Old History- (A)
  131. 13% chance Gravity Manipulation (A)
  132. 13% chance Light Arrow (A)
  133. 12% chance Dark Arrow (A)
  134. 12% chance Half Moon Slash (A)
  135. Otherwise:
  136. 15% chance New History -Next History- (A)
  137. 15% chance Ancient History -Old History- (A)
  138. 10% chance Row Attack (A)
  139. 10% chance Great Roar (A)
  140. 10% chance Dividing Slash (A)
  141. 10% chance Instant Death Attack (A)
  142. 8% chance Gravity Manipulation (A)
  143. 8% chance Light Arrow (A)
  144. 7% chance Dark Arrow (A)
  145. 7% chance Half Moon Slash (A)
  146.  
  147. Note: With Mokou is a self targetting spell that buffs ATK by 12%
  148. Note: Were-Hakutaku's Rage is a self targetting spell that buffs all stats by (10+3*(SLv-1))%
  149.  
  150. > Shadow Mokou
  151. --------------
  152.  
  153. If turn is odd and Keine is alive:
  154. All-Regeneration (All enemies) (Lv.5)
  155. If turn is odd and Keine is dead:
  156. Regeneration (Self) (Lv.12)
  157. If this is the second turn:
  158. Fujiyama Volcano (A)
  159. If [local_c + 0x2e8] flag is set:
  160. Fujiyama Volcano (A)
  161. Otherwise:
  162. 35% chance Fire Bird -Flying Phoenix- (D)
  163. 25% chance Tsuki no Iwakasa's Curse (A)
  164. 8% chance Attack (A)
  165. 8% chance Row Attack (A)
  166. 8% chance Daze (A)
  167. 8% chance Azure Arrow (A)
  168. 8% chance Spark Storm (B)
  169.  
  170. Note/Bug(?): The [local_c + 0x2e8] flag is not set anywhere, I assume this would be set either when Mokou or Keine dies, so that she spams Fujiyama Volcano afterwards. Maybe she resurrected in an earlier version of this fight and that was cut off for balancing reasons? Or maybe 3peso just forgot to set the flag on Keine's death? Hard to know, but the fact is that that flag is not set anywhere.
  171.  
  172. Note/Visual Bug: All-Regeneration regens 5% HP for both Mokou and Keine, but Keine's heal amount is not displayed
  173.  
  174. > Mamizou Futatsuiwa
  175. --------------------
  176.  
  177. Every turn:
  178. Decrease count_pompokolin by 1
  179. Decrease count_transform by 1
  180. If HP < 84% and count_pompokolin <= 0:
  181. Full Moon Pompokolin (A)
  182. Also swaps DEF and MND values
  183. Then sets count_pompokolin to 5
  184. If HP < 70% and count_transform <= 0:
  185. 10 Transformations Danmaku (A)
  186. Also sets all affinities (except VOI) to 150
  187. Then sets a random affinity (excludes VOI) to 60
  188. Then sets count_transform to 8
  189. Let H be the remaining HP %
  190. Follow the regular script with chance (H+20)%:
  191. 15% chance Destroy Magic (A)
  192. 15% chance Grass Knot (A)
  193. 15% chance Razor Wind (A)
  194. 15% chance Leaf Cutting Dance (A)
  195. 10% chance Green Arrow (A)
  196. 10% chance Futatsuiwa Clan's Curse (A)
  197. 10% chance Frolicking Animals Scrolls (A)
  198. 10% chance Healing Power (Self) (Lv.10)
  199. Otherwise, force a personal spell:
  200. 50% chance Futatsuiwa Clan's Curse (A)
  201. 50% chance Frolicking Animals Scrolls (A)
  202.  
  203. Note: If she heals herself over the Pompokolin threshold, she will not use that spell again until you damage her back below the threshold, no matter the counter's value. The same goes for the Transformations threshold
  204.  
  205. e.g. At 50% HP, has a 30% chance to force a personal spell, 1 HP has 80% chance
  206.  
  207. > Shadow Youmu
  208. --------------
  209.  
  210. Every turn:
  211. Set own's PAR and SHK resistance to 80
  212. If turn is a multiple of 11:
  213. Concentrate (Self)
  214. If used Concentrate last turn:
  215. God's Slash of Karma Wind (A)
  216. If Youmu is dead and turn is a multiple of 5:
  217. Slash Clearing the 6 Senses (A)
  218. If Youmu used Concentrate on her last turn:
  219. Loyal? Gardener's Support (Self) (Lv.33)
  220. If current HP >= 40% max HP:
  221. 50% chance Attack (A)
  222. 40% chance Present Life Slash (A)
  223. 10% chance Slash of Eternity (A)
  224. Otherwise:
  225. 42% chance Present Life Slash (A)
  226. 33% chance Attack (A)
  227. 25% chance Slash of Eternity (A)
  228.  
  229. Note/Bug: Youmu should check if Yuyuko is dead so she can use Slash Clearing the 6 Senses every 5 turns, but instead checks if herself is dead, making that condition impossible to trigger. The root of this bug is the instruction IMUL EAX, EDX, 0F (in hex: 6B C2 0F) in her AI, which computes the memory offset to use when checking if someone is dead. Since Youmu occupies slot 15 and Yuyuko slot 16, the instruction should have a 10 instead of a 0F. The same thing happens with the condition to use Loyal? Gardener's Support, Youmu is supposed to buff all her stats by 33% while Yuyuko Concentrates to fire Saigyouji Flawless Nirvana, so she can then destroy whoever survived that with buffed attacks. However, this ends up being impossible to trigger since Youmu checks for her own Concentrate flag, and that gets used by God's Slash of Karma Wind.
  230.  
  231. Note: Loyal? Gardener's Support is a self targetting spell that buffs all stats by (SLv)%
  232.  
  233. > Shadow Yuyuko
  234. ---------------
  235.  
  236. If used Concentrate last turn:
  237. Saigyouji Flawless Nirvana (A)
  238. If [empty slot] is alive:
  239. 25% chance Slack Off (All Enemies) (Lv.64)
  240. 15% chance Ghostly Dream's Butterfly (A) (Lv.18)
  241. 15% chance Destroy Magic (A)
  242. 15% chance Concentrate (Self)
  243. This also changes [empty slot]'s PAR and SHK resistance to 50 (Youmu's would be lowered from 80 to 50)
  244. 10% chance Allure of Death (A)
  245. 10% chance Deadly Swallowtail Lance (A)
  246. 10% chance Ghastly Dream (A)
  247. Otherwise:
  248. 40% chance Ghostly Dream's Butterfly (A) (Lv.30)
  249. 20% chance Calming Scent (A)
  250. 10% chance Deadly Swallowtail Lance (A)
  251. 10% chance Ghastly Dream (A) (Lv.8)
  252. 10% chance Concentrate (Self)
  253. 5% chance Storm of Dark Flow (A)
  254. 5% chance Destroy Magic (A)
  255.  
  256. Note: Yuyuko's Ghostly Dream's Butterfly being Lv.18/30 makes it have a 118/166% DTH chance
  257. Note: Yuyuko's Ghastly Dream being Lv.8 makes it have a 102% DTH chance
  258.  
  259. Note/Bug: Yuyuko should check if Youmu is alive to know which pattern to use, but similar to Youmu, she looks for her in the wrong enemy slot. Yuyuko assumes Youmu is in slot 13, but she is actually in slot 15. Since that slot is already empty when the fight starts, Yuyuko starts with her "Youmu is dead" pattern. The root and fix to this is exactly the same as described in Youmu's AI, only the instruction will use 0D instead of 0F.
  260.  
  261. Note: Slack Off restores around 410k to Youmu and Yuyuko, possibly explaining why Youmu has much, much lower HP than the usual Shadow bosses in these floors.
  262.  
  263. > Shadow Nazrin
  264. ---------------
  265.  
  266. If Byakuren is dead, Shou is alive and did not use Bishamonten Tag last turn:
  267. Bishamonten Tag (Self) (Lv.20)
  268. If turn is a multiple of 3:
  269. Gravity Accel (E) (Lv.50)
  270. Otherwise:
  271. 34% chance Nazrin Pendulum (A)
  272. 33% chance Gold Rush (A)
  273. 33% chance Rare Metal Detector (A)
  274.  
  275. Note: Bishamonten Tag is a self targetting spell that buffs SPD by (SLv)%
  276. Note: Gravity Accel is a self targetting spell that buffs SPD by (SLv)%
  277.  
  278. > Shadow Shou
  279. -------------
  280.  
  281. If Byakuren is dead, Nazrin is alive and flag_tag is 1:
  282. Bishamonten Tag (Self) (Lv.20)
  283. Also sets the flag_tag to 0
  284. If either Byakuren or Nazrin are dead, and flag_wrath is 1:
  285. Bishamonten's Wrath (Self)
  286. Also permanently raises ATK by 5% per dead ally
  287. Also sets the flag_wrath to 0
  288. Otherwise:
  289. Set both flag_tag and flag_wrath to 1
  290. 20% chance Row Attack (A)
  291. 20% chance Hungry Tiger (A)
  292. 20% chance Radiant Treasure Gun (A)
  293. 20% chance Dazzling Gold (A)
  294. 20% chance Aura of Justice (All Enemies) (Lv.5)
  295.  
  296. Note: Shou's Aura of Justice does not consume the Bishamonten's Wrath counter
  297.  
  298. > Shadow Byakuren
  299. -----------------
  300.  
  301. If turn is odd:
  302. Sutra - Birth of a Superhuman (Self) (Lv.16)
  303. If Byakuren's buffs add up to more than 100%:
  304. If Nazrin's buffs add up to less than half of Byakuren's sum:
  305. Sutra - Duplicating Chant (Nazrin) (Lv.16)
  306. If Shou's buffs add up to less than half of Byakuren's sum:
  307. Sutra - Duplicating Chant (Shou) (Lv.16)
  308. Otherwise:
  309. 30% chance Light Arrow (A)
  310. 18% chance Master of the Great Trichiliocosm (A)
  311. 18% chance Star Sword Apologetics (A)
  312. 17% chance Skanda's Legs (A)
  313. 17% chance Magic Milky Way (A)
  314.  
  315. Note: Sutra - Birth of a Superhuman is a self targetting spell that buffs all stats by (SLv)%
  316. Note: Byakuren's Duplicating Chant being Lv.16 effectively makes it so that the skill adds 100% of Byakuren's buffs to the target's buffs, making it even more broken than the original disc's version, which copied Byakuren's buffs over the target's.
  317.  
  318. > Mononobe no Futo (first fight)
  319. --------------------------------
  320.  
  321. If turn is a multiple of 8:
  322. Spirit Mausoleum Desires (Self) (Lv = Cup Count + 1)
  323. Otherwise:
  324. 16% chance Attack (A)
  325. 12% chance Mononobe's Eighty Sake Cups (A)
  326. 12% chance Catastrophic Gate Opening (A)
  327. 12% chance Miwa Plate Storm (A)
  328. 12% chance Taiyi True Fire (A)
  329. 10% chance Daze (A)
  330. 8% chance 1000 Needles (A)
  331. 8% chance Yakumo's Futsu no Mitama no Tsurugi (D)
  332. 6% chance Shredder (A)
  333. 4% chance Activate Life Energy (Self) (Lv.61)
  334.  
  335. Note: Activating Life Energy heals all enemies by (400% ATK + 400% MAG)
  336. Note: Spirit Mausoleum Desires heals Futo for (Lv*4)% of her max HP, and buffs all stats by (Lv*10)%
  337.  
  338. > Mononobe no Futo (second fight)
  339. ---------------------------------
  340.  
  341. If turn is a multiple of 8:
  342. Spirit Mausoleum Desires (Self) (Lv = Cup Count + 1)
  343. Once, when HP < 60%:
  344. Maximum Dish Charge (Self)
  345. Once, when HP < 12%:
  346. Maximum Dish Charge (Self)
  347. Let H be the remaining HP %
  348. Follow the old script with H% chance:
  349. 16% chance Attack (A)
  350. 12% chance Mononobe's Eighty Sake Cups (A)
  351. 12% chance Catastrophic Gate Opening (A)
  352. 12% chance Miwa Plate Storm (A)
  353. 12% chance Taiyi True Fire (A)
  354. 10% chance Daze (A)
  355. 8% chance 1000 Needles (A)
  356. 8% chance Yakumo's Futsu no Mitama no Tsurugi (D)
  357. 6% chance Shredder (A)
  358. 4% chance Activate Life Energy (Self) (Lv.61)
  359. Otherwise, force a personal/strong spell:
  360. 24% chance Mononobe's Eighty Sake Cups (A)
  361. 24% chance Catastrophic Gate Opening (A)
  362. 24% chance Miwa Plate Storm (A)
  363. 14% chance Taiyi True Fire (A)
  364. 14% chance Yakumo's Futsu no Mitama no Tsurugi (D)
  365.  
  366. e.g. At full HP, has a 0% chance to force a strong spell, 70% HP has 30% chance
  367.  
  368. > Shadow Cirno
  369. --------------
  370.  
  371. If any ally is dead and did not use Shadow Team (9) last turn:
  372. Shadow Team (9) (Self) (Lv. no. of dead allies)
  373. Otherwise:
  374. 20% chance Azure Arrow (A)
  375. 20% chance Icicle Fall (A)
  376. 15% chance Diamond Blizzard (A)
  377. 15% chance Perfect Freeze (A)
  378. 10% chance White Album (Self)
  379. 10% chance Blizzard (A)
  380. 10% chance Heavy Fog (A)
  381.  
  382. Note: Shadow Team (9) buffs all stats by (Lv*20)%
  383.  
  384. > Shadow Mystia
  385. ---------------
  386.  
  387. If any ally is dead and did not use Shadow Team (9) last turn:
  388. Shadow Team (9) (Self) (Lv. no. of dead allies)
  389. Otherwise:
  390. 40% chance Attack (D)
  391. 40% chance Ill-Starred Dive (D)
  392. 20% chance Midnight Chorus Master (A)
  393.  
  394. > Shadow Rumia
  395. --------------
  396.  
  397. If any ally is dead and did not use Shadow Team (9) last turn:
  398. Shadow Team (9) (Self) (Lv. no. of dead allies)
  399. If Rumia's debuffs add up to 50% or more:
  400. Demarcation (All enemies)
  401. Otherwise:
  402. 30% chance Moonlight Ray (A)
  403. 30% chance Dark Side of the Moon (A)
  404. 20% chance Storm of Dark Flow (A)
  405. 20% chance Purple Curse (A)
  406.  
  407. > Shadow Wriggle
  408. ----------------
  409.  
  410. If any ally is dead and did not use Shadow Team (9) last turn:
  411. Shadow Team (9) (Self) (Lv. no. of dead allies)
  412. Otherwise:
  413. 25% chance Poison (A)
  414. 25% chance Comet on Earth (A)
  415. 25% chance Firefly Phenomenon (A)
  416. 25% chance Nightbug Tornado (A)
  417.  
  418. > Shadow Nitori
  419. ---------------
  420.  
  421. Fixed pattern (5 turns):
  422. If loop count is odd:
  423. 1-2: Kappa's Illusion Waterfall (A)
  424. If loop count is even:
  425. 1-2: Exteeeending Aaaaarm (A)
  426. 3: Portable Versatile Machine (Self) (Lv.35)
  427. 4: Concentrate (Self)
  428. 5: Super Scope 3D (D) (Lv.21)
  429.  
  430. Note: Nitori's Portable Versatile Machine being Lv.35 makes it a 50% all stats buff
  431.  
  432. > Shadow Aya
  433. ------------
  434.  
  435. If turn is a multiple of 3:
  436. Sarutahiko's Guidance (E) (Lv.21)
  437. Otherwise:
  438. 20% chance Attack (A)
  439. 20% chance Slash Dive (A)
  440. 20% chance Razor Wind (A)
  441. 20% chance Wind God's Fan (A)
  442. 20% chance Peerless Wind God (A)
  443.  
  444. Note: Aya's Sarutahiko's Guidance being Lv.21 makes it a 100% SPD buff
  445.  
  446. > Shadow Momiji
  447. ---------------
  448.  
  449. Fixed pattern (10 turns):
  450. 1: Rabies Bite (A)
  451. 2: Establish Stance (Self)
  452. 3-10: Shield Bash (A) (Lv.3)
  453.  
  454. Note: Momiji's Establish Stance buffs her DEF and MND to 100%
  455.  
  456. > Grandgon
  457. ----------
  458.  
  459. 44% chance Earthquake (A)
  460. 20% chance Roar Shockwave (A) (Lv.30)
  461. 20% chance Destroy Armor (A) (Lv.50)
  462. 16% chance Rock Clash (D) (Lv.10)
  463.  
  464. Note: Roar Shockwave being Lv.30 makes it a 100% SHK and TRR(60000) chance
  465. Note: Destroy Armor being Lv.50 makes it a 130% DEF/MND 50% debuff chance
  466.  
  467. > Toyosatomimi no Miko
  468. ----------------------
  469.  
  470. If this is the first turn:
  471. Set variable var_phase = 1
  472. True Administrator - Good (Self) (Lv.14) (*)
  473. Sets Miko's DEF to 9600
  474. Sets Miko's MND to 132000
  475. Sets Miko's SPI affinity to 1000
  476. Sets Miko's DRK affinity to 50
  477. Sets Miko's PAR resistance to 90
  478. Removes all buffs, debuffs and ailments from Miko
  479. If var_phase = 1 and Miko reached zero HP:
  480. Set variable var_phase = 2
  481. True Administrator - Evil (Self) (Lv.14) (*)
  482. Revives Miko to full HP
  483. Sets Miko's DEF to 132000
  484. Sets Miko's MND to 9600
  485. Sets Miko's SPI affinity to 50
  486. Sets Miko's SPI affinity to 1000
  487. Removes all buffs, debuffs and ailments from Miko
  488. If var_phase = 2 and Miko reached zero HP:
  489. Set variable var_phase = 3
  490. True Administrator - Rivalry of Good and Evil (Self) (Lv.14) (*)
  491. Revives Miko to full HP
  492. Sets Miko's DEF to 132000
  493. Sets Miko's MND to 132000
  494. Sets Miko's SPI affinity to 150
  495. Sets Miko's SPI affinity to 150
  496. Remove all buffs, debuffs and ailments from Miko
  497.  
  498. Once, if var_phase = 3:
  499. Yamata-no-Orochi's Evil Eye (Self) (Lv.14) (*)
  500. If var_phase = 3 and both Scarlet Gold Avatars are dead:
  501. Halo of the Guse Kannon (A) (*)
  502. If var_phase = 3 and used Halo of the Guse Kannon last turn:
  503. Set variable var_phase = 4
  504. True Administrator - Compatibility of Good and Evil (Self) (Lv.14) (*)
  505. Sets Miko's PAR resistance to 30
  506. Remove all buffs, debuffs and ailments from Miko
  507.  
  508. If var_phase = 1 and did not use Tradition of Just Rewards on previous turn:
  509. Tradition of Just Rewards (Good) (Self) (Lv.12) (*)
  510. If var_phase = 2 and did not use Tradition of Just Rewards on previous turn:
  511. Tradition of Just Rewards (Evil) (Self) (Lv.12) (*)
  512. If var_phase = 3 and either Scarlet Gold Avatar is alive:
  513. Sage of Toyosatomimi (Self) (Lv.18) (*)
  514. If var_phase = 4 and did not use Sage of Toyosatomimi on previous turn:
  515. Sage of Toyosatomimi (Self) (Lv.14) (*)
  516.  
  517. If var_phase = 1 and turn is a multiple of 4:
  518. Refresh (Self)
  519. If var_phase = 2 and turn is a multiple of 7:
  520. Karmic Retribution (A)
  521. Otherwise, if var_phase = 1:
  522. 22% chance Light Arrow (A)
  523. 12% chance Shining Arrows from the Sky (A)
  524. 11% chance Storm of Light Particle (A)
  525. 11% chance Piercing Light (A)
  526. 11% chance Half Moon Slash (A)
  527. 11% chance Destroy Magic (B)
  528. 11% chance Yellow Curse (A) (Lv.40)
  529. 11% chance Protecting Light from the Heavens (Self) (Lv.15)
  530. Otherwise, if var_phase = 2:
  531. 16% chance Roar Shockwave (A)
  532. 12% chance Attack (A)
  533. 12% chance Dividing Slash (D)
  534. 12% chance Instant Death Attack (D) (Lv.10)
  535. 12% chance Scythe of Calamity (D)
  536. 12% chance Yellow Curse (A) (Lv.40)
  537. 12% chance Gravity Manipulation (A)
  538. 12% chance Black Universe (B)
  539. Otherwise, if var_phase = 4:
  540. 9% chance Destroy Magic (A)
  541. 9% chance Yellow Curse (A) (Lv.40)
  542. 9% chance Scythe of Calamity (D)
  543. 9% chance Roar Shockwave (A)
  544. 8% chance Piercing Light (A)
  545. 8% chance Half Moon Slash (A)
  546. 8% chance Protecting Light from the Heavens (Self) (Lv.15)
  547. 8% chance Shining Arrows from the Sky (A)
  548. 8% chance Dividing Slash (D)
  549. 8% chance Instant Death Attack (D) (Lv.10)
  550. 8% chance Gravity Manipulation (A)
  551. 8% chance Black Universe (B)
  552.  
  553. Note: Karmic Retribution is a multi target (150% MAG - 75% MND) DRK spell with 3000 delay that replicates enemy's ailments and debuffs onto your party
  554. Note: Sage of Toyosatomimi is a self targetting spell that buffs all stats by (SLv)%
  555. Note: Actions marked with a (*) do NOT advance the turn counter
  556. Note: The turn counter is NOT reset between changes of var_phase
  557. Note: Miko is invincible when var_phase is set to 3
  558. Note/Bug: True Administrator - Evil changes SPI affinity to 50 as normal but then changes SPI affinity instead of DRK affinity to 1000
  559. Note/Bug: True Administrator - Rivalry of Good and Evil changes SPI affinity to 150 twice, the second time should have been the DRK affinity
  560.  
  561. > Scarlet Gold Avatar
  562. ---------------------
  563.  
  564. 20% chance Defensive Barrier (E) (Lv.40)
  565. 20% chance Activate Life Energy (All Enemies)
  566. 15% chance Red Curse (A) (Lv.20)
  567. 15% chance Purple Curse (A) (Lv.20)
  568. 15% chance Yellow Curse (A) (Lv.20)
  569. 15% chance Ancient Curse (A)
  570.  
  571. > Shadow Minoriko
  572. -----------------
  573.  
  574. 20% chance Nut Throw (A)
  575. 20% chance Silent Fog (A)
  576. 20% chance Warm Color Harvest (A)
  577. 20% chance Owotoshi Harvester (E) (Lv.11)
  578. 10% chance Sweet Potato Room (E) (Lv.120)
  579. 10% chance Autumn Sky (A)
  580.  
  581. Note: Minoriko's Owotoshi Harvester being Lv.11 makes it a 75% DEF/MND buff
  582.  
  583. > Shadow Yuuka
  584. --------------
  585.  
  586. Every turn:
  587. Increase variable var_cooldown by 1 (starts at 0)
  588. If Minoriko is dead:
  589. If used Concentrate on previous turn:
  590. Master Spark (A)
  591. Otherwise:
  592. Concentrate (Self)
  593. If Minoriko's current HP < 50% her max HP:
  594. Prayer of Recovery (Minoriko) (Lv.300)
  595. If var_cooldown < 5:
  596. 34% chance Flower Shot (A)
  597. 33% chance Attack (A)
  598. 33% chance Green Arrow (A)
  599. Otherwise:
  600. 25% chance Grass Knot (A) (Lv.7)
  601. Sets var_cooldown to 4
  602. 25% chance Pummel (A)
  603. Sets var_cooldown to 3
  604. 25% chance Gensokyo's Reflowering (A) (Lv.2)
  605. Sets var_cooldown to 2
  606. 25% chance Beauty of Nature (A) (Lv.6)
  607. Sets var_cooldown to 0
  608.  
  609. Note: Yuuka's Prayer of Recovery being Lv.300 heals Minoriko for well over half of her max HP
  610. Note: var_cooldown is incremented before the game picks an action
  611. Note: Pummel is a single target ((59 + SLv)% ATK - 50% DEF) NTR spell with 3200 delay
  612.  
  613. > Shadow Reisen
  614. ---------------
  615.  
  616. If Eirin is dead and did not use Grand Patriot's Elixir last turn:
  617. Grand Patriot's Elixir (Self)
  618. Otherwise:
  619. 40% chance Magic Arrow (A)
  620. 30% chance Discarder (A)
  621. 15% chance Mind Starmine (A)
  622. 5% chance Magic Drain (B)
  623. 5% chance Destroy Magic (B)
  624. 5% chance Gas-Woven Orb (A)
  625. 0% chance Lunatic Red Eyes (A)
  626.  
  627. Note/Bug: Reisen will never use Lunatic Red Eyes because it uses the same value as Magic Arrow in the AI script. The game generates a random value [0-99], and checks that value against each spell's value. In Reisen's case, if it is less than 30, she uses Discarder. If it is less than 70, Magic Arrow, and so on. Lunatic Red Eyes uses 70 as well, so the condition is never met. Changing Magic Arrow to 50, for example, would give each spell a 20% chance to be cast.
  628.  
  629. > Shadow Eirin
  630. --------------
  631.  
  632. If Kaguya is dead or used Concentrate last turn:
  633. Astronomical Entombing (A)
  634. If Kaguya's current HP < 50% her max HP:
  635. Hourai Elixir (Kaguya)
  636. Otherwise:
  637. 20% chance Mercury Sea (A)
  638. 20% chance Omoikane's Device (A)
  639. 18% chance Storm of Purple Magic (A)
  640. 17% chance Magic Arrow (A)
  641. 15% chance Concentrate (Self)
  642. 10% chance Magical Blast (A)
  643.  
  644. > Shadow Kaguya
  645. ---------------
  646.  
  647. If Eirin and Reisen are both dead:
  648. Bullet Branch of Hourai (A)
  649. Otherwise:
  650. 34% chance Buddha's Stone Bowl (A)
  651. 33% chance Dragon's Neck Jewel (A)
  652. 33% chance Swallow's Cowrie Shell (A)
  653.  
  654. > Shadow Komachi
  655. ----------------
  656.  
  657. If Eiki is dead:
  658. 20% chance Narrow Confines of Avici (A)
  659. 20% chance Scythe that Chooses the Dead (D) (Lv.41)
  660. 15% chance Row Attack (A)
  661. 15% chance Phantom's Coldness (A)
  662. 15% chance Short Life Expectancy (D) (Lv.51)
  663. 15% chance Ferriage in the Deep Fog (A) (Lv.41)
  664. If Eiki is alive and var_slack is 0:
  665. Slacking Off (All Enemies)
  666. Otherwise:
  667. 25% chance Pretending to Attack (B)
  668. Decrements var_slack by 1
  669. 15% chance Short Life Expectancy (D) (Lv.51)
  670. 15% chance Ferriage in the Deep Fog (A) (Lv.41)
  671. 15% chance Narrow Confines of Avici (A)
  672. 15% chance Scythe that Chooses the Dead (D) (Lv.41)
  673. 10% chance Row Attack (A)
  674. 5% chance Phantom's Coldness (A)
  675.  
  676. Note: The variable var_slack starts at 0, and only Eiki can increment it via Lady Eiki's Scolding
  677. Note: Komachi's Short Life Expectancy being Lv.51 makes it have a 115% DTH chance
  678. Note: Komachi's Ferriage in the Deep Fog being Lv.41 makes it have a 73% DTH chance
  679. Note: Komachi's Scythe that Chooses the Dead being Lv.41 makes it have a 129% DTH chance
  680. Note: Pretending to Attack is a single target (10% ATK - 50% DEF) PHY spell with 5000 delay
  681.  
  682. Note/Bug: Komachi hits herself with Pretending to Attack, despite having target mode B
  683.  
  684. > Shadow Eiki
  685. -------------
  686.  
  687. If Komachi is alive and her variable var_slack is 0:
  688. 25% chance Lady Eiki's Scolding (Komachi)
  689. Sets Komachi's var_slack = 2
  690. Otherwise:
  691. 50% chance Last Judgement (D)
  692. 20% chance Wandering Sin (A)
  693. 15% chance Trial of the Ten Kings (A)
  694. 15% chance Light Arrow (A)
  695.  
  696. Note: Komachi's variable var_slack starts at 0, and only Eiki can increment it via Lady Eiki's Scolding
  697.  
  698. > Shadow Renko
  699. --------------
  700.  
  701. If used Astronomic Observation last turn:
  702. Galaxy Stop (A)
  703. If used Concentrate last turn:
  704. Charge (All Enemies) (Lv.80)
  705. If turn is 4 more than a multiple of 5 (i.e.: 4, 9, 14, ...):
  706. 50% chance Astronomic Observation (Self)
  707. 50% chance Concentrate (Self)
  708. If Maribel is alive:
  709. 50% chance Attack (A)
  710. 50% chance First Aid (E) (Lv.301)
  711. Otherwise:
  712. 40% chance Flustered (Self)
  713. 30% chance Attack (A)
  714. 30% chance First Aid (Lv.301)
  715.  
  716. Note: Renko's Charge uses a special formula, it boosts all stats by (SLv)%
  717.  
  718. > Shadow Maribel
  719. ----------------
  720.  
  721. If Renko is dead:
  722. Let T be the number of turns since Renko's death (starts at 1)
  723. (7*T) % chance Liberated Abilities (A)
  724. Also permanently reduces DEF and MND by 10%
  725. Otherwise:
  726. 20% chance Chaotic Quadruple Barrier (A)
  727. 16% chance Dark Arrow (A)
  728. 15% chance Magical Blast (A)
  729. 15% chance Overflowing Unnatural Power (Self) (Lv.50)
  730. 15% chance Mari's DIY Novice Border (All Enemies) (Lv.66)
  731. 10% chance Time-Space Warp (A)
  732. 9% chance Storm of Dark Flow (A)
  733.  
  734. e.g. Right after Renko dies, Maribel has a 7% chance to cast Liberated Abilities, and then next turn 14%, 21%, etc.
  735.  
  736. Note: The permanent DEF/MND reduction is based on current value, so after 1 cast it will be 90% of the original values, then 81%, 72.9%, etc.
  737. Note: Maribel's Overflowing Unnatural Power uses a special formula, it boosts all stats by (SLv)%
  738. Note: Maribel's DIY Novice Border uses a special formula, it grants a (SLv)% boost and does not heal HP
  739.  
  740. > Shadow Meiling
  741. ----------------
  742.  
  743. If Flandre is alive:
  744. Healer (Flandre)
  745. Otherwise:
  746. 34% chance Brilliant Light Gem (A)
  747. 33% chance Mountain Breaker (A)
  748. 33% chance Attack (A)
  749.  
  750. Note: Meiling's Healer cures every ailment and debuff
  751.  
  752. > Shadow Patchouli
  753. ------------------
  754.  
  755. 20% chance Royal Flare (A)
  756. 20% chance Princess Undine (A)
  757. 20% chance Djinn Gust (A)
  758. 20% chance Satellite Himawari (A)
  759. 20% chance Silent Selene (A)
  760.  
  761. > Shadow Flandre
  762. ----------------
  763.  
  764. If turn is odd:
  765. 50% chance Overflowing Insanity: Inflicts Ailments on Self (Self) (*)
  766. 50% chance Uncontrollable Urges: Inflicts Debuffs on Self (Self) (*)
  767. Once, when HP < 50%:
  768. Forbidden Fruit (A)
  769. Once, when HP < 50%:
  770. Laveatein (A)
  771. If turn is 1 more than a multiple of 12 (i.e.: 1, 13, 25, ...):
  772. Laveatein (A)
  773. If turn is 1 more than a multiple of 8, but not 12 (i.e.: 9, 17, 33, ...):
  774. Forbidden Fruit (A)
  775. If turn is 1 more than a multiple of 4, but not 12 or 8 (i.e.: 5, 21, 29, ...):
  776. Starbow Break (A)
  777. Otherwise:
  778. 20% chance Attack (A)
  779. 20% chance Half Moon Slash (A)
  780. 20% chance Piercing Light (A)
  781. 20% chance Flamethrower (A)
  782. 20% chance Blazing Light Shot (A)
  783.  
  784. Note: Actions marked with a (*) do not end Flandre's turn, so she will cast another spell after casting those marked with a (*)
  785. Note: Overflowing Insanity has equal chance of inflicting either PSN, PAR, HVY, SHK or TRR
  786. Note: Uncontrollable Urges has equal chance of inflicting a 50% debuff to either ATK, DEF, MAG or MND
  787.  
  788. > Shadow Sanae
  789. --------------
  790.  
  791. If any enemy has any debuffs:
  792. Miracle Fruit (Suwako/Sanae/Kanako)
  793. For each enemy whose current HP < 66% their max HP:
  794. 50% chance Yasaka's Divine Wind (Kanako/Sanae/Suwako) (Lv.1201)
  795. Otherwise:
  796. 18% chance Magic Drain (A)
  797. 17% chance Light Arrow (A)
  798. 17% chance Moses's Miracle (A)
  799. 16% chance Magic Attack (A)
  800. 16% chance Storm of Light Particle (A)
  801. 16% chance Night of Bright Guest Stars (A)
  802.  
  803. Note: Sanae's Miracle Fruit's targetting gives preference to the rightmost slots
  804. Note: Sanae's Yasaka's Divine Wind rolls a 50% chance for EACH enemy slot, so there's a 7/8 chance she'll cast it if all 3 are below 66% HP. She begins rolling for the leftmost slot
  805.  
  806. > Shadow Kanako
  807. ---------------
  808.  
  809. If Sanae and Suwako are both alive:
  810. 20% chance Attack (A)
  811. 20% chance Magic Attack (A)
  812. 20% chance Earth Shaker (A)
  813. 20% chance Piercing Light (A)
  814. 20% chance Mad Dance on Medoteko (A)
  815. If only one of Sanae or Suwako are alive:
  816. 25% chance Misayama Hunting Ritual (A)
  817. 18.75% chance Beautiful Spring like Suiga (A)
  818. 11.25% chance Attack (A)
  819. 11.25% chance Magic Attack (A)
  820. 11.25% chance Earth Shaker (A)
  821. 11.25% chance Piercing Light (A)
  822. 11.25% chance Mad Dance on Medoteko (A)
  823. If both Sanae and Suwako are dead:
  824. 25% chance Virtue of Wind God (A)
  825. 18.75%% chance Misayama Hunting Ritual (A)
  826. 14.0625% chance Beautiful Spring like Suiga (A)
  827. 8.4375% chance Attack (A)
  828. 8.4375% chance Magic Attack (A)
  829. 8.4375% chance Earth Shaker (A)
  830. 8.4375% chance Piercing Light (A)
  831. 8.4375% chance Mad Dance on Medoteko (A)
  832.  
  833. Note: The reason for all those decimals is because the game is doing a separate RNG roll for each of Kanako's spells that are added after Sanae or Suwako die. The values presented here are the final probabilities after taking into account all possible paths the AI script can take, as if it only did a single RNG roll.
  834.  
  835. > Shadow Suwako
  836. ---------------
  837.  
  838. If Sanae and Kanako are both alive:
  839. 20% chance Azure Arrow (A)
  840. 20% chance Storm of Blue Rain (A)
  841. 20% chance Grass Knot (A)
  842. 20% chance Acid Rain (A)
  843. 20% chance Moreya's Iron Ring (D)
  844. If only one of Sanae or Kanako are alive:
  845. 25% chance Long-Arm and Long-Leg (A)
  846. 18.75% chance Froggy Braves the Elements (A)
  847. 11.25% chance Azure Arrow (A)
  848. 11.25% chance Storm of Blue Rain (A)
  849. 11.25% chance Grass Knot (A)
  850. 11.25% chance Acid Rain (A)
  851. 11.25% chance Moreya's Iron Ring (D)
  852. If both Sanae and Kanako are dead:
  853. 25% chance Mishaguji-sama (A)
  854. 18.75%% chance Long-Arm and Long-Leg (A)
  855. 14.0625% chance Froggy Braves the Elements (A)
  856. 8.4375% chance Azure Arrow (A)
  857. 8.4375% chance Storm of Blue Rain (A)
  858. 8.4375% chance Grass Knot (A)
  859. 8.4375% chance Acid Rain (A)
  860. 8.4375% chance Moreya's Iron Ring (D)
  861.  
  862. Note: The reason for all those decimals is because the game is doing a separate RNG roll for each of Suwako's spells that are added after Sanae or Kanako die. The values presented here are the final probabilities after taking into account all possible paths the AI script can take, as if it only did a single RNG roll.
  863.  
  864. > Evil Dragon's Water Spirit
  865. ----------------------------
  866.  
  867. 10% chance Paralyzing Fog (A)
  868. 10% chance Silent Fog (A)
  869. 10% chance Heavy Fog (A)
  870. 10% chance Devil's Crimes (A)
  871. 10% chance Staring Eye from the Abyss (A)
  872. 10% chance Roar Shockwave (A)
  873. 10% chance Terrifying Wave (A)
  874. 10% chance Storm of Blue Rain (A)
  875. 10% chance Blizzard (A)
  876. 10% chance Wild Dance of Freezing Mist (A)
  877.  
  878. Note: The party will be cured of all ailments and debuffs every turn
  879.  
  880. > Evil Dragon's Wood Spirit
  881. ---------------------------
  882.  
  883. If turn is odd:
  884. Regeneration (Self) (Lv.18)
  885. If turn is even:
  886. 34% chance Grass Knot (A)
  887. 33% chance Green Arrow (A)
  888. 33% chance Storm of Wood Leaves (A)
  889.  
  890. Note: The party will be healed for 25% HP every turn
  891.  
  892. > Evil Dragon's Fire Spirit
  893. ---------------------------
  894.  
  895. If turn is a multiple of 3:
  896. Flowing Hellfire (A) (Lv.6)
  897. Otherwise:
  898. 50% chance Heat Gaze (A)
  899. 50% chance Blazing Light Shot (A)
  900. 0% chance Spark Storm (A)
  901. 0% chance Flamethrower (A)
  902.  
  903. Note: The party has a 50% chance to stay with 1 HP when taking mortal damage
  904.  
  905. Note/Bug: Evil Dragon's Fire Spirit will never use Spark Storm or Flamethrower, because it uses the same value as Blazing Light Shot in the AI script. The game generates a random value [0-99], and checks that value against each spell's value. In this case, if it is less than 50, it uses Heat Gaze. If it is less than 100, Blazing Light Shot. The other spells also check for the value 100, so their condition is never met.
  906.  
  907. > Evil Dragon's Earth Spirit
  908. ----------------------------
  909.  
  910. If turn is odd:
  911. Earth Element's Protective Light (Self) (Lv.36)
  912. If turn is even:
  913. 20% chance Attack (A)
  914. 20% chance Rock Clash (D)
  915. 20% chance Sandstorm (A)
  916. 20% chance Earth Shaker (A)
  917. 20% chance Earthquake (A)
  918.  
  919. Note: The party will receive a 25% buff to all stats every turn
  920.  
  921. Note: Earth Element's Protective Light is a multi target spell that buffs all stats by (SLv)%
  922.  
  923. > Evil Dragon's Metal Spirit
  924. ----------------------------
  925.  
  926. 50% chance Rock Clash (A)
  927. 50% chance Double Slash (A)
  928.  
  929. Note: The party will recover 33% MP every turn
  930.  
  931. > Evil Dragon's Water Head
  932. --------------------------
  933.  
  934. 10% chance Paralyzing Fog (A)
  935. 10% chance Silent Fog (A)
  936. 10% chance Heavy Fog (A)
  937. 10% chance Devil's Crimes (A)
  938. 10% chance Staring Eye from the Abyss (A)
  939. 10% chance Roar Shockwave (A)
  940. 10% chance Terrifying Wave (A)
  941. 10% chance Storm of Blue Rain (A)
  942. 10% chance Blizzard (A)
  943. 10% chance Wild Dance of Freezing Mist (A)
  944.  
  945. Note: The party will recover from all ailments and debuffs, 25% HP, 33% MP, receive a 25% buff to all stats every turn, and have a 50% chance to survive a mortal blow with 1 HP
  946.  
  947. > Evil Dragon's Wood Head
  948. -------------------------
  949.  
  950. If turn is odd:
  951. Activate Life Energy (All Enemies) (Lv.33)
  952. If turn is even:
  953. 34% chance Grass Knot (A)
  954. 33% chance Green Arrow (A)
  955. 33% chance Storm of Wood Leaves (A)
  956.  
  957. Note: The party will recover from all ailments and debuffs, 25% HP, 33% MP, receive a 25% buff to all stats every turn, and have a 50% chance to survive a mortal blow with 1 HP
  958.  
  959. > Evil Dragon's Fire Head
  960. -------------------------
  961.  
  962. If turn is a multiple of 3:
  963. Flowing Hellfire (A) (Lv.6)
  964. Otherwise:
  965. 50% chance Heat Gaze (A)
  966. 50% chance Blazing Light Shot (A)
  967. 0% chance Spark Storm (A)
  968. 0% chance Flamethrower (A)
  969.  
  970. Note: The party will recover from all ailments and debuffs, 25% HP, 33% MP, receive a 25% buff to all stats every turn, and have a 50% chance to survive a mortal blow with 1 HP
  971.  
  972. Note/Bug: Evil Dragon's Fire Head will never use Spark Storm or Flamethrower, because it uses the same value as Blazing Light Shot in the AI script. The game generates a random value [0-99], and checks that value against each spell's value. In this case, if it is less than 50, it uses Heat Gaze. If it is less than 100, Blazing Light Shot. The other spells also check for the value 100, so their condition is never met.
  973.  
  974. > Evil Dragon's Earth Head
  975. --------------------------
  976.  
  977. If turn is odd:
  978. Earth Element's Protective Light (All Enemies) (Lv.30)
  979. If turn is even:
  980. 20% chance Attack (A)
  981. 20% chance Rock Clash (D)
  982. 20% chance Sandstorm (A)
  983. 20% chance Earth Shaker (A)
  984. 20% chance Earthquake (A)
  985.  
  986. Note: The party will recover from all ailments and debuffs, 25% HP, 33% MP, receive a 25% buff to all stats every turn, and have a 50% chance to survive a mortal blow with 1 HP
  987.  
  988. > Evil Dragon's Metal Head
  989. --------------------------
  990.  
  991. 50% chance Rock Clash (A)
  992. 50% chance Double Slash (A)
  993.  
  994. Note: The party will recover from all ailments and debuffs, 25% HP, 33% MP, receive a 25% buff to all stats every turn, and have a 50% chance to survive a mortal blow with 1 HP
  995.  
  996. > Yamata no Orochi
  997. ------------------
  998.  
  999. When all five heads are defeated:
  1000. Sets var_phase = 0
  1001. -Manifestation of the Evil Dragon- (Self)
  1002. Summons Yamata no Orochi
  1003. If var_phase = 0 and Yamata no Orochi reached zero HP:
  1004. Sets var_phase = 1
  1005. -Soul Transfer: DRK- (Self)
  1006. Revives Yamata no Orochi to full HP
  1007. Sets Yamata no Orochi's MYS affinity to 150
  1008. Sets Yamata no Orochi's SPI affinity to 66
  1009. Sets Yamata no Orochi's DRK affinity to 500
  1010. If var_phase = 1 and Yamata no Orochi reached zero HP:
  1011. Sets var_phase = 2
  1012. -Soul Transfer: SPI- (Self)
  1013. Revives Yamata no Orochi to full HP
  1014. Sets Yamata no Orochi's SPI affinity to 500
  1015. Sets Yamata no Orochi's DRK affinity to 66
  1016. If var_phase = 0, follow fixed pattern (12 turns):
  1017. 1: Concentrate (Self)
  1018. 2-3: Karmic Gnashing -Mystic- (D) [no delay]
  1019. 4: Karmic Gnashing -Mystic- (D)
  1020. 5: Random spell
  1021. 6: World-Shaking Rule (Self) (Lv.1 or Lv.2)
  1022. 7: World-Devouring Calamity (A)
  1023. 8-11: Random spell
  1024. 12: World-Shaking Rule (Self) (Lv.1 or Lv.2)
  1025. Random spell distribution:
  1026. 13% chance Horizontal Slice (A)
  1027. 13% chance Roar Shockwave (A)
  1028. 13% chance Evil Dragon's Eyebeam (A)
  1029. 13% chance Shredder (A)
  1030. 12% chance Karmic Evil Fang -Mystic- (A)
  1031. 12% chance Void Flash Claw (A)
  1032. 12% chance Extra-Large Entwining (A)
  1033. 12% chance Magical Light (A)
  1034. If var_phase = 1, follow fixed pattern (12 turns):
  1035. 1: Concentrate (Self)
  1036. 2-3: Karmic Gnashing -Dark- (D) [no delay]
  1037. 4: Karmic Gnashing -Dark- (D)
  1038. 5: Random spell
  1039. 6: World-Devouring Destruction (A)
  1040. 7: World-Shaking Rule (Self) (Lv.1, Lv.2 or Lv.3)
  1041. 8-11: Random spell
  1042. 12: World-Shaking Rule (Self) (Lv.1, Lv.2 or Lv.3)
  1043. Random spell distribution:
  1044. 9% chance Rasetsu Fist (A)
  1045. 9% chance Scythe of Calamity (A)
  1046. 9% chance Roar Shockwave (A)
  1047. 9% chance Extra-Large Entwining (A)
  1048. 8% chance Karmic Evil Fang -Dark- (A)
  1049. 8% chance Dark Arrow (A)
  1050. 8% chance Leg Sweep (A)
  1051. 8% chance Divine Spirit-Burning Hellfire (A)
  1052. 8% chance Greatsword of Calamity (A)
  1053. 8% chance Staring Eye from the Abyss (A)
  1054. 8% chance Protecting Light from the Heavens (Self) (Lv.20)
  1055. 8% chance Evil Dragon's Eyebeam (A)
  1056. If var_phase = 2, follow fixed pattern (12 turns):
  1057. 1: World-Shaking Rule (Self) (Lv.1, Lv.2, Lv.3 or Lv.4)
  1058. 2: Concentrate (Self)
  1059. 3-6: Karmic Thunderous Gnashing -Spirit- (D) [no delay]
  1060. 7: Karmic Thunderous Gnashing -Spirit- (D)
  1061. 8: World-Shaking Rule (Self) (Lv.1, Lv.2, Lv.3 or Lv.4)
  1062. 9: World-Devouring Destruction (A)
  1063. 10-12: Random spell
  1064. Random spell distribution:
  1065. 9% chance Light Arrow (A)
  1066. 9% chance Godly Scarlet Gold Slash (A)
  1067. 9% chance Golden Protection (Self)
  1068. 9% chance Extra-Large Entwining (A)
  1069. 8% chance Karmic Evil Fang -Spirit- (A)
  1070. 8% chance Rasetsu Fist (A)
  1071. 8% chance Leg Sweep (A)
  1072. 8% chance Start of Heavenly Demise (A)
  1073. 8% chance Great Tree that Descended from the Sky (A)
  1074. 8% chance Roar Shockwave (A)
  1075. 8% chance Protecting Light from the Heavens (Self) (Lv.20)
  1076. 8% chance Evil Dragon's Eyebeam (A)
  1077.  
  1078. Note: The party will recover from all ailments and debuffs, 25% HP, 33% MP, receive a 25% buff to all stats every turn, and have a 50% chance to survive a mortal blow with 1 HP
  1079. Note: World-Shaking Rule uses an RNG roll to determine the level, formula is (50 + (10*(SLv-1)))% buff to all stats
  1080. Note: The turn counter is reset between changes of var_phase, but not buffs/debuffs and ailments
  1081.  
  1082. Note: Karmic Gnashing -Mystic- [no delay] is a single target (100% ATK - 66% DEF) MYS spell with no delay
  1083. Note: Karmic Gnashing -Mystic- is a single target (133% ATK - 66% DEF) MYS spell with 2500 delay
  1084. Note: Karmic Evil Fang -Mystic- is a single target (120% ATK - 60% DEF) MYS spell with 6000 delay
  1085.  
  1086. Note: Karmic Gnashing -Dark- [no delay] is a single target (109% ATK - 66% DEF) DRK spell with no delay
  1087. Note: Karmic Gnashing -Dark- is a single target (148% ATK - 66% DEF) DRK spell with 2500 delay
  1088. Note: Karmic Evil Fang -Dark- is a single target (125% ATK - 67.5% DEF) DRK spell with 6000 delay
  1089.  
  1090. Note: Karmic Thunderous Gnashing -Spirit- [no delay] is a single target (120% ATK - 66% DEF) SPI spell with no delay
  1091. Note: Karmic Thunderous Gnashing -Spirit- is a single target (162% ATK - 66% DEF) SPI spell with 2500 delay
  1092. Note: Karmic Evil Fang -Spirit- is a single target (125% ATK - 67.5% DEF) SPI spell with 6000 delay
  1093.  
  1094. Note: Godly Scarlet Gold Slash is a single target (132% ATK - 66% DEF) SPI spell with 2400 delay
  1095. Note: Extra-Large Entwining is a multi target (100% ATK - 100% DEF) PHY spell with a 90% chance to PAR(25000)
  1096. Note: Evil Dragon's Eyebeam is a single target spell that reduces target to 1 HP and has a 150% chance to PAR(20000), HVY(20000) and SIL(20000)
  1097.  
  1098. > Collapse - Yamata no Orochi
  1099. -----------------------------
  1100.  
  1101. If turn < 5:
  1102. Karmic Thunderous Gnashing -Spirit- (D) [no delay]
  1103. If this is the 5th turn:
  1104. Karmic Thunderous Gnashing -Spirit- (D)
  1105. Otherwise, repeat this set pattern:
  1106. 1: "Yamata-no-Orochi's soul is trembling!" (Self)
  1107. Increment var_hellfire by 1 (starts at -1)
  1108. 2: Repeat for var_hellfire turns:
  1109. Divine Spirit-Burning Hellfire (A) [no delay]
  1110. 3: Divine Spirit-Burning Hellfire (A)
  1111.  
  1112. e.g.: Collapse - Yamata no Orochi will first charge, then cast 1 Divine Spirit-Burning Hellfire. It will charge again, then use 2 Divine Spirit-Burning Hellfires. And then 3, 4, etc.
  1113.  
  1114. Note: The party will recover from all ailments and debuffs, 25% HP, 33% MP, receive a 25% buff to all stats every turn, and have a 50% chance to survive a mortal blow with 1 HP
  1115.  
  1116. Note: Divine Spirit-Burning Hellfire [no delay] is a multi target (60% (ATK+MAG) - 25% (DEF+MND)) MYS/SPI/DRK spell with no delay
  1117. Note: Divine Spirit-Burning Hellfire is a multi target (112% (ATK+MAG) - 37% (DEF+MND)) MYS/SPI/DRK spell with max delay
  1118.  
  1119. > Shadow Iku
  1120. ------------
  1121.  
  1122. Once, when HP < 55%:
  1123. Thundercloud Stickleback (Self)
  1124. Light Dragon's Sigh (A)
  1125. Once, when HP < 50%:
  1126. Whiskers of the Dragon God (Self)
  1127. Also removes all of Iku's ailments
  1128. If current HP >= 50% max HP:
  1129. 40% chance Elekiter Dragon Palace (B)
  1130. 20% chance Storm of Yellow Drive (A)
  1131. 20% chance Paralyzing Fog (A)
  1132. 20% chance Green Curse (A)
  1133. Otherwise:
  1134. 30% chance Elekiter Dragon Palace (B)
  1135. 25% chance Whiskers of the Dragon God (Self)
  1136. 15% chance Light Dragon's Sigh (A)
  1137. 15% chance Razor Wind (A)
  1138. 7.5% chance Paralyzing Fog (A)
  1139. 7.5% chance Green Curse (A)
  1140.  
  1141. > Shadow Tenshi
  1142. ---------------
  1143.  
  1144. If any character has over 100% total buffs:
  1145. 40% chance Sword of Hisou (Leftmost character with sum >100)
  1146. If turn is 1 more than a multiple of 7 (i.e.: 1, 8, 15, ...):
  1147. State of Enlightenment (Self) (Lv.6)
  1148. Once, when HP < 75%:
  1149. Shredder (A)
  1150. Once, when HP < 66%:
  1151. Violent Motherland (A)
  1152. Once, when HP < 50%:
  1153. Shredder (A)
  1154. Once, when HP < 33%:
  1155. Violent Motherland (A)
  1156. Once, when HP < 25%:
  1157. Shredder (A)
  1158. If current HP >= 40% max HP:
  1159. 20% chance World Creation Press (A)
  1160. 20% chance Earth Shaker (A)
  1161. 20% chance Leg Sweep (A)
  1162. 20% chance Grass Knot (A)
  1163. 20% chance Shadowstep (A)
  1164. Otherwise:
  1165. 20% chance World Creation Press (A)
  1166. 20% chance Violent Motherland (A)
  1167. 20% chance Earthquake (A)
  1168. 20% chance Leg Sweep (A)
  1169. 20% chance Shadowstep (A)
  1170.  
  1171. > Shadow Orin
  1172. -------------
  1173.  
  1174. 28% chance Cat's Walk (A)
  1175. 15% chance Daze (A)
  1176. 15% chance Lava Flow (A)
  1177. 14% chance Vengeful Cannibal Spirit (A)
  1178. 14% chance Former Hell's Needle Hill (A)
  1179. 14% chance Blazing Wheel (A)
  1180.  
  1181. > Shadow Utsuho
  1182. ---------------
  1183.  
  1184. Fixed pattern (12 turns):
  1185. 1: Concentrate (Self)
  1186. 2: Giga Flare (A)
  1187. 3: Random spell
  1188. 4: Intense Nuclear Reaction (A)
  1189. 5-7: Random spell
  1190. 8: Intense Nuclear Reaction (A)
  1191. 9-12: Random spell
  1192. Random spell distribution:
  1193. 20% chance Hell's Tokamak (A)
  1194. 20% chance Storm of Purple Magic (A)
  1195. 20% chance Spark Storm (A)
  1196. 20% chance Magic Arrow (A)
  1197. 20% chance Red Arrow (A)
  1198.  
  1199. > Shadow Sakuya
  1200. ---------------
  1201.  
  1202. If Remilia is dead:
  1203. If turn is a multiple of 3:
  1204. Lunar Clock (Self)
  1205. If turn is 1 more than a multiple of 3:
  1206. Soul Sculpture (A)
  1207. If turn is 2 more than a multiple of 3:
  1208. Private Square (A)
  1209. Otherwise:
  1210. Killing Doll (A)
  1211. Once, if HP < 50%:
  1212. Repeat for 10 turns:
  1213. Private Square (A)
  1214. Otherwise:
  1215. 30% chance Misdirection (A)
  1216. 30% chance Attack (A)
  1217. 20% chance Daze (A)
  1218. 15% chance Razor Wind (A)
  1219. 5% chance Soul Sculpture (A)
  1220.  
  1221. Note/Bug: Sakuya will never use Killing Doll, since its condition is never met. If the modulo operation was done with 4 instead of 3, then it would fix the issue as it would properly cycle through the spells.
  1222.  
  1223. > Shadow Remilia
  1224. ----------------
  1225.  
  1226. If Sakuya is dead:
  1227. If turn is a multiple of 4:
  1228. Curse of Vlad Tepes (Self)
  1229. Otherwise:
  1230. Spear the Gungnir (A)
  1231. Once, when HP < 50%:
  1232. Blood Drain (Sakuya)
  1233. Otherwise:
  1234. 40% chance Attack (A)
  1235. 25% chance Row Attack (A)
  1236. 20% chance Spear the Gungnir (A)
  1237. 15% chance Slash Dive (A)
  1238.  
  1239. > Shadow Rinnosuke
  1240. ------------------
  1241.  
  1242. If Tokiko is alive:
  1243. If Tokiko has an ailment:
  1244. First Aid (Tokiko) (Lv.1001)
  1245. If turn is even:
  1246. First Aid (Tokiko) (Lv.1001)
  1247. Otherwise:
  1248. 20% chance Atack (A)
  1249. 20% chance Grass Knot (A)
  1250. 20% chance Shadowstep (A)
  1251. 20% chance Magic Drain (A)
  1252. 20% chance Shredder (A)
  1253.  
  1254. > Shadow Tokiko
  1255. ---------------
  1256.  
  1257. Once, when HP < 33%:
  1258. Fly Up (Self)
  1259. Flying Press (A)
  1260. Otherwise, fixed pattern (3 turns):
  1261. 1: Youkai Yakuza Kick (A)
  1262. 2: 25% chance Attack (A)
  1263. 25% chance Slash Dive (A)
  1264. 25% chance Razor Wind (A)
  1265. 25% chance 1000 Needles (A)
  1266. 3: 50% chance The Count of Monte Cristo (A)
  1267. 50% chance Musketeer d'Artagnan (A)
  1268.  
  1269. > Shadow Akyuu
  1270. --------------
  1271.  
  1272. If turn is odd:
  1273. Regeneration (Self) (Lv.50)
  1274. If Mamizou is alive:
  1275. 33% chance Art of the Battlemage (Mamizou) (Lv.4)
  1276. Otherwise:
  1277. 25% chance Wise Protective Art (E)
  1278. 25% chance Wise Defensive Art (E)
  1279. 25% chance Magic Drain (A)
  1280. 25% chance Refresh (A)
  1281.  
  1282. > Shadow Mamizou
  1283. ----------------
  1284.  
  1285. If turn is a multiple of 5:
  1286. Full Moon Pompokolin (A)
  1287. Also swaps DEF and MND values
  1288. If turn is a multiple of 8:
  1289. 10 Transformations Danmaku (A)
  1290. Also sets all affinities (except VOI) to 150
  1291. Then sets a random affinity (excludes VOI) to 60
  1292. Let H be the remaining HP %
  1293. Follow the regular script with chance (H+20)%:
  1294. 15% chance Destroy Magic (A)
  1295. 15% chance Grass Knot (A)
  1296. 15% chance Razor Wind (A)
  1297. 15% chance Leaf Cutting Dance (A)
  1298. 10% chance Green Arrow (A)
  1299. 10% chance Futatsuiwa Clan's Curse (A)
  1300. 10% chance Frolicking Animals Scrolls (A)
  1301. 10% chance Healing Power (Self) (Lv.10)
  1302. Otherwise, force a personal spell:
  1303. 50% chance Futatsuiwa Clan's Curse (A)
  1304. 50% chance Frolicking Animals Scrolls (A)
  1305.  
  1306. e.g. At 50% HP, has a 30% chance to force a personal spell, 1 HP has 80% chance
  1307.  
  1308. > In Laquetti
  1309. -------------
  1310.  
  1311. If turn is even and In Laquetti has a debuff or an ailment:
  1312. Karmic Retribution (A)
  1313. Once, when HP < 66%:
  1314. Great Catastrophe (A)
  1315. Otherwise:
  1316. 30% chance Magic Arrow (A)
  1317. 15% chance Storm of Purple Magic (A)
  1318. 15% chance Piercing Light (A)
  1319. 10% chance Half Moon Slash (A)
  1320. 10% chance Golden Protection (A)
  1321. 10% chance Great Catastrophe (A)
  1322. 10% chance Great Destruction (A)
  1323.  
  1324. > Shadow Chen
  1325. -------------
  1326.  
  1327. If Ran is dead:
  1328. If turn is a multiple of 5:
  1329. Kimontonkou (Self) (Lv.6)
  1330. Otherwise:
  1331. 30% chance Flight of Idaten (A)
  1332. 30% chance Phoenix Spread Wings (A)
  1333. 20% chance Leg Sweep (A)
  1334. 20% chance Row Attack (A)
  1335. Otherwise:
  1336. 25% chance Flight of Idaten (A)
  1337. 25% chance Phoenix Spread Wings (A)
  1338. 25% chance Row Attack (A)
  1339. 25% chance Attack (A)
  1340.  
  1341. > Shadow Ran
  1342. ------------
  1343.  
  1344. If Chen is dead:
  1345. If there are less than 2 Shikigami in the field:
  1346. Summon Shikigami (Self) (Lv.10)
  1347. If current HP >= 50% max HP:
  1348. 36% chance Soaring En no Ozuno (B)
  1349. 16% chance Half Moon Slash (A)
  1350. 16% chance 1000 Needles (A)
  1351. 16% chance Row Attack (B)
  1352. 16% chance Attack (B)
  1353. Otherwise:
  1354. 25% chance Fox-Tanuki Youkai Laser (A)
  1355. 25% chance Princess Tenko (A)
  1356. 25% chance Piercing Light (B)
  1357. 25% chance Destroy Magic (B)
  1358. If Chen's buffs add up to less than 100%:
  1359. 66% chance Ability to use Shikigamis (Chen) (Lv.66)
  1360. Otherwise:
  1361. 84% chance Fox-Tanuki Youkai Laser (A)
  1362. 16% chance Princess Tenko (A)
  1363.  
  1364. Note/Bug (?): Ran's script when Chen is alive has 6 different RNG checks, meaning she seems to be meant to use 6 different spells, but only the first one is not set to Fox-Tanuki Youkai Laser.
  1365. Note: Ability to use Shikigamis boosts all stats by (SLv)%
  1366.  
  1367. > Shadow Satori
  1368. ---------------
  1369.  
  1370. Randomly chooses a spell from any playable character. Can only choose from the first 2 slots of any character. For example, she can only choose Reimu's Yin-Yang Orb or Fantasy Seal; Marisa's Magic Missile or Asteroid Belt, and so on.
  1371.  
  1372. > Shadow Koishi
  1373. ---------------
  1374.  
  1375. If Satori is alive and her buffs/debuffs add up to -50% or less:
  1376. 66% chance Selfless Love (Satori)
  1377. Otherwise:
  1378. 25% chance Hand of Terror (A)
  1379. 25% chance Silent Fog (A) (Lv.31)
  1380. 25% chance The Embers of Love (A)
  1381. 13% chance Bedside Ancestors (A)
  1382. 12% chance Super-Ego (A)
  1383.  
  1384. Note: Silent Fog being Lv.31 makes it have a 100% SIL(28000) chance
  1385. Note: Hand of Terror is a single target (100% MAG - 50% MND) MYS spell with 6000 delay that has a 108% chance to inflict TRR(25000)
  1386.  
  1387. > Shadow Futo
  1388. -------------
  1389.  
  1390. Every turn:
  1391. Increment var_plate_recharge by 1 (starts at 0)
  1392. If turn is a multiple of 8:
  1393. Spirit Mausoleum Desires (Self) (Lv = Cup Count + 1)
  1394. If only one of Miko and Kokoro is dead and var_plate_recharge > 9:
  1395. Maximum Dish Charge (Self)
  1396. Sets var_plate_recharge to 0
  1397. If both Miko or Kokoro are dead and var_plate_recharge > 5:
  1398. Maximum Dish Charge (Self)
  1399. Sets var_plate_recharge to 0
  1400. If Miko and Kokoro are both alive:
  1401. 24% chance Mononobe's Eighty Sake Cups (A)
  1402. 16% chance Attack (A)
  1403. 12% chance Catastrophic Gate Opening (A)
  1404. 12% chance Miwa Plate Storm (A)
  1405. 12% chance Shredder (A)
  1406. 10% chance 1000 Needles (A)
  1407. 10% chance Daze (A)
  1408. 4% chance Activate Life Energy (All Enemies) (Lv.61)
  1409. Otherwise:
  1410. 28% chance Taiyi True Fire (A)
  1411. 24% chance Mononobe's Eighty Sake Cups (A)
  1412. 24% chance Catastrophic Gate Opening (A)
  1413. 24% chance Miwa Plate Storm (A)
  1414.  
  1415. Note: var_plate_recharge is incremented before the game picks an action
  1416.  
  1417. > Shadow Miko
  1418. -------------
  1419.  
  1420. If only one of Futo and Kokoro is dead and did not use Sage of Toyosatomimi on previous turn:
  1421. Sage of Toyosatomimi (Self) (Lv.12)
  1422. If both Futo and Kokoro are dead and did not use Sage of Toyosatomimi on previous turn:
  1423. Sage of Toyosatomimi (Self) (Lv.24)
  1424. If at least one of Futo or Kokoro is dead and turn is a multiple of 12:
  1425. Karmic Retribution (A) (Lv.24)
  1426. If at least one of Futo or Kokoro is dead and turn is a multiple of 6:
  1427. Refresh (A) (Lv.24)
  1428. If turn is 0-5 more than a multiple of 12 (i.e.: 1-5, 12-17, 24-29, ...):
  1429. 22% chance Light Arrow (A)
  1430. 12% chance Shining Arrows from the Sky (A)
  1431. 11% chance Storm of Light Particle (A)
  1432. 11% chance Piercing Light (A)
  1433. 11% chance Half Moon Slash (A)
  1434. 11% chance Destroy Magic (B)
  1435. 11% chance Yellow Curse (A) (Lv.40)
  1436. 11% chance Protecting Light from the Heavens (A) (Lv.15)
  1437. Otherwise:
  1438. 16% chance Roar Shockwave (A)
  1439. 12% chance Attack (A)
  1440. 12% chance Dividing Slash (D)
  1441. 12% chance Instant Death Attack (D) (Lv.10)
  1442. 12% chance Scythe of Calamity (D)
  1443. 12% chance Yellow Curse (A) (Lv.40)
  1444. 12% chance Gravity Manipulation (A)
  1445. 12% chance Black Universe (B)
  1446.  
  1447. > Shadow Kokoro
  1448. ---------------
  1449.  
  1450. If both Futo and Miko are alive:
  1451. 20% chance Worrisome Man of Qi (A)
  1452. 80% chance use other spell
  1453. If only one of Futo and Miko is dead:
  1454. 10% chance Worrisome Man of Qi (A) (Lv.5)
  1455. 22.5% chance Invigorated Kagura Lion (A) (Lv.3)
  1456. 23.625% chance Four Humors Possession (A)
  1457. 43.875% chance use other spell
  1458. If both Futo and Miko are dead:
  1459. 20% chance Worrisome Man of Qi (A) (Lv.5)
  1460. 32% chance Invigorated Kagura Lion (A) (Lv.5)
  1461. 19.2% chance Four Humors Possession (A) (Lv.5)
  1462. 28.8% chance use other spell
  1463. Other spells:
  1464. 25% chance Paralyze (A)
  1465. 25% chance Shadowstep (A)
  1466. 25% chance Leg Sweep (A)
  1467. 25% chance Leaf Cutting Dance (A)
  1468.  
  1469. > Shadow Yukari
  1470. ---------------
  1471.  
  1472. Once, when HP < 75%:
  1473. Summon Shikigami + Shikigami (Self)
  1474. Shikigami "Ran Yakumo+" (A)
  1475. Once, when HP < 30%:
  1476. Summon Shikigami + Shikigami (Self)
  1477. Shikigami "Ran Yakumo+" (A)
  1478. World-Devouring Calamity (A)
  1479. IN Quadruple Barrier (Self)
  1480. If turn is a multiple of 5 and Yukari has a debuff:
  1481. Yukari's Spiriting Away (Self)
  1482. If current HP < 30% max HP:
  1483. 33% chance IN Quadruple Barrier (Self)
  1484. Once, when HP < 50%:
  1485. Hyperactive Flying Object (A)
  1486. If current HP < 50% max HP:
  1487. 20% chance Hyperactive Flying Object (A)
  1488. Once, when HP < 80%:
  1489. Mesh of Light and Darkness (A)
  1490. If current HP < 80% max HP:
  1491. 20% chance Mesh of Light and Darkness (A)
  1492. Otherwise:
  1493. 20% chance Magic Arrow (A)
  1494. 20% chance Storm of Purple Magic (A)
  1495. 20% chance Piercing Light (A)
  1496. 20% chance Gravity Manipulation (A)
  1497. 20% chance Black Universe (A)
  1498.  
  1499. Note: Shikigami "Ran Yakumo+" becomes a row spell, uses a special formula: (40% MAG - 20% DEF), and has 3300 delay
  1500.  
  1501. > Shadow Reimu
  1502. --------------
  1503.  
  1504. If Marisa is dead:
  1505. If did not use Fantasy Seal -Blink- last turn:
  1506. Fantasy Seal -Blink- (Self) (Lv.5)
  1507. Otherwise:
  1508. 25% chance Yin-Yang Orb (A)
  1509. 25% chance Fantasy Seal (A)
  1510. 13% chance Storm of Light Particle (A)
  1511. 13% chance Shining Arrows from the Sky (A)
  1512. 12% chance Half Moon Slash (A)
  1513. 12% chance Paralyzing Fog (A) (Lv.21)
  1514. If this is the first turn:
  1515. Great Hakurei Barrier (All Enemies) (Lv.90)
  1516. Otherwise:
  1517. 25% chance Great Hakurei Barrier (All Enemies) (Lv.90)
  1518. 13.5% chance Yin-Yang Orb (A)
  1519. 13.5% chance Fantasy Seal (A)
  1520. 13.5% chance Light Arrow (A)
  1521. 13.5% chance Half Moon Slash (A)
  1522. 13.5% chance Paralyzing Fog (A)
  1523. 7.5% chance Exorcising Border (All Enemies)
  1524.  
  1525. Note: Fantasy Seal -Blink- adds a (SLv)% ALL EX buff, which caps at 100%
  1526. Note: Reimu's Yin-Yang Orb has a (5*(SLv-2) + 110) = 105% chance to inflict PAR(10000)
  1527. Note: Reimu's Great Hakurei Barrier uses a special formula: (SLv)% buff to DEF/MND
  1528. Note: Paralyzing Fog being Lv.21 makes it have a 260% PAR(12000) chance
  1529.  
  1530. > Shadow Marisa
  1531. ---------------
  1532.  
  1533. If Reimu is dead:
  1534. Fixed pattern (4 turns):
  1535. 1. Asteroid Belt (A)
  1536. 2. Storm of Purple Magic (A)
  1537. 3. Magic Missile (A)
  1538. 4. Concentration (Self)
  1539. Otherwise:
  1540. Fixed pattern (5 turns):
  1541. 1. Magic Arrow (A)
  1542. 2. Storm of Purple Magic (A)
  1543. 3. Magic Missile (A)
  1544. 4. Magic Missile (A)
  1545. 5. Asteroid Belt (A)
  1546.  
  1547. > Enforcer of Power
  1548. -------------------
  1549.  
  1550. If turn is 1 more than a multiple of 3 (i.e.: 1, 4, 7, ...):
  1551. If Enforcer of Power's both DEF and MND are not buffed:
  1552. Guard Stance (Self)
  1553. Otherwise:
  1554. Enforcer's Will (Self) (Lv.24)
  1555. Once, when HP < 30%:
  1556. Concentrate (Self)
  1557. Peerless Chaotic Dance (A) (Lv.14)
  1558. If current HP >= 50% max HP:
  1559. 30% chance Attack (D)
  1560. 20% chance Double Slash (D)
  1561. 10% chance Half Moon Slash (A)
  1562. 10% chance Severing Flash (A)
  1563. 10% chance Angelic Light (A)
  1564. 10% chance Destroy Magic (A)
  1565. 10% chance Activate Life Energy (A)
  1566. Otherwise:
  1567. 30% chance Attack (D)
  1568. 25% chance Double Slash (D)
  1569. 15% chance Half Moon Slash (A)
  1570. 15% chance Severing Flash (A)
  1571. 15% chance Activate Life Energy (A) (Lv.5)
  1572.  
  1573. Note: Guard Stance is a self targetting spell that buffs DEF/MND by 80% and debuffs ATK by 30%, and has no delay
  1574. Note: Enforcer's Will is a self targetting spell that buffs ATK by (SLv)%, and has no delay
  1575. Note: Peerless Chaotic Dance is a multi target (150% ATK - 75% DEF) PHY spell with 3000 delay
  1576.  
  1577. > Wood Spirit
  1578. -------------
  1579.  
  1580. If turn is odd:
  1581. Activate Life Energy (All Enemies) (Lv.41)
  1582. If turn is even:
  1583. 34% chance Grass Knot (A)
  1584. 33% chance Green Arrow (A)
  1585. 33% chance Storm of Wood Leaves (A)
  1586.  
  1587. > Fire Spirit
  1588. -------------
  1589.  
  1590. If turn is a multiple of 3:
  1591. Flowing Hellfire (A) (Lv.6)
  1592. Otherwise:
  1593. 50% chance Spark Storm (A)
  1594. 25% chance Flamethrower (A)
  1595. 13% chance Blazing Light Shot (A)
  1596. 12% chance Heat Gaze (A)
  1597.  
  1598. > Earth Spirit
  1599. --------------
  1600.  
  1601. If turn is odd:
  1602. Earth Element's Protective Light (All Enemies) (Lv.24)
  1603. If turn is even:
  1604. 20% chance Attack (A)
  1605. 20% chance Rock Clash (D)
  1606. 20% chance Sandstorm (A)
  1607. 20% chance Earth Shaker (A)
  1608. 20% chance Earthquake (A)
  1609.  
  1610. > Metal Spirit
  1611. --------------
  1612.  
  1613. 50% chance Rock Clash (A)
  1614. 50% chance Double Slash (A)
  1615.  
  1616. > Water Spirit
  1617. --------------
  1618.  
  1619. 10% chance Paralyzing Fog (A)
  1620. 10% chance Silent Fog (A)
  1621. 10% chance Heavy Fog (A)
  1622. 10% chance Devil's Crimes (A)
  1623. 10% chance Staring Eye from the Abyss (A)
  1624. 10% chance Roar Shockwave (A)
  1625. 10% chance Terrifying Wave (A)
  1626. 10% chance Storm of Blue Rain (A)
  1627. 10% chance Blizzard (A)
  1628. 10% chance Wild Dance of Freezing Mist (A)
  1629.  
  1630. > Hollow Yamata-no-Orochi
  1631. -------------------------
  1632.  
  1633. Every turn:
  1634. Decrease var_respawn by 1
  1635. If not a Karmic Gnashing turn:
  1636. Once, when HP goes below 75%:
  1637. Ura Dragon - Summon (Self) (*)
  1638. Increase var_summons by 1
  1639. Set var_respawn to 2*var_summons + 2
  1640. Once, when HP goes below 40%:
  1641. Conncentrate (Self) (*)
  1642. Divine Spirit-Burning Hellfire (A) [no delay] (*)
  1643. Divine Spirit-Burning Hellfire (A) [no delay] (*)
  1644. Divine Spirit-Burning Hellfire (A) (*)
  1645. If var_respawn is 0, both summons are dead, and below 75% max HP:
  1646. 33% chance Ura Dragon - Summon (Self) (*)
  1647. Increase var_summons by 1
  1648. Set var_respawn to 2*var_summons + 2
  1649. If var_respawn is 0, only one summon is dead, and below 75% max HP:
  1650. 12% chance Ura Dragon - Summon (Self) (*)
  1651. Increase var_summons by 1
  1652. Set var_respawn to 2*var_summons + 2
  1653. Fixed pattern (24 turns):
  1654. 1-4: Random spell (Pool A)
  1655. 5: World-Shaking Rule (Self) (Lv.13)
  1656. 6-7: Karmic Gnashing -Dark- (D) [no delay]
  1657. 8: Karmic Gnashing -Dark- (D)
  1658. 9: Random spell (Pool A)
  1659. 10: Evil Dragon's Eyebeam (A)
  1660. 11: Refresh (Self)
  1661. 12: World-Shaking Rule (Self) (Lv.13)
  1662. 13-16: Random spell (Pool B)
  1663. 17: World-Shaking Rule (Self) (Lv.13)
  1664. 18-19: Karmic Gnashing -Dark- (D) [no delay]
  1665. 20: Karmic Gnashing -Dark- (D)
  1666. 21: Random spell (Pool B)
  1667. 22: Protecting Light from the Heavens (A) (Lv.40)
  1668. 23: World-Devouring Calamity (A)
  1669. 24: World-Shaking Rule (Self) (Lv.13)
  1670. Random spell distribution (Pool A):
  1671. If current HP >= 40% max HP:
  1672. 20% chance Instant Death Attack (A)
  1673. 20% chance Dark Arrow (B)
  1674. 20% chance Karmic Evil Fang -Dark- (A)
  1675. 20% chance Rasetsu Fist (A)
  1676. 20% chance Greatsword of Calamity (A)
  1677. Otherwise:
  1678. 20% chance Karmic Evil Fang -Dark- (A)
  1679. 20% chance Greatsword of Calamity (A)
  1680. 20% chance Rasetsu Fist (A)
  1681. 20% chance Staring Eye from the Abyss (A)
  1682. 20% chance Evil Scarlet Gold Slash (D)
  1683. Random spell distribution (Pool B):
  1684. If current HP >= 40% max HP:
  1685. 25% chance Storm of Dark Flow (A)
  1686. 25% chance Extra-Large Entwining (A)
  1687. 25% chance Scythe of Calamity (A)
  1688. 25% chance Roar Shockwave (A)
  1689. Otherwise:
  1690. 20% chance Storm of Dark Flow (A)
  1691. 20% chance Extra-Large Entwining (A)
  1692. 20% chance Scythe of Calamity (A)
  1693. 20% chance Roar Shockwave (A)
  1694. 20% chance Divine Spirit-Burning Hellfire (A)
  1695.  
  1696. Note: Evil Scarlet Gold Slash is a single target (250% ATK - 250% DEF) DRK spell with 6400 delay
  1697. Note: Actions marked with a (*) do NOT advance the turn counter
  1698. Note: var_respawn and var_summons both start at 0
  1699.  
  1700. > Dragon God
  1701. ------------
  1702.  
  1703. If (var_color is "blue" and turn counter > 8) or (var_color is "red" and turn counter > 4):
  1704. Dragon God's body color returned to normal... (Self) (*)
  1705. Changes var_color to "normal"
  1706. Resets turn counter to 0
  1707. Sets DRK affinity to 100
  1708. Sets NTR affinity to 100
  1709. Sets TRR resistance to 100
  1710. Sets PAR resistance to 100
  1711. If var_color is "blue":
  1712. Dragon Whirlwind (A) (*)
  1713. If var_color is "red":
  1714. Dragon Strength (D) (*)
  1715. Once, when HP < 80% HP, and once again when HP < 40%:
  1716. Dragon God's body color has changed! (Self) [Blue] (*)
  1717. Changes var_color to "blue"
  1718. Resets turn counter to 0
  1719. Sets DRK affinity to 66
  1720. Sets TRR resistance to 66
  1721. Once, when HP < 60% HP, and once again when HP < 20%:
  1722. Dragon God's body color has changed! (Self) [Red] (*)
  1723. Changes var_color to "red"
  1724. Resets turn counter to 0
  1725. Sets NTR affinity to 66
  1726. Sets PAR resistance to 66
  1727. Otherwise, follow a fixed pattern (15 turns):
  1728. 1: Hellfire Breath (A)
  1729. 2: Cocytus Breath (A)
  1730. 3: Lightning Breath (A)
  1731. 4: Green Acid Breath (A)
  1732. 5: Roar Shockwave (A)
  1733. 6-9: Repeat 1-4
  1734. 10: Azure Shining Light (A) (Lv.15)
  1735. 11-14: Repeat 1-4
  1736. 15: MAG UP (Self) (Lv.50)
  1737.  
  1738. Note: Actions marked with an (*) do not advance the fixed pattern
  1739. Note: Hellfire Breath is a multi target (128% MAG - 64% MND) FIR spell with 5000 delay
  1740. Note: Cocytus Breath is a multi target (128% MAG - 64% MND) CLD spell with 5000 delay
  1741. Note: Lightning Breath is a multi target (128% MAG - 64% MND) WND spell with 5000 delay
  1742. Note: Green Acid Breath is a multi target (128% MAG - 64% MND) NTR spell with 5000 delay
  1743.  
  1744. > Red Hero
  1745. ----------
  1746.  
  1747. Every turn:
  1748. Decrease var_invincible by 1 (stops at 0 - removes invincibility then)
  1749. Once, when Green Brute is dead:
  1750. Red Hero has entered Boost Mode! (Self)
  1751. Heals 50% of Red Hero's missing HP and provides a 20% All EX buff
  1752. Sets var_boost to 1
  1753. Resets the turn counter to 1
  1754. Once, when var_boost is 1 and HP < 20%:
  1755. Red Hero has entered Double Boost Mode! (Self)
  1756. Provides and additional 10% All EX buff
  1757. Sets var_boost to 2
  1758. Resets the turn counter to 1
  1759. If var_boost is 1 and turn is odd:
  1760. Regeneration (Self) (Lv.3)
  1761. If var_boost is 2 and turn is odd:
  1762. Regeneration (Self) (Lv.5)
  1763. If var_boost is 0, follow fixed pattern (10 turns):
  1764. 1: Strong DownThrust (A)
  1765. 2: Double Slash (A)
  1766. 3: 50% chance Infuse Raval Ore (Self) (Lv.50)
  1767. 50% chance Brocia Serum (Self) (Lv.50)
  1768. 4: Attack (A)
  1769. 5: Strong DownThrust (A)
  1770. 6: Select a random bracelet
  1771. 7: Use bracelet spell 1
  1772. 8: Use bracelet spell 2
  1773. 9: Use bracelet spell 1
  1774. 10: Red Hero made a stance with his sword! (Self)
  1775. Sets var_bracelet to 0
  1776. Otherwise, follow fixed pattern (18 turns):
  1777. Odd turns: Regeneration (as seen on top of script)
  1778. 2: Select a random bracelet
  1779. 4: Use bracelet spell 1
  1780. 6: Strong DownThrust (A)
  1781. 8: Use bracelet spell 2
  1782. 10: Strong DownThrust (A)
  1783. 12: Use bracelet spell 1
  1784. 14: Concentrate (Self)
  1785. 16: Use bracelet ultimate spell
  1786. 18: Use bracelet spell 1
  1787. Selecting a bracelet:
  1788. 1/3 chance Red Hero changed to Ignis Bracelet! (Self)
  1789. Sets var_bracelet to ignis
  1790. 1/3 chance Red Hero changed to Ventus Bracelet! (Self)
  1791. Sets var_bracelet to ventus
  1792. 1/3 chance Red Hero changed to Terra Bracelet! (Self)
  1793. Sets var_bracelet to terra
  1794. Ignis bracelet spells:
  1795. 1: Ignis Fireball (B)
  1796. 2: Nightfire Gem (B)
  1797. Ultimate: Ignis Explosion (B)
  1798. Ventus bracelet spells:
  1799. 1: Ventus Whirlwind (B)
  1800. 2: Amulet (B)
  1801. Ultimate: Ventus Tornado (B)
  1802. Terra bracelet spells:
  1803. 1: Terra Bodyslam (D)
  1804. 2: Illusion Mirror (Self)
  1805. Sets var_invincible to 3
  1806. Ultimate: Terra Shockwave (B)
  1807.  
  1808. Note: var_boost, var_bracelet and var_invincible start the battle with value 0
  1809.  
  1810. Note: Strong DownThrust is a single target (112% ATK - 37% DEF) NTR spell with 6120 delay, and a 100% chance to inflict PAR(20000) and SHK
  1811. Note: Infuse Raval Ore is a self targeting spell with 7500 delay that buffs ATK by (SLv)%
  1812. Note: Brocia Serum is a self targeting spell with 7500 delay that buffs SPD by (SLv)%
  1813. Note: Every bracelet change and boost mode change has 5000 delay
  1814.  
  1815. Note: Ignis Fireball is a single target (142% MAG - 47% MND) FIR spell with 3770 delay
  1816. Note: Nightfire Gem is a single target (50% MAG - 50% MND) FIR spell with 5660 delay, that removes all buffs and EX buffs (e.g. Boost, Overheat, Fighting Spirit) from the target, and also drains all of the target's MP
  1817. Note: Ignis Explosion is a single target (332% MAG - 50% MND) FIR spell with 3660 delay
  1818.  
  1819. Note: Ventus Whirlwind is a multi target (90% MAG - 50% MND) WND spell with 3800 delay
  1820. Note: Amulet is a multi target (20% MAG - 50% MND) WND Spell with 3000 delay, and a 128% chance to inflict PAR(8800)
  1821. Note: Ventus Tornado is a multi target (149% MAG - 83% MND) WND spell with 1800 delay, and a 128% chance to inflict PAR(8800)
  1822.  
  1823. Note: Terra Bodyslam is a row targetting (129% MAG - 72% MND) NTR spell with 6600 delay, and a 128% chance of inflicting SHK
  1824. Note: Illusion Mirror is a self targetting spell with 6000 delay that grants 3 turns of invincibility to Red Hero
  1825. Note: Terra Shockwave is a row targetting (115% MAG - 72% MND) NTR spell with 5000 delay, and a 256% chance of inflicting SHK
  1826.  
  1827. > Green Brute
  1828. -------------
  1829.  
  1830. Once, when Red Hero is dead:
  1831. Green Brute has drawn his demon sword! (Self) (*)
  1832. Heals 50% of Green Brute's missing HP, and provides a 15% ATK EX buff and a 100% SPD EX buff
  1833. Sets var_boost to 1
  1834. Resets the turn counter to 1
  1835. Once, when Red Hero is dead and HP < 50%:
  1836. Green Brute's level is rising infinitely! (Self) (*)
  1837. Sets var_infinity to 1
  1838. If did not level up last turn, and (var_infinity = 1 or got a KO from this turn's attack):
  1839. Green Brute levels up in battle and becomes stronger! (Self) (*)
  1840. If var_boost is 0, follow fixed pattern (12 turns):
  1841. 1: Gird Stance (Self) (Lv.100)
  1842. 2-3: Mercy Attack (A)
  1843. 4: Assault (D)
  1844. 5-6: Mercy Attack (A)
  1845. 7: Train Slash (A)
  1846. 8: One Shot Wonder (Self) (Lv.100)
  1847. 9: Assault (D)
  1848. 10-11: Mercy Attack (A)
  1849. 12: Verbal Abuse (A)
  1850. Otherwise, follow fixed pattern (24 turns):
  1851. 1: Concentrate (Self)
  1852. 2: Kichiku Attack (A)
  1853. 3-4: Mercy Attack (A)
  1854. 5: Gird Stance (Self) (Lv.100)
  1855. 6: Assault (D)
  1856. 7: Train Slash (A)
  1857. 8: One Shot Wonder (Self) (Lv.100)
  1858. 9: Train Slash (A)
  1859. 10: One Shot Wonder (Self) (Lv.100)
  1860. 11: Assault (D)
  1861. 12-13: Mercy Attack (A)
  1862. 14: Verbal Abuse (A)
  1863. 15: Concentrate (Self)
  1864. 16: One Shot Wonder (Self) (Lv.100)
  1865. 17: Kichiku Attack (A)
  1866. 18: Gird Stance (Self) (Lv.100)
  1867. 19-20: Mercy Attack (A)
  1868. 21: One Shot Wonder (Self) (Lv.100)
  1869. 22: Assault (D)
  1870. 23-24: Mercy Attack (A)
  1871.  
  1872. Note: Actions marked with a (*) do NOT advance the turn counter
  1873. Note: var_boost and var_infinity start the battle with value 0
  1874. Note: For each level Green Brute gains, it will increase all of its stats by 10% (including ACC and EVA) (kinda like what Last Fortress does)
  1875.  
  1876. Note: Gird Stance is a self targetting spell that buffs DEF by (SLv)%
  1877. Note: One Shot Wonder is a self targetting spell that gives a (SLv)% boost to the next attack
  1878.  
  1879. Note: Mercy Attack is a single target (70% ATK - 50% DEF) PHY spell with 7700 delay, and a 200% chance to inflict SHK
  1880. Note: Verbal Abuse is a multi target (12% ATK - 60% DEF) DRK spell with 3700 delay, and a 100% chance to inflict SHK, TRR(16000) and SIL(16000)
  1881. Note: Train Slash is a row targetting (115% ATK - 64% DEF) PHY spell with 4700 delay
  1882. Note: Assault is a single target (150% ATK - 125% DEF) PHY spell with 4700 delay, and a 100% chance to inflict SHK and TRR(32200)
  1883. Note: Kichiku Attack is a multi target (224% ATK - 280% DEF) PHY spell with 720 delay, and a 200% chance to inflict SHK
  1884.  
  1885. > Kedama Goddess
  1886. ----------------
  1887.  
  1888. Fixed pattern (3 turns):
  1889. 1: Spirit Decomposition (D)
  1890. 2: Time-Space Warp (A)
  1891. 3: Space Compression (A)
  1892.  
  1893. > Shredding Entity
  1894. ------------------
  1895.  
  1896. If var_active = 0:
  1897. The void eyes are resting... (Self)
  1898. Shredding Entity's eyes are focused! (Self)
  1899. Sets var_active = 1
  1900. Sets the turn counter to 0
  1901. If at least one other Entity is alive:
  1902. Fixed pattern (6 turns):
  1903. 1: True Greatsword of Calamity (D)
  1904. 2: Instant Death Attack (A)
  1905. 3: Double Slash (D)
  1906. 4: Summon Herculean Power (All Enemies) (Lv.50)
  1907. 5: True Greatsword of Calamity (D)
  1908. 6: Instant Death Attack (A)
  1909. Otherwise:
  1910. If turn is odd:
  1911. Body is regenerating at abnormal pace! (Self) (Lv.3)
  1912. Once, when HP < 30%:
  1913. Azure Shining Light (A) (Lv.50)
  1914. Fixed pattern (14 turns):
  1915. Odd turns: see above
  1916. 2: Scythe of Calamity (D)
  1917. 4: Void Flash Claw (A)
  1918. 6: Instant Death Attack (A)
  1919. 8: Double Slash (D)
  1920. 10: True Greatsword of Calamity (D)
  1921. 12: Half Moon Slash (A)
  1922. 14: True Greatsword of Calamity (D)
  1923.  
  1924. Note: var_active starts with value 0, and the turn counter is reset when both other entities are killed
  1925. Note: The void eyes are resting... is a skill with no effect and 5000 delay
  1926. Note: Shredding Entity's eyes are focused! is a skill with no effect and 5000 delay
  1927.  
  1928. Note: True Greatsword of Calamity is a single target (1760% ATK - 2000% DEF) DRK spell with 4400 delay. This spell's damage deals permanent damage to the target's max HP
  1929. Note: Summon Herculean Power is a multi target spell that buffs ATK by (SLv)% with 3300 delay
  1930. Note: Body is regenerating at abnormal pace! has no delay, heals (SLv)% Max HP and gives a (2*SLv)% EX buff to ATK/DEF/SPD
  1931.  
  1932. > Aria-singing Entity
  1933. ---------------------
  1934.  
  1935. If var_active = 0:
  1936. The void eyes are resting... (Self)
  1937. The void eyes are resting... (Self)
  1938. The void eyes are resting... (Self)
  1939. Aria-singing Entity's eyes are focused! (Self)
  1940. Sets var_active = 1
  1941. Sets the turn counter to 0
  1942. If at least one other Entity is alive:
  1943. Fixed pattern (6 turns):
  1944. 1: Perpetual Insanity (A)
  1945. 2: Random curse
  1946. 3: Random curse
  1947. 4: Magical Light (A)
  1948. 5: Piercing Light (A)
  1949. 6: Magical Blast (A) (Lv.40)
  1950. Otherwise:
  1951. Fixed pattern (12 turns):
  1952. Odd turns: Regeneration (Self) (Lv.6)
  1953. 2: Magical Blast (A)
  1954. 4: Perpetual Insanity (A)
  1955. 6: Random curse
  1956. 8: Perpetual Insanity (A)
  1957. 10: Black Universe (B)
  1958. 12: Perpetual Insanity (A) (Lv.40)
  1959. Random curses:
  1960. 20% chance Red Curse (A)
  1961. 20% chance Blue Curse (A)
  1962. 20% chance Purple Curse (A)
  1963. 20% chance Green Curse (A)
  1964. 20% chance Yellow Curse (A)
  1965.  
  1966. Note: var_active starts with value 0, and the turn counter is reset when both other entities are killed
  1967. Note: Aria-singing Entity's eyes are focused! is a skill with no effect and 5000 delay
  1968.  
  1969. > Staring Entity
  1970. ----------------
  1971.  
  1972. If var_active = 0:
  1973. The void eyes are resting... (Self)
  1974. The void eyes are resting... (Self)
  1975. The void eyes are resting... (Self)
  1976. The void eyes are resting... (Self)
  1977. The void eyes are resting... (Self)
  1978. Staring Entity's eyes are focused! (Self)
  1979. Sets var_active = 1
  1980. Sets the turn counter to 0
  1981. If at least one other Entity is alive:
  1982. 10% chance Storm Of Dark Flow (A)
  1983. 10% chance Flux Of Yomotsu Hirasaka (A)
  1984. 8% chance Staring Eye From The Abyss (B)
  1985. 8% chance Dark Arrow (B)
  1986. 8% chance Time Space Warp (A)
  1987. 8% chance Swallow (A)
  1988. 8% chance Silent Fog (A)
  1989. 8% chance Shadowstep (A)
  1990. 8% chance Scythe Of Calamity (A)
  1991. 8% chance Perpetual Insanity (A)
  1992. 8% chance Heat Gaze (A)
  1993. 8% chance Destroy Magic (A)
  1994. Otherwise:
  1995. Fixed pattern (6 turns):
  1996. 1: Staring Eye from the Abyss (B)
  1997. 2: Random spell from previous phase
  1998. 3: Great Catastrophe (A)
  1999. 4: Staring Eye from the Abyss (B)
  2000. 5: Random spell from previous phase
  2001. 6: Great Destruction (A)
  2002.  
  2003. Note: var_active starts with value 0, and the turn counter is reset when both other entities are killed
  2004. Note: Aria-singing Entity's eyes are focused! is a skill with no effect and 5000 delay
  2005.  
  2006. > Shadow Reimu - Abyss
  2007. ----------------------
  2008.  
  2009. If HP < 60% and did not use Fantasy Seal -Blink- last turn:
  2010. Fantasy Seal -Blink- (Self) (Lv.10)
  2011. Once, when HP < 70%:
  2012. Great Hakurei Barrier (Self) (Lv.80)
  2013. Once, when HP < 25%:
  2014. Fantasy Seal (A) (Lv.9)
  2015. Otherwise:
  2016. 25% chance Yin-Yang Orb (A)
  2017. 25% chance Fantasy Seal (A)
  2018. 18% chance Paralyzing Fog (A)
  2019. 15% chance Half Moon Slash (A)
  2020. 10% chance Light Arrow (A) (Lv.11)
  2021. 7% chance Exorcising Border (Self)
  2022.  
  2023. Note: If she heals herself back over 60% HP she will stop using Fantasy Seal -Blink-
  2024.  
  2025. > Shadow Marisa - Abyss
  2026. -----------------------
  2027.  
  2028. If this is the first turn:
  2029. Magic Drain Missile (D)
  2030. Once, when HP < 80%:
  2031. Hakkero Charge (Self) (Lv.50)
  2032. Asteroid Belt (A)
  2033. Once, when HP < 50%:
  2034. Hakkero Charge (Self) (Lv.50)
  2035. Hakkero Charge (Self) (Lv.100)
  2036. Asteroid Belt (A)
  2037. Once, when HP < 20%:
  2038. Hakkero Charge (Self) (Lv.50)
  2039. Hakkero Charge (Self) (Lv.100)
  2040. Hakkero Charge (Self) (Lv.150)
  2041. Asteroid Belt (A)
  2042. Concentrate (Self)
  2043. Master Spark (A)
  2044. Otherwise:
  2045. 32% chance Magic Drain Missile (D)
  2046. 32% chance Magic Missile (A)
  2047. 20% chance Asteroid Belt (A)
  2048. 16% chance Storm of Purple Magic (A)
  2049.  
  2050. Note: Hakkero Charge grants Marisa a (SLv)% Boost
  2051. Note: Magic Drain Missile is a single target (147% MAG - 82% MND) MYS spell with 6000 delay that also sets the target's MP to 0
  2052.  
  2053. > Diamond Knight
  2054. ----------------
  2055.  
  2056. If inflicted by an ailment or a debuff, and didn't use Summon Vengeful Strength on previous turn:
  2057. Summon Vengeful Strength (Self) (Lv.24)
  2058. If this is not the first turn:
  2059. 67.5% chance Scourge (D)
  2060. 25% chance other spells
  2061. 7.5% chance Scourge (A)
  2062. Otherwise:
  2063. 30% chance Attack (A)
  2064. 30% chance Double Slash (A)
  2065. 15% chance Razor Wind (A)
  2066. 15% chance Severing Flash (A)
  2067. 10% chance Half Moon Slash (A)
  2068.  
  2069. Note: Summon Vengeful Strength buffs ATK by (SLv)% and has no delay
  2070. Note: Scourge is a single target (2000% ATK - 1000% DEF) PHY spell with 6400 delay, with a 100% chance to inflict PSN(20000), PAR(10000), HVY(20000), TRR(20000), SIL(20000), SHK, DTH and a 100% debuff on all stats
  2071.  
  2072. > Shadow Rinnosuke - Abyss
  2073. --------------------------
  2074.  
  2075. If turn is odd:
  2076. Murakumo's Previous Owner (A) (Lv.16)
  2077. Once, when HP < 66%:
  2078. HP Giga Boost (Self)
  2079. MAG Giga Boost (Self) (Lv.100)
  2080. Once, when HP < 40%:
  2081. ATK Giga Boost (Self) (Lv.100)
  2082. Otherwise:
  2083. 25% chance Aspiration Surge (A)
  2084. 15% chance Attack (A)
  2085. 15% chance PuncturingThrust (A)
  2086. 15% chance Iron Mountain Charge (A)
  2087. 15% chance Severing Flash (A)
  2088. 10% chance Explosive Flame Sword (A)
  2089. 5% chance Penetrator (A)
  2090.  
  2091. Note: Murakumo's Previous Owner is a multi target spell that deals no damage and has a 200% chance of debuffing all stats by (SLv)% and has no delay
  2092. Note: HP Giga Boost is a self target spell that heals for (7500% ATK + 7500% MAG) with 8000 delay
  2093. Note: ATK Giga Boost is a self target spell that gives a 100% ATK EX buff with 8000 delay
  2094. Note: MAG Giga Boost is a self target spell that gives a 100% MAG EX buff with 8000 delay
  2095.  
  2096. > Shadow Keine - Abyss
  2097. ----------------------
  2098.  
  2099. If turn is 1 more than a multiple of 3 (i.e.: 1, 4, 7, ...):
  2100. 50% chance Three Treasures - Sword (Self)
  2101. Also gives 1 stack of History Accumulation - Sword
  2102. 50% chance Three Treasures - Mirror (Self)
  2103. Also gives 1 stack of History Accumulation - Mirror
  2104. Otherwise:
  2105. 25% chance Ancient History -Old History- (A)
  2106. 25% chance New History -Next History- (A)
  2107. 10% chance Recover (Self) (Lv.40)
  2108. 10% chance Storm of Light Particle (A)
  2109. 10% chance Storm of Dark Flow (A)
  2110. 10% chance Ancient Curse (A)
  2111. 10% chance Black Universe (A)
  2112.  
  2113. Note: History Accumulation can stack indefinitely (I only tested up to 50 stacks, but it should keep going)
  2114.  
  2115. > The Destroyer
  2116. ---------------
  2117.  
  2118. Fixed pattern (24 turns):
  2119. 1: Melt Shell (Self)
  2120. Reduces current DEF and MND by 10%
  2121. 2: Countdown to Ragnarok (Self) (Lv.10)
  2122. 3: Random spell
  2123. 4-21: Repeat pattern 1-3
  2124. 22: Melt Shell (Self)
  2125. Reduces current DEF and MND by 10%
  2126. 23: Countdown to Ragnarok (Self) (Lv.10)
  2127. 24: Peerless Chaotic Dance (D) (Lv.12)
  2128. Random spell distribution:
  2129. 30% chance Attack (A)
  2130. 30% chance Double Slash (D)
  2131. 14% chance Half Moon Slash (A)
  2132. 13% chance Severing Flash (A)
  2133. 13% chance Horizontal Slice (A)
  2134.  
  2135. Note: Melt Shell and Countdown to Ragnarok have no delay
  2136. Note: Countdown to Ragnarok is a self targetting spell that gives a 10% ATK EX buff and has no cap (I only tested up to 300%, but it should keep going)
  2137.  
  2138. > Shadow Momiji - Abyss
  2139. -----------------------
  2140.  
  2141. If turn is odd:
  2142. White Wolf's Sword & Shield (Self) (Lv.18)
  2143. Otherwise:
  2144. 25% chance Attack (A)
  2145. 25% chance Rabies Bite (D)
  2146. 13% chance Shield Defense (Self)
  2147. 13% chance Shadowstep (A)
  2148. 12% chance Expellee's Canaan (A)
  2149. 12% chance Dividing Slash (A)
  2150.  
  2151. Note: White Wolf's Sword & Shield gives a (SLv)% buff to ATK and DEF and has no delay
  2152.  
  2153. > Shadow Youmu - Abyss
  2154. ----------------------
  2155.  
  2156. Once, when HP < 80%:
  2157. Slash Clearing the 6 Senses (A)
  2158. Once, when HP < 60%:
  2159. Concentrate (Self)
  2160. God's Slash of Karma Wind (A)
  2161. Once, when HP < 20%:
  2162. Concentrate (Self)
  2163. God's Slash of Karma Wind (A)
  2164. If current HP >= 50% max HP:
  2165. 50% chance Attack (A)
  2166. 50% chance Present Life Slash (A)
  2167. Otherwise:
  2168. 34% chance Slash Clearing the 6 Senses (A)
  2169. 33% chance Present Life Slash (A)
  2170. 33% chance Slash of Eternity (D)
  2171.  
  2172. > Shadow Kogasa - Abyss
  2173. -----------------------
  2174.  
  2175. If there are frontliners affected by TRR and didn't use Angstfreude on the two previous turns:
  2176. Angstfreude (Self) (Lv.10 + 5*(number of TRR'd characters))
  2177. If there are frontliners affected by TRR and didn't use The Terror Unto Death on the previous turn:
  2178. The Terror Unto Death (Self) (Lv.(number of TRR'd characters))
  2179. Otherwise:
  2180. 20% chance Attack (A)
  2181. 20% chance Karakasa Surprising Flash (A)
  2182. 20% chance A Rainy Night's Ghost Story (A)
  2183. 20% chance Drizzling Large Raindrops (A)
  2184. 20% chance Terror Eater (A)
  2185.  
  2186. Note: Angstfreude is a self targetting spell with no delay that heals Kogasa for (SLv)% of her max HP
  2187. Note: The Terror Unto Death is a self targetting spell with no delay that buffs all of Kogasa's stats by (50+10*SLv)%
  2188.  
  2189. > Serpent of Chaos
  2190. ------------------
  2191.  
  2192. Once, when HP < 90%:
  2193. Spirit Decomposition (D)
  2194. Once, when HP < 80%:
  2195. Time-Space Warp (A)
  2196. Decomposition Breath (A)
  2197. Once, when HP < 75%:
  2198. Great Catastrophe (A)
  2199. Once, when HP < 60%:
  2200. Spirit Decomposition (D)
  2201. Once, when HP < 50%:
  2202. Great Destruction (A)
  2203. Once, when HP < 40%:
  2204. Time-Space Warp (A)
  2205. Decomposition Breath (A)
  2206. Once, when HP < 30%:
  2207. Spirit Decomposition (D)
  2208. Once, when HP < 25%:
  2209. Great Catastrophe (A)
  2210. Once, when HP < 10%:
  2211. Spirit Decomposition (D)
  2212. Otherwise:
  2213. 17% chance Storm of Dark Flow (A)
  2214. 16% chance Attack (D)
  2215. 9% chance Rasetsu Fist (A)
  2216. 9% chance Staring Eye from the Abyss (A)
  2217. 9% chance Earthquake (A)
  2218. 8% chance Void Flash Claw (A)
  2219. 8% chance Scythe of Calamity (A)
  2220. 8% chance Greatsword of Calamity (A)
  2221. 8% chance Hellfire Breath (A)
  2222. 8% chance Cocytus Breath (A)
  2223.  
  2224. Note: Spirit Decomposition is a single target spell with 5000 delay with 500% chance to inflict DTH
  2225. Note: Decomposition Breath is a multi target (66% ATK) VOI spell with 3500 delay
  2226. Note: Hellfire Breath is a multi target (128% MAG - 64% MND) FIR spell with 2500 delay (not to be confused with Dragon God's Hellfire Breath)
  2227. Note: Cocytus Breath is a multi target (128% MAG - 64% MND) CLD spell with 2500 delay (not to be confused with Dragon God's Cocytus Breath)
  2228.  
  2229. > Shadow Rumia - Abyss
  2230. ----------------------
  2231.  
  2232. If this is the first turn:
  2233. Awakened Dark Side of the Moon (A)
  2234. Once, when HP < 30% and the turn is odd:
  2235. Awakened Dark Side of the Moon (A)
  2236. If turn is odd and Rumia's buffs and debuffs add up to less than -50%:
  2237. Let X be the negative of Rumia's sum of buffs and debuffs
  2238. e.g.: Her buffs and debuffs add up to -60%, so X is 60
  2239. Demarcation (Self) (Lv.X/5)
  2240. Otherwise, follow a fixed pattern (8 turns):
  2241. 1: 66% chance Magic Arrow (A)
  2242. 34% chance Destroy Magic (A)
  2243. 2: Awakened Moonlight Ray (A)
  2244. 3: Dark Arrow (A)
  2245. 4: Going it Alone (Self) (Lv.8)
  2246. 5: 66% chance Storm of Purple Magic (A)
  2247. 34% chance Yellow Curse (A)
  2248. 6: Awakened Moonlight Ray (A)
  2249. 7: Storm of Dark Flow (A)
  2250. 8: Going it Alone (Self) (Lv.8)
  2251.  
  2252. Note: Awakened Dark Side of the Moon and Demarcation advance the turn counter normally, meaning she will always follow these 2 spells with Awakened Moonlight Ray or Going it Alone
  2253.  
  2254. Note: Awakened Moonlight Ray is a single target () MYS spell with 6000 delay with a 100% chance of inflicting PSN(20000), PAR(10000), HVY(20000), TRR(20000), SIL(20000), SHK and DTH
  2255. Note: Awakened Dark Side of the Moon is a multi target (150% MAG) DRK spell with max delay that has a 133% chance to debuff all stats by 100%
  2256. Note: Demarcation uses a special formula for healing (625% ATK + 625% MAG) and will remove all debuffs from all enemies, has 3000 delay
  2257. Note: Going it Alone is a self targetting spell that gives an All Stats (SLv)% EX buff (caps at 100%), has 9000 delay
  2258.  
  2259. > Shadow Cirno - Abyss
  2260. ----------------------
  2261.  
  2262. Fixed pattern (8 turns):
  2263. 1: Going it Alone (Self) (Lv.5)
  2264. 2: White Album (Self) (Lv.51)
  2265. 3: Diamond Blizzard (A) (Lv.5)
  2266. 4: Random spell
  2267. 5: Going it Alone (Self) (Lv.5)
  2268. 6-7: Random spell
  2269. 8: Perfect Freeze (A) (Lv.6)
  2270. Random spell distribution:
  2271. 67.8% chance Attack (A) (Lv.12)
  2272. 32.2% chance Azure Arrow (A) (Lv.12)
  2273. 0% chance Silent Fog (A)
  2274. 0% chance Shadowstep (A)
  2275.  
  2276. Note/Bug: Cirno's AI rolls a random number 0-59 instead of 0-99, meaning the original distribution 40/40/10/10 gets skewed towards the lower numbers, and the bottom 2 spells go unused since a number above 80 is never rolled.
  2277.  
  2278. Note: White Album being Lv.51 makes it a 254% buff to DEF/MND
  2279. Note: Diamond Blizzard uses a special formula for PAR: 100% chance PAR(SLv*10000), making it a PAR(50000) at this fight
  2280. Note: Perfect Freeze uses a special formula for the debuff: (SLv+131)% to inflict a 40% debuff to SPD
  2281.  
  2282. > Shadow Minoriko - Abyss
  2283. -------------------------
  2284.  
  2285. Fixed pattern (14 turns):
  2286. 1: Red Curse (A) (Lv.25)
  2287. 2-3: 50% chance Autumn Sky (A)
  2288. 50% chance Green Arrow (A)
  2289. 4: Sweet Potato Room (Self) (Lv.31)
  2290. 5: Symbol of Abundance and Harvest (Self) (Lv.100)
  2291. 6: Concentrate (Self)
  2292. 7: Warm Color Harvest (A)
  2293. 8: Purple Curse (A) (Lv.25)
  2294. 9-10: 66% chance Storm of Wood Leaves (A)
  2295. 33% chance Leaf Cutting Dance (A)
  2296. 11: Symbol of Abundance and Harvest (Self) (Lv.200)
  2297. 12: Concentrate (Self)
  2298. 13: Herb of Awakening (Self) (Lv.93)
  2299. 14: Sweet Potato Room (Self) (Lv.31)
  2300.  
  2301. Note: Symbol of Abundance and Harvest is a self targetting skill that buffs MAG by (SLv)%
  2302. Note: Herb of Awakening being Lv.93 makes it provide a 300% boost
  2303.  
  2304. > Shadow Komachi - Abyss
  2305. ------------------------
  2306.  
  2307. Fixed pattern (4 turns):
  2308. 1: Random spell
  2309. 2: Random spell
  2310. 3: Random spell
  2311. If loop count is a multiple of 4:
  2312. 4: Scythe that Chooses the Dead (D) (Lv.41)
  2313. Otherwise:
  2314. 4: Narrow Confines of Avici (A)
  2315. Random spell distribution:
  2316. If current HP >= 50% max HP:
  2317. 50% chance Attack (A)
  2318. 30% chance Short Life Expectancy (D)
  2319. 7% chance Phantom's Coldness (B)
  2320. 7% chance Row Attack (A)
  2321. 6% chance Ferriage in the Deep Fog (B)
  2322. Otherwise:
  2323. 66% chance Short Life Expectancy (D)
  2324. 12% chance Ferriage in the Deep Fog (B)
  2325. 12% chance Row Attack (A)
  2326. 10% chance Recover (Self) (Lv.15)
  2327.  
  2328. Note: Scythe that Chooses the Dead being Lv.41 makes it have a 128% chance to inflict DTH
  2329.  
  2330. > Shadow Chen - Abyss
  2331. ---------------------
  2332.  
  2333. If turn is odd:
  2334. Shikigami Heavy Accel Attack (Self) (Lv.5)
  2335. If turn is even:
  2336. 60% chance Flight of Idaten (D)
  2337. 20% chance Attack (A)
  2338. 10% chance Phoenix Spread Wings (A)
  2339. 10% chance Row Attack (A)
  2340.  
  2341. Note: Shikigami Heavy Accel Attack gives a (SLv)% EX ATK buff that has no cap, and has no delay
  2342.  
  2343. > Shadow Nitori - Abyss
  2344. -----------------------
  2345.  
  2346. Fixed pattern (8 turns):
  2347. 1: Enhanced Versatile Machine (Self) (Lv.100)
  2348. 2-5: Super Scope 3D (B)
  2349. 6: Nitori exchanged her burnt barrel! (Self)
  2350. 7: Nitori reloads for Super Scope! (Self)
  2351. 8: Nitori is aiming with Super Scope! (Self)
  2352.  
  2353. Note: This version of Super Scope 3D has 8000 delay and the original disc formula: (625% ATK - 125% DEF)
  2354. Note: Enhanced Versatile Machine buffs all stats by (SLv)% and has max delay
  2355. Note: Nitori's reload spells have, in order: max delay, 5000 delay, 5000 delay
  2356.  
  2357. > Shadow Parsee - Abyss
  2358. -----------------------
  2359.  
  2360. If turn is even:
  2361. Jealousy's Final Blow (A)
  2362. Once, when HP < 60%:
  2363. Concentrate (Self)
  2364. Green-Eyed Monster (A)
  2365. If any ally affected by TRR:
  2366. Jealousy of Kind and Lovely (A)
  2367. Otherwise:
  2368. 1/7 chance Attack (A)
  2369. 1/7 chance Storm of Dark Flow (A)
  2370. 1/7 chance Instant Death Attack (A)
  2371. 1/7 chance Dividing Slash (D)
  2372. 1/7 chance Large Box and Small Box (A)
  2373. 1/7 chance Midnight Anathema Ritual (D)
  2374. 1/7 chance Grudge Returning (A)
  2375.  
  2376. Note: Green-Eyed Monster is a multi target (33% MAG - 50% MND) with 5000 delay, and has a 120% chance of debuffing all stats by 200%, and inflicting PSN(200000), PAR(20000), HVY(240000), TRR(800000), SIL(80000), SHK and DTH
  2377. Note: Jealousy's Final Blow has no delay and will halve the HP/MP of frontliners that have an ailment
  2378. Note: Grudge Returning has a 115% chance to inflict TRR(25000)
  2379. Note: Jealousy of Kind and Lovely receives the same 1% bonus damage per 2500 TRR the player gets
  2380.  
  2381. > Shadow Wriggle - Abyss
  2382. ------------------------
  2383.  
  2384. Fixed pattern (6 turns):
  2385. 1: Comet on Earth (D)
  2386. 2: Random spell
  2387. 3: Nightbug Tornado (A)
  2388. 4: Firefly Phenomenon (A) (Lv.7)
  2389. 5: Random spell
  2390. 6: Nightbug Tornado (A)
  2391. Random spell distribution:
  2392. 34% chance Venomous Fog (A)
  2393. 33% chance Poison (A)
  2394. 33% chance Storm of Wood Leaves (A)
  2395.  
  2396. Note: Comet on Earth uses a special formula (100% ATK - 50% DEF), has 6000 delay and a 300% chance to inflict PSN(150000)
  2397. Note: Firefly Phenomenon uses a special formula (72% ATK - 60% DEF), has 3800 delay and a 128% chance to inflict PSN(16000) at Lv.7
  2398. Note: Nightbug Tornado uses a special formula (57% ATK - 16% DEF) and has 3000 delay. This version will deal 10 times the usual damage to poisoned targets
  2399.  
  2400. > Shadow Kaguya - Abyss
  2401. -----------------------
  2402.  
  2403. Fixed pattern (9 turns):
  2404. 1: Concentrate (Self)
  2405. 2: Dragon's Neck Jewel (A)
  2406. 3: Concentrate (Self)
  2407. 4: Swallow's Cowrie Shell (A)
  2408. 5: Concentrate (Self)
  2409. 6: Buddha's Stone Bowl (A)
  2410. 7: Concentrate (Self)
  2411. 8: Bullet Branch of Hourai
  2412. 9: Five Impossible Requests (Self)
  2413.  
  2414. Note: Five Impossible Requests has 6600 delay and buffs MAG by 75%
  2415.  
  2416. > Shadow Mokou - Abyss
  2417. ----------------------
  2418.  
  2419. If turn is odd:
  2420. Regeneration (Self) (Lv.8)
  2421. Once, after Mokou ressurects for the first time:
  2422. Fujiyama Volcano (A)
  2423. Once, after Mokou ressurects for the second time:
  2424. Fujiyama Volcano (A)
  2425. Once, after Mokou ressurects for the third time:
  2426. Fujiyama Volcano (A)
  2427. Otherwise:
  2428. 35% chance Fire Bird -Flying Phoenix- (D)
  2429. 15% chance Tsuki no Iwakasa's Curse (A)
  2430. 8% chance Red Arrow (B)
  2431. 8% chance Spark Storm (A)
  2432. 8% chance Attack (A)
  2433. 8% chance Row Attack (A)
  2434. 8% chance Daze (A)
  2435.  
  2436. > Shadow Aya - Abyss
  2437. --------------------
  2438.  
  2439. Whenever Aya dodges a move:
  2440. Receive a level of Proof of the Fastest
  2441. If turn is a multiple of 8:
  2442. Sarutahiko's Guidance (Self) (Lv.21)
  2443. Otherwise:
  2444. 30% chance Peerless Wind God (A)
  2445. 20% chance Attack (A)
  2446. 20% chance Paralyze (A)
  2447. 14% chance Storm of Yellow Drive (A)
  2448. 10% chance Wind God's Fan (A)
  2449. 6% chance Shredder (A)
  2450.  
  2451. Note: Proof of the Fastest boosts damage dealt by 10% per level and raises her ATK/SPD by 10%
  2452. Note: Sarutahiko's Guidance being Lv.21 makes it a 100% SPD buff
  2453.  
  2454. > Shadow Mystia - Abyss
  2455. -----------------------
  2456.  
  2457. If any frontliners affected by SIL, and did not use Deaf to All but the Song on previous turn:
  2458. Deaf to All but the Song (Self) (Lv.8) (*)
  2459. Fixed pattern (8 turns):
  2460. 1: Going it Alone (Self) (Lv.4)
  2461. 2: Midnight Chorus Master (A) (Lv.2)
  2462. 3-4: Random spell
  2463. 5: Going it Alone (Self) (Lv.4)
  2464. 6: Poisonous Moth's Dark Dance (A)
  2465. 7-8: Random spell
  2466. Random spell distribution:
  2467. 20% chance Attack (A)
  2468. 20% chance Silencing Attack (A)
  2469. 20% chance Ill-Starred Dive (D)
  2470. 20% chance Slash Dive (A)
  2471. 20% chance Great Whirlwind (A)
  2472.  
  2473. Note: Actions marked with a (*) do not advance the turn count
  2474.  
  2475. Note: Deaf to All but the Song is a self targeting spell with no delay that gives a (SLv)% All EX buff (caps at 100%)
  2476. Note: Midnight Chorus Master has a special formula (64% ATK - 80% DEF), having 3000 delay and a 100% chance to inflict SIL(20000)
  2477.  
  2478. > Shadow Kasen - Abyss
  2479. ----------------------
  2480.  
  2481. Once, when HP < 90%:
  2482. Summon Abyss Dragon and Tiger (Self)
  2483. Once, when HP < 25%:
  2484. Summon Abyss Dragon and Tiger (Self)
  2485. Let H be the remaining HP %
  2486. Use a regular spell with chance (H-10)%:
  2487. 34% chance Instant Death Attack (A)
  2488. 33% chance Attack (A)
  2489. 33% chance Poison (A)
  2490. Otherwise:
  2491. 50% chance Higekiri's Cursed Arm (A)
  2492. 20% chance Breath of the Hermit (Self)
  2493. 15% chance Echo of the Nine Forest Gods (A)
  2494. 15% chance Diving Waltz of the Raijuu (A)
  2495.  
  2496. e.g. at full HP has only 10% chance to use personal spell, half HP has 60%, 10% HP onwards has 100%
  2497.  
  2498. Note: Summon Abyss Dragon and Tiger has 3300 delay
  2499.  
  2500. > Dragon of the Abyss
  2501. ---------------------
  2502.  
  2503. Fixed pattern:
  2504. 1: Great Whirlwind (A)
  2505. 2: Storm of Yellow Drive (A)
  2506. 3: Great Whirlwind (A)
  2507. 4+:
  2508. If Kasen is alive:
  2509. Eternal Summon Super Power (Kasen) (Lv.10)
  2510. Otherwise:
  2511. Storm of Yellow Drive (A)
  2512.  
  2513. Note: Eternal Summon Super Power has 5000 delay and gives a (SLv)% EX buff to DEF/MND/SPD, does not cap
  2514.  
  2515. > Tiger of the Abyss
  2516. --------------------
  2517.  
  2518. Fixed pattern:
  2519. 1: Attack (A)
  2520. 2: Attack (A)
  2521. 3+:
  2522. If Kasen is alive:
  2523. Eternal Summon Herculean Power (Kasen) (Lv.10)
  2524. Otherwise:
  2525. Attack (A)
  2526.  
  2527. Note: Eternal Summon Herculean Power has 5000 delay and gives a (SLv)% EX buff to ATK, does not cap
  2528.  
  2529. > Shadow Nazrin - Abyss
  2530. -----------------------
  2531.  
  2532. Once, when HP < 90%:
  2533. Bishamonten Protection: SPD (Self) (Lv.200) (*)
  2534. Once, when HP < 60%:
  2535. Bishamonten Protection: MAG (Self) (Lv.200) (*)
  2536. Once, when HP < 30%:
  2537. Bishamonten Protection: SPD (Self) (Lv.200) (*)
  2538. Bishamonten Protection: MAG (Self) (Lv.200) (*)
  2539. Fixed pattern (12 turns):
  2540. 1: Random spell (Pool A)
  2541. 2: Random spell (Pool A)
  2542. 3: Random spell (Pool A)
  2543. 4: Tiny Commander's Wisdom (Self) (Lv.100)
  2544. 5: Random spell (Pool B)
  2545. 6: Random spell (Pool B)
  2546. 7: Random spell (Pool A)
  2547. 8: Random spell (Pool A)
  2548. 9: Random spell (Pool A)
  2549. 10: Tiny Commander's Wisdom (Self) (Lv.100)
  2550. 11: Random spell (Pool B)
  2551. 12: Random spell (Pool B)
  2552. Random spell distribution (Pool A):
  2553. 34% chance Thunder Arrow (A)
  2554. 33% chance Blade Arrow (A)
  2555. 33% chance Azure Arrow (A)
  2556. Random spell distribution (Pool B):
  2557. 34% chance Nazrin Pendulum (B)
  2558. 33% chance Gold Rush (B)
  2559. 33% chance Rare Metal Detector (B) (Lv.3)
  2560.  
  2561. Note: Actions marked with a (*) do not advance the turn counter
  2562.  
  2563. Note: Bishamonten Protection: MAG is a self targetting spell that buffs MAG by (SLv)% and has 9000 delay
  2564. Note: Bishamonten Protection: SPD is a self targetting spell that buffs SPD by (SLv)% and has 9000 delay
  2565. Note: Tiny Commander's Wisdom is a self targetting spell that gives a (SLv)% boost effect
  2566.  
  2567. > ***WINNER***
  2568. ----------------
  2569.  
  2570. Fixed pattern (up to 7 turns):
  2571. Every turn:
  2572. Decrement var_invincible by 1
  2573. If var_invincible < 1:
  2574. Remove effect "Invincible" from Winner
  2575. 1: Open a spellbook
  2576. 2: Use book spell 1
  2577. 3: Use book spell 2
  2578. If current HP >= 90% max HP:
  2579. Reset pattern
  2580. 4: Use book spell 3
  2581. If current HP >= 60% max HP:
  2582. Reset pattern
  2583. 5: Use book spell 4
  2584. If current HP >= 40% max HP:
  2585. Reset pattern
  2586. If current HP >= 15% max HP:
  2587. 6: 50% chance to reset pattern
  2588. 50% chance to ***WINNER*** begins charging a strong spell! (Self)
  2589. 7: Use book ultimate spell
  2590. Otherwise:
  2591. 6: Use book ultimate spell
  2592. Choosing a spellbook:
  2593. Increment var_book by 1
  2594. Set all affinities to 100
  2595. Set PSN resistance to 85
  2596. Set PAR resistance to 100
  2597. Set HVY resistance to 75
  2598. Set SHK resistance to 100
  2599. Set TRR resistance to 75
  2600. Set SIL resistance to 75
  2601. Set DTH resistance to 1000
  2602. Set all DBF resistance to 75
  2603. If var_book is an odd number:
  2604. 1/3 chance ***WINNER*** opened spellbook of "Life"! (Self)
  2605. Set SPI affinity to 500
  2606. Set DRK affinity to 66
  2607. Set PSN resistance to 55
  2608. Set PAR resistance to 90
  2609. Set HVY resistance to 45
  2610. Set SHK resistance to 90
  2611. Set TRR resistance to 45
  2612. Set SIL resistance to 45
  2613. 1/3 chance ***WINNER*** opened spellbook of "Nature"! (Self)
  2614. Set FIR affinity to 75
  2615. Set CLD affinity to 75
  2616. Set WND affinity to 300
  2617. Set NTR affinity to 300
  2618. Set PSN resistance to 65
  2619. Set PAR resistance to 100
  2620. Set HVY resistance to 55
  2621. Set SHK resistance to 100
  2622. Set TRR resistance to 55
  2623. Set SIL resistance to 55
  2624. Set all DBF resistance to 120
  2625. 1/3 chance ***WINNER*** opened spellbook of "Sorcery"! (Self)
  2626. Set PSN resistance to 135
  2627. Set PAR resistance to 150
  2628. Set HVY resistance to 125
  2629. Set SHK resistance to 150
  2630. Set TRR resistance to 125
  2631. Set SIL resistance to 125
  2632. Set all DBF resistance to 35
  2633. If var_book is an even number:
  2634. 1/3 chance ***WINNER*** opened spellbook of "Death"! (Self)
  2635. Set SPI affinity to 50
  2636. Set DRK affinity to 500
  2637. 1/3 chance ***WINNER*** opened spellbook of "Crusade"! (Self)
  2638. Set MYS affinity to 50
  2639. Set SPI affinity to 300
  2640. Set DRK affinity to 300
  2641. Set PSN resistance to 50
  2642. Set PAR resistance to 80
  2643. Set HVY resistance to 25
  2644. Set SHK resistance to 80
  2645. Set TRR resistance to 25
  2646. Set SIL resistance to 25
  2647. Set all DBF resistance to 25
  2648. 1/3 chance ***WINNER*** opened spellbook of "Chaos"! (Self)
  2649. Set FIR affinity to 80
  2650. Set CLD affinity to 80
  2651. Set WND affinity to 80
  2652. Set NTR affinity to 80
  2653. Set MYS affinity to 500
  2654. Set SPI affinity to 200
  2655. Set DRK affinity to 200
  2656. Set all DBF resistance to 25
  2657. Spellbook of Life:
  2658. Spell 1:
  2659. If Winner has debuffs or ailments: Cure Wounds+Poison (Self)
  2660. Otherwise: Call Light (A)
  2661. Spell 2: Recover (Self)
  2662. Spell 3: Day of the Dove (A)
  2663. Spell 4:
  2664. If Winner has debuffs or ailments: Restoration (Self)
  2665. Otherwise: True Healing (Self)
  2666. Ultimate: True Resistance (Self)
  2667. Sets var_invincible to 3
  2668. Spellbook of Nature:
  2669. Spell 1: Lightning Bolt (A)
  2670. Spell 2: Ray of Sunlight (D)
  2671. Spell 3: Stoneskin (Self) (Lv.100)
  2672. Spell 4: Lightning Storm (A)
  2673. Ultimate: Nature's Wrath (A)
  2674. Spellbook of Sorcery:
  2675. Spell 1: Magic Circuit (Self) (Lv.80)
  2676. Spell 2: Slow Monster (A)
  2677. Spell 3: Haste Self (Self) (Lv.100)
  2678. Spell 4: Teleport Evil (A)
  2679. Ultimate: Globe of Invulnerability (Self)
  2680. Sets var_invincible to 6
  2681. Spellbook of Death:
  2682. Spell 1: Malediction (A)
  2683. Spell 2: Cloudkill (A)
  2684. Spell 3: Word of Death (A)
  2685. Spell 4: Mass Genocide (A)
  2686. Ultimate: Hellfire (A)
  2687. Spellbook of Crusade:
  2688. Spell 1: Purify Body (Self)
  2689. Spell 2: Holy Orb (A)
  2690. Spell 3: Starburst (A)
  2691. Spell 4: Eye for an Eye (A)
  2692. Ultimate: Divine Wrath (A)
  2693. Spellbook of Chaos:
  2694. Spell 1: Magic Missile (A)
  2695. Spell 2: Doom Bolt (A)
  2696. Spell 3: Atom Decomposition (D)
  2697. Spell 4: Summon Chaos (D)
  2698. Ultimate: Mana Storm (A)
  2699.  
  2700. Note: var_book and var_invincible start at 0
  2701.  
  2702. Note: Cure Wounds+Poison is a self targetting spell with 6600 delay that halves Winner's ailment durations and debuffs
  2703. Note: Call Light is a multi target (82% MAG - 55% MND) SPI spell 4500 delay
  2704. Note: Day of the Dove is a multi target (84% MAG - 64% MND) SPI spell with 5400 delay
  2705. Note: Restoration is a self targetting spell with 6600 delay that removes Winner's ailments and debuffs
  2706. Note: True Healing is a self targetting (150% DEF + 150% MND) healing spell with 5000 delay
  2707. Note: True Resistance is a self targetting spell with 7000 delay that gives a (SLv)% DEF/MND/SPD EX buff to Winner, and also makes him invincible for 3 turns
  2708.  
  2709. Note: Lightning Bolt is a single target (102% MAG - 40% MND) WND spell with 6000 delay
  2710. Note: Ray of Sunlight is a single target (131% MAG - 84% MND) NTR spell with 5000 delay
  2711. Note: Stoneskin is a self targetting spell with 6600 delay, that buffs DEF/MND by (SLv)% and gives a 10% EX buff to DEF/MND
  2712. Note: Lightning Storm is a multi target (49% MAG - 35% MND) WND spell with 4400 delay
  2713. Note: Nature's Wrath is a multi target (512% MAG - 1280% MND) NTR spell with max delay
  2714.  
  2715. Note: Magic Circuit is a self targetting spell with 5000 delay that buffs MAG by (SLv)%
  2716. Note: Slow Monster is a multi target (25% MAG - 25% MND) MYS spell with 5800 delay that has a 100% chance to debuff SPD by 100%
  2717. Note: Haste Self is a self targetting spell with 7000 delay that buffs SPD by (SLv)% and gives a 10% EX buff to SPD
  2718. Note: Teleport Evil is a multi target spell with 5000 delay that shuffles the frontline and then applies HVY(25000) to the new frontline
  2719. Note: Globe of Invulnerability is a self targetting spell with 5000 delay that makes Winner invincible for 6 turns
  2720.  
  2721. Note: Malediction is a single target (112% MAG - 56% MND) DRK spell with 5000 delay that has a 98% chance to inflict DTH
  2722. Note: Cloudkill is a multi target (86% MAG - 54% MND) DRK spell with 3800 delay that has a 70% chance to inflict DTH and PSN(100)
  2723. Note: Word of Death is a single target (150% MAG - 100% MND) DRK spell with 3800 delay that has a 108% chance to inflict DTH and TRR(100)
  2724. Note: Mass Genocide is a multi target (200% MAG - 200% MND) DRK spell with 2400 delay that has a 108% chance to inflict DTH
  2725. Note: Hellfire is a multi target (219% MAG - 333% MND) DRK spell with max delay that has a 108% chance to inflict PSN(50000), PAR(10000), HVY(20000), TRR(100000), SIL(20000), SHK and DTH, on top of debuffing Winner's MAG/SPD by 50%
  2726.  
  2727. Note: Purify Body is a self targetting spell with 6600 delay that removes Winner's ailments and debuffs
  2728. Note: Holy Orb is a single target (150% MAG - 50% MND) SPI spell with 3600 delay
  2729. Note: Starburst is a row target (120% MAG - 60% MND) SPI spell with 3000 delay
  2730. Note: Eye for an Eye is a multi target (100% MAG - 50% MND) SPI spell with 3000 delay that doubles ailment duration and debuffs on the targets
  2731. Note: Divine Wrath is a multi target (250% MAG - 250% MND) SPI spell with 2000 delay that sets all targets' MP to 0
  2732.  
  2733. Note: Magic Missile is a single target (158% MAG - 50% MND) MYS spell with 6000 delay
  2734. Note: Doom Bolt is a single target (112% MAG - 44% MND) MYS spell with 5400 delay that reduces the target's max HP by the damage dealt
  2735. Note: Atom Decomposition is a single target spell with 5000 delay that has a 200% chance to inflict DTH
  2736. Note: Summon Chaos is a multi target (112% MAG - 75% MND) MYS spell with 4000 delay that reduces the targets' max HP by the damage dealt
  2737. Note: Mana Storm is a multi target (200% MAG) MYS spell with max delay
RAW Paste Data