DrFetus

7th Dragon 2020-II: Enemy AI

Oct 21st, 2022 (edited)
718
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 447.65 KB | None | 0 1
  1. If a target type is not listed for an action, then it uses the default targeting method, which has a higher chance to go after party members with higher LIFE, though it's not guaranteed to do so. The AI only runs if the enemy in question gets a chance to act. If they cannot act due to an ailment cancelling their action or some other means of getting disrupted, the routine will simply be paused where it left off, and no counters will increase.
  2.  
  3. AI routines only run when it is the user's turn, allowing enemies to react instantly to certain situations.
  4.  
  5. The exception to this is using the Hacker's luvshock.exe skill, which overwrites the routine with telling the enemy to attack their own side, while letting any counters increment or be set to a certain value in the process. This means madstrife.exe can help skip over undesirable actions where ailments can cause enemies to get stuck on routines until conditions change.
  6.  
  7. Some routines are unused. If a routine has no visible way to reach it, the game cannot access it.
  8.  
  9. Rabi (LV. 2/1)
  10. ==============
  11. -Take 1 action per turn.
  12. -If counter 1 is at or above 1:
  13. --Attack. Set counters 0 and 1 to 0.
  14. -If counter 0 is at or above 2:
  15. --2/3 chance to attack. Add 1 to counter 0.
  16. --1/3 chance to use Chomp (Targets the party member with the highest LIFE). Add 1 to counter 1.
  17. -Else:
  18. --3/4 chance to attack. Add 1 to counter 0.
  19. --1/4 chance to use Chomp (Targets the party member with the highest LIFE). Add 1 to counter 1.
  20.  
  21. Slime (LV. 15/12)
  22. =================
  23. -Take 1 action per turn.
  24. -If counter 1 is at or above 1:
  25. --Attack (Default targeting). Set counter 1 to 0.
  26. -Else:
  27. --3/5 chance to attack.
  28. --1/5 chance to use Hurl Phlegm (Targets party members without a DEF debuff). Add 1 to counter 1.
  29. --1/5 chance to use Hurl Sign (Targets the party member with the highest LIFE). Add 1 to counter 1.
  30.  
  31. Poison Frog (LV. 5/4)
  32. =====================
  33. -Take 1 action per turn.
  34. -If counter 1 is at or above 1:
  35. --Attack. Set counters 0 and 1 to 0.
  36. -If any party members are inflicted with Poison:
  37. --Attack.
  38. -Else:
  39. --1/3 chance to attack.
  40. --2/3 chance to use Venom (Targets party members that are not inflicted with Poison). Add 1 to counter 1.
  41.  
  42. Roper (LV. 19/16)
  43. =================
  44. -Take 1 action per turn.
  45. -If the turn count is at or below 1:
  46. --2/3 chance to attack. Add 1 to counter 0.
  47. --1/3 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  48. -If counter 1 is at or above 1:
  49. --Attack. Set counters 0 and 1 to 0.
  50. -If counter 0 is at or above 2:
  51. --1/2 chance to attack. Add 1 to counter 0.
  52. --1/2 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  53. -Else:
  54. --2/3 chance to attack. Add 1 to counter 0.
  55. --1/3 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  56.  
  57. Bluegrass Nymph (LV. 8/6)
  58. =========================
  59. -Take 1 action per turn.
  60. -If counter 1 is at or above 1:
  61. --Attack. Set counters 0 and 1 to 0.
  62. -If any party member is inflicted with Paralysis:
  63. --Attack.
  64. -If counter 0 is at or above 2:
  65. --Use Paralysis Scale (Targets party members that are not inflicted with Paralysis). Set counter 0 to 0. Add 1 to counter 1.
  66. -Else:
  67. --1/4 chance to attack. Add 1 to counter 0.
  68. --3/4 chance to use Paralysis Scale (Targets party members that are not inflicted with Paralysis). Add 1 to counter 1.
  69.  
  70. Badger (LV. 15/12)
  71. ==================
  72. -Take 1 action per turn.
  73. -If counter 1 is at or above 1:
  74. --Attack. Set counters 0 and 1 to 0.
  75. -If counter 0 is at or above 2:
  76. --2/3 chance to attack. Add 1 to counter 0.
  77. --1/3 chance to use Frenzied Scratching (Targets the party member with the highest LIFE). Add 1 to counter 1.
  78. -Else:
  79. --3/4 chance to attack. Add 1 to counter 0.
  80. --1/4 chance to use Frenzied Scratching (Targets the party member with the highest LIFE). Add 1 to counter 1.
  81.  
  82. Dragelope (LV. 2/1)
  83. ===================
  84. -Take 1 action per turn.
  85. -If counter 1 is at or above 1:
  86. --Attack. Set counters 0 and 1 to 0.
  87. -If counter 0 is at or above 2:
  88. --2/3 chance to attack. Add 1 to counter 0.
  89. --1/3 chance to use Rear Kick (Targets the party member with the highest LIFE). Add 1 to counter 1.
  90. -Else:
  91. --3/4 chance to attack. Add 1 to counter 0.
  92. --1/4 chance to use Rear Kick (Targets the party member with the highest LIFE). Add 1 to counter 1.
  93.  
  94. Wild Ape (LV. 12/9)
  95. ===================
  96. -Take 1 action per turn.
  97. -If counter 1 is at or above 1:
  98. --Attack. Set counters 0 and 1 to 0.
  99. -If counter 0 is at or above 1:
  100. --1/3 chance to attack. Add 1 to counter 0.
  101. --2/3 chance to use Claw Scratch (Targets the party member with the highest LIFE). Add 1 to counter 1.
  102. -Else:
  103. --3/4 chance to attack. Add 1 to counter 0.
  104. --1/4 chance to use Claw Scratch (Targets the party member with the highest LIFE). Add 1 to counter 1.
  105.  
  106. Mandala Fan (LV. 12/9)
  107. ======================
  108. -Take 1 action per turn.
  109. -If the turn count at or below 1:
  110. --1/3 chance to attack. Add 1 to counter 0.
  111. --1/3 chance to use Flash. Set counter 1 to 1.
  112. --1/3 chance to use Flash Freeze. Set counter 1 to 1.
  113. -If counter 1 is at 1:
  114. --Attack. Set counters 0, 1, and 2 to 0.
  115. -If counter 0 is at or above 1:
  116. --1/4 chance to attack. Add 1 to counter 0.
  117. --1/4 chance to use Flash. Set counter 1 to 1.
  118. --2/4 chance to use Flash Freeze. Set counter 1 to 1.
  119. -Else:
  120. --Attack. Add 1 to counter 0.
  121.  
  122. Scorpion (LV. 5/4)
  123. ==================
  124. -Take 1 action per turn.
  125. -If counter 1 is at 1:
  126. --Attack. Set counters 1 and 2 to 0.
  127. -If counter 0 is at or above 1 and self does not have a Lightning Counter buff:
  128. --1/3 chance to attack. Add 1 to counter 0.
  129. --2/3 chance to use Thunder Stab (Targets the party member with the highest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  130. -If counter 0 is at or above 1 and self has a Lightning Counter buff:
  131. --1/3 chance to attack. Add 1 to counter 0.
  132. --2/3 chance to use Thunder Stab (Targets the party member with the highest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  133. -Else:
  134. --1/2 chance to attack. Add 1 to counter 0.
  135. --1/2 chance to use Thunder Stab (Targets the party member with the highest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  136.  
  137. Giant Pincer (LV. 23/20)
  138. ========================
  139. -Take 1 action per turn.
  140. -If the turn count at or below 1:
  141. --1/4 chance to attack. Add 1 to counter 0.
  142. --2/4 chance to use Fortify (Targets the user's side).
  143. --1/4 chance to use Bubble Breath (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  144. -If counter 1 is at 1:
  145. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  146. -If self does not have a DEF buff:
  147. --1/4 chance to attack. Add 1 to counter 0.
  148. --2/4 chance to use Bubble Breath (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  149. --1/4 chance to use Fortify (Targets the user's side). Add 1 to counter 0.
  150. -If counter 0 is at or above 1:
  151. --1/3 chance to attack. Add 1 to counter 0.
  152. --2/3 chance to use Bubble Breath (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  153. -Else:
  154. --Attack. Add 1 to counter 0.
  155.  
  156. Smilodon (LV. 55/51)
  157. ====================
  158. -Take 1 action per turn.
  159. -If counter 1 is at or above 1:
  160. --Attack. Set counters 0 and 1 to 0.
  161. -If counter 0 is at or above 2:
  162. --1/2 chance to attack. Add 1 to counter 0.
  163. --1/2 chance to use Slashing Claw (Targets the party member with the highest LIFE). Add 1 to counter 1.
  164. -Else:
  165. --2/3 chance to attack. Add 1 to counter 0.
  166. --1/3 chance to use Slashing Claw (Targets the party member with the highest LIFE). Add 1 to counter 1.
  167.  
  168. Wraith (LV. 54/50)
  169. ==================
  170. -Take 1 action per turn.
  171. -If the extra turn phase is active:
  172. --Use Noxious Surge (Targets party members that are not inflicted with Downer).
  173. -If the turn count at or below 1:
  174. --1/4 chance to attack. Add 1 to counter 0.
  175. --1/4 chance to use Swaying React (Targets the user's side).
  176. --1/4 chance to use Plasma Ball. Set counter 1 to 1.
  177. --1/4 chance to use Cursed Surge.
  178. -If counter 1 is at 1:
  179. --Attack. Set counters 0, 1, and 2 to 0.
  180. -If counter 0 is at or above 1 and self does not have a Sway React buff:
  181. --1/5 chance to attack. Add 1 to counter 0.
  182. --2/5 chance to use Swaying React (Targets the user's side).
  183. --1/5 chance to use Plasma Ball. Set counter 1 to 1.
  184. --1/5 chance to use Cursed Surge.
  185. -If counter 0 is at or above 1 and self has a Sway React buff:
  186. --1/4 chance to attack. Add 1 to counter 0.
  187. --2/4 chance to use Plasma Ball. Set counter 1 to 1.
  188. --1/4 chance to use Cursed Surge.
  189. -Else:
  190. --1/4 chance to attack. Add 1 to counter 0.
  191. --2/4 chance to use Plasma Ball. Set counter 1 to 1.
  192. --1/4 chance to use Cursed Surge.
  193.  
  194. Blossom (LV. 9/7)
  195. =================
  196. Routine 1:
  197. -Take 1 action per turn.
  198. -Attack.
  199.  
  200. Routine 2:
  201. -Take 1 action per turn.
  202. -If counter 1 is at or above 1:
  203. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  204. -If counter 0 is at or above 2, at least 1 party member does not have an ATK debuff, and at least 1 party member does not have a MAT debuff:
  205. --Use Draining Pollen. Set counter 0 to 0. Add 1 to counter 1.
  206. -If at least 1 party member does not have an ATK debuff, and at least 1 party member does not have a MAT debuff:
  207. --2/3 chance to attack. Add 1 to counter 0.
  208. --1/3 chance to use Draining Pollen. Set counter 0 to 0. Add 1 to counter 1.
  209. -Else:
  210. --Attack. Add 1 to counter 0.
  211.  
  212. Murderbear (LV. 61/56)
  213. ======================
  214. -Take 1 action per turn.
  215. -If the turn count at or below 1:
  216. --1/3 chance to attack.
  217. --1/3 chance to use Chomp. Set counter 2 to 1.
  218. --1/3 chance to use Gather Power (Targets the user's side). Add 1 to counter 0.
  219. -If counter 1 is at or above 3:
  220. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  221. -If counter 2 is at 1:
  222. --Attack. Add 1 to counters 0 and 1. Set counter 2 to 0.
  223. -If counter 0 is at or above 2:
  224. --1/3 chance to attack. Add 1 to counters 0 and 1.
  225. --2/3 chance to use Chomp. Set counter 0 to 0. Add 1 to counters 1 and 2.
  226. -Else:
  227. --1/2 chance to attack. Add 1 to counters 0 and 1.
  228. --1/2 chance to use Chomp. Set counter 0 to 0. Add 1 to counters 1 and 2.
  229.  
  230. Nighthawk (LV. 25/22)
  231. =====================
  232. -Take 1 action per turn.
  233. -If the turn count at or below 1:
  234. --1/2 chance to attack. Add 1 to counter 0.
  235. --1/2 chance to use Mach Wing (Targets the user's side).
  236. -If counter 1 is at 1:
  237. --Attack. Set counters 0, 1, and 2 to 0.
  238. -If counter 0 is at or above 1:
  239. --1/3 chance to attack. Add 1 to counter 0.
  240. --2/3 chance to use Shock Wing (Targets the party member with the highest LIFE). Set to counter 1 to 1.
  241. -Else:
  242. --1/2 chance to attack. Add 1 to counter 0.
  243. --1/2 chance to use Shock Wing (Targets the party member with the highest LIFE). Set to counter 1 to 1.
  244.  
  245. Green Turtle (LV. 25/22)
  246. ========================
  247. -Take 1 action per turn.
  248. -If the turn count at or below 1:
  249. --2/4 chance to use Tremor. Set counter 2 to 1.
  250. --2/4 chance to use Harden (Targets the user's side). Set counter 1 to 0.
  251. -If counter 1 is at or above 4:
  252. --Use Harden (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  253. -If counter 2 is at 1:
  254. --Attack. Set counters 0 and 2 to 0. Add 1 to counter 1.
  255. -If counter 0 is at or above 2:
  256. --Use Tremor. Set counter 0 to 0. Add 1 to counters 1 and 2.
  257. -Else:
  258. --Attack. Add 1 to counters 0 and 1.
  259.  
  260. Trash Golem (LV. 30/26)
  261. =======================
  262. -Take 1 action per turn.
  263. -If the turn count at or below 1:
  264. --1/2 chance to attack. Add 1 to counter 0.
  265. --1/2 chance to use Earthquake. Add 1 to counter 1.
  266. -If counter 1 is at 1:
  267. --Attack. Set counters 0 and 1 to 0.
  268. -If counter 2 is at or above 3:
  269. --Use Earthquake. Set counter 1 to 1. Set counter 2 to 0.
  270. -If counter 0 is at or above 1:
  271. --1/3 chance to attack. Add 1 to counters 0 and 2.
  272. --2/3 chance to use Golem Hammer (Targets the party member with the highest LIFE). Set to counter 1 to 1. Add 1 to counter 2.
  273. -Else:
  274. --2/3 chance to attack. Add 1 to counters 0 and 2.
  275. --1/3 chance to use Golem Hammer (Targets the party member with the highest LIFE). Set to counter 1 to 1. Add 1 to counter 2.
  276.  
  277. Screw Shark (LV. 53/49)
  278. =======================
  279. -Take 1 action per turn.
  280. -If counter 1 is at or above 1:
  281. --Attack. Set counter 1 to 0.
  282. -If counter 0 is at or above 3:
  283. --1/3 chance to use Screw Buster (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counter 1.
  284. --2/3 chance to use Screw Buster. Set to counter 0 to 0. Add 1 to counter 1.
  285. -If counter 0 is at or above 1:
  286. --1/4 chance to attack. Add 1 to counter 0.
  287. --3/4 chance to use Screw Buster (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counter 1.
  288. -Else:
  289. --1/3 chance to attack. Add 1 to counter 0.
  290. --2/3 chance to use Screw Buster (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counter 1.
  291.  
  292. Wild Boar (LV. 30/26)
  293. =====================
  294. -Take 1 action per turn.
  295. -If the turn count at or below 1:
  296. --1/2 chance to attack.
  297. --1/2 chance to use Gather Qi (Targets the user's side).
  298. -If counter 2 is at or above 4:
  299. --Use Gather Qi (Targets the user's side). Set counter 2 to 0.
  300. -If counter 1 is at or above 1:
  301. --Attack. Set counter 1 to 0.
  302. -If counter 0 is at or above 2:
  303. --1/3 chance to attack. Add 1 to counters 0 and 2.
  304. --2/3 chance to use Rush (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counters 1 and 2.
  305. -Else:
  306. --1/2 chance to attack. Add 1 to counters 0 and 2.
  307. --1/2 chance to use Rush (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counters 1 and 2.
  308.  
  309. Deathscissor (LV. 34/30)
  310. ========================
  311. -Take 1 action per turn.
  312. -If the extra turn phase is active:
  313. --Use Predator (Targets the party member with the highest LIFE).
  314. -If the turn count at or below 1:
  315. --1/3 chance to attack. Add 1 to counter 0.
  316. --2/3 chance to use Critical React (Targets the user's side).
  317. -If counter 0 is at or above 1 and self does not have a Critical React buff:
  318. --1/4 chance to attack. Add 1 to counter 0.
  319. --3/4 chance to use Critical React (Targets the user's side). Set counter 0 to 0.
  320. -If counter 0 is at or above 1 and self has a Critical React buff:
  321. --Attack. Add 1 to counter 0.
  322. -If self does not have a Critical React buff:
  323. --1/3 chance to attack. Add 1 to counter 0.
  324. --2/3 chance to use Critical React (Targets the user's side). Set counter 0 to 0.
  325. -Else:
  326. --Attack. Add 1 to counter 0.
  327.  
  328. Bloom Seed (LV. 1/1)
  329. ====================
  330. -Take 1 action per turn.
  331. -If counter 0 is at or above 5:
  332. --Use Escape. Set counter 0 to 0.
  333. -Else:
  334. --1/2 chance to attack. Add 1 to counter 0.
  335. --1/2 chance to use Escape.
  336.  
  337. Red Rabi (LV. 36/32)
  338. ====================
  339. -Take 1 action per turn.
  340. -If counter 2 is at 0 and self is at or below 50% LIFE:
  341. --1/2 chance to use Grooming (Targets self). Set counter 2 to 10.
  342. --1/2 chance to use Chomp (Targets the party member with the lowest level). Set counter 2 to 10.
  343. -If counter 1 is at or above 1:
  344. --Attack (Default targeting). Set counters 0 and 1 to 0.
  345. -If counter 0 is at or above 2:
  346. --1/2 chance to attack (Default targeting). Add 1 to counter 0.
  347. --1/2 chance to use Chomp (Targets the party member with the highest LIFE). Add 1 to counter 1.
  348. -Else:
  349. --3/4 chance to attack (Default targeting). Add 1 to counter 0.
  350. --1/4 chance to use Chomp (Targets the party member with the highest LIFE). Add 1 to counter 1.
  351.  
  352. Blue Rabi (LV. 19/16)
  353. =====================
  354. -Take 1 action per turn.
  355. -If self is at or below 55% LIFE and counter 2 is at 0:
  356. --1/5 chance to use Groom (Targets the user's side). Set counter 2 to 10.
  357. --2/5 chance to attack. Add 1 to counter 0.
  358. --2/5 chance to use Tail Slap (Targets the party member with the highest LIFE). Add 1 to counter 1.
  359. -If counter 1 is at or above 1:
  360. --Attack. Set counters 0 and 1 to 0.
  361. -If counter 0 is at or above 2:
  362. --1/2 chance to attack. Add 1 to counter 0.
  363. --1/2 chance to use Tail Slap (Targets the party member with the highest LIFE). Add 1 to counter 1.
  364. -Else:
  365. --1/3 chance to attack. Add 1 to counter 0.
  366. --2/3 chance to use Tail Slap (Targets the party member with the highest LIFE). Add 1 to counter 1.
  367.  
  368. Magma Slime (LV. 5/4)
  369. =====================
  370. -Take 1 action per turn.
  371. -If the turn count at or below 1:
  372. --1/2 chance to attack. Add 1 to counter 0.
  373. --1/2 chance to use Jellify (Targets the user's side).
  374. -If counter 1 is at 1:
  375. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  376. -If self does not have a DEF buff:
  377. --1/3 chance to attack. Add 1 to counter 0.
  378. --1/3 chance to use Magma Tackle (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  379. --1/3 chance to use Jellify (Targets the user's side). Add 1 to counter 0.
  380. -If counter 0 is at or above 1:
  381. --1/3 chance to attack. Add 1 to counter 0.
  382. --2/3 chance to use Magma Tackle (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  383. -Else:
  384. --Attack. Add 1 to counter 0.
  385.  
  386. White Jelly (LV. 19/16)
  387. =======================
  388. -Take 1 action per turn.
  389. -If the turn count at or below 1:
  390. --1/3 chance to attack. Add 1 to counter 0.
  391. --2/3 chance to use Tackle (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  392. -If counter 1 is at 1:
  393. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  394. -If self does not have a DEF buff:
  395. --1/3 chance to attack. Add 1 to counter 0.
  396. --2/3 chance to use Tackle (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  397. -If counter 0 is at or above 1:
  398. --1/3 chance to attack. Add 1 to counter 0.
  399. --2/3 chance to use Tackle (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  400. -Else:
  401. --Attack. Add 1 to counter 0.
  402.  
  403. Singing Frog (LV. 41/37)
  404. ========================
  405. -Take 1 action per turn.
  406. -If counter 1 is at or above 1:
  407. --Attack. Set counters 0 and 1 to 0.
  408. -If any party members are inflicted with Sleep:
  409. --Attack.
  410. -Else:
  411. --3/4 chance to attack.
  412. --1/4 chance to use Sleep Song (Targets party members that are not inflicted with Sleep). Add 1 to counter 1.
  413.  
  414. Froggle (LV. 51/47)
  415. ===================
  416. -Take 1 action per turn.
  417. -If counter 1 is at or above 1:
  418. --Attack. Set counters 0 and 1 to 0.
  419. -If any party members are inflicted with Sleep:
  420. --Attack.
  421. -Else:
  422. --1/3 chance to attack.
  423. --2/3 chance to use Sleep Song (Targets party members that are not inflicted with Sleep). Add 1 to counter 1.
  424.  
  425. Northcrown (LV. 53/49)
  426. ======================
  427. -Take 1 action per turn.
  428. -If the turn count is at or below 1:
  429. --1/3 chance to attack. Add 1 to counter 0.
  430. --2/3 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  431. -If counter 1 is at or above 1:
  432. --Attack. Set counters 0 and 1 to 0.
  433. -If counter 0 is at or above 2:
  434. --1/4 chance to attack. Add 1 to counter 0.
  435. --3/4 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  436. -Else:
  437. --1/3 chance to attack. Add 1 to counter 0.
  438. --2/3 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  439.  
  440. Airgrass Nymph (LV. 30/26)
  441. ==========================
  442. -Take 1 action per turn.
  443. -If counter 1 is at or above 1:
  444. --Attack. Set counters 0 and 1 to 0.
  445. -If counter 0 is at or above 2:
  446. --1/2 chance to use Sleep Scales (Targets party members that are not inflicted with Sleep). Add 1 to counter 1.
  447. --1/2 chance to use Paralysis Scale (Targets party members that are not inflicted with Paralysis). Add 1 to counter 1.
  448. -Else:
  449. --2/6 chance to attack. Add 1 to counter 0.
  450. --2/6 chance to use Sleep Scales (Targets party members that are not inflicted with Sleep). Add 1 to counter 1.
  451. --2/6 chance to use Paralysis Scale (Targets party members that are not inflicted with Paralysis). Add 1 to counter 1.
  452.  
  453. Darkgrass Nymph (LV. 60/55)
  454. ===========================
  455. -Take 1 action per turn.
  456. -If counter 1 is at or above 1:
  457. --Attack. Set counters 0 and 1 to 0.
  458. -If counter 0 is at or above 2:
  459. --1/2 chance to use Stone Scales (Targets party members that are not inflicted with Petrify). Add 1 to counter 1.
  460. --1/2 chance to use Paralsis Scale (Targets party members that are not inflicted with Paralysis). Add 1 to counter 1.
  461. -Else:
  462. --1/5 chance to attack. Add 1 to counter 0.
  463. --2/5 chance to use Stone Scales (Targets party members that are not inflicted with Petrify). Add 1 to counter 1.
  464. --2/5 chance to use Paralsis Scale (Targets party members that are not inflicted with Paralysis). Add 1 to counter 1.
  465.  
  466. Bunbuku (LV. 51/47)
  467. ===================
  468. -Take 1 action per turn.
  469. -If the turn count is at or below 1 and all party members are not inflicted with Confusion:
  470. --1/3 chance to attack.
  471. --1/3 chance to use Enchanting Fog.
  472. --1/3 chance to use Frenzied Scratching. Add 1 to counter 1.
  473. -If the turn count is at or below 1:
  474. --1/2 chance to attack.
  475. --1/2 chance to use Frenzied Scratching. Add 1 to counter 1.
  476. -If counter 1 is at or above 1:
  477. --Attack. Set counter 1 to 0.
  478. -If counter 0 is at or above 1 and all party members are not inflicted with Confusion:
  479. --1/3 chance to attack. Set counter 0 to 0.
  480. --2/3 chance to use Enchanting Fog. Add 1 to counter 1.
  481. -If counter 0 is at or above 1:
  482. --1/3 chance to attack. Add 1 to counter 0.
  483. --2/3 chance to use Frenzied Scratching. Add 1 to counter 1.
  484. -Else:
  485. --1/2 chance to attack. Add 1 to counter 0.
  486. --1/2 chance to use Frenzied Scratching. Add 1 to counter 1.
  487.  
  488. Metal Tanuki (LV. 32/28)
  489. ========================
  490. -Take 2 actions per turn.
  491. -If global counter 0 is at 0:
  492. --Use Tanuki Dance (Targets the user's side). Set global counter 0 to 10.
  493. -If counter 2 is at 0 and self is at or below 30% LIFE:
  494. --Use Enchanting Fog. Add 1 to counters 0 and 1. Set counter 2 to 10.
  495. -If counter 1 is at or above 7 and it is the second action in the turn:
  496. --Use Tanuki Dance (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  497. -If counter 0 is at or above 3:
  498. --Use Frenzied Scratching. Set counter 0 to 0. Add 1 to counter 1.
  499. -Else:
  500. --Attack. Add 1 to counters 0 and 1.
  501.  
  502. Enragelope (LV. 45/41)
  503. ======================
  504. -Take 1 action per turn.
  505. -If the turn count is at or below 1:
  506. --2/4 chance to attack.
  507. --1/4 chance to use Ultrasonic (Targets party members that are not inflicted with Confusion).
  508. --1/4 chance to use Rear Kick (Targets the party member with the highest LIFE). Add 1 to counter 1.
  509. -If counter 1 is at or above 1:
  510. --Attack. Set counter 1 to 0.
  511. -If counter 0 is at or above 1:
  512. --1/4 chance to attack. Add 1 to counter 0.
  513. --2/4 chance to use Rear Kick (Targets the party member with the highest LIFE). Add 1 to counter 1.
  514. --1/4 chance to use Ultrasonic (Targets party members that are not inflicted with Confusion). Add 1 to counter 1.
  515. -Else:
  516. --1/3 chance to attack. Add 1 to counter 0.
  517. --1/3 chance to use Rear Kick (Targets the party member with the highest LIFE). Add 1 to counter 1.
  518. --1/3 chance to use Ultrasonic (Targets party members that are not inflicted with Confusion). Add 1 to counter 1.
  519.  
  520. Flushed Monkey (LV. 30/26)
  521. ==========================
  522. -If the turn count at or below 1:
  523. --1/4 chance to attack. Add 1 to counter 0.
  524. --1/4 chance to use Lavarock Toss (Targets the party member with the highest LIFE). Add 1 to counter 1.
  525. --2/4 chance to use Excited Charge (Targets the user's side).
  526. -If counter 1 is at 1:
  527. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  528. -If self does not have an ATK buff and counter 0 is at or above 1:
  529. --1/3 chance to attack. Add 1 to counter 0.
  530. --1/3 chance to use Lavarock Toss (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  531. --1/3 chance to use Excited Charge (Targets the user's side). Add 1 to counter 0.
  532. -If counter 0 is at or above 1:
  533. --1/3 chance to attack. Add 1 to counter 0.
  534. --2/3 chance to use Lavarock Toss (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  535. -Else:
  536. --Attack. Add 1 to counter 0.
  537.  
  538. Amethyst Fan (LV. 43/39)
  539. ========================
  540. -Take 1 action per turn.
  541. -If the turn count at or below 1:
  542. --2/4 chance to attack. Add 1 to counter 0.
  543. --1/4 chance to use Illusory Fire. Set counter 1 to 1.
  544. --1/4 chance to use Flash. Set counter 1 to 1.
  545. -If counter 1 is at 1:
  546. --Attack. Set counters 0, 1, and 2 to 0.
  547. -If counter 0 is at or above 1:
  548. --1/3 chance to attack. Add 1 to counter 0.
  549. --1/3 chance to use Illusory Fire. Set counter 1 to 1.
  550. --1/3 chance to use Flash. Set counter 1 to 1.
  551. -Else:
  552. --Attack. Add 1 to counter 0.
  553.  
  554. Crimson Fan (LV. 54/50)
  555. =======================
  556. -Take 1 action per turn.
  557. -If the turn count at or below 1:
  558. --1/4 chance to attack. Add 1 to counter 0.
  559. --1/4 chance to use Illusory Fire. Set counter 1 to 1.
  560. --2/4 chance to use Glamorous Light. Set counter 1 to 1.
  561. -If counter 1 is at 1:
  562. --Attack. Set counters 0, 1, and 2 to 0.
  563. -If counter 0 is at or above 1:
  564. --1/4 chance to attack. Add 1 to counter 0.
  565. --2/4 chance to use Illusory Fire. Set counter 1 to 1.
  566. --1/4 chance to use Glamorous Light. Set counter 1 to 1.
  567. -Else:
  568. --Attack. Add 1 to counter 0.
  569.  
  570. Sky Crab (LV. 35/31)
  571. ====================
  572. -Take 1 action per turn.
  573. -If counter 2 is at 0:
  574. --Use Fortify (Targets the user's side). Set counter 2 to 10.
  575. -If counter 2 is at 10:
  576. --1/3 chance to use Bubble Breath (Targets the party member with the highest LIFE). Set counter 2 to 20.
  577. --2/3 chance to use Bubble Breath. Set counter 2 to 20.
  578. -If counter 1 is at or above 4:
  579. --Use Solidify (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  580. -If counter 0 is at or above 2:
  581. --1/3 chance to use Bubble Breath (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  582. --2/3 chance to use Bubble Breath. Set counter 0 to 0. Add 1 to counter 1.
  583. -Else:
  584. --Attack. Add 1 to counters 0 and 1.
  585.  
  586. Death Jackal (LV. 48/44)
  587. ========================
  588. -Take 1 action per turn.
  589. -If counter 1 is at or above 1:
  590. --Attack. Set counters 0 and 1 to 0.
  591. -If counter 2 is at 10:
  592. --Use Blade Fang (Targets the party member with the highest LIFE). Add 1 to counter 1. Set counter 2 to 0.
  593. -If self does not have an ATK buff and counter 0 is at or above 1:
  594. --2/3 chance to use Gather Power (Targets the user's side). Set counter 2 to 10.
  595. --1/3 chance to attack. Add 1 to counter 0.
  596. -If counter 0 is at or above 1:
  597. --1/3 chance to attack. Add 1 to counter 0.
  598. --2/3 chance to use Slashing Claw (Targets the party member with the highest LIFE). Add 1 to counter 1.
  599. -Else:
  600. --1/2 chance to attack. Add 1 to counter 0.
  601. --1/2 chance to use Slashing Claw (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  602.  
  603. Phantom (LV. 38/34)
  604. ===================
  605. -Take 1 action per turn.
  606. -If the turn count at or below 1:
  607. --1/4 chance to attack. Add 1 to counter 0.
  608. --1/4 chance to use Noxious Surge (Targets party members that are not inflicted with Downer).
  609. --2/4 chance to use Cursed Surge (Targets party members that are not inflicted with Curse).
  610. -If counter 2 is at 1:
  611. --Attack. Set counter 2 to 0.
  612. -If counter 0 is at or above 1:
  613. --2/4 chance to attack. Set counter 0 to 0.
  614. --1/4 chance to use Noxious Surge (Targets party members that are not inflicted with Downer). Set counter 0 to 0.
  615. --1/4 chance to use Cursed Surge (Targets party members that are not inflicted with Curse). Set counter 0 to 0.
  616. -Else:
  617. --1/2 chance to attack. Add 1 to counter 0.
  618. --1/2 chance to use Plasma Ball. Set counter 0 to 0. Add 1 to counter 2.
  619.  
  620. Rafflesia (LV. 34/30)
  621. =====================
  622. -Take 1 action per turn.
  623. -If the turn count at or below 1:
  624. --3/5 chance to attack. Add 1 to counter 0.
  625. --1/5 chance to use Blinding Pollen. Set counter 0 to 0. Set counter 1 to 1.
  626. --1/5 chance to use Draining Pollen. Set counter 0 to 0. Set counter 1 to 1.
  627. -If counter 1 is at or above 1:
  628. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  629. -If counter 0 is at or above 1:
  630. --2/4 chance to attack. Add 1 to counter 0.
  631. --1/4 chance to use Blinding Pollen. Set counter 0 to 0. Set counter 1 to 1.
  632. --1/4 chance to use Draining Pollen. Set counter 0 to 0. Set counter 1 to 1.
  633. -Else:
  634. --Attack. Add 1 to counter 0.
  635.  
  636. Freesia (LV. 51/47)
  637. ===================
  638. -Take 1 action per turn.
  639. -If the turn count at or below 1:
  640. --2/5 chance to attack. Add 1 to counter 0.
  641. --1/5 chance to use Sleep Pollen. Set counter 0 to 0. Set counter 1 to 1.
  642. --2/5 chance to use Draining Pollen. Set counter 0 to 0. Set counter 1 to 1.
  643. -If counter 1 is at or above 1:
  644. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  645. -If counter 0 is at or above 1:
  646. --1/5 chance to attack. Add 1 to counter 0.
  647. --2/5 chance to use Sleep Pollen. Set counter 0 to 0. Set counter 1 to 1.
  648. --2/5 chance to use Draining Pollen. Set counter 0 to 0. Set counter 1 to 1.
  649. -Else:
  650. --Attack. Add 1 to counter 0.
  651.  
  652. Lazy Bear (LV. 15/12)
  653. =====================
  654. -Take 1 action per turn.
  655. -If the turn count at or below 1:
  656. --2/4 chance to attack.
  657. --1/4 chance to use Ripper. Set counter 2 to 1.
  658. --1/4 chance to use Gather Power (Targets the user's side). Add 1 to counter 0.
  659. -If counter 1 is at or above 3:
  660. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  661. -If counter 2 is at 1:
  662. --Attack. Add 1 to counters 0 and 1. Set counter 2 to 0.
  663. -If counter 0 is at or above 2:
  664. --2/3 chance to attack. Add 1 to counters 0 and 1.
  665. --1/3 chance to use Ripper. Set counter 0 to 0. Add 1 to counters 1 and 2.
  666. -Else:
  667. --Attack. Add 1 to counters 0 and 1.
  668.  
  669. Twilight Wing (LV. 43/39)
  670. =========================
  671. -Take 1 action per turn.
  672. -If the turn count at or below 1:
  673. --1/3 chance to attack. Add 1 to counter 0.
  674. --2/3 chance to use Bolt Wing (Targets the party member with the highest LIFE). Set to counter 1 to 1.
  675. -If counter 1 is at 1:
  676. --Attack. Set counters 0, 1, and 2 to 0.
  677. -If counter 0 is at or above 1:
  678. --1/3 chance to attack. Add 1 to counter 0.
  679. --2/3 chance to use Bolt Wing (Targets the party member with the highest LIFE). Set to counter 1 to 1.
  680. -Else:
  681. --1/2 chance to attack. Add 1 to counter 0.
  682. --1/2 chance to use Bolt Wing (Targets the party member with the highest LIFE). Set to counter 1 to 1.
  683.  
  684. Volcanic Turtle (LV. 39/35)
  685. ===========================
  686. -Take 1 action per turn.
  687. -If the turn count at or below 1:
  688. --2/4 chance to use Fumarole. Set counter 2 to 1.
  689. --2/4 chance to use Harden (Targets the user's side). Set counter 1 to 0.
  690. -If counter 1 is at or above 4:
  691. --Use Harden (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  692. -If counter 2 is at 1:
  693. --Attack. Set counters 0 and 2 to 0. Add 1 to counter 1.
  694. -If counter 0 is at or above 2:
  695. --Use Fumarole. Set counter 0 to 0. Add 1 to counters 1 and 2.
  696. -Else:
  697. --Attack. Add 1 to counters 0 and 1.
  698.  
  699. Magnetic Golem (LV. 41/37)
  700. ==========================
  701. -Take 1 action per turn.
  702. -If the turn count at or below 1:
  703. --1/2 chance to attack. Add 1 to counter 0.
  704. --1/2 chance to use Earthquake. Add 1 to counter 1.
  705. -If counter 1 is at 1:
  706. --Attack. Set counters 0 and 1 to 0.
  707. -If counter 2 is at or above 2:
  708. --Use Earthquake. Set counter 1 to 1. Set counter 2 to 0.
  709. -If counter 0 is at or above 1:
  710. --1/3 chance to attack. Add 1 to counters 0 and 2.
  711. --2/3 chance to use Golem Hammer (Targets the party member with the highest LIFE). Set to counter 1 to 1. Add 1 to counter 2.
  712. -Else:
  713. --1/2 chance to attack. Add 1 to counters 0 and 2.
  714. --1/2 chance to use Golem Hammer (Targets the party member with the highest LIFE). Set to counter 1 to 1. Add 1 to counter 2.
  715.  
  716. Stone Monkfish (LV. 39/35)
  717. ==========================
  718. -Take 1 action per turn.
  719. -If counter 1 is at or above 1 and counter 0 is at 0:
  720. --2/3 chance to use Petrify Gleam (Targets party members that are not inflicted with Petrify). Set counters 0 and 1 to 0. Add 10 to counter 2.
  721. --1/3 chance to use Gnaw. Set counters 0 and 1 to 0.
  722. -If this routine has not been accessed for at least 3 turns, all party members are not inflicted with Petrify, and counter 1 is at or above 1:
  723. --1/2 chance to use Petrify Gleam (Targets party members that are not inflicted with Petrify). Set counters 0 and 1 to 0.
  724. --1/2 chance to use Gnaw. Set counters 0 and 1 to 0.
  725. -If counter 1 is at or above 1:
  726. --2/6 chance to use Gnaw (Targets the party member with the highest level). Set counters 0 and 1 to 0.
  727. --2/6 chance to use Camouflage (Targets party members that are not inflicted with Blind). Add 1 to counter 1.
  728. --1/6 chance to attack. Set counters 0 and 1 to 0.
  729. --1/6 chance to use Petrify Gleam (Targets party members that are not inflicted with Petrify). Set counters 0 and 1 to 0. Add 10 to counter 2.
  730. -If counter 0 is at or above 1:
  731. --1/3 chance to use Camouflage (Targets party members that are not inflicted with Blind). Add 1 to counter 1.
  732. --2/3 chance to attack. Add 1 to counters 0 and 1.
  733. -Else:
  734. --3/5 chance to attack. Add 1 to counter 0.
  735. --1/5 chance to use Camouflage (Targets party members that are not inflicted with Blind). Add 1 to counters 0 and 1.
  736. --1/5 chance to use Gnaw (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  737.  
  738. Snow Boar (LV. 56/52)
  739. =====================
  740. -Take 1 action per turn.
  741. -If the turn count at or below 1:
  742. --1/3 chance to attack.
  743. --1/3 chance to use Rush. Add 1 to counter 1.
  744. --1/3 chance to use Gather Qi (Targets the user's side).
  745. -If counter 2 is at or above 4:
  746. --Use Gather Qi (Targets the user's side). Set counter 2 to 0.
  747. -If counter 1 is at or above 1:
  748. --Attack. Set counter 1 to 0.
  749. -If counter 0 is at or above 2:
  750. --1/3 chance to attack. Add 1 to counters 0 and 2.
  751. --2/3 chance to use Rush (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counters 1 and 2.
  752. -Else:
  753. --1/2 chance to attack. Add 1 to counters 0 and 2.
  754. --1/2 chance to use Rush (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counters 1 and 2.
  755.  
  756. Schwarzer Tod (LV. 41/37)
  757. =========================
  758. -Take 1 action per turn.
  759. -If the extra turn phase is active:
  760. --Use Predator (Targets the party member with the highest LIFE).
  761. -If the turn count at or below 1:
  762. --1/2 chance to attack. Add 1 to counter 0.
  763. --1/2 chance to use Critical React (Targets the user's side).
  764. -If counter 0 is at or above 1 and self does not have a Critical React buff:
  765. --1/3 chance to attack. Add 1 to counter 0.
  766. --2/3 chance to use Critical React (Targets the user's side). Set counter 0 to 0.
  767. -If counter 0 is at or above 1 and self has a Critical React buff:
  768. --Attack. Add 1 to counter 0.
  769. -If self does not have a Critical React buff:
  770. --1/2 chance to attack. Add 1 to counter 0.
  771. --1/2 chance to use Critical React (Targets the user's side). Set counter 0 to 0.
  772. -Else:
  773. --Attack. Add 1 to counter 0.
  774.  
  775. Bloom Seed DX (LV. 1/1)
  776. =======================
  777. -Take 1 action per turn.
  778. -If counter 0 is at or above 5:
  779. --Use Escape. Set counter 0 to 0.
  780. -Else:
  781. --1/2 chance to attack. Add 1 to counter 0.
  782. --1/2 chance to use Escape.
  783.  
  784. Bloom Seed EX (LV. 1/1)
  785. =======================
  786. -Take 1 action per turn.
  787. -If counter 0 is at or above 5:
  788. --Use Escape. Set counter 0 to 0.
  789. -Else:
  790. --1/2 chance to attack. Add 1 to counter 0.
  791. --1/2 chance to use Escape.
  792.  
  793. Bloom Seed 20XX (LV. 1/1)
  794. =========================
  795. -Take 1 action per turn.
  796. -If counter 0 is at or above 5:
  797. --Use Escape. Set counter 0 to 0.
  798. -Else:
  799. --1/2 chance to attack. Add 1 to counter 0.
  800. --1/2 chance to use Escape.
  801.  
  802. Green Tortoise (LV. 23/20)
  803. ==========================
  804. -Take 1 action per turn.
  805. -If counter 2 is at 0:
  806. --Use Harden (Targets the user's side). Set counter 2 to 10.
  807. -If counter 1 is at or above 4:
  808. --Use Harden (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  809. -If counter 0 is at or above 2:
  810. --Use Tremor. Set counter 0 to 0. Add 1 to counter 1.
  811. -If counter 0 is at or above 1:
  812. --1/2 chance to use Tremor. Set counter 0 to 0. Add 1 to counter 1.
  813. --1/2 chance to attack. Add 1 to counters 0 and 1.
  814. -Else:
  815. --Attack. Add 1 to counters 0 and 1.
  816.  
  817. Tentacles (LV. 14/11)
  818. =====================
  819. -Take 1 action per turn.
  820. -If the turn count is at or below 1:
  821. --2/3 chance to attack. Add 1 to counter 0.
  822. --1/3 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  823. -If counter 1 is at or above 1:
  824. --Attack. Set counters 0 and 1 to 0.
  825. -If counter 0 is at or above 2:
  826. --1/2 chance to attack. Add 1 to counter 0.
  827. --1/2 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  828. -Else:
  829. --2/3 chance to attack. Add 1 to counter 0.
  830. --1/3 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  831.  
  832. Mad Bear (LV. 30/26)
  833. ====================
  834. -Take 1 action per turn.
  835. -If the turn count at or below 1:
  836. --2/4 chance to attack.
  837. --1/4 chance to use Ripper. Set counter 2 to 1.
  838. --1/4 chance to use Gather Power (Targets the user's side). Add 1 to counter 0.
  839. -If counter 1 is at or above 3:
  840. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  841. -If counter 2 is at 1:
  842. --Attack. Add 1 to counters 0 and 1. Set counter 2 to 0.
  843. -If counter 0 is at or above 2:
  844. --2/3 chance to attack. Add 1 to counters 0 and 1.
  845. --1/3 chance to use Ripper. Set counter 0 to 0. Add 1 to counters 1 and 2.
  846. -Else:
  847. --Attack. Add 1 to counters 0 and 1.
  848.  
  849. Garbage Golem (LV. 68/63)
  850. =========================
  851. -Take 1 action per turn.
  852. -If global counter 0 is at 0:
  853. --Use Gather Power (Targets the user's side). Set global counter 0 to 10.
  854. -If global counter 0 is at 10:
  855. --Use Earthquake. Set global counter 0 to 20.
  856. -If counter 2 is at 4:
  857. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set counter 2 to 0.
  858. -If counter 1 is at 3:
  859. --Use Earthquake. Add 1 to counter 0. Set counter 1 to 0.
  860. -If counter 0 is at or above 1:
  861. --Use Golem Hammer (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  862. -Else:
  863. --Attack. Add 1 to counters 0 and 1.
  864.  
  865. Volcanic Tortoise (LV. 36/32)
  866. =============================
  867. -Take 1 action per turn.
  868. -If counter 2 is at 0:
  869. --Use Harden (Targets the user's side). Set counter 2 to 10.
  870. -If counter 2 is at 10:
  871. --Use Fumarole. Set counter 2 to 20.
  872. -If counter 1 is at or above 3:
  873. --Use Harden (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  874. -If counter 0 is at or above 2:
  875. --Use Fumarole. Set counter 0 to 0. Add 1 to counter 1.
  876. -Else:
  877. --Attack. Add 1 to counters 0 and 1.
  878.  
  879. Bandit Bear (LV. 50/46)
  880. =======================
  881. -Take 1 action per turn.
  882. -If the turn count at or below 1:
  883. --1/3 chance to attack.
  884. --1/3 chance to use Chomp. Set counter 2 to 1.
  885. --1/3 chance to use Gather Power (Targets the user's side). Add 1 to counter 0.
  886. -If counter 1 is at or above 3:
  887. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  888. -If counter 2 is at 1:
  889. --Attack. Add 1 to counters 0 and 1. Set counter 2 to 0.
  890. -If counter 0 is at or above 2:
  891. --1/3 chance to attack. Add 1 to counters 0 and 1.
  892. --2/3 chance to use Chomp. Set counter 0 to 0. Add 1 to counters 1 and 2.
  893. -Else:
  894. --1/2 chance to attack. Add 1 to counters 0 and 1.
  895. --1/2 chance to use Chomp. Set counter 0 to 0. Add 1 to counters 1 and 2.
  896.  
  897. Rabbit Type Zero (LV. 28/25)
  898. ============================
  899. -Take 2 actions per turn.
  900. -If global counter 0 is at 0:
  901. --Use Chomp. Set global counter 0 to 10.
  902. -If global counter 0 is at 10 and self is at or below 65% LIFE:
  903. --Use Tail Slap. Set counter 1 to 0. Set global counter 0 to 20.
  904. -If global counter 0 is at 20 and self is at or below 30% LIFE:
  905. --Use Grooming (Targets the user's side). Add 1 to counters 0 and 1. Set global counter 0 to 30.
  906. -If counter 1 is at or above 6 and global counter 0 is at or above 20:
  907. --Use Tail Slap. Add 1 to counter 0. Set counter 1 to 0.
  908. -If counter 0 is at or above 3:
  909. --Use Chomp. Set counter 0 to 0. Add 1 to counter 1.
  910. -Else:
  911. --Attack. Add 1 to counters 0 and 1.
  912.  
  913. Electrolaser (LV. 47/43)
  914. ========================
  915. -Take 2 actions per turn.
  916. -If counter 0 is at 7 and it is the second action in the turn:
  917. --1/2 chance to use Clean Sweep. Set counter 0 to 0.
  918. --1/2 chance to attack. Set counter 0 to 0.
  919. -If counter 0 is at 6 and it is the first action in the turn:
  920. --Attack. Add 1 to counter 0.
  921. -If counter 0 is at 5 and it is the second action in the turn:
  922. --1/2 chance to use Clean Sweep. Add 1 to counter 0.
  923. --1/2 chance to attack. Add 1 to counter 0.
  924. -If counter 0 is at 4 and it is the first action in the turn:
  925. --1/2 chance to attack. Add 1 to counter 0.
  926. --1/2 chance to use Clean Sweep. Add 1 to counter 0.
  927. -If counter 0 is at 3 and it is the second action in the turn:
  928. --Attack. Add 1 to counter 0.
  929. -If counter 0 is at 2, counter 2 is at 10, and it is the first action in the turn:
  930. --Use EM Laser (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 0.
  931. -If counter 0 is at 2 and it is the first action in the turn:
  932. --1/3 chance to attack. Add 1 to counter 0.
  933. --2/3 chance to use Clean Sweep. Add 1 to counter 0.
  934. -If counter 0 is at 1 and it is the second action in the turn:
  935. --1/2 chance to use Energy Charge (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  936. --1/2 chance to use Clean Sweep. Add 1 to counter 0.
  937. -If counter 0 is at 0 and it is the first action in the turn:
  938. --Attack. Add 1 to counter 0.
  939. -Else:
  940. --Attack. Add 1 to counter 0.
  941.  
  942. Railgun (LV. 46/42)
  943. ===================
  944. Routine 1:
  945. -Take 2 actions per turn.
  946. -If counter 0 is at or above 5:
  947. --Use Laser Cannon. Add 1 to counter 0.
  948. -Else:
  949. --1/2 chance to attack. Add 1 to counter 0.
  950. --1/2 chance to use Clean Sweep. Add 1 to counter 0.
  951.  
  952. Routine 2:
  953. -Take 1 action per turn.
  954. -If counter 0 is at or above 1, swap to routine 3.
  955. -If counter 0 is at 0:
  956. --Use Clean Sweep. Set counter 0 to 1.
  957. -Else:
  958. --Attack. Add 1 to counter 0.
  959.  
  960. Routine 3:
  961. -Take 1 action per turn.
  962. -1/3 chance to use Clean Sweep.
  963. -2/3 chance to use Laser Cannon.
  964.  
  965. Oceanus Tentacle (LV. 25/22)
  966. ============================
  967. -Take 2 actions per turn.
  968. -If counter 0 is at 7, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  969. --1/2 chance to use Poison Tail (Targets party members that are not inflicted with Poison). Set counter 0 to 0.
  970. --1/2 chance to attack. Set counter 0 to 0.
  971. -If counter 0 is at 7 and it is the second action in the turn:
  972. --Attack. Set counter 0 to 0.
  973. -If counter 0 is at 6, counter 2 is at 10, and it is the first action in the turn:
  974. --Use Tail Swing. Add 1 to counter 0. Set counter 2 to 0.
  975. -If counter 0 is at 6 and it is the first action in the turn:
  976. --Attack. Add 1 to counter 0.
  977. -If counter 0 is at 5, and self does not have an ATK buff, and it is the second action in the turn:
  978. --Use Swing Stance (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10. Set global counter 1 to 0.
  979. -If counter 0 is at 5 and it is the second action in the turn:
  980. --Attack. Add 1 to counter 0.
  981. -If counter 0 is at 4, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  982. --2/3 chance to use Poison Tail (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  983. --1/3 chance to attack. Add 1 to counter 0.
  984. -If counter 0 is at 4 and it is the first action in the turn:
  985. --Attack. Add 1 to counter 0.
  986. -If counter 0 is at 3 and it is the second action in the turn:
  987. --Attack. Add 1 to counter 0.
  988. -If at least 1 party member is not inflicted with Poison and counter 0 is at 2:
  989. --1/2 chance to use Poison Tail (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  990. --1/2 chance to attack. Add 1 to counter 0.
  991. -If counter 0 is at 2:
  992. --Attack. Add 1 to counter 0.
  993. -If counter 0 is at 1:
  994. --Attack. Add 1 to counter 0.
  995. -If counter 0 is at 0:
  996. --2/3 chance to use Poison Tail (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  997. --1/3 chance to attack. Add 1 to counter 0.
  998. -Else:
  999. --1/2 chance to attack. Add 1 to counter 0.
  1000. --1/2 chance to use Poison Tail (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  1001.  
  1002. Wolverine (LV. 3/2)
  1003. ===================
  1004. -Take 1 action per turn.
  1005. -If counter 0 is at or above 4:
  1006. --1/3 chance to use Power Claw (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 20.
  1007. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1008. --1/3 chance to use Double Bite (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 20.
  1009. -If counter 2 is at 10 and counter 0 is at 3:
  1010. --1/3 chance to use Double Bite. Add 1 to counter 0. Set counter 2 to 20.
  1011. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1012. -If counter 2 is at 0 and counter 0 is at 3:
  1013. --1/3 chance to use Power Claw. Add 1 to counter 0. Set counter 2 to 20.
  1014. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1015. -If counter 0 is at 2 and counter 1 is at 10:
  1016. --Use Double Bite. Add 1 to counter 0. Set counter 2 to 0.
  1017. -If counter 0 is at 2 and counter 1 is at 0:
  1018. --Use Bristle (Targets the user's side). Add 1 to counter 0. Set counters 1 and 2 to 10.
  1019. -If self does not have an ATK buff and counter 0 is at 1:
  1020. --Use Bristle (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  1021. -If counter 0 is at 1:
  1022. --Use Power Claw (Targets the party member with the lowest level).
  1023. -If counter 0 is at 0:
  1024. --1/2 chance to use Power Claw (Targets the party member with the highest LIFE). Set counter 0 to 1.
  1025. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1026. -Else:
  1027. --1/2 chance to use Power Claw (Targets the party member with the highest LIFE). Set counter 0 to 1.
  1028. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1029.  
  1030. Kickbird (LV. 9/7)
  1031. ==================
  1032. -Take 1 action per turn.
  1033. -If counter 0 is at 3:
  1034. --1/2 chance to use Rascal Kick (Targets the party member with the highest LIFE). Set counters 0 and 1 to 0.
  1035. --1/2 chance to attack. Set counters 0 and 1 to 0.
  1036. -If counter 1 is at 1 and counter 0 is at 2:
  1037. --Use Talon Trample (Targets the party member with the highest LIFE). Set counter 1 to 0.
  1038. -If counter 1 is at 1 and counter 0 is at 2:
  1039. --Use Rascal Kick. Set counter 1 to 0.
  1040. -If counter 1 is at 1 and counter 0 is at 1:
  1041. --Use Talon Trample (Targets the party member with the highest LIFE). Set counter 1 to 0.
  1042. -If counter 0 is at 1 and at least 1 party member is not inflicted with Paralysis:
  1043. --Use Powder Toss (Targets party members that are not inflicted with Paralysis). Add 1 to counter 0.
  1044. -If counter 0 is at 1:
  1045. --Use Talon Trample (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  1046. -If counter 0 is at 1 and self does not have an ATK buff:
  1047. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1.
  1048. -If counter 0 is at 0 and self does not have an ATK buff:
  1049. --1/3 chance to use Gather Power (Targets the user's side). Add 1 to counters 0 and 1.
  1050. --2/3 chance to use Rascal Kick (Targets the party member with the lowest level). Add 1 to counter 0.
  1051. -If counter 0 is at 0:
  1052. --2/4 chance to use Rascal Kick (Targets the party member with the lowest level). Add 1 to counter 0.
  1053. --2/4 chance to attack. Add 1 to counter 0.
  1054. -Else:
  1055. --Attack. Add 1 to counter 0.
  1056.  
  1057. Death Beetle (LV. 38/34)
  1058. ========================
  1059. -Take 1 action per turn.
  1060. -If counter 0 is at or above 3:
  1061. --1/3 chance to attack. Set counter 0 to 0.
  1062. --1/3 chance to use Boomerang Cutter (Targets the party member with the lowest level). Set counter 0 to 0.
  1063. --1/3 chance to use Scissor Attack. Set counter 0 to 0.
  1064. -If counter 0 is at 2 and counter 2 is at 10:
  1065. --Use Cross Slash. Add 1 to counter 0. Set counter 2 to 0.
  1066. -If counter 0 is at 2:
  1067. --Use Boomerang Cutter (Targets the party member with the highest level). Add 1 to counter 0. Set counter 2 to 0.
  1068. -If counter 0 is at 1 and self does not have an ATK buff:
  1069. --1/2 chance to use Spinning Stance (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  1070. --1/2 chance to attack. Add 1 to counter 0.
  1071. -If counter 0 is at 1:
  1072. --1/2 chance to use Scissor Attack. Add 1 to counter 0.
  1073. --1/2 chance to use Boomerang Cutter (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1074. -If counter 0 is at 0:
  1075. --1/3 chance to attack. Add 1 to counter 0.
  1076. --1/3 chance to use Boomerang Cutter (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1077. --1/3 chance to use Scissor Attack. Add 1 to counter 0.
  1078. -If counter 0 is at 0:
  1079. --1/2 chance to attack. Set counter 2 to 0.
  1080. --1/2 chance to use Scissor Attack. Set counter 2 to 0.
  1081.  
  1082. Monkfish (LV. 25/22)
  1083. ====================
  1084. -Take 1 action per turn.
  1085. -If all party members are not inflicted with Paralysis, counter 1 is at or above 1, and counter 0 is at 0:
  1086. --Use Paralysis Wave (Targets party members inflicted with nothing). Set counters 0 and 1 to 0. Add 10 to counter 2.
  1087. -If all party members are not inflicted with Blind and counter 1 is at or above 1:
  1088. --1/3 chance to use Camouflage (Targets party members that are not inflicted with Blind). Set counters 0 and 1 to 0.
  1089. --1/3 chance to use Gnaw. Set counters 0 and 1 to 0.
  1090. --1/3 chance to attack. Set counters 0 and 1 to 0.
  1091. -If counter 1 is at or above 1:
  1092. --1/2 chance to use Gnaw. Set counters 0 and 1 to 0.
  1093. --1/2 chance to use Paralyze Wave. Set counters 0 and 1 to 0.
  1094. -If counter 0 is at or above 1:
  1095. --1/3 chance to use Camouflage (Targets party members that are not inflicted with Blind). Add 1 to counter 1.
  1096. --2/3 chance to use Gnaw. Add 1 to counters 0 and 1.
  1097. -Else:
  1098. --3/5 chance to attack. Add 1 to counters 0 and 1.
  1099. --1/5 chance to use Camouflage (Targets party members that are not inflicted with Blind). Add 1 to counters 0 and 1.
  1100. --1/5 chance to use Gnaw (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  1101.  
  1102. Psyard (LV. 53/49)
  1103. ==================
  1104. -Take 1 action per turn.
  1105. -If self is at or below 60% LIFE and counter 1 is at 0:
  1106. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set global counter 0 to 10.
  1107. -If global counter 0 is at 10:
  1108. --Use Head Bonk. Add 1 to counter 0. Set counter 1 to 2. Set global counter 0 to 20.
  1109. -If global counter 0 is at 20 and this routine has not been accessed for at least 3 turns:
  1110. --1/2 chance to use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set global counter 0 to 10.
  1111. --1/2 chance to attack. Add 1 to counter 0.
  1112. -If counter 0 is at or above 2:
  1113. --1/2 chance to use Power Horn. Set counter 0 to 0.
  1114. --1/2 chance to attack. Add 1 to counter 0.
  1115. -Else:
  1116. --Attack. Add 1 to counter 0.
  1117.  
  1118. Beta Wolf (LV. 46/42)
  1119. =====================
  1120. -Take 1 action per turn.
  1121. -If counter 0 is at or above 4:
  1122. --1/3 chance to use Lightning Claw (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 20.
  1123. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1124. --1/3 chance to use Double Bite (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 20.
  1125. -If counter 2 is at 10 and counter 0 is at 3:
  1126. --1/3 chance to use Double Bite. Add 1 to counter 0. Set counter 2 to 20.
  1127. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1128. -If counter 2 is at 0 and counter 0 is at 3:
  1129. --1/3 chance to use Lightning Claw. Add 1 to counter 0. Set counter 2 to 20.
  1130. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1131. -If counter 0 is at 2 and counter 1 is at 10:
  1132. --Use Double Bite. Add 1 to counter 0. Set counter 2 to 0.
  1133. -If counter 0 is at 2 and counter 1 is at 0:
  1134. --Use Bristle (Targets the user's side). Add 1 to counter 0. Set counters 1 and 2 to 10.
  1135. -If self does not have an ATK buff and counter 0 is at 1:
  1136. --Use Bristle (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  1137. -If counter 0 is at 1:
  1138. --Use Lightning Claw (Targets the party member with the lowest level).
  1139. -If counter 0 is at 0:
  1140. --1/2 chance to use Lightning Claw (Targets the party member with the highest LIFE). Set counter 0 to 1.
  1141. --1/2 chance to use Hypnohowl. Add 1 to counter 0.
  1142. -Else:
  1143. --1/2 chance to use Lightning Claw (Targets the party member with the highest LIFE). Set counter 0 to 1.
  1144. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1145.  
  1146. Poison Bird (LV. 34/30)
  1147. =======================
  1148. -Take 1 action per turn.
  1149. -If counter 0 is at 3:
  1150. --1/2 chance to use Rascal Kick. Set counters 0 and 1 to 0.
  1151. --1/2 chance to attack. Set counters 0 and 1 to 0.
  1152. -If counter 1 is at 1 and counter 0 is at 2:
  1153. --Use Talon Trample (Targets the party member with the highest LIFE). Set counter 1 to 0.
  1154. -If counter 1 is at 1 and counter 0 is at 2:
  1155. --Use Rascal Kick. Set counter 1 to 0.
  1156. -If counter 1 is at 1 and counter 0 is at 1:
  1157. --Use Talon Trample (Targets the party member with the highest LIFE). Set counter 1 to 0.
  1158. -If counter 0 is at 1 and at least 1 party member is not inflicted with Paralysis:
  1159. --Use Toxin Toss (Targets party members that are not inflicted with Paralysis). Add 1 to counter 0.
  1160. -If counter 0 is at 1:
  1161. --Use Talon Trample. Add 1 to counters 0 and 1.
  1162. -If counter 0 is at 1 and self does not have an ATK buff:
  1163. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1.
  1164. -If counter 0 is at 0 and self does not have an ATK buff:
  1165. --1/3 chance to use Gather Power (Targets the user's side). Add 1 to counters 0 and 1.
  1166. --2/3 chance to use Rascal Kick (Targets the party member with the lowest level). Add 1 to counter 0.
  1167. -If counter 0 is at 0:
  1168. --2/4 chance to use Rascal Kick (Targets the party member with the lowest level). Add 1 to counter 0.
  1169. --2/4 chance to attack. Add 1 to counter 0.
  1170. -Else:
  1171. --Attack. Add 1 to counter 0.
  1172.  
  1173. Blazing Beetle (LV. 30/26)
  1174. ==========================
  1175. -Take 1 action per turn.
  1176. -If counter 0 is at or above 3:
  1177. --1/2 chance to use Fire Boomerang (Targets the party member with the lowest level). Set counter 0 to 0.
  1178. --1/2 chance to attack. Set counter 0 to 0.
  1179. -If counter 0 is at 2 and counter 2 is at 10:
  1180. --Use Cross Slash. Add 1 to counter 0. Set counter 2 to 0.
  1181. -If counter 0 is at 2:
  1182. --Use Boomerang Cutter (Targets the party member with the highest level). Add 1 to counter 0. Set counter 2 to 0.
  1183. -If counter 0 is at 1 and self does not have an ATK buff:
  1184. --1/2 chance to use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  1185. --1/2 chance to attack. Add 1 to counter 0.
  1186. -If counter 0 is at 1:
  1187. --1/2 chance to use Fire Boomerang (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1188. --1/2 chance to use Scissor Attack. Add 1 to counter 0. Set counter 2 to 10.
  1189. -If counter 0 is at 0:
  1190. --1/3 chance to attack. Add 1 to counter 0.
  1191. --1/3 chance to use Fire Boomerang (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1192. --1/3 chance to use Scissor Attack. Add 1 to counter 0.
  1193. -If counter 0 is at 0:
  1194. --1/2 chance to attack. Set counter 2 to 0.
  1195. --1/2 chance to use Scissor Attack. Set counter 2 to 0.
  1196.  
  1197. Stone Monkfish (LV. 35/31)
  1198. ==========================
  1199. -Take 1 action per turn.
  1200. -If counter 1 is at or above 1 and counter 0 is at 0:
  1201. --2/3 chance to use Petrify Gleam (Targets party members that are not inflicted with Petrify). Set counters 0 and 1 to 0. Add 10 to counter 2.
  1202. --1/3 chance to use Gnaw. Set counters 0 and 1 to 0.
  1203. -If this routine has not been accessed for at least 3 turns, all party members are not inflicted with Petrify, and counter 1 is at or above 1:
  1204. --1/2 chance to use Petrify Gleam (Targets party members that are not inflicted with Petrify). Set counters 0 and 1 to 0.
  1205. --1/2 chance to use Gnaw. Set counters 0 and 1 to 0.
  1206. -If counter 1 is at or above 1:
  1207. --2/6 chance to use Gnaw (Targets the party member with the highest level). Set counters 0 and 1 to 0.
  1208. --2/6 chance to use Camouflage (Targets party members that are not inflicted with Blind). Add 1 to counter 1.
  1209. --1/6 chance to attack. Set counters 0 and 1 to 0.
  1210. --1/6 chance to use Petrify Gleam (Targets party members that are not inflicted with Petrify). Set counters 0 and 1 to 0. Add 10 to counter 2.
  1211. -If counter 0 is at or above 1:
  1212. --1/3 chance to use Camouflage (Targets party members that are not inflicted with Blind). Add 1 to counter 1.
  1213. --2/3 chance to attack. Add 1 to counters 0 and 1.
  1214. -Else:
  1215. --3/5 chance to attack. Add 1 to counter 0.
  1216. --1/5 chance to use Camouflage (Targets party members that are not inflicted with Blind). Add 1 to counters 0 and 1.
  1217. --1/5 chance to use Gnaw (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  1218.  
  1219. Grey Psyard (LV. 63/58)
  1220. =======================
  1221. -Take 1 action per turn.
  1222. -If self is at or below 60% LIFE and counter 1 is at 0:
  1223. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set global counter 0 to 10.
  1224. -If global counter 0 is at 10:
  1225. --Use Head Bonk. Add 1 to counter 0. Set counter 1 to 2. Set global counter 0 to 20.
  1226. -If global counter 0 is at 20 and this routine has not been accessed for at least 4 turns:
  1227. --1/2 chance to use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set global counter 0 to 10.
  1228. --1/2 chance to use Power Horn. Add 1 to counter 0.
  1229. -If counter 0 is at or above 2:
  1230. --1/2 chance to use Power Horn. Set counter 0 to 0.
  1231. --1/2 chance to attack. Add 1 to counter 0.
  1232. -Else:
  1233. --Attack. Add 1 to counter 0.
  1234.  
  1235. Roper B (LV. 9/7)
  1236. =================
  1237. -Take 1 action per turn.
  1238. -If the turn count is at or below 1:
  1239. --2/3 chance to attack. Add 1 to counter 0.
  1240. --1/3 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1241. -If counter 1 is at or above 1:
  1242. --Attack (Targets the party member with the highest LIFE). Set counters 0 and 1 to 0.
  1243. -If counter 0 is at or above 2:
  1244. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1245. --1/2 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1246. -If counter 0 is at or above 1 and global counter is at 0:
  1247. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1248. --2/3 chance to use Attack Up (Targets the enemy with the highest LIFE). Add 1 to counter 1. Add 10 to global counter 0.
  1249. -Else:
  1250. --2/3 chance to attack. Add 1 to counter 0.
  1251. --1/3 chance to use Nematocyst (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1252.  
  1253. Snowglope (LV. 19/16)
  1254. =====================
  1255. -Take 1 action per turn.
  1256. -If the turn count is at or below 1:
  1257. --2/4 chance to attack.
  1258. --1/4 chance to use Freeze Wave (Targets party members that are not inflicted with Freeze).
  1259. --1/4 chance to use Rear Kick (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1260. -If counter 1 is at or above 1:
  1261. --Attack. Set counter 1 to 0.
  1262. -If counter 0 is at or above 1:
  1263. --1/4 chance to attack. Add 1 to counter 0.
  1264. --2/4 chance to use Rear Kick (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1265. --1/4 chance to use Freeze Wave (Targets party members that are not inflicted with Freeze). Add 1 to counter 1.
  1266. -Else:
  1267. --1/3 chance to attack. Add 1 to counter 0.
  1268. --1/3 chance to use Rear Kick (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1269. --1/3 chance to use Freeze Wave (Targets party members that are not inflicted with Freeze). Add 1 to counter 1.
  1270.  
  1271. Suncrab (LV. 23/20)
  1272. ===================
  1273. -Take 1 action per turn.
  1274. -If counter 0 is at or above 1 and self does not have a DEF buff:
  1275. --1/2 chance to use Fortify (Targets the user's side). Add 1 to counter 0.
  1276. --1/2 chance to attack. Add 1 to counter 0.
  1277. -If counter 0 is at or above 2, no party members have an ATK debuff, and this routine has not been accessed for at least 3 turns:
  1278. --2/3 chance to use Bubblegum Breath. Set counter 0 to 1. Add 1 to counter 0.
  1279. --1/3 chance to attack. Add 1 to counter 0. Set counter 1 to 0.
  1280. -If counter 0 is at or above 2 and at least 1 party member is not inflicted with Stop:
  1281. --2/3 chance to use Golden Lasso (Targets party members that are not inflicted with Stop). Set counter 0 to 1. Add 1 to counter 1.
  1282. --1/3 chance to attack. Add 1 to counter 0.
  1283. -If counter 0 is at or above 1:
  1284. --Attack. Add 1 to counters 0 and 1.
  1285. -Else:
  1286. --Attack. Add 1 to counters 0 and 1.
  1287.  
  1288. Flying Shark (LV. 23/20)
  1289. ========================
  1290. -Take 1 action per turn.
  1291. -If counter 1 is at or above 1:
  1292. --Attack. Set counter 1 to 0.
  1293. -If counter 0 is at or above 3:
  1294. --1/3 chance to use Drill Attack (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counter 1.
  1295. --2/3 chance to use Drill Attack. Set to counter 0 to 0. Add 1 to counter 1.
  1296. -If counter 0 is at or above 1:
  1297. --1/4 chance to attack. Add 1 to counter 0.
  1298. --3/4 chance to use Drill Attack (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counter 1.
  1299. -Else:
  1300. --1/3 chance to attack. Add 1 to counter 0.
  1301. --2/3 chance to use Drill Attack (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counter 1.
  1302.  
  1303. Scissors Ace (LV. 58/54)
  1304. ========================
  1305. -Take 1 action per turn.
  1306. -If the extra turn phase is active:
  1307. --Use Predator (Targets the party member with the highest LIFE).
  1308. -If the turn count at or below 1:
  1309. --1/2 chance to attack. Add 1 to counter 0.
  1310. --1/2 chance to use Critical React (Targets the user's side).
  1311. -If counter 0 is at or above 1 and self does not have a Critical React buff:
  1312. --1/3 chance to attack. Add 1 to counter 0.
  1313. --2/3 chance to use Critical React (Targets the user's side). Set counter 0 to 0.
  1314. -If counter 0 is at or above 1 and self has a Critical React buff:
  1315. --Attack. Add 1 to counter 0.
  1316. -If self does not have a Critical React buff:
  1317. --1/2 chance to attack. Add 1 to counter 0.
  1318. --1/2 chance to use Critical React (Targets the user's side). Set counter 0 to 0.
  1319. -Else:
  1320. --Attack. Add 1 to counter 0.
  1321.  
  1322. Slime (LV. 29/26)
  1323. =================
  1324. -Take 1 action per turn.
  1325. -If counter 1 is at or above 1:
  1326. --Attack (Default targeting). Set counter 1 to 0.
  1327. -Else:
  1328. --3/5 chance to attack.
  1329. --1/5 chance to use Hurl Phlegm (Targets party members without a DEF debuff). Add 1 to counter 1.
  1330. --1/5 chance to use Hurl Sign (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1331.  
  1332. Poison Frog (LV. 23/20)
  1333. =======================
  1334. -Take 1 action per turn.
  1335. -If counter 1 is at or above 1:
  1336. --Attack. Set counters 0 and 1 to 0.
  1337. -If any party members are inflicted with Poison:
  1338. --Attack.
  1339. -Else:
  1340. --1/3 chance to attack.
  1341. --2/3 chance to use Venom (Targets party members that are not inflicted with Poison). Add 1 to counter 1.
  1342.  
  1343. Scorpion (LV. 37/33)
  1344. ====================
  1345. -Take 1 action per turn.
  1346. -If the turn count at or below 1:
  1347. --2/4 chance to attack. Add 1 to counter 0.
  1348. --1/4 chance to use EM Barrier (Targets the user's side). Set counter 1 to 1.
  1349. --1/4 chance to use Shocking Thrust (Targets the party member with the highest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  1350. -If counter 1 is at 1:
  1351. --Attack. Set counters 1 and 2 to 0.
  1352. -If counter 0 is at or above 1 and self does not have a Lightning Counter buff:
  1353. --1/4 chance to attack. Add 1 to counter 0.
  1354. --2/4 chance to use Shocking Thrust (Targets the party member with the highest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  1355. --1/4 chance to use EM Barrier (Targets the user's side). Set counter 0 to 0. Set counter 1 to 1.
  1356. -If counter 0 is at or above 1 and self has a Lightning Counter buff:
  1357. --1/3 chance to attack. Add 1 to counter 0.
  1358. --2/3 chance to use Shocking Thrust (Targets the party member with the highest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  1359. -Else:
  1360. --1/2 chance to attack. Add 1 to counter 0.
  1361. --1/2 chance to use Shocking Thrust (Targets the party member with the highest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  1362.  
  1363. Alpha Wolf (LV. 7/5)
  1364. ====================
  1365. -Take 1 action per turn.
  1366. -If counter 0 is at or above 4:
  1367. --1/3 chance to use Power Claw (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 20.
  1368. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1369. --1/3 chance to use Double Bite (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 20.
  1370. -If counter 2 is at 10 and counter 0 is at 3:
  1371. --1/3 chance to use Double Bite. Add 1 to counter 0. Set counter 2 to 20.
  1372. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1373. -If counter 2 is at 0 and counter 0 is at 3:
  1374. --1/3 chance to use Power Claw. Add 1 to counter 0. Set counter 2 to 20.
  1375. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1376. -If counter 0 is at 2 and counter 1 is at 10:
  1377. --Use Double Bite. Add 1 to counter 0. Set counter 2 to 0.
  1378. -If counter 0 is at 2 and counter 1 is at 0:
  1379. --Use Bristle (Targets the user's side). Add 1 to counter 0. Set counters 1 and 2 to 10.
  1380. -If self does not have an ATK buff and counter 0 is at 1:
  1381. --Use Bristle (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  1382. -If counter 0 is at 1:
  1383. --Use Power Claw (Targets the party member with the lowest level).
  1384. -If counter 0 is at 0:
  1385. --1/2 chance to use Power Claw (Targets the party member with the highest LIFE). Set counter 0 to 1.
  1386. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1387. -Else:
  1388. --1/2 chance to use Power Claw (Targets the party member with the highest LIFE). Set counter 0 to 1.
  1389. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1390.  
  1391. Bluegrass Nymph (LV. 2/1)
  1392. =========================
  1393. -Take 1 action per turn.
  1394. -If counter 1 is at or above 1:
  1395. --Attack. Set counters 0 and 1 to 0.
  1396. -If any party member is inflicted with Paralysis:
  1397. --Attack.
  1398. -If counter 0 is at or above 2:
  1399. --Use Paralysis Scale (Targets party members that are not inflicted with Paralysis). Set counter 0 to 0. Add 1 to counter 1.
  1400. -Else:
  1401. --1/4 chance to attack. Add 1 to counter 0.
  1402. --3/4 chance to use Paralysis Scale (Targets party members that are not inflicted with Paralysis). Add 1 to counter 1.
  1403.  
  1404. Malfuryhorn (LV. 6/4)
  1405. =====================
  1406. -Take 1 action per turn.
  1407. -If counter 1 is at or above 1:
  1408. --Attack. Set counters 0 and 1 to 0.
  1409. -If counter 0 is at or above 2:
  1410. --2/3 chance to attack. Add 1 to counter 0.
  1411. --1/3 chance to use Rear Kick (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1412. -Else:
  1413. --3/4 chance to attack. Add 1 to counter 0.
  1414. --1/4 chance to use Rear Kick (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1415.  
  1416. Wild Boar (LV. 6/4)
  1417. ===================
  1418. -Take 1 action per turn.
  1419. -If the turn count at or below 1:
  1420. --1/2 chance to attack.
  1421. --1/2 chance to use Gather Qi (Targets the user's side).
  1422. -If counter 2 is at or above 4:
  1423. --Use Gather Qi (Targets the user's side). Set counter 2 to 0.
  1424. -If counter 1 is at or above 1:
  1425. --Attack. Set counter 1 to 0.
  1426. -If counter 0 is at or above 2:
  1427. --1/3 chance to attack. Add 1 to counters 0 and 2.
  1428. --2/3 chance to use Rush (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counters 1 and 2.
  1429. -Else:
  1430. --1/2 chance to attack. Add 1 to counters 0 and 2.
  1431. --1/2 chance to use Rush (Targets the party member with the highest LIFE). Set to counter 0 to 0. Add 1 to counters 1 and 2.
  1432.  
  1433. Magma Slime (LV. 36/32)
  1434. =======================
  1435. -Take 1 action per turn.
  1436. -If the turn count at or below 1:
  1437. --1/2 chance to attack. Add 1 to counter 0.
  1438. --1/2 chance to use Jellify (Targets the user's side).
  1439. -If counter 1 is at 1:
  1440. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  1441. -If self does not have a DEF buff:
  1442. --1/3 chance to attack. Add 1 to counter 0.
  1443. --1/3 chance to use Magma Tackle (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1444. --1/3 chance to use Jellify (Targets the user's side). Add 1 to counter 0.
  1445. -If counter 0 is at or above 1:
  1446. --1/3 chance to attack. Add 1 to counter 0.
  1447. --2/3 chance to use Magma Tackle (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1448. -Else:
  1449. --Attack. Add 1 to counter 0.
  1450.  
  1451. Death Jackal (LV. 37/33)
  1452. ========================
  1453. -Take 1 action per turn.
  1454. -If counter 1 is at or above 1:
  1455. --Attack. Set counters 0 and 1 to 0.
  1456. -If counter 2 is at 10:
  1457. --Use Blade Fang (Targets the party member with the highest LIFE). Add 1 to counter 1. Set counter 2 to 0.
  1458. -If self does not have an ATK buff and counter 0 is at or above 1:
  1459. --2/3 chance to use Gather Power (Targets the user's side). Set counter 2 to 10.
  1460. --1/3 chance to attack. Add 1 to counter 0.
  1461. -If counter 0 is at or above 1:
  1462. --1/3 chance to attack. Add 1 to counter 0.
  1463. --2/3 chance to use Slashing Claw (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1464. -Else:
  1465. --1/2 chance to attack. Add 1 to counter 0.
  1466. --1/2 chance to use Slashing Claw (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  1467.  
  1468. Gold Rabi (LV. 11/8)
  1469. ====================
  1470. -Take 1 action per turn.
  1471. -If counter 0 is at or above 3:
  1472. --Use Escape. Set counter 0 to 0.
  1473. -Else:
  1474. --1/3 chance to attack. Add 1 to counter 0.
  1475. --1/3 chance to use Headlong Charge (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  1476. --1/3 chance to use Escape.
  1477.  
  1478. Wolf (LV. 7/5)
  1479. ==============
  1480. -Take 1 action per turn.
  1481. -If counter 0 is at or above 4:
  1482. --1/3 chance to use Power Claw (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 20.
  1483. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1484. --1/3 chance to use Double Bite (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 20.
  1485. -If counter 2 is at 10 and counter 0 is at 3:
  1486. --1/3 chance to use Double Bite. Add 1 to counter 0. Set counter 2 to 20.
  1487. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1488. -If counter 2 is at 0 and counter 0 is at 3:
  1489. --1/3 chance to use Power Claw. Add 1 to counter 0. Set counter 2 to 20.
  1490. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1491. -If counter 0 is at 2 and counter 1 is at 10:
  1492. --Use Double Bite. Add 1 to counter 0. Set counter 2 to 0.
  1493. -If counter 0 is at 2 and counter 1 is at 0:
  1494. --Use Bristle (Targets the user's side). Add 1 to counter 0. Set counters 1 and 2 to 10.
  1495. -If self does not have an ATK buff and counter 0 is at 1:
  1496. --Use Bristle (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  1497. -If counter 0 is at 1:
  1498. --Use Power Claw (Targets the party member with the lowest level).
  1499. -If counter 0 is at 0:
  1500. --1/2 chance to use Power Claw (Targets the party member with the highest LIFE). Set counter 0 to 1.
  1501. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1502. -Else:
  1503. --1/2 chance to use Power Claw (Targets the party member with the highest LIFE). Set counter 0 to 1.
  1504. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1505.  
  1506. Red Rabi (LV. 6/4)
  1507. ==================
  1508. -Take 1 action per turn.
  1509. -If counter 1 is at or above 1:
  1510. --Attack. Set counters 0 and 1 to 0.
  1511. -If counter 0 is at or above 2:
  1512. --1/2 chance to attack. Add 1 to counter 0.
  1513. --1/2 chance to use Chomp (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1514. -Else:
  1515. --3/4 chance to attack. Add 1 to counter 0.
  1516. --1/4 chance to use Chomp (Targets the party member with the highest LIFE). Add 1 to counter 1.
  1517.  
  1518. Trash Golem (LV. 7/5)
  1519. =====================
  1520. -Take 1 action per turn.
  1521. -If the turn count at or below 1:
  1522. --1/2 chance to attack. Add 1 to counter 0.
  1523. --1/2 chance to use Earthquake. Add 1 to counter 1.
  1524. -If counter 1 is at 1:
  1525. --Attack. Set counters 0 and 1 to 0.
  1526. -If counter 2 is at or above 3:
  1527. --Use Earthquake. Set counter 1 to 1. Set counter 2 to 0.
  1528. -If counter 0 is at or above 1:
  1529. --1/3 chance to attack. Add 1 to counters 0 and 2.
  1530. --2/3 chance to use Golem Hammer (Targets the party member with the highest LIFE). Set to counter 1 to 1. Add 1 to counter 2.
  1531. -Else:
  1532. --2/3 chance to attack. Add 1 to counters 0 and 2.
  1533. --1/3 chance to use Golem Hammer (Targets the party member with the highest LIFE). Set to counter 1 to 1. Add 1 to counter 2.
  1534.  
  1535. Dramselfly (LV. 32/28)
  1536. ======================
  1537. -Take 2 actions per turn.
  1538. -If counter 2 is at 0:
  1539. --1/2 chance to use Melee attack 1. Set counter 2 to 10.
  1540. --1/2 chance to use Sleepy Buzz. Set counter 2 to 10.
  1541. -If counter 2 is at 10 and global counter 0 is at or above 1:
  1542. --1/2 chance to use Sleepy Buzz (Targets party members that are not inflicted with Sleep). Set counters 0 and 1 to 0. Set counter 2 to 20.
  1543. --1/2 chance to use Melee attack 1.
  1544. -If counter 2 is at 20 and global counter 0 is at or above 1:
  1545. --1/2 chance to use Melee attack 1 (Targets party members that are not inflicted with nothing). Set counters 0 and 1 to 0. Set counter 2 to 30.
  1546. --1/2 chance to use Melee attack 2. Set counter 2 to 10.
  1547. -If counter 1 is at or above 4:
  1548. --1/2 chance to use Buzzwing (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  1549. --1/2 chance to use Melee attack 1. Add 1 to counter 0. Set counter 1 to 0.
  1550. -If counter 0 is at or above 2:
  1551. --1/2 chance to use Buzzwing (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1552. --1/2 chance to use Melee attack 2. Set counter 0 to 0. Add 1 to counter 1.
  1553. -Else:
  1554. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  1555. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  1556.  
  1557. Little Dragon (LV. 23/20)
  1558. =========================
  1559. Routine 1:
  1560. -Take 2 actions per turn.
  1561. -If counter 2 is at 0:
  1562. --Use Gnaw. Set counter 2 to 10.
  1563. -If counter 2 is at 10:
  1564. --Use Gnaw (Targets the party member with the highest LIFE). Set counter 2 to 20.
  1565. -If counter 0 is at or above 2:
  1566. --1/3 chance to use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 0.
  1567. --2/3 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0.
  1568. -Else:
  1569. --Attack. Add 1 to counter 0.
  1570.  
  1571. Routine 2:
  1572. -If counter 1 is at or above 2, swap to routine 2.
  1573. -If counter 2 is at or above 2, swap to routine 3.
  1574. -If counter 0 is at or above 2:
  1575. --1/5 chance to use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1576. --4/5 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  1577. -Else:
  1578. --Attack. Add 1 to counter 0.
  1579.  
  1580. Routine 3:
  1581. -If counter 0 is at or above 10, swap to routine 1.
  1582. -Use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 10. Add 1 to counter 2.
  1583.  
  1584. Routine 4:
  1585. -If counter 0 is at or above 10, swap to routine 1.
  1586. -Use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 10. Add 1 to counter 2.
  1587.  
  1588. Hammerhead (LV. 22/19)
  1589. ======================
  1590. Routine 1:
  1591. -Take 2 actions per turn.
  1592. -If counter 0 is at or above 4:
  1593. --Use Downstroke (Targets the party member with the highest LIFE). Set counter 0 to 0.
  1594. -Else:
  1595. --Attack. Add 1 to counter 0.
  1596.  
  1597. Routine 2:
  1598. -Take 2 actions per turn.
  1599. -If self is at or below 50% LIFE, swap to routine 2.
  1600. -If counter 0 is at 0:
  1601. --Use Downstroke (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1602. -If counter 1 is at or above 5:
  1603. --Use Downstroke (Targets the party member with the highest LIFE). Set counter 1 to 0.
  1604. -Else:
  1605. --Attack. Add 1 to counter 1.
  1606.  
  1607. Routine 3:
  1608. -Take 2 actions per turn.
  1609. -If counter 0 is at 0 and it is the second action in the turn:
  1610. --Use Gather Power (Targets the user's side). Set counter 0 to 1.
  1611. -If counter 0 is at or above 1 and it is not the second action in the turn:
  1612. --Use Downstroke (Targets the party member with the highest LIFE). Set counter 0 to -5.
  1613. -If counter 2 is at or above 5, self does not have an ATK buff, and it is not the first action in the turn:
  1614. --Use Gather Power (Targets the user's side). Set counter 2 to 0.
  1615. -If counter 1 is at or above 4:
  1616. --Use Downstroke (Targets the party member with the highest LIFE). Set counter 1 to 0.
  1617. -Else:
  1618. --Attack. Add 1 to counter 1.
  1619.  
  1620. Stony Dragon (LV. 37/33)
  1621. ========================
  1622. Routine 1:
  1623. -Take 2 actions per turn.
  1624. -If counter 2 is at 0:
  1625. --Use Stone Gaze (Targets party members that are not inflicted with Petrify). Set counter 2 to 10.
  1626. -If counter 1 is at or above 3:
  1627. --Use Stone Breath. Add 1 to counter 0. Set counter 1 to 1.
  1628. -If counter 0 is at or above 2:
  1629. --Use Neck Bite (Targets the party member with the highest LIFE). Set counter 0 to 0.
  1630. -Else:
  1631. --Attack. Add 1 to counters 0 and 1.
  1632.  
  1633. Routine 2:
  1634. -Take 2 actions per turn.
  1635. -If self is at or below 55% LIFE, swap to routine 2.
  1636. -If counter 2 is at 0:
  1637. --Use Stone Gaze (Targets party members that are not inflicted with Petrify). Set counter 2 to 10.
  1638. -If counter 1 is at or above 3:
  1639. --Use Stone Gaze (Targets party members that are not inflicted with Petrify). Add 1 to counter 0. Set counter 1 to 1.
  1640. -If counter 0 is at or above 2:
  1641. --Use Neck Bite (Targets the party member with the highest LIFE). Set counter 0 to 0.
  1642. -Else:
  1643. --Attack. Add 1 to counters 0 and 1.
  1644.  
  1645. Routine 3:
  1646. -Take 2 actions per turn.
  1647. -If counter 2 is at 0:
  1648. --Use Stone Breath. Set counter 2 to 10.
  1649. -If counter 1 is at or above 4:
  1650. --Use Stone Breath. Add 1 to counter 0. Set counter 1 to 1.
  1651. -If counter 0 is at or above 2:
  1652. --Use Neck Bite (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1653. -Else:
  1654. --Attack. Add 1 to counters 0 and 1.
  1655.  
  1656. Armanos (LV. 20/17)
  1657. ===================
  1658. -Take 2 actions per turn.
  1659. -If it is the first action in the turn and counter 1 is at 30:
  1660. --1/2 chance to use Tumble (Targets the party member with the highest LIFE). Set counters 1 and 2 to 0.
  1661. --1/2 chance to use Tumble. Set counters 1 and 2 to 0.
  1662. -If it is the first action in the turn, counter 1 is at 20, and self does not have an ATK buff:
  1663. --1/2 chance to use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 1 to 30.
  1664. --1/2 chance to use Rock Cannon (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  1665. -If it is the first action in the turn and counter 1 is at 20:
  1666. --1/2 chance to attack. Add 1 to counter 0. Set counter 1 to 30. Set global counter 0 to 0.
  1667. --1/2 chance to use Rock Cannon (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 30.
  1668. -If it is the first action in the turn and counter 1 is at 20:
  1669. --Attack. Add 1 to counter 0. Set global counter 0 to 0.
  1670. -If counter 1 is at 10 and it is the first action in the turn:
  1671. --Use Tumble (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 20.
  1672. -If counter 0 is at or above 1, it is the second action in the turn, and self does not have an ATK buff:
  1673. --1/2 chance to use Gather Power (Targets the user's side). Set counter 0 to 0. Add 10 to counter 1.
  1674. --1/2 chance to use Rock Cannon (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1675. -Else:
  1676. --1/2 chance to attack. Add 1 to counter 0.
  1677. --1/2 chance to use Rock Cannon (Targets the party member with the highest LIFE). Add 1 to counter 0.
  1678.  
  1679. Hover Dragon (LV. 47/43)
  1680. ========================
  1681. Routine 1:
  1682. -Take 2 actions per turn.
  1683. -If global counter 0 is at 0 and it is the second action in the turn:
  1684. --1/2 chance to use Freeze Breath. Set global counter 0 to 10.
  1685. --1/2 chance to Death Fang. Set global counter 0 to 10.
  1686. -If counter 2 is at or above 2, global counter 1 is at 0, and it is the second action in the turn:
  1687. --1/2 chance to use Stop Beat. Set global counter 1 to 10.
  1688. --1/2 chance to use Death Fang. Set global counter 1 to 10.
  1689. -If global counter 1 is at 10:
  1690. --Use Freeze Breath. Set global counter 1 to 20.
  1691. -If counter 0 is at or above 3:
  1692. --Use Freeze Breath. Set counter 0 to 0.
  1693. -Else:
  1694. --Attack. Add 1 to counters 0, 1, and 2.
  1695.  
  1696. Routine 2:
  1697. -Take 2 actions per turn.
  1698. -If self is at or below 55% LIFE, swap to routine 2.
  1699. -If the turn count at or below 1 and it is the second action in the turn:
  1700. --Use Freeze Breath (Targets the party member with the highest LIFE). Set global counter 0 to 10.
  1701. -If counter 0 is at or above 4:
  1702. --Use Freeze Breath. Set counter 0 to 0.
  1703. -Else:
  1704. --Attack. Add 1 to counter 0.
  1705.  
  1706. Routine 3:
  1707. -Take 2 actions per turn.
  1708. -If global counter 0 is at 0 and it is the second action in the turn:
  1709. --Use Stop Beat. Add 1 to global counter 0.
  1710. -If global counter 0 is at or above 1 and it is not the second action in the turn:
  1711. --Use Freeze Breath. Set global counter 0 to -5.
  1712. -If counter 2 is at or above 8 and it is the second action in the turn:
  1713. --Use Stop Beat. Add 1 to counters 0 and 1. Set counter 2 to 0.
  1714. -If counter 1 is at or above 5:
  1715. --Use Freeze Breath. Add 1 to counters 0 and 2. Set counter 1 to 0.
  1716. -If counter 0 is at or above 2:
  1717. --Use Death Fang (Targets the party member with the highest LIFE). Set counter 2 to 0. Add 1 to counters 1 and 2.
  1718. -Else:
  1719. --Attack. Add 1 to counters 0, 1, and 2.
  1720.  
  1721. Hazard Dragon (LV. 40/36)
  1722. =========================
  1723. Routine 1:
  1724. -Take 2 actions per turn.
  1725. -If global counter 2 is at 0:
  1726. --Use Sludge Breath. Set global counter 2 to 10.
  1727. -If global counter 2 is at 10 and counter 2 is at or above 1:
  1728. --Use Fire Breath. Set counter 0 to 1. Set global counter 2 to 20.
  1729. -If global counter 1 is at 0 and self is at or below 45% LIFE:
  1730. --Use Tensile Roll (Targets the user's side). Add 1 to counters 0 and 1. Set global counter 1 to 10.
  1731. -If counter 1 is at or above 8:
  1732. --Use Sludge Breath. Add 1 to counter 0. Set counter 1 to 0.
  1733. -If counter 0 is at or above 3:
  1734. --Use Fire Breath. Set counter 0 to 0. Add 1 to counters 1 and 2.
  1735. -Else:
  1736. --Attack. Add 1 to counters 0, 1, and 2.
  1737.  
  1738. Routine 2:
  1739. -Take 2 actions per turn.
  1740. -If global counter 2 is at 0 and it is the second action in the turn:
  1741. --Use Fire Breath. Set global counter 0 to 10.
  1742. -If global counter 1 is at 0 and self is at or below 45% LIFE:
  1743. --Use Tensile Roll (Targets the user's side). Set global counter 1 to 10.
  1744. -If counter 1 is at or above 6:
  1745. --Use Sludge Breath. Add 1 to counter 0. Set counter 1 to 0.
  1746. -If counter 0 is at or above 3:
  1747. --Use Fire Breath. Set counter 0 to 0. Add 1 to counter 1.
  1748. -Else:
  1749. --Attack. Add 1 to counters 0 and 1.
  1750.  
  1751. Sumo Dragon (LV. 16/13)
  1752. =======================
  1753. Routine 1:
  1754. -Take 2 actions per turn.
  1755. -If counter 0 is at or above 2, swap to routine 2.
  1756. -Attack. Add 1 to counter 0.
  1757.  
  1758. Routine 2:
  1759. -Take 1 action per turn.
  1760. -If counter 1 is at or above 10, swap to routine 3.
  1761. -If counter 1 is at 0:
  1762. --Use Charging Stance (Targets the user's side). Add 1 to counter 0.
  1763. -If counter 1 is at 1:
  1764. --Use Great Horn. Subtract 1 from counter 0. Set counter 1 to 10.
  1765. -Else:
  1766. --Attack. Add 1 to counter 0.
  1767.  
  1768. Routine 3:
  1769. -Take 2 actions per turn.
  1770. -If counter 0 is at or above 3, swap to routine 2.
  1771. -Attack. Add 1 to counter 0.
  1772.  
  1773. Routine 4:
  1774. -Take 1 action per turn.
  1775. -If counter 0 is at or above 10, swap to routine 3.
  1776. -If counter 1 is at 0:
  1777. --Use Charging Stance (Targets the user's side). Add 10 to counter 0.
  1778. -Else:
  1779. --Attack.
  1780.  
  1781. Routine 5:
  1782. -Take 1 action per turn.
  1783. -If counter 0 is at or above 10, swap to routine 1.
  1784. -If counter 1 is at 0:
  1785. --Use Great Horn. Add 10 to counter 0.
  1786. -Else:
  1787. --Attack.
  1788.  
  1789. Microdragon V (LV. 94/89)
  1790. =========================
  1791. Routine 1:
  1792. -Take 2 actions per turn.
  1793. -If counter 2 is at 0:
  1794. --Use Gnaw (Targets the party member with the highest LIFE). Set counter 2 to 10.
  1795. -If counter 2 is at 10:
  1796. --Use Skill Crusher. Set counter 2 to 20.
  1797. -If counter 1 is at or above 4:
  1798. --Use Skill Crusher. Add 1 to counter 0. Set counter 1 to 0.
  1799. -If counter 0 is at or above 2:
  1800. --1/3 chance to use Cursefire (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1801. --2/3 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1802. -Else:
  1803. --Attack. Add 1 to counters 0 and 1.
  1804.  
  1805. Routine 2:
  1806. -If counter 1 is at or above 2, swap to routine 2.
  1807. -If counter 2 is at or above 2, swap to routine 3.
  1808. -If counter 0 is at or above 2:
  1809. --1/3 chance to use Cursefire (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1810. --2/3 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  1811. -Else:
  1812. --Attack. Add 1 to counter 0. Add 1 to global counter 1.
  1813.  
  1814. Routine 3:
  1815. -If counter 0 is at or above 20, swap to routine 1.
  1816. -If counter 0 is at 0:
  1817. --Use Skill Crusher. Set counter 0 to 10.
  1818. -If counter 0 is at 10:
  1819. --Use Gnaw. Set counter 0 to 20.
  1820. -Else:
  1821. --Attack.
  1822.  
  1823. Routine 4:
  1824. -If counter 0 is at or above 20, swap to routine 1.
  1825. -If counter 0 is at 0:
  1826. --Use Skill Crusher. Set counter 0 to 10.
  1827. -If counter 0 is at 10:
  1828. --Use Cursefire. Set counter 0 to 20.
  1829. -Else:
  1830. --Attack.
  1831.  
  1832. Cannon Dragon V (LV. 94/89)
  1833. ===========================
  1834. Routine 1:
  1835. -Take 1 action per turn.
  1836. -If counter 0 is at 10, swap to routine 2.
  1837. -If counter 1 is at 10, swap to routine 3.
  1838. -If the turn count is at 1:
  1839. --Use Jump (Targets the user's side). Set counter 0 to 10.
  1840. -Else:
  1841. --Use Madness Breath. Set counter 1 to 10.
  1842.  
  1843. Routine 2:
  1844. -Take 2 actions per turn.
  1845. -If counter 0 is at or above 1, swap to routine 3.
  1846. -If self has the Jump effect and all party members are inflicted with Poison:
  1847. --Use Madness Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  1848. -If self has the Jump effect:
  1849. --Use Madness Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  1850. -Else:
  1851. --Attack (Targets a random party member). Add 1 to counter 0.
  1852.  
  1853. Routine 3:
  1854. -Take 2 actions per turn.
  1855. -If counter 0 is at or above 3 and self is at or below 40% LIFE, swap to routine 4.
  1856. -If counter 1 is at or above 2 and global counter 1 is at 0:
  1857. --Use Madness Breath. Add 1 to counter 0. Set global counter 1 to 10.
  1858. -If counter 0 is at or above 6:
  1859. --Use Madness Breath. Set counter 0 to 0.
  1860. -Else:
  1861. --Attack. Add 1 to counters 0 and 1.
  1862.  
  1863. Routine 4:
  1864. -Take 1 action per turn.
  1865. -If global counter 0 is at 10, swap to routine 5.
  1866. -Use Jump (Targets the user's side). Set global counter 0 to 10.
  1867.  
  1868. Routine 5:
  1869. -Take 2 actions per turn.
  1870. -If counter 0 is at or above 1, swap to routine 3.
  1871. -If self has the Jump effect and all party members are inflicted with Poison:
  1872. --Use Madness Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set global counter 0 to 20.
  1873. -If self has the Jump effect:
  1874. --Use Madness Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set global counter 0 to 20.
  1875. -Else:
  1876. --Attack (Targets a random party member). Add 1 to counter 0. Set global counter 0 to 20.
  1877.  
  1878. Enshentas (LV. 14/11)
  1879. =====================
  1880. Routine 1:
  1881. -Take 2 actions per turn.
  1882. -If the battle started out as a surprise attack, the turn count is at or below 1, and global counter 2 is at 0:
  1883. --Use Steely Glint. Set global counter 2 to 1.
  1884. -If global counter 0 is at 0 and self is at or below 30% LIFE:
  1885. --Use Steely Glint. Add 1 to counters 0 and 1. Set global counter 0 to 10.
  1886. -If counter 2 is at 0 and it is the second action in the turn:
  1887. --Use Freeze Breath. Add 1 to counter 0. Set counter 2 to 10.
  1888. -If counter 1 is at or above 5:
  1889. --Use Freeze Breath. Add 1 to counter 0. Set counter 1 to 0.
  1890. -If counter 0 is at or above 3:
  1891. --1/4 chance to use Headlong Charge (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1892. --3/4 chance to use Headlong Charge. Set counter 0 to 0. Add 1 to counter 1.
  1893. -Else:
  1894. --Attack. Add 1 to counters 0 and 1.
  1895.  
  1896. Routine 2:
  1897. -Take 2 actions per turn.
  1898. -If self is at or below 55% LIFE, swap to routine 2.
  1899. -If the battle started out as a surprise attack, the turn count is at or below 1, and counter 2 is at 1:
  1900. --Use Steely Glint. Set counter 2 to 10.
  1901. -If the battle started out as a surprise attack, the turn count is at or below 1, and counter 2 is at 0:
  1902. --Use Headlong Charge (Targets the party member with the lowest LIFE). Add 1 to counter 2.
  1903. -If counter 1 is at or above 5:
  1904. --Use Freeze Breath. Add 1 to counter 0. Set counter 1 to 0.
  1905. -If counter 0 is at or above 3:
  1906. --Use Headlong Charge (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1907. -Else:
  1908. --Attack. Add 1 to counters 0 and 1.
  1909.  
  1910. Routine 3:
  1911. -Take 2 actions per turn.
  1912. -If global counter 0 is at 0:
  1913. --Use Rise Again (Targets the user's side). Set global counter 0 to 10.
  1914. -If counter 2 is at or above 10:
  1915. --Use Rise Again (Targets the user's side). Add 1 to counters 0 and 1. Set counter 2 to 0.
  1916. -If counter 1 is at or above 5:
  1917. --Use Freeze Breath. Add 1 to counters 0 and 2. Set counter 1 to 0.
  1918. -If counter 0 is at or above 3:
  1919. --Use Steely Glint (Targets party members that are not inflicted with Curse). Set counter 0 to 0. Add 1 to counters 1 and 2.
  1920. -Else:
  1921. --Attack. Add 1 to counters 0 and 1.
  1922.  
  1923. Criminal Dragon (LV. 64/59)
  1924. ===========================
  1925. Routine 1:
  1926. -Take 2 actions per turn.
  1927. -If self is at or below 50% LIFE, swap to routine 2.
  1928. -If counter 2 is at or above 8, swap to routine 2.
  1929. -If counter 1 is at 0:
  1930. --Use Headbutt (Targets the party member with the highest LIFE). Set counter 1 to 10. Add 1 to counter 2.
  1931. -If counter 0 is at or above 3:
  1932. --Use Headbutt (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  1933. -Else:
  1934. --Use Melee attack 1. Add 1 to counters 0 and 2.
  1935.  
  1936. Routine 2:
  1937. -Take 2 actions per turn.
  1938. -If global counter 2 is at 0:
  1939. --Use Typhoon Lariat. Set global counter 2 to 10.
  1940. -If global counter 2 is at 10:
  1941. --Use Muscle Eye (Targets party members that are not inflicted with Skill Seal). Set global counter 2 to 20.
  1942. -If global counter 1 is at 0 and self is at or below 20% LIFE:
  1943. --Use Muscle Eye (Targets party members that are not inflicted with Skill Seal). Set global counter 1 to 10.
  1944. -If counter 1 is at or above 8:
  1945. --Use Typhoon Lariat. Add 1 to counter 0. Set counter 1 to 0.
  1946. -If counter 0 is at or above 3:
  1947. --Use Jump Kick (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  1948. -Else:
  1949. --Use Melee attack 2. Add 1 to counters 0 and 1.
  1950.  
  1951. Granderodon (LV. 19/16)
  1952. =======================
  1953. Routine 1:
  1954. -Take 2 actions per turn.
  1955. -If global counter 0 is at 0:
  1956. --Use Atmospheric Vibration (Targets self). Set global counter 0 to 10.
  1957. -If counter 1 is at or above 5:
  1958. --Use Atmospheric Vibration (Targets self). Add 1 to counter 0. Set counter 1 to 0.
  1959. -If counter 0 is at or above 3:
  1960. --Use Thunder Breath. Set counter 0 to 0. Add 1 to counter 1.
  1961. -Else:
  1962. --Attack. Add 1 to counters 0 and 1.
  1963.  
  1964. Routine 2:
  1965. -Take 2 actions per turn.
  1966. -If self is at or below 30% LIFE, swap to routine 2.
  1967. -If counter 0 is at 0:
  1968. --Use Atmospheric Vibration (Targets self). Add 1 to counter 0.
  1969. -If counter 2 is at or above 5:
  1970. --Use Atmospheric Vibration (Targets self). Set counter 2 to 0.
  1971. -If counter 1 is at or above 4:
  1972. --Use Thunder Breath. Set counter 1 to 0. Add 1 to counter 2.
  1973. -Else:
  1974. --Attack. Add 1 to counters 1 and 2.
  1975.  
  1976. Routine 3:
  1977. -Take 2 actions per turn.
  1978. -If counter 0 is at 10:
  1979. --Use Atmospheric Vibration (Targets the user's side). Set counter 0 to 30.
  1980. -If counter 0 is at 0:
  1981. --Use Defenses Up (Targets the user's side). Set counter 0 to 10.
  1982. -If counter 2 is at or above 5:
  1983. --Use Atmospheric Vibration (Targets self). Set counter 2 to 0.
  1984. -If counter 1 is at or above 4:
  1985. --Use Thunder Breath. Set counter 1 to 0. Add 1 to counter 2.
  1986. -Else:
  1987. --Attack. Add 1 to counters 1 and 2.
  1988.  
  1989. Tower Dragon (LV. 27/24)
  1990. ========================
  1991. Routine 1:
  1992. -Take 1 action per turn.
  1993. -If counter 0 is at 10, swap to routine 2.
  1994. -If counter 1 is at 10, swap to routine 3.
  1995. -If the turn count is at 1:
  1996. --Use Jump (Targets the user's side). Set counter 0 to 10.
  1997. -Else:
  1998. --Use Venom Breath. Set counter 1 to 10.
  1999.  
  2000. Routine 2:
  2001. -Take 2 actions per turn.
  2002. -If counter 0 is at or above 1, swap to routine 3.
  2003. -If self has the Jump effect and all party members are inflicted with Poison:
  2004. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  2005. -If self has the Jump effect:
  2006. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  2007. -Else:
  2008. --Attack (Targets a random party member). Add 1 to counter 0.
  2009.  
  2010. Routine 3:
  2011. -Take 2 actions per turn.
  2012. -If counter 0 is at or above 3 and self is at or below 40% LIFE, swap to routine 4.
  2013. -If counter 1 is at or above 2 and global counter 1 is at 0:
  2014. --Use Venom Breath. Add 1 to counter 0. Set global counter 1 to 10.
  2015. -If counter 0 is at or above 6:
  2016. --Use Venom Breath. Set counter 0 to 0.
  2017. -Else:
  2018. --Attack. Add 1 to counters 0 and 1.
  2019.  
  2020. Routine 4:
  2021. -Take 1 action per turn.
  2022. -If global counter 0 is at 10, swap to routine 5.
  2023. -Use Jump (Targets the user's side). Set global counter 0 to 10.
  2024.  
  2025. Routine 5:
  2026. -Take 2 actions per turn.
  2027. -If counter 0 is at or above 1, swap to routine 3.
  2028. -If self has the Jump effect and all party members are inflicted with Poison:
  2029. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set global counter 0 to 20.
  2030. -If self has the Jump effect:
  2031. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set global counter 0 to 20.
  2032. -Else:
  2033. --Attack (Targets a random party member). Add 1 to counter 0. Set global counter 0 to 20.
  2034.  
  2035. Shield Dragon (LV. 60/55)
  2036. =========================
  2037. Routine 1:
  2038. -Take 2 actions per turn.
  2039. -If self is at or below 35% LIFE, swap to routine 3.
  2040. -If counter 1 is at or above 3, swap to routine 2.
  2041. -If counter 2 is at 0:
  2042. --1/4 chance to use Chaos Thunder (Targets the party member with the highest LIFE). Add 1 to counter 1. Set counter 2 to 10.
  2043. --3/4 chance to use Chaos Thunder. Add 1 to counter 1. Set counter 2 to 10.
  2044. -If counter 1 is at or above 1:
  2045. --Use a Melee attack. Add 1 to counters 0 and 1.
  2046. -If counter 0 is at or above 1:
  2047. --1/3 chance to use Chaos Thunder (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2048. --2/3 chance to use Chaos Thunder. Set counter 0 to 0. Add 1 to counter 1.
  2049. -Else:
  2050. --Use a Melee attack. Add 1 to counters 0 and 1.
  2051.  
  2052. Routine 2:
  2053. -Take 1 action per turn.
  2054. -If self is at or below 35% LIFE, swap to routine 3.
  2055. -If counter 0 is at 10, swap to routine 1.
  2056. -If counter 0 is at 0:
  2057. --Use Shield Parry (Targets self). Set counter 0 to 10.
  2058. -Else:
  2059. --Use a Melee attack.
  2060.  
  2061. Routine 3:
  2062. -Take 2 actions per turn.
  2063. -If counter 2 is at 0:
  2064. --Use Unleash Power (Targets self). Set counter 2 to 10.
  2065. -If counter 2 is at 10.
  2066. --Use Rampage. Set counter 2 to 20.
  2067. -If counter 2 is at 20:
  2068. --1/3 chance to use Chaos Thunder (Targets the party member with the highest LIFE). Set counter 2 to 30.
  2069. --2/3 chance to use Chaos Thunder. Set counter 2 to 30.
  2070. -If counter 1 is at or above 3:
  2071. --Use Rampage. Add 1 to counter 0. Set counter 1 to 0.
  2072. -If counter 0 is at or above 2:
  2073. --1/3 chance to use Chaos Thunder (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2074. --2/3 chance to use Chaos Thunder. Set counter 0 to 0. Add 1 to counter 1.
  2075. -Else:
  2076. --Use a Claw attack. Add 1 to counters 0 and 1.
  2077.  
  2078. Routine 4:
  2079. -Take 1 action per turn.
  2080. -If self is at or below 45% LIFE, swap to routine 3.
  2081. -If counter 0 is at 10, swap to routine 2.
  2082. -If counter 0 is at 0:
  2083. --Use Shield Parry (Targets self). Set counter 0 to 10.
  2084. -Else:
  2085. --Use a Melee attack.
  2086.  
  2087. Routine 5:
  2088. -Take 2 actions per turn.
  2089. -If self is at or below 45% LIFE, swap to routine 3.
  2090. -If counter 2 is at or above 3, swap to routine 1.
  2091. -If counter 1 is at or above 4, swap to routine 1.
  2092. -If counter 0 is at or above 2:
  2093. --Use Chaos Thunder (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counters 1 and 2.
  2094. -Else:
  2095. --1/3 chance to use a Melee attack. Add 1 to counters 0 and 1.
  2096. --2/3 chance to use a Melee attack. Add 1 to counters 0 and 2.
  2097.  
  2098. Routine 6:
  2099. -Take 2 actions per turn.
  2100. -If global counter 0 is at 10:
  2101. --Use Rampage. Set global counter 0 to 20.
  2102. -If global counter 0 is at 0:
  2103. --Use Rampage. Set global counter 0 to 10.
  2104. -If counter 1 is at or above 3:
  2105. --Use Chaos Thunder (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  2106. -If counter 0 is at or above 3:
  2107. --Use Rampage. Set counter 0 to 0. Add 1 to counter 1.
  2108. -Else:
  2109. --Use a Claw attack. Add 1 to counters 0 and 1.
  2110.  
  2111. Tyrannosaurus (LV. 33/29)
  2112. =========================
  2113. -Take 2 actions per turn.
  2114. -If global counter 0 is at 0, self is at or below 55% LIFE, and it is the second action in the turn:
  2115. --Use Tyrant's Roar (Targets the user's side). Set global counter 0 to 10.
  2116. -If global counter 0 is at 10:
  2117. --Use Mow Down. Set counter 1 to 0. Set global counter 0 to 20.
  2118. -If global counter 0 is at 20:
  2119. --Attack. Add 1 to counters 0 and 2. Set counter 1 to 0. Set global counter 0 to 30.
  2120. -If counter 1 is at or above 4:
  2121. --1/2 chance to attack. Add 1 to counters 0 and 2. Set counter 1 to 0.
  2122. --1/2 chance to use Sharptooth (Targets the party member with the highest LIFE). Add 1 to counters 0 and 2. Set counter 1 to 0.
  2123. -If counter 0 is at or above 2:
  2124. --1/3 chance to use Sharptooth (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counters 1 and 2.
  2125. --2/3 chance to use Sharptooth. Set counter 0 to 0. Add 1 to counters 1 and 2.
  2126. -Else:
  2127. --Attack. Add 1 to counters 0, 1, and 2.
  2128.  
  2129. Dragonfly (LV. 35/31)
  2130. =====================
  2131. -Take 2 actions per turn.
  2132. -If counter 2 is at 0:
  2133. --1/2 chance to use Intense Radiation. Set counter 2 to 10.
  2134. --1/2 chance to use Sleepy Buzz. Set counter 2 to 10.
  2135. -If counter 2 is at 10:
  2136. --Use Intense Radiation (Targets party members that are not inflicted with Blind). Set counters 0 and 1 to 0. Set counter 2 to 20.
  2137. -If counter 2 is at 20 and global counter 0 is at or above 1:
  2138. --1/2 chance to use Intense Radiation (Targets party members that are not inflicted with Blind). Set counter 2 to 30.
  2139. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  2140. -If counter 2 is at 30 and self is at or below 25% LIFE:
  2141. --1/2 chance to use Intense Radiation (Targets party members that are not inflicted with Blind). Add 1 to counters 0 and 1. Set counter 2 to 40. Set global counter 0 to 0.
  2142. --1/2 chance to use Sleepy Buzz. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  2143. -If counter 1 is at or above 4:
  2144. --1/2 chance to use Intense Radiation (Targets party members that are not inflicted with Blind). Add 1 to counter 0. Set counter 1 to 0.
  2145. --1/2 chance to use Melee attack 2. Add 1 to counter 0. Set counter 1 to 0.
  2146. -If counter 0 is at or above 2:
  2147. --1/2 chance to use Buzzwing (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2148. --1/2 chance to use Melee attack 1. Set counter 0 to 0. Add 1 to counter 1. Add 1 to global counter 0.
  2149. -Else:
  2150. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  2151. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  2152.  
  2153. Microdragon (LV. 60/55)
  2154. =======================
  2155. Routine 1:
  2156. -Take 2 actions per turn.
  2157. -If counter 2 is at 0:
  2158. --Use Gnaw (Targets the party member with the highest LIFE). Set counter 2 to 10.
  2159. -If counter 2 is at 10:
  2160. --Use Skill Crusher. Set counter 2 to 20.
  2161. -If counter 1 is at or above 4:
  2162. --Use Skill Crusher. Add 1 to counter 0. Set counter 1 to 0.
  2163. -If counter 0 is at or above 2:
  2164. --1/3 chance to use Cursefire (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2165. --2/3 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2166. -Else:
  2167. --Attack. Add 1 to counters 0 and 1.
  2168.  
  2169. Routine 2:
  2170. -If counter 1 is at or above 2, swap to routine 2.
  2171. -If counter 2 is at or above 2, swap to routine 3.
  2172. -If counter 0 is at or above 2:
  2173. --1/3 chance to use Cursefire (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2174. --2/3 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  2175. -Else:
  2176. --Attack. Add 1 to counter 0. Add 1 to global counter 1.
  2177.  
  2178. Routine 3:
  2179. -If counter 0 is at or above 20, swap to routine 1.
  2180. -If counter 0 is at 0:
  2181. --Use Skill Crusher. Set counter 0 to 10.
  2182. -If counter 0 is at 10:
  2183. --Use Gnaw. Set counter 0 to 20.
  2184. -Else:
  2185. --Attack.
  2186.  
  2187. Routine 4:
  2188. -If counter 0 is at or above 20, swap to routine 1.
  2189. -If counter 0 is at 0:
  2190. --Use Skill Crusher. Set counter 0 to 10.
  2191. -If counter 0 is at 10:
  2192. --Use Cursefire. Set counter 0 to 20.
  2193. -Else:
  2194. --Attack.
  2195.  
  2196. Hammerer (LV. 53/49)
  2197. ====================
  2198. Routine 1:
  2199. -Take 2 actions per turn.
  2200. -If counter 2 is at 0:
  2201. --1/4 chance to use Downstroke (Targets the party member with the highest LIFE). Set counter 2 to 10.
  2202. --3/4 chance to use Downstroke. Set counter 2 to 10.
  2203. -If counter 2 is at 10:
  2204. --Use Mow Down. Set counter 2 to 20.
  2205. -If counter 1 is at or above 5:
  2206. --Use Mow Down. Add 1 to counter 0. Set counter 1 to 0.
  2207. -If counter 0 is at or above 3:
  2208. --1/3 chance to use Downstroke (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2209. --2/3 chance to use Downstroke. Set counter 0 to 0. Add 1 to counter 1.
  2210. -Else:
  2211. --Attack. Add 1 to counters 0 and 1.
  2212.  
  2213. Routine 2:
  2214. -Take 2 actions per turn.
  2215. -If self is at or below 55% LIFE, swap to routine 2.
  2216. -If counter 2 is at 0:
  2217. --Use Downstroke (Target the party member with the highest LIFE). Set counter 2 to 10.
  2218. -If counter 1 is at or above 4:
  2219. --Use Downstroke (Target the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  2220. -If counter 0 is at or above 3:
  2221. --Use Mow Down. Set counter 0 to 0. Add 1 to counter 1.
  2222. -Else:
  2223. --Attack. Add 1 to counters 0 and 1.
  2224.  
  2225. Routine 3:
  2226. -Take 2 actions per turn.
  2227. -If global counter 0 is at 0 and it is the second action in the turn:
  2228. --Use Gather Power (Targets the user's side). Set global counter 0 to 10.
  2229. -If global counter 0 is at 10:
  2230. --Use Mow Down. Set global counter 0 to 20.
  2231. -If counter 1 is at or above 5:
  2232. --Use Downstroke (Target the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  2233. -If counter 0 is at or above 3:
  2234. --Use Mow Down (Target the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2235. -Else:
  2236. --Attack. Add 1 to counters 0 and 1.
  2237.  
  2238. Salamander (LV. 10/8)
  2239. =====================
  2240. Routine 1:
  2241. -Take 2 actions per turn.
  2242. -If counter 0 is at or above 3, counter 1 is at 0, and it is the first action in the turn:
  2243. --Use Fire Breath. Set counter 1 to 1.
  2244. -If counter 0 is at or above 3 and it is the first action in the turn:
  2245. --Use Fire Breath (Targets the party member with the highest LIFE). Set counter 1 to 0.
  2246. -If counter 0 is at or above 3:
  2247. --Attack (Targets the party member with the highest LIFE).
  2248. -If counter 0 is at or above 1 and it is the second action in the turn:
  2249. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0.
  2250. -If it is the second action in the turn and counter 0 is at or above 0:
  2251. --Attack. Add 1 to counter 0.
  2252.  
  2253. Routine 2:
  2254. -Take 2 actions per turn.
  2255. -If counter 0 is at or above 5:
  2256. --Use Fire Breath (Targets the party member with the highest LIFE). Set counter 0 to 0.
  2257. -If counter 0 is at or above 2:
  2258. --1/4 chance to attack. Add 1 to counter 0.
  2259. --3/4 chance to use Fire Breath (Targets the party member with the highest LIFE). Set counter 0 to 0.
  2260. -Else:
  2261. --Attack. Add 1 to counter 0.
  2262.  
  2263. Blizzasaurus (LV. 52/48)
  2264. ========================
  2265. Routine 1:
  2266. -Take 2 actions per turn.
  2267. -If counter 2 is at 1:
  2268. --1/3 chance to use Tumble (Targets the party member with the highest LIFE). Set counter 2 to 10.
  2269. --2/3 chance to use Tumble. Set counter 2 to 10.
  2270. -If counter 2 is at 0:
  2271. --1/3 chance to use Ice Cannon (Targets the party member with the highest LIFE). Add 1 to counter 2.
  2272. --2/3 chance to use Ice Cannon. Add 1 to counter 2.
  2273. -If counter 1 is at or above 3:
  2274. --1/3 chance to use Tumble (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  2275. --2/3 chance to use Tumble. Add 1 to counter 0. Set counter 1 to 0.
  2276. -If counter 0 is at or above 2:
  2277. --1/3 chance to use Ice Cannon (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2278. --2/3 chance to use Ice Cannon. Set counter 0 to 0. Add 1 to counter 1.
  2279. -Else:
  2280. --Attack. Add 1 to counters 0 and 1.
  2281.  
  2282. Routine 2:
  2283. -Take 2 actions per turn.
  2284. -If self is at or below 55% LIFE, swap to routine 2.
  2285. -If counter 2 is at 1:
  2286. --1/3 chance to use Tumble (Targets the party member with the highest LIFE). Set counter 2 to 10.
  2287. --2/3 chance to use Tumble. Set counter 2 to 10.
  2288. -If counter 2 is at 0:
  2289. --1/3 chance to use Ice Cannon (Targets the party member with the highest LIFE). Add 1 to counter 2.
  2290. --2/3 chance to use Ice Cannon. Add 1 to counter 2.
  2291. -If counter 1 is at or above 3:
  2292. --1/3 chance to use Tumble (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  2293. --2/3 chance to use Tumble. Add 1 to counter 0. Set counter 1 to 0.
  2294. -If counter 0 is at or above 2:
  2295. --1/3 chance to use Ice Cannon (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2296. --2/3 chance to use Ice Cannon. Set counter 0 to 0. Add 1 to counter 1.
  2297. -Else:
  2298. --Attack. Add 1 to counters 0 and 1.
  2299.  
  2300. Routine 3:
  2301. -Take 2 actions per turn.
  2302. -If global counter 0 is at 0 and it is the second action in the turn:
  2303. --Use Gather Power (Targets the user's side). Subtract 1 from counter 0. Set global counter 0 to 10.
  2304. -If global counter 0 is at 20:
  2305. --1/3 chance to use Ice Cannon (Targets the party member with the highest LIFE). Set global counter 0 to 30.
  2306. --2/3 chance to use Ice Cannon. Set global counter 0 to 30.
  2307. -If global counter 0 is at 10:
  2308. --1/3 chance to use Tumble (Targets the party member with the highest LIFE). Set global counter 0 to 20.
  2309. --2/3 chance to use Tumble. Set global counter 0 to 20.
  2310. -If counter 1 is at or above 3:
  2311. --1/3 chance to use Ice Cannon (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  2312. --2/3 chance to use Ice Cannon. Add 1 to counter 0. Set counter 1 to 0.
  2313. -If counter 0 is at or above 2:
  2314. --1/3 chance to use Tumble (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2315. --2/3 chance to use Tumble. Set counter 0 to 0. Add 1 to counter 1.
  2316. -Else:
  2317. --Attack. Add 1 to counters 0 and 1.
  2318.  
  2319. Dracoprism (LV. 57/53)
  2320. ======================
  2321. -Take 2 actions per turn.
  2322. -If counter 0 is at 5 and it is the second action in the turn:
  2323. --Attack. Set counter 0 to 0.
  2324. -If counter 0 is at 4 and it is the first action in the turn:
  2325. --1/2 chance to use Fire Breath. Add 1 to counter 0.
  2326. --1/2 chance to attack. Add 1 to counter 0.
  2327. -If counter 0 is at 3 and it is the second action in the turn:
  2328. --Attack. Add 1 to counter 0.
  2329. -If counter 0 is at 2, any party members are inflicted with Bleed, and it is the first action in the turn:
  2330. --5/6 chance to use Drink Blood (Targets party members inflicted with Bleed). Add 1 to counter 0.
  2331. --1/6 chance to use Bloodeater (Targets party members inflicted with Bleed). Add 1 to counter 0.
  2332. -If counter 0 is at 2 and it is the second action in the turn:
  2333. --Attack. Add 1 to counter 0.
  2334. -If counter 0 is at 1, at least 1 party member is not inflicted with Bleed, and it is the second action in the turn:
  2335. --Use Hexatonic. Add 1 to counter 0.
  2336. -If counter 0 is at 1 and it is the second action in the turna:
  2337. --Use Fire Breath. Add 1 to counter 0.
  2338. -If counter 0 is at 0 and it is the first action in the turn:
  2339. --Attack. Add 1 to counter 0.
  2340. -Else:
  2341. --Attack. Add 1 to counter 0.
  2342.  
  2343. Chemical Dragon (LV. 27/24)
  2344. ===========================
  2345. -Take 2 actions per turn.
  2346. -If counter 1 is at 0 and it is the second action in the turn:
  2347. --Use Sludge Breath. Set counter 0 to 0. Set counter 1 to 10.
  2348. -If counter 0 is at 6:
  2349. --Use Sludge Breath (Targets the party member with the highest LIFE). Set counter 0 to 0.
  2350. -Else:
  2351. --Attack. Add 1 to counter 0.
  2352.  
  2353. Killhorn Dragon V (LV. 95/90)
  2354. =============================
  2355. Routine 1:
  2356. -Take 2 actions per turn.
  2357. -If counter 0 is at 9 and it is the second action in the turn:
  2358. --Attack. Set counter 0 to 0.
  2359. -If counter 0 is at 8 and it is the first action in the turn:
  2360. --Attack. Add 1 to counter 0.
  2361. -If counter 0 is at 7 and it is the second action in the turn:
  2362. --Attack. Add 1 to counter 0.
  2363. -If counter 0 is at 6 and it is the first action in the turn:
  2364. --Attack. Add 1 to counter 0.
  2365. -If counter 0 is at 5 and it is the second action in the turn:
  2366. --Attack. Add 1 to counter 0.
  2367. -If counter 0 is at 4 and at least 1 party member is not inflicted with Bleed:
  2368. --Use Great Horn (Targets party members not inflicted with Bleed). Add 1 to counter 0.
  2369. -If counter 0 is at 4 and it is the first action in the turn:
  2370. --Use Great Horn. Add 1 to counter 0.
  2371. -If counter 0 is at 3 and it is the second action in the turn:
  2372. --Use Charging Stance (Targets the user's side). Add 1 to counter 0.
  2373. -If counter 0 is at 2 and it is the first action in the turn:
  2374. --Use Sealing Cry. Add 1 to counter 0.
  2375. -If counter 0 is at 1 and it is the second action in the turn:
  2376. --Attack. Add 1 to counter 0.
  2377. -If counter 0 is at 0 and it is the first action in the turn:
  2378. --Attack. Add 1 to counter 0.
  2379. -Else:
  2380. --Attack. Add 1 to counter 0.
  2381.  
  2382. Thunder Dragon (LV. 53/49)
  2383. ==========================
  2384. Routine 1:
  2385. -Take 2 actions per turn.
  2386. -If global counter 0 is at 0 and it is the second action in the turn:
  2387. --Use Thunder Breath. Set global counter 0 to 10.
  2388. -If counter 2 is at or above 6 and it is the second action in the turn:
  2389. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set counter 2 to 0.
  2390. -If counter 1 is at or above 5:
  2391. --Use Thunder Breath. Set counter 1 to 0. Add 1 to counter 2.
  2392. -If counter 0 is at or above 3:
  2393. --Use Sonic Boom. Set counter 0 to 0. Add 1 to counters 1 and 2.
  2394. -Else:
  2395. --Attack. Add 1 to counters 0, 1, and 2.
  2396.  
  2397. Routine 2:
  2398. -Take 2 actions per turn.
  2399. -If self is at or below 55% LIFE, swap to routine 2.
  2400. -If counter 1 is at or above 5:
  2401. --Use Thunder Breath. Add 1 to counter 0. Set counter 1 to 0.
  2402. -If counter 0 is at or above 3:
  2403. --Use Sonic Boom (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2404. -Else:
  2405. --Attack. Add 1 to counters 0 and 1.
  2406.  
  2407. Routine 3:
  2408. -Take 2 actions per turn.
  2409. -If global counter 0 is at 2 and it is the second action in the turn:
  2410. --Use Gather Power (Targets the user's side). Add 1 to global counter 0.
  2411. -If global counter 0 is at or above 1 and it is not the second action in the turn:
  2412. --Use Thunder Breath. Set global counter 0 to -5.
  2413. -If counter 2 is at or above 6 and it is the second action in the turn:
  2414. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set counter 2 to 0.
  2415. -If counter 1 is at or above 5:
  2416. --Use Thunder Breath. Add 1 to counters 0 and 2. Set counter 1 to 0.
  2417. -If counter 0 is at or above 3:
  2418. --Use Sonic Boom (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counters 1 and 2.
  2419. -Else:
  2420. --Attack. Add 1 to counters 1 and 2.
  2421.  
  2422. Freeze Dragon (LV. 52/48)
  2423. =========================
  2424. -Take 2 actions per turn.
  2425. -If counter 0 is at or above 9 and it is the second action in the turn:
  2426. --Attack. Set counters 0, 1, and 2 to 0.
  2427. -If counter 0 is at or above 8 and it is the first action in the turn:
  2428. --Use Freeze Breath. Add 1 to counter 0.
  2429. -If counter 0 is at 7 and it is the second action in the turn:
  2430. --Use Gather Power (Targets the user's side). Add 1 to counter 0.
  2431. -If counter 0 is at or above 6 and it is the first action in the turn:
  2432. --1/2 chance to use Sonic Boom. Add 1 to counter 0.
  2433. --1/2 chance to attack. Add 1 to counter 0.
  2434. -If counter 0 is at 5, self does not have a Fire Resist buff, and it is the second action in the turn:
  2435. --Use Rainbow Shield (Targets self). Add 1 to counter 0.
  2436. -If counter 0 is at or above 5 and it is the second action in the turn:
  2437. --Attack. Add 1 to counter 0.
  2438. -If counter 0 is at or above 4 and it is the first action in the turn:
  2439. --1/2 chance to use Sonic Boom. Add 1 to counter 0.
  2440. --1/2 chance to attack. Add 1 to counter 0.
  2441. -If counter 0 is at 3 and it is the second action in the turn:
  2442. --Attack. Add 1 to counter 0.
  2443. -If counter 0 is at or above 2 and it is the first action in the turn:
  2444. --Use Freeze Breath. Add 1 to counter 0.
  2445. -If counter 0 is at 1 and it is the second action in the turn:
  2446. --Use Gather Power (Targets the user's side). Add 1 to counter 0.
  2447. -If counter 0 is at 0, self does not have a Fire Resist buff, and it is the first action in the turn:
  2448. --Use Rainbow Shield (Targets self). Add 1 to counter 0.
  2449. -If counter 0 is at 0 and it is the first action in the turn:
  2450. --Attack. Add 1 to counter 0.
  2451. -Else:
  2452. --Attack. Add 1 to counter 0.
  2453.  
  2454. Snapdragon (LV. 37/33)
  2455. ======================
  2456. Routine 1:
  2457. -Take 2 actions per turn.
  2458. -If the battle started out as a surprise attack, the turn count is at or below 1, and global counter 2 is at 1:
  2459. --Use Harden Skin (Targets the user's side). Set global counter 2 to 10.
  2460. -If the battle started out as a surprise attack, the turn count is at or below 1, and global counter 2 is at 0:
  2461. --Use Headlong Charge (Targets the party member with the lowest LIFE). Set global counter 2 to 1.
  2462. -If global counter 1 is at 0 and self is at or below 25% LIFE:
  2463. --Use Harden Skin (Targets the user's side). Add 1 to counter 0. Set global counter 1 to 10.
  2464. -If counter 2 is at 0 and it is the second action in the turn:
  2465. --Use Thunder Breath. Add 1 to counter 0. Set counter 2 to 10.
  2466. -If counter 1 is at or above 6:
  2467. --Use Thunder Breath. Add 1 to counter 0. Set counter 1 to 0.
  2468. -If counter 0 is at or above 3:
  2469. --Use Headlong Charge (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2470. -Else:
  2471. --Attack. Add 1 to counters 0 and 1.
  2472.  
  2473. Routine 2:
  2474. -Take 2 actions per turn.
  2475. -If self is at or below 50% LIFE, swap to routine 2.
  2476. -If the battle started out as a surprise attack, the turn count is at or below 1, and counter 2 is at 1:
  2477. --Use Harden Skin (Targets the user's side). Set counter 2 to 10.
  2478. -If the battle started out as a surprise attack, the turn count is at or below 1, and counter 2 is at 0:
  2479. --Use Headlong Charge (Targets the party member with the lowest LIFE). Add 1 to counter 2.
  2480. -If counter 1 is at or above 5:
  2481. --Use Thunder Breath. Add 1 to counter 0. Set counter 1 to 0.
  2482. -If counter 0 is at or above 2:
  2483. --Use Headlong Charge (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2484. -Else:
  2485. --Attack. Add 1 to counters 0 and 1.
  2486.  
  2487. Routine 3:
  2488. -Take 2 actions per turn.
  2489. -If counter 2 is at 0:
  2490. --Use Harden Skin (Targets the user's side). Set global counter 2 to 10.
  2491. -If counter 1 is at or above 5:
  2492. --Use Thunder Breath. Add 1 to counter 0. Set counter 1 to 0.
  2493. -If counter 0 is at or above 2:
  2494. --Use Headlong Charge (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2495. -Else:
  2496. --Attack. Add 1 to counters 0 and 1.
  2497.  
  2498. Destroyer Dragon (LV. 30/26)
  2499. ============================
  2500. -Take 2 actions per turn.
  2501. -If global counter 0 is at 0:
  2502. --Use Muscle Eye. Set global counter 0 to 10.
  2503. -If global counter 0 is at 10 and self is at or below 30% LIFE:
  2504. --Use Muscle Eye. Add 20 to global counter 0.
  2505. -If counter 0 is at or above 2:
  2506. --1/3 chance to use Jump Kick (Targets the party member with the highest LIFE). Set counter 0 to 0.
  2507. --2/3 chance to use Jump Kick. Set counter 0 to 0.
  2508. -Else:
  2509. -Attack. Add 1 to counter 0.
  2510.  
  2511. Cornarodon (LV. 57/53)
  2512. ======================
  2513. Routine 1:
  2514. -Take 2 actions per turn.
  2515. -If global counter 0 is at 0:
  2516. --Use Cold Front (Targets self). Set global counter 0 to 10.
  2517. -If counter 1 is at or above 5:
  2518. --Use Cold Front (Targets self). Add 1 to counter 0. Set counter 1 to 0.
  2519. -If counter 0 is at or above 3:
  2520. --Use Ice Breath. Set counter 0 to 0. Add 1 to counter 1.
  2521. -Else:
  2522. --Attack. Add 1 to counters 0 and 1.
  2523.  
  2524. Routine 2:
  2525. -Take 2 actions per turn.
  2526. -If self is at or below 30% LIFE, swap to routine 2.
  2527. -If counter 0 is at 0:
  2528. --Use Cold Front (Targets self). Add 1 to counter 0.
  2529. -If counter 2 is at or above 5:
  2530. --Use Cold Front (Targets self). Set counter 2 to 0.
  2531. -If counter 1 is at or above 4:
  2532. --Use Ice Breath. Set counter 1 to 0. Add 1 to counter 2.
  2533. -Else:
  2534. --Attack. Add 1 to counters 1 and 2.
  2535.  
  2536. Routine 3:
  2537. -Take 2 actions per turn.
  2538. -If counter 0 is at 10:
  2539. --Use Cold Front (Targets the user's side). Set counter 0 to 30.
  2540. -If counter 0 is at 0:
  2541. --Use Defenses Up (Targets the user's side). Set counter 0 to 10.
  2542. -If counter 2 is at or above 5:
  2543. --Use Cold Front (Targets self). Set counter 2 to 0.
  2544. -If counter 1 is at or above 4:
  2545. --Use Ice Breath. Set counter 1 to 0. Add 1 to counter 2.
  2546. -Else:
  2547. --Attack. Add 1 to counters 1 and 2.
  2548.  
  2549. Cannon Dragon (LV. 69/64)
  2550. =========================
  2551. Routine 1:
  2552. -Take 1 action per turn.
  2553. -If counter 0 is at 10, swap to routine 2.
  2554. -If counter 1 is at 10, swap to routine 3.
  2555. -If the turn count is at 1:
  2556. --Use Jump (Targets the user's side). Set counter 0 to 10.
  2557. -Else:
  2558. --Use Madness Breath. Set counter 1 to 10.
  2559.  
  2560. Routine 2:
  2561. -Take 2 actions per turn.
  2562. -If counter 0 is at or above 1, swap to routine 3.
  2563. -If self has the Jump effect and all party members are inflicted with Poison:
  2564. --Use Madness Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  2565. -If self has the Jump effect:
  2566. --Use Madness Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  2567. -Else:
  2568. --Attack (Targets a random party member). Add 1 to counter 0.
  2569.  
  2570. Routine 3:
  2571. -Take 2 actions per turn.
  2572. -If counter 0 is at or above 3 and self is at or below 40% LIFE, swap to routine 4.
  2573. -If counter 1 is at or above 2 and global counter 1 is at 0:
  2574. --Use Madness Breath. Add 1 to counter 0. Set global counter 1 to 10.
  2575. -If counter 0 is at or above 6:
  2576. --Use Madness Breath. Set counter 0 to 0.
  2577. -Else:
  2578. --Attack. Add 1 to counters 0 and 1.
  2579.  
  2580. Routine 4:
  2581. -Take 1 action per turn.
  2582. -If global counter 0 is at 10, swap to routine 5.
  2583. -Use Jump (Targets the user's side). Set global counter 0 to 10.
  2584.  
  2585. Routine 5:
  2586. -Take 2 actions per turn.
  2587. -If counter 0 is at or above 1, swap to routine 3.
  2588. -If self has the Jump effect and all party members are inflicted with Poison:
  2589. --Use Madness Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set global counter 0 to 20.
  2590. -If self has the Jump effect:
  2591. --Use Madness Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set global counter 0 to 20.
  2592. -Else:
  2593. --Attack (Targets a random party member). Add 1 to counter 0. Set global counter 0 to 20.
  2594.  
  2595. Axe Dragon V (LV. 80/75)
  2596. ========================
  2597. -Take 2 actions per turn.
  2598. -If counter 0 is at 5 and it is the second action in the turn:
  2599. --Attack (Targets the party member with the lowest level). Set counters 0, 1, and 2 to 0.
  2600. -If counter 0 is at 4, counter 1 is at 20, and it is the first action in the turn:
  2601. --Use Downstroke (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 1 to 0.
  2602. -If counter 0 is at 4 and it is the first action in the turn:
  2603. --2/4 chance to use Mow Down. Add 1 to counter 0.
  2604. --2/4 chance to attack (Targets the party member with the lowest level). Add 1 to counter 0.
  2605. -If counter 0 is at 3, counter 1 is at 10, and it is the second action in the turn:
  2606. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 1 to 20.
  2607. -If counter 0 is at 3 and it is the second action in the turn:
  2608. --Attack (Targets the party member with the highest level). Add 1 to counter 0.
  2609. -If counter 0 is at 2, counter 2 is at 10, and it is the first action in the turn:
  2610. --Use Downstroke (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 0.
  2611. -If counter 0 is at 2 and it is the first action in the turn:
  2612. --2/4 chance to attack. Add 1 to counter 0.
  2613. --2/4 chance to use Mow Down. Add 1 to counter 0.
  2614. -If counter 0 is at 1, self does not have an ATK buff, and it is the second action in the turn:
  2615. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  2616. -If counter 0 is at 1 and it is the second action in the turn:
  2617. --Attack (Targets the party member with the lowest LIFE). Add 1 to counter 0. Set counter 1 to 10.
  2618. -If counter 0 is at 0:
  2619. --2/3 chance to attack. Add 1 to counter 0.
  2620. --1/3 chance to use Mow Down. Add 1 to counter 0. Set counter 2 to 10.
  2621. -Else:
  2622. --2/3 chance to attack. Add 1 to counter 0.
  2623. --1/3 chance to use Mow Down. Add 1 to counter 0.
  2624.  
  2625. D202 V (LV. 94/89)
  2626. ==================
  2627. -Take 1 action per turn.
  2628. -If counter 0 is at or above 9:
  2629. --Attack (Targets the party member with the lowest level). Set counters 0, 1, and 2 to 0.
  2630. -If counter 0 is at or above 8 and counter 2 is at 10:
  2631. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 2 to 0.
  2632. -If counter 0 is at or above 8:
  2633. --1/2 chance to use Sonic Boom (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 2 to 0.
  2634. --1/2 chance to attack (Targets the party member with the lowest LIFE). Add 1 to counter 0. Set counter 2 to 0.
  2635. -If counter 0 is at 7 and self is at or below 50% LIFE:
  2636. --Use Power Charge (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0. Add 10 to counter 2.
  2637. -If counter 0 is at 7:
  2638. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  2639. --1/2 chance to use Sonic Boom (Targets the party member with the highest LIFE). Add 1 to counter 0.
  2640. -If counter 0 is at 6:
  2641. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  2642. --1/2 chance to use Sonic Boom (Targets the party member with the highest LIFE). Add 1 to counter 0.
  2643. -If counter 0 is at 5:
  2644. --Attack (Targets the party member with the lowest level). Add 1 to counter 0.
  2645. -If counter 0 is at 4:
  2646. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0.
  2647. -If counter 0 is at 3:
  2648. --Use Gather Power (Targets the user's side). Add 1 to counter 0.
  2649. -If counter 0 is at 2:
  2650. --1/2 chance to use Sonic Boom (Targets the party member with the lowest level). Add 1 to counter 0.
  2651. --1/2 chance to attack (Targets the party member with the lowest level). Add 1 to counter 0.
  2652. -If counter 0 is at 1:
  2653. --Attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  2654. -If counter 0 is at 0:
  2655. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0.
  2656.  
  2657. Bouldersnatch (LV. 54/50)
  2658. =========================
  2659. -Take 2 actions per turn.
  2660. -If counter 0 is at 7 and it is the second action in the turn:
  2661. --1/2 chance to attack. Set counter 0 to 0.
  2662. --1/2 chance to use Seal Cannon. Set counter 0 to 0.
  2663. -If counter 0 is at 6 and it is the first action in the turn:
  2664. --Use Giant Slalom. Add 1 to counter 0.
  2665. -If counter 0 is at 5 it is the second action in the turn:
  2666. --Use Slalom Stance (Targets the user's side). Add 1 to counter 0.
  2667. -If counter 0 is at 4 and it is the first action in the turn:
  2668. --Attack. Add 1 to counter 0. Set global counter 2 to 50.
  2669. -If counter 0 is at 3 it is the second action in the turn:
  2670. --1/2 chance to attack. Add 1 to counter 0.
  2671. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  2672. -If counter 0 is at 2 it is the first action in the turn:
  2673. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  2674. --1/2 chance to attack. Add 1 to counter 0.
  2675. -If counter 0 is at 1 it is the second action in the turn:
  2676. --Use Atmospheric Vibration (Targets the user's side). Add 1 to counter 0.
  2677. -If counter 0 is at 0 and it is the first action in the turn:
  2678. --Attack. Add 1 to counter 0.
  2679. -Else:
  2680. --Attack. Add 1 to counter 0.
  2681.  
  2682. Massive Dragon V (LV. 95/90)
  2683. ============================
  2684. Routine 1:
  2685. -Take 2 actions per turn.
  2686. -If self is at or below 70% LIFE, swap to routine 2.
  2687. -If counter 2 is at or above 6, swap to routine 2.
  2688. -If counter 1 is at 0:
  2689. --Use Super Headbutt (Targets the party member with the highest LIFE). Set counter 1 to 10. Add 1 to counter 2.
  2690. -If counter 0 is at or above 3:
  2691. --Use Super Headbutt (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  2692. -Else:
  2693. --Attack. Add 1 to counters 0 and 2.
  2694.  
  2695. Routine 2:
  2696. -Take 2 actions per turn.
  2697. -If it is the first action in the turn and global counter 2 is at 0:
  2698. --Use Chaos Eye. Set global counter 2 to 10.
  2699. -If it is the second action in the turn and global counter 2 is at 10:
  2700. --Use Super Muscle Charge (Targets the user's side). Set global counter 2 to 20.
  2701. -If it is the first action in the turn and global counter 2 is at 20:
  2702. --Use Super Burning Lariat. Set counter 0 to 1. Set global counter 2 to 30.
  2703. -If counter 0 is at or above 9 and it is the second action in the turn:
  2704. --Attack. Set counter 0 to 0.
  2705. -If counter 0 is at or above 8 and it is the first action in the turn:
  2706. --1/2 chance to use Super Jump Kick. Add 1 to counter 0.
  2707. --1/2 chance to attack. Add 1 to counter 0.
  2708. -If counter 0 is at 7, at least 1 party member is not inflicted with Skill Seal, and it is the second action in the turn:
  2709. --1/2 chance to attack. Add 1 to counter 0.
  2710. --1/2 chance to use Chaos Eye (Targets party members that are not inflicted with Skill Seal). Add 1 to counter 0.
  2711. -If counter 0 is at 7 and it is the second action in the turn:
  2712. --1/2 chance to attack. Add 1 to counter 0.
  2713. --1/2 chance to use Super Headbutt. Add 1 to counter 0.
  2714. -If counter 0 is at 6 and it is the first action in the turn:
  2715. --1/2 chance to attack. Add 1 to counter 0.
  2716. --1/2 chance to use Super Jump Kick. Add 1 to counter 0.
  2717. -If counter 0 is at 5 and it is the second action in the turn:
  2718. --Attack (Targets a random party member). Add 1 to counter 0.
  2719. -If counter 0 is at 4, counter 1 is at 10, and it is the first action in the turn:
  2720. --Use Super Burning Lariat. Add 1 to counter 0. Set counter 1 to 0.
  2721. -If counter 0 is at 3 and it is the first action in the turn:
  2722. --1/2 chance to use Super Jump Kick. Add 1 to counter 0.
  2723. --1/2 chance to attack. Add 1 to counter 0.
  2724. -If counter 0 is at 2 and it is the second action in the turn:
  2725. --1/2 chance to use Super Muscle Charge (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  2726. --1/2 chance to attack. Add 1 to counter 0.
  2727. -If counter 0 is at 2 and it is the first action in the turn:
  2728. --1/2 chance to use Super Jump Kick (Targets the party member with the highest LIFE). Add 1 to counter 0.
  2729. --1/2 chance to attack. Add 1 to counter 0.
  2730. -If counter 0 is at 1 and it is the second action in the turn:
  2731. --1/2 chance to use Super Headbutt. Add 1 to counter 0.
  2732. --1/2 chance to attack. Add 1 to counter 0.
  2733. -If counter 0 is at 0 and it is the first action in the turn:
  2734. --1/2 chance to attack. Add 1 to counter 0.
  2735. --1/2 chance to use Super Jump Kick (Targets the party member with the highest LIFE). Add 1 to counter 0.
  2736. -Else:
  2737. --Attack. Add 1 to counters 0 and 1.
  2738.  
  2739. Dragonlord (LV. 68/63)
  2740. ======================
  2741. -Take 2 actions per turn.
  2742. -If global counter 0 is at 0 and it is the second action in the turn:
  2743. --1/6 chance to use Fire Breath. Set global counter 0 to 10.
  2744. --2/6 chance to use Freeze Breath. Set global counter 0 to 10.
  2745. --3/6 chance to use Thunder Breath. Set global counter 0 to 10.
  2746. -If counter 2 is at or above 6 and it is the second action in the turn:
  2747. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set counter 2 to 0.
  2748. -If counter 1 is at or above 5:
  2749. --1/6 chance to use Fire Breath. Set counter 1 to 0. Add 1 to counter 2.
  2750. --2/6 chance to use Freeze Breath. Set counter 1 to 0. Add 1 to counter 2.
  2751. --3/6 chance to use Thunder Breath. Set counter 1 to 0. Add 1 to counter 2.
  2752. -If counter 0 is at or above 3:
  2753. --Use Sonic Boom. Set counter 0 to 0. Add 1 to counters 1 and 2.
  2754. -Else:
  2755. --Attack. Add 1 to counters 0, 1, and 2.
  2756.  
  2757. Hammerhead (LV. 50/46)
  2758. ======================
  2759. -Take 2 actions per turn.
  2760. -If counter 0 is at 5 and it is the second action in the turn:
  2761. --Attack. Set counters 0, 1, and 2 to 0.
  2762. -If counter 0 is at 4, counter 1 is at 20, and it is the first action in the turn:
  2763. --Use Downstroke. Add 1 to counter 0. Set counter 1 to 0.
  2764. -If counter 0 is at 4 and it is the first action in the turn:
  2765. --2/4 chance to use Mow Down. Add 1 to counter 0.
  2766. --2/4 chance to attack. Add 1 to counter 0.
  2767. -If counter 0 is at 3, counter 1 is at 10, and it is the second action in the turn:
  2768. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 1 to 20.
  2769. -If counter 0 is at 3 and it is the second action in the turn:
  2770. --Attack. Add 1 to counter 0.
  2771. -If counter 0 is at 2, counter 2 is at 10, and it is the first action in the turn:
  2772. --Use Downstroke (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 0.
  2773. -If counter 0 is at 2 and it is the first action in the turn:
  2774. --2/4 chance to attack (Targets the party member with the highest level). Add 1 to counter 0.
  2775. --2/4 chance to use Mow Down. Add 1 to counter 0.
  2776. -If counter 0 is at 1, self does not have an ATK buff, and it is the second action in the turn:
  2777. --Use Gather Power (Targets a random enemy). Add 1 to counter 0. Set counter 2 to 10.
  2778. -If counter 0 is at 1 and it is the second action in the turn:
  2779. --Attack. Add 1 to counter 0. Set counter 1 to 10.
  2780. -If counter 0 is at 0:
  2781. --2/3 chance to attack. Add 1 to counter 0.
  2782. --1/3 chance to use Mow Down. Add 1 to counter 0. Set counter 2 to 10.
  2783. -Else:
  2784. --2/3 chance to attack. Add 1 to counter 0.
  2785. --1/3 chance to use Mow Down. Add 1 to counter 0.
  2786.  
  2787. Little Dragon (LV. 39/35)
  2788. =========================
  2789. Routine 1:
  2790. -Take 2 actions per turn.
  2791. -If at least 1 party member is not inflicted with Downer and counter 2 is at 0:
  2792. --Use Downer Bite (Targets party members that are not inflicted with Downer). Set counter 2 to 10.
  2793. -If at least 1 party member is not inflicted with Downer and counter 2 is at 10:
  2794. --Use Downer Bite. Set counter 2 to 20.
  2795. -If at least 1 party member is not inflicted with Downer counter 0 is at or above 2:
  2796. --2/3 chance to use Downer Bite. Set counter 0 to 0.
  2797. --1/3 chance to attack. Set counter 0 to 0.
  2798. -If counter 0 is at or above 2:
  2799. --Use Fireball (Targets the party member with the lowest level). Set counter 0 to 0.
  2800. -Else:
  2801. --Attack. Add 1 to counter 0.
  2802.  
  2803. Routine 2:
  2804. -If counter 1 is at or above 2, swap to routine 2.
  2805. -If counter 2 is at or above 2, swap to routine 3.
  2806. -If counter 0 is at or above 2:
  2807. --1/5 chance to use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2808. --4/5 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  2809. -Else:
  2810. --Attack. Add 1 to counter 0.
  2811.  
  2812. Routine 3:
  2813. -If counter 0 is at or above 10, swap to routine 1.
  2814. -Use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 10. Add 1 to counter 2.
  2815.  
  2816. Routine 4:
  2817. -If counter 0 is at or above 10, swap to routine 1.
  2818. -Use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 10. Add 1 to counter 2.
  2819.  
  2820. Stabdragon (LV. 40/36)
  2821. ======================
  2822. -Take 2 actions per turn.
  2823. -If counter 2 is at 30 and it is the first action in the turn:
  2824. --Use Rolling Claw (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 40.
  2825. -If counter 2 is at 20, the turn count is above 5, and it is the second action in the turn:
  2826. --Use Scratching Post (Targets the user's side). Add 1 to counter 0. Set counter 2 to 30.
  2827. -If counter 1 is at or above 5:
  2828. --Use Battle Cry (Targets party members that are not inflicted with Paralysis). Add 1 to counter 0. Set counter 1 to 0.
  2829. -If counter 0 is at or above 2:
  2830. --1/2 chance to use Bite Off. Set counter 0 to 0. Add 1 to counter 1.
  2831. --1/2 chance to use a Fang attack. Add 1 to counters 0 and 1.
  2832. -If counter 2 is at 10 and it is the first action in the turn:
  2833. --Use Rolling Claw. Add 1 to counter 0. Set counter 2 to 20.
  2834. -If counter 2 is at 0, the turn count is above 2, and it is the second action in the turn:
  2835. --Use Scratching Post (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  2836. -Else:
  2837. --1/2 chance to use a Claw attack. Add 1 to counters 0 and 1.
  2838. --1/2 chance to use a Fang attack. Add 1 to counters 0 and 1.
  2839.  
  2840. Dragonfly (LV. 39/35)
  2841. =====================
  2842. -Take 2 actions per turn.
  2843. -If counter 2 is at 10:
  2844. --Use Buzzwing (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 2 to 20.
  2845. -If counter 2 is at 0 and global counter 0 is at or above 1:
  2846. --Use Petrify Wave. Set counter 2 to 10.
  2847. -If global counter 0 is at 0 and self is at or below 50% LIFE:
  2848. --Use Downer Beat (Targets party members that are not inflicted with Sleep). Add 1 to counters 0 and 1. Set global counter 0 to 10.
  2849. -If counter 1 is at or above 5:
  2850. --Use Petrify Wave (Targets party members that are not inflicted with Confusion). Add 1 to counter 0. Set counter 1 to 0.
  2851. -If counter 0 is at or above 2:
  2852. --Use Buzzwing (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2853. -Else:
  2854. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1.
  2855. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1.
  2856.  
  2857. Megamaw Dragon V (LV. 63/58)
  2858. ============================
  2859. -Take 2 actions per turn.
  2860. -If counter 2 is at 10:
  2861. --Use Bite and Chew (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 2 to 20.
  2862. -If at least 1 party member is not inflicted with Paralysis and counter 2 is at 0:
  2863. --1/2 chance to use Ball Lightning (Targets party members that are not inflicted with Paralysis). Add 1 to counter 0. Set counter 2 to 10.
  2864. --1/2 chance to attack. Add 1 to counter 0. Set counter 2 to 10.
  2865. -If counter 2 is at 0:
  2866. --Attack. Add 1 to counter 0. Set counter 2 to 10.
  2867. -If counter 0 is at or above 1, this routine has not been accessed for at least 3 turns, global counter 1 is at or below 0, self does not have an ATK buff, and it is the second action in the turn:
  2868. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set global counters 0 and 1 to 10.
  2869. -If global counter 0 is at 10 and it is the first action in the turn:
  2870. --Use Snap. Add 1 to counter 0. Set counter 1 to 0. Set global counters 0 and 1 to 0.
  2871. -If counter 0 is at or above 2 and it is the second action in the turn:
  2872. --1/2 chance to attack. Add 1 to counters 0 and 1.
  2873. --1/2 chance to use Bite and Chew (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  2874. -If at least 1 party member is not inflicted with Paralysis, counter 0 is at or above 2, and it is the first action in the turn:
  2875. --1/2 chance to use Ball Lightning (Targets party members that are not inflicted with Paralysis). Add 1 to counters 0 and 1.
  2876. --1/2 chance to attack. Add 1 to counters 0 and 1.
  2877. -If counter 0 is at or above 2 and it is the first action in the turn:
  2878. --Attack. Add 1 to counters 0 and 1.
  2879. -Else:
  2880. --Attack. Add 1 to counters 0 and 1.
  2881.  
  2882. Battersnatch (LV. 54/50)
  2883. ========================
  2884. -Take 2 actions per turn.
  2885. -If counter 0 is at 9 and it is the second action in the turn:
  2886. --1/2 chance to attack. Set counter 0 to 0.
  2887. --1/2 chance to use Seal Cannon. Set counter 0 to 0.
  2888. -If counter 0 is at 8 and it is the first action in the turn:
  2889. --Attack. Add 1 to counter 0.
  2890. -If counter 0 is at 7 it is the second action in the turn:
  2891. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  2892. --1/2 chance to attack. Add 1 to counter 0.
  2893. -If counter 0 is at 6 and it is the first action in the turn:
  2894. --Use Giant Slalom. Add 1 to counter 0.
  2895. -If counter 0 is at 5 it is the second action in the turn:
  2896. --Use Slalom Stance (Targets the user's side). Add 1 to counter 0.
  2897. -If counter 0 is at 4 it is the first action in the turn:
  2898. --Attack. Add 1 to counter 0.
  2899. -If counter 0 is at 3 and it is the second action in the turn:
  2900. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  2901. --1/2 chance to attack. Add 1 to counter 0.
  2902. -If counter 0 is at 2 and it is the first action in the turn:
  2903. --Use Harden Shell (Targets the user's side). Add 1 to counter 0.
  2904. -If counter 0 is at 1 and it is the second action in the turn:
  2905. --Use Energized Shell (Targets the user's side). Add 1 to counter 0.
  2906. -If counter 0 is at 0 and it is the first action in the turn:
  2907. --1/2 chance to attack. Add 1 to counter 0.
  2908. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  2909. -Else:
  2910. --2/4 chance to attack.
  2911. --1/4 chance to use Seal Cannon.
  2912. --1/4 chance to use Seal Cannon (Targets the party member with the highest LIFE).
  2913.  
  2914. Dragonfly S (LV. 40/36)
  2915. =======================
  2916. -Take 2 actions per turn.
  2917. -If counter 2 is at 0:
  2918. --1/2 chance to use Intense Radiation. Set counter 2 to 10.
  2919. --1/2 chance to use Sleepy Buzz. Set counter 2 to 10.
  2920. -If counter 2 is at 10:
  2921. --Use Intense Radiation (Targets party members that are not inflicted with Blind). Set counters 0 and 1 to 0. Set counter 2 to 20.
  2922. -If counter 2 is at 20 and global counter 0 is at or above 1:
  2923. --1/2 chance to use Intense Radiation (Targets party members that are not inflicted with Blind). Set counter 2 to 30.
  2924. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  2925. -If counter 2 is at 30 and self is at or below 25% LIFE:
  2926. --1/2 chance to use Intense Radiation (Targets party members that are not inflicted with Blind). Add 1 to counters 0 and 1. Set counter 2 to 40. Set global counter 0 to 0.
  2927. --1/2 chance to use Sleepy Buzz. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  2928. -If counter 1 is at or above 4:
  2929. --1/2 chance to use Intense Radiation (Targets party members that are not inflicted with Blind). Add 1 to counter 0. Set counter 1 to 0.
  2930. --1/2 chance to use Melee attack 2. Add 1 to counter 0. Set counter 1 to 0.
  2931. -If counter 0 is at or above 2:
  2932. --1/2 chance to use Buzzwing (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  2933. --1/2 chance to use Melee attack 1. Set counter 0 to 0. Add 1 to counter 1. Add 1 to global counter 0.
  2934. -Else:
  2935. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  2936. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  2937.  
  2938. Satanic Dragon V (LV. 92/87)
  2939. ============================
  2940. -Take 2 actions per turn.
  2941. -If counter 0 is at 9 and it is the second action in the turn:
  2942. --Attack. Set counter 0 to 0.
  2943. -If counter 0 is at 10 and it is the first action in the turn:
  2944. --1/2 chance to use Ground Thrust. Add 1 to counter 0.
  2945. --1/2 chance to attack. Add 1 to counter 0.
  2946. -If counter 0 is at 9 and it is the second action in the turn:
  2947. --Attack. Add 1 to counter 0.
  2948. -If counter 0 is at 8 and it is the first action in the turn:
  2949. --1/2 chance to use Ground Thrust. Add 1 to counter 0.
  2950. --1/2 chance to attack. Add 1 to counter 0.
  2951. -If counter 0 is at 7 and it is the second action in the turn:
  2952. --Attack. Add 1 to counter 0.
  2953. -If counter 0 is at 6 and it is the first action in the turn:
  2954. --Use Judgement Briar. Add 1 to counter 0.
  2955. -If counter 0 is at 5 and it is the second action in the turn:
  2956. --Use Energized Tail (Targets the user's side). Add 1 to counter 0.
  2957. -If counter 0 is at 4 and it is the first action in the turn:
  2958. --Attack. Add 1 to counter 0.
  2959. -If counter 0 is at 3 and it is the second action in the turn:
  2960. --1/2 chance to use Ground Thrust. Add 1 to counter 0.
  2961. --1/2 chance to attack. Add 1 to counter 0.
  2962. -If counter 0 is at 2 and it is the first action in the turn:
  2963. --Attack. Add 1 to counter 0.
  2964. -If counter 0 is at 1 and it is the second action in the turn:
  2965. --Use Purgatory Flame. Add 1 to counter 0.
  2966. -If counter 0 is at 0 and it is the first action in the turn:
  2967. --1/2 chance to use Ground Thrust. Add 1 to counter 0.
  2968. --1/2 chance to attack. Add 1 to counter 0.
  2969. -Else:
  2970. --1/2 chance to attack. Add 1 to counter 0.
  2971. --1/2 chance to use Ground Thrust. Add 1 to counter 0.
  2972.  
  2973. Tower Draggy (LV. 36/32)
  2974. ========================
  2975. Routine 1:
  2976. -Take 1 action per turn.
  2977. -If counter 0 is at 10, swap to routine 2.
  2978. -If counter 1 is at 10, swap to routine 3.
  2979. -If the turn count is at 1:
  2980. --Use Jump (Targets the user's side). Set counter 0 to 10.
  2981. -Else:
  2982. --Use Venom Breath. Set counter 1 to 10.
  2983.  
  2984. Routine 2:
  2985. -Take 2 actions per turn.
  2986. -If counter 0 is at or above 1, swap to routine 3.
  2987. -If self has the Jump effect and all party members are inflicted with Poison:
  2988. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  2989. -If self has the Jump effect:
  2990. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  2991. -Else:
  2992. --Attack (Targets a random party member). Add 1 to counter 0.
  2993.  
  2994. Routine 3:
  2995. -Take 2 actions per turn.
  2996. -If counter 0 is at or above 3 and self is at or below 40% LIFE, swap to routine 4.
  2997. -If counter 1 is at or above 2 and global counter 1 is at 0:
  2998. --1/2 chance to use Venomous Tail. Add 1 to counter 0. Set global counter 1 to 10.
  2999. --1/2 chance to use Venom Breath. Add 1 to counter 0. Set global counter 1 to 10.
  3000. -If counter 0 is at or above 6:
  3001. --Use Venom Breath. Set counter 0 to 0.
  3002. -Else:
  3003. --2/3 chance to attack. Add 1 to counters 0 and 1.
  3004. --1/3 chance to use Venomous Tail. Add 1 to counter 0. Set global counter 1 to 10.
  3005.  
  3006. Routine 4:
  3007. -Take 1 action per turn.
  3008. -If global counter 0 is at 10, swap to routine 5.
  3009. -Use Jump (Targets the user's side). Set global counter 0 to 10.
  3010.  
  3011. Routine 5:
  3012. -Take 2 actions per turn.
  3013. -If counter 0 is at or above 1, swap to routine 3.
  3014. -If self has the Jump effect and all party members are inflicted with Poison:
  3015. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set global counter 0 to 20.
  3016. -If self has the Jump effect:
  3017. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set global counter 0 to 20.
  3018. -Else:
  3019. --Attack (Targets a random party member). Add 1 to counter 0. Set global counter 0 to 20.
  3020.  
  3021. Dragonfly (LV. 40/36)
  3022. =====================
  3023. -Take 2 actions per turn.
  3024. -If counter 2 is at 10:
  3025. --Use Buzzwing (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 2 to 20.
  3026. -If counter 2 is at 0 and global counter 0 is at or above 1:
  3027. --Use Petrify Wave. Set counter 2 to 10.
  3028. -If global counter 0 is at 0 and self is at or below 50% LIFE:
  3029. --Use Sleepy Buzz (Targets party members that are not inflicted with Sleep). Add 1 to counters 0 and 1. Set global counter 0 to 10.
  3030. -If counter 1 is at or above 5:
  3031. --Use Petrify Wave (Targets party members that are not inflicted with Confusion). Add 1 to counter 0. Set counter 1 to 0.
  3032. -If counter 0 is at or above 2:
  3033. --Use Buzzwing (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3034. -Else:
  3035. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1.
  3036. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1.
  3037.  
  3038. Little Dragon V (LV. 73/68)
  3039. ===========================
  3040. Routine 1:
  3041. -Take 2 actions per turn.
  3042. -If counter 2 is at 0:
  3043. --Use Gnaw. Set counter 2 to 10.
  3044. -If counter 2 is at 10:
  3045. --Use Gnaw (Targets the party member with the highest LIFE). Set counter 2 to 20.
  3046. -If counter 0 is at or above 2:
  3047. --1/3 chance to use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 0.
  3048. --2/3 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0.
  3049. -Else:
  3050. --Attack. Add 1 to counter 0.
  3051.  
  3052. Routine 2:
  3053. -If counter 1 is at or above 2, swap to routine 2.
  3054. -If counter 2 is at or above 2, swap to routine 3.
  3055. -If counter 0 is at or above 2:
  3056. --1/5 chance to use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3057. --4/5 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  3058. -Else:
  3059. --Attack. Add 1 to counter 0.
  3060.  
  3061. Routine 3:
  3062. -If counter 0 is at or above 10, swap to routine 1.
  3063. -Use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 10. Add 1 to counter 2.
  3064.  
  3065. Routine 4:
  3066. -If counter 0 is at or above 10, swap to routine 1.
  3067. -Use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 10. Add 1 to counter 2.
  3068.  
  3069. Chemical Dragon V (LV. 73/68)
  3070. =============================
  3071. -Take 2 actions per turn.
  3072. -If counter 1 is at 0 and it is the second action in the turn:
  3073. --Use Sludge Breath. Set counter 0 to 0. Set counter 1 to 10.
  3074. -If counter 0 is at 6:
  3075. --Use Sludge Breath (Targets the party member with the highest LIFE). Set counter 0 to 0.
  3076. -Else:
  3077. --Attack. Add 1 to counter 0.
  3078.  
  3079. Tower Dragon V (LV. 27/24)
  3080. ==========================
  3081. Routine 1:
  3082. -Take 1 action per turn.
  3083. -If counter 0 is at 10, swap to routine 2.
  3084. -If counter 1 is at 10, swap to routine 3.
  3085. -If the turn count is at 1:
  3086. --Use Jump (Targets the user's side). Set counter 0 to 10.
  3087. -Else:
  3088. --Use Venom Breath. Set counter 1 to 10.
  3089.  
  3090. Routine 2:
  3091. -Take 2 actions per turn.
  3092. -If counter 0 is at or above 1, swap to routine 3.
  3093. -If self has the Jump effect and all party members are inflicted with Poison:
  3094. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  3095. -If self has the Jump effect:
  3096. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0.
  3097. -Else:
  3098. --Attack (Targets a random party member). Add 1 to counter 0.
  3099.  
  3100. Routine 3:
  3101. -Take 2 actions per turn.
  3102. -If counter 0 is at or above 3 and self is at or below 40% LIFE, swap to routine 4.
  3103. -If counter 1 is at or above 2 and global counter 1 is at 0:
  3104. --Use Venom Breath. Add 1 to counter 0. Set global counter 1 to 10.
  3105. -If counter 0 is at or above 6:
  3106. --Use Venom Breath. Set counter 0 to 0.
  3107. -Else:
  3108. --Attack. Add 1 to counters 0 and 1.
  3109.  
  3110. Routine 4:
  3111. -Take 1 action per turn.
  3112. -If global counter 0 is at 10, swap to routine 5.
  3113. -Use Jump (Targets the user's side). Set global counter 0 to 10.
  3114.  
  3115. Routine 5:
  3116. -Take 2 actions per turn.
  3117. -If counter 0 is at or above 1, swap to routine 3.
  3118. -If self has the Jump effect and all party members are inflicted with Poison:
  3119. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set global counter 0 to 20.
  3120. -If self has the Jump effect:
  3121. --Use Venom Meteor (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set global counter 0 to 20.
  3122. -Else:
  3123. --Attack (Targets a random party member). Add 1 to counter 0. Set global counter 0 to 20.
  3124.  
  3125. Megamouth Dragon V (LV. 74/69)
  3126. ==============================
  3127. -Take 2 actions per turn.
  3128. -If counter 2 is at 10:
  3129. --Use Bite and Chew. Add 1 to counter 0. Set counter 2 to 20.
  3130. -If at least 1 party member is not inflicted with Poison and counter 2 is at 0:
  3131. --1/2 chance to use Toxic Sludge (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set counter 2 to 10.
  3132. --1/2 chance to attack. Add 1 to counter 0. Set counter 2 to 10.
  3133. -If counter 2 is at 0:
  3134. --Attack. Add 1 to counter 0. Set counter 2 to 10.
  3135. -If counter 0 is at or above 1, this routine has not been accessed for at least 3 turns, global counter 1 is at or below 0, self does not have an ATK buff, and it is the second action in the turn:
  3136. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set global counters 0 and 1 to 10.
  3137. -If global counter 0 is at 10 and it is the first action in the turn:
  3138. --Use Snap. Add 1 to counter 0. Set counter 1 to 0. Set global counters 0 and 1 to 0.
  3139. -If counter 0 is at or above 2 and it is the second action in the turn:
  3140. --1/2 chance to attack. Add 1 to counters 0 and 1.
  3141. --1/2 chance to use Bite and Chew (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  3142. -If counter 0 is at or above 2, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  3143. --1/2 chance to use Toxic Sludge (Targets party members that are not inflicted with Poison). Add 1 to counters 0 and 1.
  3144. --1/2 chance to attack. Add 1 to counters 0 and 1.
  3145. -If counter 0 is at or above 2 and it is the first action in the turn:
  3146. --Attack. Add 1 to counters 0 and 1.
  3147. -Else:
  3148. --Attack. Add 1 to counters 0 and 1.
  3149.  
  3150. Dracolion V (LV. 76/71)
  3151. =======================
  3152. -Take 2 actions per turn.
  3153. -If counter 2 is at 0:
  3154. --1/2 chance to use Melee attack 1. Set counter 2 to 10.
  3155. --1/2 chance to use Sleepy Buzz. Set counter 2 to 10.
  3156. -If counter 2 is at 10 and global counter 0 is at or above 1:
  3157. --1/2 chance to use Sleepy Buzz (Targets party members that are not inflicted with Sleep). Set counters 0 and 1 to 0. Set counter 2 to 20.
  3158. --1/2 chance to use Melee attack 1.
  3159. -If counter 2 is at 20 and global counter 0 is at or above 1:
  3160. --1/2 chance to use Melee attack 1 (Targets party members that are not inflicted with nothing). Set counters 0 and 1 to 0. Set counter 2 to 30.
  3161. --1/2 chance to use Melee attack 2. Set counter 2 to 10.
  3162. -If counter 1 is at or above 4:
  3163. --1/2 chance to use Buzzwing (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  3164. --1/2 chance to use Melee attack 1. Add 1 to counter 0. Set counter 1 to 0.
  3165. -If counter 0 is at or above 2:
  3166. --1/2 chance to use Buzzwing (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3167. --1/2 chance to use Melee attack 2. Set counter 0 to 0. Add 1 to counter 1.
  3168. -Else:
  3169. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  3170. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  3171.  
  3172. Stab Dragon V (LV. 77/72)
  3173. =========================
  3174. -Take 2 actions per turn.
  3175. -If counter 2 is at 30 and it is the first action in the turn:
  3176. --Use Rolling Claw (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 40.
  3177. -If counter 2 is at 20, the turn count is above 5, and it is the second action in the turn:
  3178. --Use Scratching Post (Targets the user's side). Add 1 to counter 0. Set counter 2 to 30.
  3179. -If counter 1 is at or above 5:
  3180. --Use Battle Cry (Targets party members that are not inflicted with Paralysis). Add 1 to counter 0. Set counter 1 to 0.
  3181. -If counter 0 is at or above 2:
  3182. --1/2 chance to use Bite Off. Set counter 0 to 0. Add 1 to counter 1.
  3183. --1/2 chance to use a Fang attack. Add 1 to counters 0 and 1.
  3184. -If counter 2 is at 10 and it is the first action in the turn:
  3185. --Use Rolling Claw. Add 1 to counter 0. Set counter 2 to 20.
  3186. -If counter 2 is at 0, the turn count is above 2, and it is the second action in the turn:
  3187. --Use Scratching Post (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  3188. -Else:
  3189. --1/2 chance to use a Claw attack. Add 1 to counters 0 and 1.
  3190. --1/2 chance to use a Fang attack. Add 1 to counters 0 and 1.
  3191.  
  3192. Blackhorn V (LV. 76/71)
  3193. =======================
  3194. -Take 2 actions per turn.
  3195. -If it is the first action in the turn, at least 1 party member is not inflicted with Sleep, and counter 1 is at 0:
  3196. --1/2 chance to use Concussive Shriek. Add 1 to counter 0. Add 10 to counter 1. Set counter 2 to 0.
  3197. --1/2 chance to attack. Add 1 to counter 0.
  3198. -If the turn count is above 4, it is the first action in the turn, at least 1 party member is not inflicted with Sleep, and counter 1 is at 10:
  3199. --1/2 chance to use Concussive Shriek. Add 1 to counter 0. Add 20 to counter 1. Set counter 2 to 0.
  3200. --1/2 chance to attack. Add 1 to counter 0.
  3201. -If it is the first action in the turn and counter 2 is at 10:
  3202. --Use Sudden Charge. Add 1 to counter 0. Set counter 2 to 0.
  3203. -If counter 0 is at or above 2, this routine has not been accessed for at least 2 turns, self is at or below 75% LIFE, and it is the second action in the turn:
  3204. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  3205. -If counter 0 is at or above 2:
  3206. --1/2 chance to use Paralysis Strike (Targets the party member with the highest LIFE). Add 1 to counter 0.
  3207. --1/2 chance to attack. Add 1 to counter 0.
  3208. -Else:
  3209. --Attack. Add 1 to counter 0.
  3210.  
  3211. Tyranosaurus V (LV. 77/72)
  3212. ==========================
  3213. -Take 2 actions per turn.
  3214. -If global counter 0 is at 0, self is at or below 55% LIFE, and it is the second action in the turn:
  3215. --Use Tyrant's Roar (Targets the user's side). Set global counter 0 to 10.
  3216. -If global counter 0 is at 10:
  3217. --Use Mow Down. Set counter 1 to 0. Set global counter 0 to 20.
  3218. -If global counter 0 is at 20:
  3219. --Attack. Add 1 to counters 0 and 2. Set counter 1 to 0. Set global counter 0 to 30.
  3220. -If counter 1 is at or above 4:
  3221. --1/2 chance to attack. Add 1 to counters 0 and 2. Set counter 1 to 0.
  3222. --1/2 chance to use Sharptooth (Targets the party member with the highest LIFE). Add 1 to counters 0 and 2. Set counter 1 to 0.
  3223. -If counter 0 is at or above 2:
  3224. --1/3 chance to use Sharptooth (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counters 1 and 2.
  3225. --2/3 chance to use Sharptooth. Set counter 0 to 0. Add 1 to counters 1 and 2.
  3226. -Else:
  3227. --Attack. Add 1 to counters 0, 1, and 2.
  3228.  
  3229. Stony Dragon V (LV. 79/74)
  3230. ==========================
  3231. Routine 1:
  3232. -Take 2 actions per turn.
  3233. -If counter 2 is at 0:
  3234. --Use Stone Gaze (Targets party members that are not inflicted with Petrify). Set counter 2 to 10.
  3235. -If counter 1 is at or above 3:
  3236. --Use Stone Breath. Add 1 to counter 0. Set counter 1 to 1.
  3237. -If counter 0 is at or above 2:
  3238. --Use Neck Bite (Targets the party member with the highest LIFE). Set counter 0 to 0.
  3239. -Else:
  3240. --Attack. Add 1 to counters 0 and 1.
  3241.  
  3242. Routine 2:
  3243. -Take 2 actions per turn.
  3244. -If self is at or below 55% LIFE, swap to routine 2.
  3245. -If counter 2 is at 0:
  3246. --Use Stone Gaze (Targets party members that are not inflicted with Petrify). Set counter 2 to 10.
  3247. -If counter 1 is at or above 3:
  3248. --Use Stone Gaze (Targets party members that are not inflicted with Petrify). Add 1 to counter 0. Set counter 1 to 1.
  3249. -If counter 0 is at or above 2:
  3250. --Use Neck Bite (Targets the party member with the highest LIFE). Set counter 0 to 0.
  3251. -Else:
  3252. --Attack. Add 1 to counters 0 and 1.
  3253.  
  3254. Routine 3:
  3255. -Take 2 actions per turn.
  3256. -If counter 2 is at 0:
  3257. --Use Stone Breath. Set counter 2 to 10.
  3258. -If counter 1 is at or above 4:
  3259. --Use Stone Breath. Add 1 to counter 0. Set counter 1 to 1.
  3260. -If counter 0 is at or above 2:
  3261. --Use Neck Bite (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3262. -Else:
  3263. --Attack. Add 1 to counters 0 and 1.
  3264.  
  3265. Fervor Dragon V (LV. 79/74)
  3266. ===========================
  3267. Routine 1:
  3268. -Take 2 actions per turn.
  3269. -If the battle started out as a surprise attack, the turn count is at or below 1, and global counter 2 is at 1:
  3270. --Use Harden Skin (Targets the user's side). Set global counter 2 to 10.
  3271. -If the battle started out as a surprise attack, the turn count is at or below 1, and global counter 2 is at 0:
  3272. --Use Headlong Charge (Targets the party member with the lowest LIFE). Set global counter 2 to 1.
  3273. -If global counter 1 is at 0 and self is at or below 25% LIFE:
  3274. --Use Harden Skin (Targets the user's side). Add 1 to counter 0. Set global counter 1 to 10.
  3275. -If counter 2 is at 0 and it is the second action in the turn:
  3276. --Use Thunder Breath. Add 1 to counter 0. Set counter 2 to 10.
  3277. -If counter 1 is at or above 6:
  3278. --Use Thunder Breath. Add 1 to counter 0. Set counter 1 to 0.
  3279. -If counter 0 is at or above 3:
  3280. --Use Headlong Charge (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3281. -Else:
  3282. --Attack. Add 1 to counters 0 and 1.
  3283.  
  3284. Routine 2:
  3285. -Take 2 actions per turn.
  3286. -If self is at or below 50% LIFE, swap to routine 2.
  3287. -If the battle started out as a surprise attack, the turn count is at or below 1, and counter 2 is at 1:
  3288. --Use Harden Skin (Targets the user's side). Set counter 2 to 10.
  3289. -If the battle started out as a surprise attack, the turn count is at or below 1, and counter 2 is at 0:
  3290. --Use Headlong Charge (Targets the party member with the lowest LIFE). Add 1 to counter 2.
  3291. -If counter 1 is at or above 5:
  3292. --Use Thunder Breath. Add 1 to counter 0. Set counter 1 to 0.
  3293. -If counter 0 is at or above 2:
  3294. --Use Headlong Charge (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3295. -Else:
  3296. --Attack. Add 1 to counters 0 and 1.
  3297.  
  3298. Routine 3:
  3299. -Take 2 actions per turn.
  3300. -If counter 2 is at 0:
  3301. --Use Harden Skin (Targets the user's side). Set global counter 2 to 10.
  3302. -If counter 1 is at or above 5:
  3303. --Use Thunder Breath. Add 1 to counter 0. Set counter 1 to 0.
  3304. -If counter 0 is at or above 2:
  3305. --Use Headlong Charge (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3306. -Else:
  3307. --Attack. Add 1 to counters 0 and 1.
  3308.  
  3309. Scarviper (LV. 80/75)
  3310. =====================
  3311. Routine 1:
  3312. -Take 2 actions per turn.
  3313. -If counter 0 is at or above 2, swap to routine 2.
  3314. -Attack. Add 1 to counter 0.
  3315.  
  3316. Routine 2:
  3317. -Take 1 action per turn.
  3318. -If counter 1 is at or above 10, swap to routine 3.
  3319. -If counter 1 is at 0:
  3320. --Use Tyrant's Roar (Targets the user's side). Add 1 to counter 0.
  3321. -If counter 1 is at 1:
  3322. --Use Great Horn. Subtract 1 from counter 0. Set counter 1 to 10.
  3323. -Else:
  3324. --Attack. Add 1 to counter 0.
  3325.  
  3326. Routine 3:
  3327. -Take 2 actions per turn.
  3328. -If counter 0 is at or above 3, swap to routine 2.
  3329. -Attack. Add 1 to counter 0.
  3330.  
  3331. Routine 4:
  3332. -Take 1 action per turn.
  3333. -If counter 0 is at or above 10, swap to routine 3.
  3334. -If counter 1 is at 0:
  3335. --Use Tyrant's Roar (Targets the user's side). Add 10 to counter 0.
  3336. -Else:
  3337. --Attack.
  3338.  
  3339. Routine 5:
  3340. -Take 1 action per turn.
  3341. -If counter 0 is at or above 10, swap to routine 1.
  3342. -If counter 1 is at 0:
  3343. --Use Great Horn. Add 10 to counter 0.
  3344. -Else:
  3345. --Attack.
  3346.  
  3347. Hover Dragon V (LV. 82/77)
  3348. ==========================
  3349. -Take 2 actions per turn.
  3350. -If counter 1 is at or above 1:
  3351. --Use Freeze Breath. Set counters 0 and 1 to 0.
  3352. -If counter 0 is at or above 2:
  3353. --1/2 chance to use Freeze Breath. Set counter 0 to 0.
  3354. --1/2 chance to use Death Fang. Set counter 0 to 0.
  3355. -If counter 0 is at or above 1 and at least 1 party member does not have an Ice Resist debuff:
  3356. --1/3 chance to attack. Add 1 to counter 0.
  3357. --1/3 chance to use Hexatonic. Set counter 0 to 0. Add 1 to counter 1.
  3358. --1/3 chance to use Freeze Breath. Set counter 0 to 0.
  3359. -If counter 0 is at or above 1:
  3360. --1/3 chance to attack. Add 1 to counter 0.
  3361. --2/3 chance to use Freeze Breath. Set counter 0 to 0.
  3362. -Else:
  3363. --Attack. Add 1 to counter 0.
  3364.  
  3365. Hazard Dragon V (LV. 82/77)
  3366. ===========================
  3367. Routine 1:
  3368. -Take 2 actions per turn.
  3369. -If global counter 2 is at 0:
  3370. --Use Sludge Breath. Set global counter 2 to 10.
  3371. -If global counter 2 is at 10 and counter 2 is at or above 1:
  3372. --Use Fire Breath. Set counter 0 to 1. Set global counter 2 to 20.
  3373. -If global counter 1 is at 0 and self is at or below 45% LIFE:
  3374. --Use Tensile Roll (Targets the user's side). Add 1 to counters 0 and 1. Set global counter 1 to 10.
  3375. -If counter 1 is at or above 8:
  3376. --Use Sludge Breath. Add 1 to counter 0. Set counter 1 to 0.
  3377. -If counter 0 is at or above 3:
  3378. --Use Fire Breath. Set counter 0 to 0. Add 1 to counters 1 and 2.
  3379. -Else:
  3380. --Attack. Add 1 to counters 0, 1, and 2.
  3381.  
  3382. Routine 2:
  3383. -Take 2 actions per turn.
  3384. -If global counter 2 is at 0 and it is the second action in the turn:
  3385. --Use Fire Breath. Set global counter 0 to 10.
  3386. -If global counter 1 is at 0 and self is at or below 45% LIFE:
  3387. --Use Tensile Roll (Targets the user's side). Set global counter 1 to 10.
  3388. -If counter 1 is at or above 6:
  3389. --Use Sludge Breath. Add 1 to counter 0. Set counter 1 to 0.
  3390. -If counter 0 is at or above 3:
  3391. --Use Fire Breath. Set counter 0 to 0. Add 1 to counter 1.
  3392. -Else:
  3393. --Attack. Add 1 to counters 0 and 1.
  3394.  
  3395. Mole Dragon V (LV. 83/78)
  3396. =========================
  3397. -Take 2 actions per turn.
  3398. -If counter 0 is at 5 and it is the second action in the turn:
  3399. --1/3 chance to use Hopping Ball. Set counters 0, 1, and 2 to 0.
  3400. --1/3 chance to attack. Set counters 0, 1, and 2 to 0.
  3401. --1/3 chance to use Surprise Smash. Set counters 0, 1, and 2 to 0.
  3402. -If counter 0 is at 4, counter 2 is at 10, and it is the first action in the turn:
  3403. --Use Rollerderby. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3404. -If counter 0 is at 4 and it is the first action in the turn:
  3405. --1/2 chance to attack. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3406. --1/2 chance to use Surprise Smash. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3407. -If counter 0 is at 3, counter 1 is at 20, self does not have an Evasion buff, and it is the second action in the turn:
  3408. --2/3 chance to use Evasive Maneuvers (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  3409. --1/3 chance to attack. Add 1 to counter 0.
  3410. -If counter 0 is at 3, counter 1 is at 0, and it is the second action in the turn:
  3411. --Use Hopping Ball. Add 1 to counter 0.
  3412. -If counter 0 is at 2, counter 1 is at 10, and it is the first action in the turn:
  3413. --Use Rollerderby. Add 1 to counter 0. Set counter 1 to 20.
  3414. -If counter 0 is at 2, counter 1 is at 0, and it is the first action in the turn:
  3415. --1/2 chance to attack. Add 1 to counter 0.
  3416. --1/2 chance to use Surprise Smash. Add 1 to counter 0.
  3417. -If counter 0 is at 1, self does not have an evasion buff, and it is the second action in the turn:
  3418. --1/2 chance to use Evasive Maneuvers (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  3419. --1/2 chance to use Surprise Smash. Add 1 to counter 0.
  3420. -If counter 0 is at 0 and it is the first action in the turn:
  3421. --1/2 chance to attack. Add 1 to counter 0.
  3422. --1/2 chance to use Surprise Smash (Targets the party member with the lowest level). Add 1 to counter 0.
  3423. -Else:
  3424. --1/2 chance to attack. Add 1 to counters 0, 1, and 2.
  3425. --1/2 chance to use Surprise Smash. Add 1 to counters 0, 1, and 2.
  3426.  
  3427. Hammerer V (LV. 85/80)
  3428. ======================
  3429. Routine 1:
  3430. -Take 2 actions per turn.
  3431. -If counter 2 is at 0:
  3432. --1/4 chance to use Downstroke (Targets the party member with the highest LIFE). Set counter 2 to 10.
  3433. --3/4 chance to use Downstroke. Set counter 2 to 10.
  3434. -If counter 2 is at 10:
  3435. --Use Mow Down. Set counter 2 to 20.
  3436. -If counter 1 is at or above 5:
  3437. --Use Mow Down. Add 1 to counter 0. Set counter 1 to 0.
  3438. -If counter 0 is at or above 3:
  3439. --1/3 chance to use Downstroke (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3440. --2/3 chance to use Downstroke. Set counter 0 to 0. Add 1 to counter 1.
  3441. -Else:
  3442. --Attack. Add 1 to counters 0 and 1.
  3443.  
  3444. Routine 2:
  3445. -Take 2 actions per turn.
  3446. -If self is at or below 55% LIFE, swap to routine 2.
  3447. -If counter 2 is at 0:
  3448. --Use Downstroke (Target the party member with the highest LIFE). Set counter 2 to 10.
  3449. -If counter 1 is at or above 4:
  3450. --Use Downstroke (Target the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  3451. -If counter 0 is at or above 3:
  3452. --Use Mow Down. Set counter 0 to 0. Add 1 to counter 1.
  3453. -Else:
  3454. --Attack. Add 1 to counters 0 and 1.
  3455.  
  3456. Routine 3:
  3457. -Take 2 actions per turn.
  3458. -If global counter 0 is at 0 and it is the second action in the turn:
  3459. --Use Gather Power (Targets the user's side). Set global counter 0 to 10.
  3460. -If global counter 0 is at 10:
  3461. --Use Mow Down. Set global counter 0 to 20.
  3462. -If counter 1 is at or above 5:
  3463. --Use Downstroke (Target the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  3464. -If counter 0 is at or above 3:
  3465. --Use Mow Down (Target the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3466. -Else:
  3467. --Attack. Add 1 to counters 0 and 1.
  3468.  
  3469. Cornarodon V (LV. 85/80)
  3470. ========================
  3471. Routine 1:
  3472. -Take 2 actions per turn.
  3473. -If global counter 0 is at 0:
  3474. --Use Cold Front (Targets self). Set global counter 0 to 10.
  3475. -If counter 1 is at or above 5:
  3476. --Use Cold Front (Targets self). Add 1 to counter 0. Set counter 1 to 0.
  3477. -If counter 0 is at or above 3:
  3478. --Use Ice Breath. Set counter 0 to 0. Add 1 to counter 1.
  3479. -Else:
  3480. --Attack. Add 1 to counters 0 and 1.
  3481.  
  3482. Routine 2:
  3483. -Take 2 actions per turn.
  3484. -If self is at or below 30% LIFE, swap to routine 2.
  3485. -If counter 0 is at 0:
  3486. --Use Cold Front (Targets self). Add 1 to counter 0.
  3487. -If counter 2 is at or above 5:
  3488. --Use Cold Front (Targets self). Set counter 2 to 0.
  3489. -If counter 1 is at or above 4:
  3490. --Use Ice Breath. Set counter 1 to 0. Add 1 to counter 2.
  3491. -Else:
  3492. --Attack. Add 1 to counters 1 and 2.
  3493.  
  3494. Routine 3:
  3495. -Take 2 actions per turn.
  3496. -If counter 0 is at 10:
  3497. --Use Cold Front (Targets the user's side). Set counter 0 to 30.
  3498. -If counter 0 is at 0:
  3499. --Use Defenses Up (Targets the user's side). Set counter 0 to 10.
  3500. -If counter 2 is at or above 5:
  3501. --Use Cold Front (Targets self). Set counter 2 to 0.
  3502. -If counter 1 is at or above 4:
  3503. --Use Ice Breath. Set counter 1 to 0. Add 1 to counter 2.
  3504. -Else:
  3505. --Attack. Add 1 to counters 1 and 2.
  3506.  
  3507. Icemole Dragon V (LV. 85/80)
  3508. ============================
  3509. -Take 2 actions per turn.
  3510. -If counter 0 is at 5 and it is the second action in the turn:
  3511. --1/3 chance to use Hopping Ball. Set counters 0, 1, and 2 to 0.
  3512. --1/3 chance to attack. Set counters 0, 1, and 2 to 0.
  3513. --1/3 chance to use Surprise Smash. Set counters 0, 1, and 2 to 0.
  3514. -If counter 0 is at 4, counter 2 is at 10, and it is the first action in the turn:
  3515. --Use Roller Ring. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3516. -If counter 0 is at 4 and it is the first action in the turn:
  3517. --1/2 chance to attack. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3518. --1/2 chance to use Surprise Smash. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3519. -If counter 0 is at 3, self does not have an Evasion buff, counter 1 is at 20, and it is the second action in the turn:
  3520. --2/3 chance to use Evasive Maneuvers (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  3521. --1/3 chance to attack. Add 1 to counter 0.
  3522. -If counter 0 is at 3, counter 1 is at 0, and it is the second action in the turn:
  3523. --Use Hopping Ball. Add 1 to counter 0.
  3524. -If counter 0 is at 2, counter 1 is at 10, and it is the first action in the turn:
  3525. --Use Roller Ring. Add 1 to counter 0. Set counter 1 to 20.
  3526. -If counter 0 is at 2, counter 1 is at 0, and it is the first action in the turn:
  3527. --1/2 chance to attack. Add 1 to counter 0.
  3528. --1/2 chance to use Surprise Smash. Add 1 to counter 0.
  3529. -If counter 0 is at 1, self does not have an evasion buff, and it is the second action in the turn:
  3530. --1/2 chance to use Evasive Maneuvers (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  3531. --1/2 chance to use Surprise Smash. Add 1 to counter 0.
  3532. -If counter 0 is at 0 and it is the first action in the turn:
  3533. --1/2 chance to attack. Add 1 to counter 0.
  3534. --1/2 chance to use Surprise Smash. Add 1 to counter 0.
  3535. -Else:
  3536. --1/2 chance to attack. Add 1 to counters 0, 1, and 2.
  3537. --1/2 chance to use Surprise Smash. Add 1 to counters 0, 1, and 2.
  3538.  
  3539. Blood Orc V (LV. 86/81)
  3540. =======================
  3541. -Take 2 actions per turn.
  3542. -If it is the first action in the turn, self does not have an Inflict React buff, and counter 2 is at 0:
  3543. --Use Blood React (Targets the user's side). Set counter 2 to 10.
  3544. -If it is the second action in the turn and counter 2 is at 10:
  3545. --Use Slalom Stance (Targets the user's side). Set counter 2 to 20.
  3546. -If it is the first action in the turn, no party member is inflicted with Bleed, and counter 2 is at 20:
  3547. --Use Giant Slalom (Targets party members that are not inflicted with Bleed). Set counter 0 to 1. Set counter 2 to 0.
  3548. -If it is the first action in the turn and counter 2 is at 20:
  3549. --Use Giant Slalom (Targets the party member with the lowest level). Set counter 2 to 0.
  3550. -If the extra turn phase is active, it is the first action in the turn, and at least 1 party member is inflicted with Bleed:
  3551. --Use Blood Frenzy (Targets the user's side). Set counter 2 to 0. Set global counter 2 to 50.
  3552. -If counter 0 is at 7 and it is the second action in the turn:
  3553. --Attack. Set counter 0 to 0.
  3554. -If counter 0 is at 6 and it is the first action in the turn:
  3555. --Attack. Add 1 to counter 0.
  3556. -If counter 0 is at 5 it is the second action in the turn:
  3557. --Attack. Add 1 to counter 0.
  3558. -If counter 0 is at 4, no party member is inflicted with Bleed, and it is the first action in the turn:
  3559. --Use Giant Slalom (Targets party members that are not inflicted with Bleed). Add 1 to counter 0.
  3560. -If counter 0 is at 4 and it is the first action in the turn:
  3561. --Use Giant Slalom (Targets the party member with the lowest level). Add 1 to counter 0.
  3562. -If counter 0 is at 3 it is the second action in the turn:
  3563. --Use Slalom Stance (Targets the user's side). Add 1 to counter 0.
  3564. -If counter 0 is at 2 and it is the first action in the turn:
  3565. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  3566. --1/2 chance to attack. Add 1 to counter 0.
  3567. -If counter 0 is at 1 and it is the second action in the turn:
  3568. --1/2 chance to attack. Add 1 to counter 0.
  3569. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  3570. -If counter 0 is at 0 and it is the first action in the turn:
  3571. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  3572. --1/2 chance to attack. Add 1 to counter 0.
  3573. -Else:
  3574. --1/2 chance to attack. Add 1 to counter 0.
  3575. --1/2 chance to use Seal Cannon (Targets the party member with the highest LIFE). Add 1 to counter 0.
  3576.  
  3577. Shield Dragon V (LV. 89/84)
  3578. ===========================
  3579. Routine 1:
  3580. -Take 2 actions per turn.
  3581. -If self is at or below 35% LIFE, swap to routine 3.
  3582. -If counter 1 is at or above 3, swap to routine 2.
  3583. -If counter 2 is at 0:
  3584. --1/4 chance to use Chaos Thunder (Targets the party member with the highest LIFE). Add 1 to counter 1. Set counter 2 to 10.
  3585. --3/4 chance to use Chaos Thunder. Add 1 to counter 1. Set counter 2 to 10.
  3586. -If counter 1 is at or above 1:
  3587. --Use a Melee attack. Add 1 to counters 0 and 1.
  3588. -If counter 0 is at or above 1:
  3589. --1/3 chance to use Chaos Thunder (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3590. --2/3 chance to use Chaos Thunder. Set counter 0 to 0. Add 1 to counter 1.
  3591. -Else:
  3592. --Use a Melee attack. Add 1 to counters 0 and 1.
  3593.  
  3594. Routine 2:
  3595. -Take 1 action per turn.
  3596. -If self is at or below 35% LIFE, swap to routine 3.
  3597. -If counter 0 is at 10, swap to routine 1.
  3598. -If counter 0 is at 0:
  3599. --Use Shield Parry (Targets self). Set counter 0 to 10.
  3600. -Else:
  3601. --Use a Melee attack.
  3602.  
  3603. Routine 3:
  3604. -Take 2 actions per turn.
  3605. -If counter 2 is at 0:
  3606. --Use Unleash Power (Targets self). Set counter 2 to 10.
  3607. -If counter 2 is at 10.
  3608. --Use Rampage. Set counter 2 to 20.
  3609. -If counter 2 is at 20:
  3610. --1/3 chance to use Chaos Thunder (Targets the party member with the highest LIFE). Set counter 2 to 30.
  3611. --2/3 chance to use Chaos Thunder. Set counter 2 to 30.
  3612. -If counter 1 is at or above 3:
  3613. --Use Rampage. Add 1 to counter 0. Set counter 1 to 0.
  3614. -If counter 0 is at or above 2:
  3615. --1/3 chance to use Chaos Thunder (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  3616. --2/3 chance to use Chaos Thunder. Set counter 0 to 0. Add 1 to counter 1.
  3617. -Else:
  3618. --Use a Claw attack. Add 1 to counters 0 and 1.
  3619.  
  3620. Routine 4:
  3621. -Take 1 action per turn.
  3622. -If self is at or below 45% LIFE, swap to routine 3.
  3623. -If counter 0 is at 10, swap to routine 2.
  3624. -If counter 0 is at 0:
  3625. --Use Shield Parry (Targets self). Set counter 0 to 10.
  3626. -Else:
  3627. --Use a Melee attack.
  3628.  
  3629. Routine 5:
  3630. -Take 2 actions per turn.
  3631. -If self is at or below 45% LIFE, swap to routine 3.
  3632. -If counter 2 is at or above 3, swap to routine 1.
  3633. -If counter 1 is at or above 4, swap to routine 1.
  3634. -If counter 0 is at or above 2:
  3635. --Use Chaos Thunder (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counters 1 and 2.
  3636. -Else:
  3637. --1/3 chance to use a Melee attack. Add 1 to counters 0 and 1.
  3638. --2/3 chance to use a Melee attack. Add 1 to counters 0 and 2.
  3639.  
  3640. Routine 6:
  3641. -Take 2 actions per turn.
  3642. -If global counter 0 is at 10:
  3643. --Use Rampage. Set global counter 0 to 20.
  3644. -If global counter 0 is at 0:
  3645. --Use Rampage. Set global counter 0 to 10.
  3646. -If counter 1 is at or above 3:
  3647. --Use Chaos Thunder (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  3648. -If counter 0 is at or above 3:
  3649. --Use Rampage. Set counter 0 to 0. Add 1 to counter 1.
  3650. -Else:
  3651. --Use a Claw attack. Add 1 to counters 0 and 1.
  3652.  
  3653. Dracoprism V (LV. 88/83)
  3654. ========================
  3655. -Take 2 actions per turn.
  3656. -If counter 0 is at 5 and it is the second action in the turn:
  3657. --Attack. Set counter 0 to 0.
  3658. -If counter 0 is at 4 and it is the first action in the turn:
  3659. --1/2 chance to use Fire Breath. Add 1 to counter 0.
  3660. --1/2 chance to attack. Add 1 to counter 0.
  3661. -If counter 0 is at 3 and it is the second action in the turn:
  3662. --Attack. Add 1 to counter 0.
  3663. -If counter 0 is at 2, any party members are inflicted with Bleed, and it is the first action in the turn:
  3664. --5/6 chance to use Drink Blood (Targets party members inflicted with Bleed). Add 1 to counter 0.
  3665. --1/6 chance to use Bloodeater (Targets party members inflicted with Bleed). Add 1 to counter 0.
  3666. -If counter 0 is at 2 and it is the second action in the turn:
  3667. --Attack. Add 1 to counter 0.
  3668. -If counter 0 is at 1, at least 1 party member is not inflicted with Bleed, and it is the second action in the turn:
  3669. --Use Hexatonic. Add 1 to counter 0.
  3670. -If counter 0 is at 1 and it is the second action in the turna:
  3671. --Use Fire Breath. Add 1 to counter 0.
  3672. -If counter 0 is at 0 and it is the first action in the turn:
  3673. --Attack. Add 1 to counter 0.
  3674. -Else:
  3675. --Attack. Add 1 to counter 0.
  3676.  
  3677. Red Stabdragon V (LV. 88/83)
  3678. ============================
  3679. -Take 2 actions per turn.
  3680. -If counter 2 is at 30 and it is the first action in the turn:
  3681. --Use Burning Slash. Add 1 to counter 0. Set counter 2 to 40.
  3682. -If counter 2 is at 20, the turn count is above 5, and it is the second action in the turn:
  3683. --Use Scratching Post (Targets the user's side). Add 1 to counter 0. Set counter 2 to 30.
  3684. -If any party member is inflicted with Bleed, it is the first action in the turn, and this routine has not been accessed for at least 2 turns:
  3685. --Use Deadly Fang (Targets party members that are inflicted with Bleed). Add 1 to counters 0 and 1.
  3686. -If counter 0 is at or above 2:
  3687. --1/2 chance to use Bite Off. Set counter 0 to 0. Add 1 to counter 1.
  3688. --1/2 chance to use a Fang attack. Add 1 to counters 0 and 1.
  3689. -If counter 2 is at 10 and it is the first action in the turn:
  3690. --Use Burning Slash. Add 1 to counter 0. Set counter 2 to 20.
  3691. -If counter 2 is at 0, self does not have an ATK buff, the turn count is above 1, and it is the second action in the turn:
  3692. --Use Scratching Post (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  3693. -Else:
  3694. --1/2 chance to use a Claw attack. Add 1 to counters 0 and 1.
  3695. --1/2 chance to use a Fang attack. Add 1 to counters 0 and 1.
  3696.  
  3697. Evil Tyrano X (LV. 89/84)
  3698. =========================
  3699. -Take 2 actions per turn.
  3700. -If counter 0 is at 5 and it is the second action in the turn:
  3701. --Attack. Set counters 0 and 1 to 0.
  3702. -If counter 0 is at 4, counter 1 is at 10, and it is the first action in the turn:
  3703. --Use Mow Down. Add 1 to counter 0. Set counter 1 to 20.
  3704. -If counter 0 is at 4 and it is the first action in the turn:
  3705. --1/3 chance to use Sharptooth (Targets the party member with the highest LIFE). Add 1 to counter 0.
  3706. --2/3 chance to attack. Add 1 to counter 0.
  3707. -If counter 0 is at 3, self does not have an ATK buff, and it is the second action in the turn:
  3708. --2/3 chance to use Tyrant's Roar (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  3709. --1/3 chance to attack. Add 1 to counter 0.
  3710. -If counter 0 is at 3 and it is the second action in the turn:
  3711. --Attack. Add 1 to counter 0.
  3712. -If counter 0 is at 2 and it is the first action in the turn:
  3713. --1/2 chance to use Sharptooth. Add 1 to counter 0.
  3714. --1/2 chance to attack. Add 1 to counter 0.
  3715. -If counter 0 is at 1 and it is the second action in the turn:
  3716. --1/3 chance to use Dark Howl. Add 1 to counter 0.
  3717. --1/3 chance to use Sharptooth. Add 1 to counter 0.
  3718. --1/3 chance to attack. Add 1 to counter 0.
  3719. -If counter 0 is at 1 and it is the second action in the turn:
  3720. --2/3 chance to attack. Add 1 to counter 0.
  3721. --1/3 chance to use Sharptooth. Add 1 to counter 0.
  3722. -If counter 0 is at 0 and it is the second action in the turn:
  3723. --2/3 chance to attack. Add 1 to counter 0.
  3724. --1/3 chance to use Sharptooth. Add 1 to counter 0.
  3725. -Else:
  3726. --Attack. Add 1 to counters 0, 1, and 2.
  3727.  
  3728. Dinosaurus V (LV. 83/78)
  3729. ========================
  3730. -Take 2 actions per turn.
  3731. -If global counter 0 is at 0, self is at or below 55% LIFE, and it is the second action in the turn:
  3732. --Use Tyrant's Roar (Targets the user's side). Set global counter 0 to 10.
  3733. -If global counter 0 is at 10:
  3734. --Use Mow Down. Set counter 1 to 0. Set global counter 0 to 20.
  3735. -If counter 1 is at or above 4:
  3736. --Use Mow Down. Add 1 to counters 0 and 2. Set counter 1 to 0.
  3737. -If counter 0 is at or above 2:
  3738. --1/3 chance to use Sharptooth (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counters 1 and 2.
  3739. --2/3 chance to use Sharptooth. Set counter 0 to 0. Add 1 to counters 1 and 2.
  3740. -Else:
  3741. --Attack. Add 1 to counters 0, 1, and 2.
  3742.  
  3743. Twinhorn Dragon V (LV. 91/86)
  3744. =============================
  3745. -Take 2 actions per turn.
  3746. -If counter 0 is at or above 2, counter 1 is at or above 10, and it is the first action in the turn:
  3747. --Use Horn Assault. Add 1 to counter 0. Set counter 1 to 0.
  3748. -If counter 0 is at or above 2, it is the second action in the turn, and self does not have an ATK buff:
  3749. --Use Assault Stance (Targets the user's side). Set counter 1 to 10.
  3750. -If counter 0 is at or above 2 and it is the first action in the turn:
  3751. --1/2 chance to attack. Add 1 to counter 0.
  3752. --1/2 chance to use Power Slash. Add 1 to counter 0.
  3753. -If counter 0 is at or above 2 and it is the second action in the turn:
  3754. --3/4 chance to attack. Add 1 to counter 0.
  3755. --1/4 chance to use Power Slash (Targets the party member with the highest LIFE). Add 1 to counter 0.
  3756. -If counter 0 is at 1:
  3757. --2/3 chance to attack. Add 1 to counter 0.
  3758. --1/3 chance to use Power Slash (Targets the party member with the highest LIFE). Add 1 to counter 0.
  3759. -If counter 0 is at 0:
  3760. --Attack. Add 1 to counter 0.
  3761.  
  3762. Stabdragon (LV. 30/26)
  3763. ======================
  3764. -Take 2 actions per turn.
  3765. -If counter 2 is at 30 and it is the first action in the turn:
  3766. --Use Rolling Claw (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 40.
  3767. -If counter 2 is at 20, the turn count is above 5, and it is the second action in the turn:
  3768. --Use Scratching Post (Targets the user's side). Add 1 to counter 0. Set counter 2 to 30.
  3769. -If counter 1 is at or above 5:
  3770. --Use Battle Cry (Targets party members that are not inflicted with Paralysis). Add 1 to counter 0. Set counter 1 to 0.
  3771. -If counter 0 is at or above 2:
  3772. --1/2 chance to use Bite Off. Set counter 0 to 0. Add 1 to counter 1.
  3773. --1/2 chance to use a Fang attack. Add 1 to counters 0 and 1.
  3774. -If counter 2 is at 10 and it is the first action in the turn:
  3775. --Use Rolling Claw. Add 1 to counter 0. Set counter 2 to 20.
  3776. -If counter 2 is at 0, the turn count is above 2, and it is the second action in the turn:
  3777. --Use Scratching Post (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  3778. -Else:
  3779. --1/2 chance to use a Claw attack. Add 1 to counters 0 and 1.
  3780. --1/2 chance to use a Fang attack. Add 1 to counters 0 and 1.
  3781.  
  3782. Mole Dragon (LV. 48/44)
  3783. =======================
  3784. -Take 2 actions per turn.
  3785. -If counter 0 is at 5 and it is the second action in the turn:
  3786. --1/3 chance to use Hopping Ball. Set counters 0, 1, and 2 to 0.
  3787. --1/3 chance to attack. Set counters 0, 1, and 2 to 0.
  3788. --1/3 chance to use Surprise Smash. Set counters 0, 1, and 2 to 0.
  3789. -If counter 0 is at 4, counter 2 is at 10, and it is the first action in the turn:
  3790. --Use Rollerderby. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3791. -If counter 0 is at 4 and it is the first action in the turn:
  3792. --1/2 chance to attack. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3793. --1/2 chance to use Surprise Smash. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3794. -If counter 0 is at 3, counter 1 is at 20, self does not have an Evasion buff, and it is the second action in the turn:
  3795. --2/3 chance to use Evasive Maneuvers (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  3796. --1/3 chance to attack. Add 1 to counter 0.
  3797. -If counter 0 is at 3, counter 1 is at 0, and it is the second action in the turn:
  3798. --Use Hopping Ball. Add 1 to counter 0.
  3799. -If counter 0 is at 2, counter 1 is at 10, and it is the first action in the turn:
  3800. --Use Rollerderby. Add 1 to counter 0. Set counter 1 to 20.
  3801. -If counter 0 is at 2, counter 1 is at 0, and it is the first action in the turn:
  3802. --1/2 chance to attack. Add 1 to counter 0.
  3803. --1/2 chance to use Surprise Smash. Add 1 to counter 0.
  3804. -If counter 0 is at 1, self does not have an evasion buff, and it is the second action in the turn:
  3805. --1/2 chance to use Evasive Maneuvers (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  3806. --1/2 chance to use Surprise Smash. Add 1 to counter 0.
  3807. -If counter 0 is at 0 and it is the first action in the turn:
  3808. --1/2 chance to attack. Add 1 to counter 0.
  3809. --1/2 chance to use Surprise Smash (Targets the party member with the lowest level). Add 1 to counter 0.
  3810. -Else:
  3811. --1/2 chance to attack. Add 1 to counters 0, 1, and 2.
  3812. --1/2 chance to use Surprise Smash. Add 1 to counters 0, 1, and 2.
  3813.  
  3814. Megamouth Dragon (LV. 24/21)
  3815. ============================
  3816. -Take 2 actions per turn.
  3817. -If counter 2 is at 10:
  3818. --Use Bite and Chew. Add 1 to counter 0. Set counter 2 to 20.
  3819. -If at least 1 party member is not inflicted with Poison and counter 2 is at 0:
  3820. --1/2 chance to use Toxic Sludge (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set counter 2 to 10.
  3821. --1/2 chance to attack. Add 1 to counter 0. Set counter 2 to 10.
  3822. -If counter 2 is at 0:
  3823. --Attack. Add 1 to counter 0. Set counter 2 to 10.
  3824. -If counter 0 is at or above 1, this routine has not been accessed for at least 3 turns, global counter 1 is at or below 0, self does not have an ATK buff, and it is the second action in the turn:
  3825. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set global counters 0 and 1 to 10.
  3826. -If global counter 0 is at 10 and it is the first action in the turn:
  3827. --Use Snap. Add 1 to counter 0. Set counter 1 to 0. Set global counters 0 and 1 to 0.
  3828. -If counter 0 is at or above 2 and it is the second action in the turn:
  3829. --1/2 chance to attack. Add 1 to counters 0 and 1.
  3830. --1/2 chance to use Bite and Chew (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  3831. -If counter 0 is at or above 2, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  3832. --1/2 chance to use Toxic Sludge (Targets party members that are not inflicted with Poison). Add 1 to counters 0 and 1.
  3833. --1/2 chance to attack. Add 1 to counters 0 and 1.
  3834. -If counter 0 is at or above 2 and it is the first action in the turn:
  3835. --Attack. Add 1 to counters 0 and 1.
  3836. -Else:
  3837. --Attack. Add 1 to counters 0 and 1.
  3838.  
  3839. Twinhorn Dragon (LV. 11/8)
  3840. ==========================
  3841. -Take 2 actions per turn.
  3842. -If counter 0 is at or above 2, counter 1 is at or above 10, and it is the first action in the turn:
  3843. --Use Horn Assault. Add 1 to counter 0. Set counter 1 to 0.
  3844. -If counter 0 is at or above 2, it is the second action in the turn, and self does not have an ATK buff:
  3845. --Use Assault Stance (Targets the user's side). Set counter 1 to 10.
  3846. -If counter 0 is at or above 2 and it is the first action in the turn:
  3847. --1/2 chance to attack. Add 1 to counter 0.
  3848. --1/2 chance to use Power Slash. Add 1 to counter 0.
  3849. -If counter 0 is at or above 2 and it is the second action in the turn:
  3850. --3/4 chance to attack. Add 1 to counter 0.
  3851. --1/4 chance to use Power Slash (Targets the party member with the highest LIFE). Add 1 to counter 0.
  3852. -If counter 0 is at 1:
  3853. --2/3 chance to attack. Add 1 to counter 0.
  3854. --1/3 chance to use Power Slash (Targets the party member with the highest LIFE). Add 1 to counter 0.
  3855. -If counter 0 is at 0:
  3856. --Attack. Add 1 to counter 0.
  3857.  
  3858. Satanic Dragon (LV. 44/40)
  3859. ==========================
  3860. -Take 2 actions per turn.
  3861. -If counter 0 is at 9 and it is the second action in the turn:
  3862. --Attack. Set counter 0 to 0.
  3863. -If counter 0 is at 10 and it is the first action in the turn:
  3864. --1/2 chance to use Ground Thrust. Add 1 to counter 0.
  3865. --1/2 chance to attack. Add 1 to counter 0.
  3866. -If counter 0 is at 9 and it is the second action in the turn:
  3867. --Attack. Add 1 to counter 0.
  3868. -If counter 0 is at 8 and it is the first action in the turn:
  3869. --1/2 chance to use Ground Thrust. Add 1 to counter 0.
  3870. --1/2 chance to attack. Add 1 to counter 0.
  3871. -If counter 0 is at 7 and it is the second action in the turn:
  3872. --Attack. Add 1 to counter 0.
  3873. -If counter 0 is at 6 and it is the first action in the turn:
  3874. --Use Judgement Briar. Add 1 to counter 0.
  3875. -If counter 0 is at 5 and it is the second action in the turn:
  3876. --Use Energized Tail (Targets the user's side). Add 1 to counter 0.
  3877. -If counter 0 is at 4 and it is the first action in the turn:
  3878. --Attack. Add 1 to counter 0.
  3879. -If counter 0 is at 3 and it is the second action in the turn:
  3880. --1/2 chance to use Ground Thrust. Add 1 to counter 0.
  3881. --1/2 chance to attack. Add 1 to counter 0.
  3882. -If counter 0 is at 2 and it is the first action in the turn:
  3883. --Attack. Add 1 to counter 0.
  3884. -If counter 0 is at 1 and it is the second action in the turn:
  3885. --Use Purgatory Flame. Add 1 to counter 0.
  3886. -If counter 0 is at 0 and it is the first action in the turn:
  3887. --1/2 chance to use Ground Thrust. Add 1 to counter 0.
  3888. --1/2 chance to attack. Add 1 to counter 0.
  3889. -Else:
  3890. --1/2 chance to attack. Add 1 to counter 0.
  3891. --1/2 chance to use Ground Thrust. Add 1 to counter 0.
  3892.  
  3893. Carrion Dragon (LV. 57/53)
  3894. ==========================
  3895. -Take 2 actions per turn.
  3896. -If counter 2 is at 30 and it is the first action in the turn:
  3897. --Use Burning Slash. Add 1 to counter 0. Set counter 2 to 40.
  3898. -If counter 2 is at 20, the turn count is above 5, and it is the second action in the turn:
  3899. --Use Scratching Post (Targets the user's side). Add 1 to counter 0. Set counter 2 to 30.
  3900. -If any party member is inflicted with Bleed, it is the first action in the turn, and this routine has not been accessed for at least 2 turns:
  3901. --Use Deadly Fang (Targets party members that are inflicted with Bleed). Add 1 to counters 0 and 1.
  3902. -If counter 0 is at or above 2:
  3903. --1/2 chance to use Bite Off. Set counter 0 to 0. Add 1 to counter 1.
  3904. --1/2 chance to use a Fang attack. Add 1 to counters 0 and 1.
  3905. -If counter 2 is at 10 and it is the first action in the turn:
  3906. --Use Burning Slash. Add 1 to counter 0. Set counter 2 to 20.
  3907. -If counter 2 is at 0, self does not have an ATK buff, the turn count is above 1, and it is the second action in the turn:
  3908. --Use Scratching Post (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  3909. -Else:
  3910. --1/2 chance to use a Claw attack. Add 1 to counters 0 and 1.
  3911. --1/2 chance to use a Fang attack. Add 1 to counters 0 and 1.
  3912.  
  3913. Icemole Dragon (LV. 54/50)
  3914. ==========================
  3915. -Take 2 actions per turn.
  3916. -If counter 0 is at 5 and it is the second action in the turn:
  3917. --1/3 chance to use Hopping Ball. Set counters 0, 1, and 2 to 0.
  3918. --1/3 chance to attack. Set counters 0, 1, and 2 to 0.
  3919. --1/3 chance to use Surprise Smash. Set counters 0, 1, and 2 to 0.
  3920. -If counter 0 is at 4, counter 2 is at 10, and it is the first action in the turn:
  3921. --Use Roller Ring. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3922. -If counter 0 is at 4 and it is the first action in the turn:
  3923. --1/2 chance to attack. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3924. --1/2 chance to use Surprise Smash. Add 1 to counter 0. Set counters 1 and 2 to 0.
  3925. -If counter 0 is at 3, self does not have an Evasion buff, counter 1 is at 20, and it is the second action in the turn:
  3926. --2/3 chance to use Evasive Maneuvers (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  3927. --1/3 chance to attack. Add 1 to counter 0.
  3928. -If counter 0 is at 3, counter 1 is at 0, and it is the second action in the turn:
  3929. --Use Hopping Ball. Add 1 to counter 0.
  3930. -If counter 0 is at 2, counter 1 is at 10, and it is the first action in the turn:
  3931. --Use Roller Ring. Add 1 to counter 0. Set counter 1 to 20.
  3932. -If counter 0 is at 2, counter 1 is at 0, and it is the first action in the turn:
  3933. --1/2 chance to attack. Add 1 to counter 0.
  3934. --1/2 chance to use Surprise Smash. Add 1 to counter 0.
  3935. -If counter 0 is at 1, self does not have an evasion buff, and it is the second action in the turn:
  3936. --1/2 chance to use Evasive Maneuvers (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  3937. --1/2 chance to use Surprise Smash. Add 1 to counter 0.
  3938. -If counter 0 is at 0 and it is the first action in the turn:
  3939. --1/2 chance to attack. Add 1 to counter 0.
  3940. --1/2 chance to use Surprise Smash. Add 1 to counter 0.
  3941. -Else:
  3942. --1/2 chance to attack. Add 1 to counters 0, 1, and 2.
  3943. --1/2 chance to use Surprise Smash. Add 1 to counters 0, 1, and 2.
  3944.  
  3945. Megamaw Dragon (LV. 40/36)
  3946. ==========================
  3947. -Take 2 actions per turn.
  3948. -If counter 2 is at 10:
  3949. --Use Bite and Chew (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 2 to 20.
  3950. -If at least 1 party member is not inflicted with Paralysis and counter 2 is at 0:
  3951. --1/2 chance to use Ball Lightning (Targets party members that are not inflicted with Paralysis). Add 1 to counter 0. Set counter 2 to 10.
  3952. --1/2 chance to attack. Add 1 to counter 0. Set counter 2 to 10.
  3953. -If counter 2 is at 0:
  3954. --Attack. Add 1 to counter 0. Set counter 2 to 10.
  3955. -If counter 0 is at or above 1, this routine has not been accessed for at least 3 turns, global counter 1 is at or below 0, self does not have an ATK buff, and it is the second action in the turn:
  3956. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set global counters 0 and 1 to 10.
  3957. -If global counter 0 is at 10 and it is the first action in the turn:
  3958. --Use Snap. Add 1 to counter 0. Set counter 1 to 0. Set global counters 0 and 1 to 0.
  3959. -If counter 0 is at or above 2 and it is the second action in the turn:
  3960. --1/2 chance to attack. Add 1 to counters 0 and 1.
  3961. --1/2 chance to use Bite and Chew (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  3962. -If at least 1 party member is not inflicted with Paralysis, counter 0 is at or above 2, and it is the first action in the turn:
  3963. --1/2 chance to use Ball Lightning (Targets party members that are not inflicted with Paralysis). Add 1 to counters 0 and 1.
  3964. --1/2 chance to attack. Add 1 to counters 0 and 1.
  3965. -If counter 0 is at or above 2 and it is the first action in the turn:
  3966. --Attack. Add 1 to counters 0 and 1.
  3967. -Else:
  3968. --Attack. Add 1 to counters 0 and 1.
  3969.  
  3970. Blackhorn (LV. 32/28)
  3971. =====================
  3972. -Take 2 actions per turn.
  3973. -If it is the first action in the turn, at least 1 party member is not inflicted with Sleep, and counter 1 is at 0:
  3974. --1/2 chance to use Concussive Shriek. Add 1 to counter 0. Add 10 to counter 1. Set counter 2 to 0.
  3975. --1/2 chance to attack. Add 1 to counter 0.
  3976. -If the turn count is above 4, it is the first action in the turn, at least 1 party member is not inflicted with Sleep, and counter 1 is at 10:
  3977. --1/2 chance to use Concussive Shriek. Add 1 to counter 0. Add 20 to counter 1. Set counter 2 to 0.
  3978. --1/2 chance to attack. Add 1 to counter 0.
  3979. -If it is the first action in the turn and counter 2 is at 10:
  3980. --Use Sudden Charge. Add 1 to counter 0. Set counter 2 to 0.
  3981. -If counter 0 is at or above 2, this routine has not been accessed for at least 2 turns, self is at or below 75% LIFE, and it is the second action in the turn:
  3982. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  3983. -If counter 0 is at or above 2:
  3984. --1/2 chance to use Paralysis Strike (Targets the party member with the highest LIFE). Add 1 to counter 0.
  3985. --1/2 chance to attack. Add 1 to counter 0.
  3986. -Else:
  3987. --Attack. Add 1 to counter 0.
  3988.  
  3989. Demon Dragon (LV. 67/62)
  3990. ========================
  3991. -Take 2 actions per turn.
  3992. -If counter 0 is at 9 and it is the second action in the turn:
  3993. --Attack. Set counter 0 to 0.
  3994. -If counter 0 is at 10 and it is the first action in the turn:
  3995. --1/2 chance to attack. Add 1 to counter 0.
  3996. --1/2 chance to use Ground Pierce. Add 1 to counter 0.
  3997. -If counter 0 is at 9 and it is the second action in the turn:
  3998. --Attack. Add 1 to counter 0.
  3999. -If counter 0 is at 8 and it is the first action in the turn:
  4000. --1/2 chance to use Ground Pierce. Add 1 to counter 0.
  4001. --1/2 chance to attack. Add 1 to counter 0.
  4002. -If counter 0 is at 7 and it is the second action in the turn:
  4003. --Attack. Add 1 to counter 0.
  4004. -If counter 0 is at 6 and it is the first action in the turn:
  4005. --Use Judgement Thorns. Add 1 to counter 0.
  4006. -If counter 0 is at 5 and it is the second action in the turn:
  4007. --Use Energized Tail (Targets the user's side). Add 1 to counter 0.
  4008. -If counter 0 is at 4 and it is the first action in the turn:
  4009. --Attack. Add 1 to counter 0.
  4010. -If counter 0 is at 3 and it is the second action in the turn:
  4011. --1/2 chance to attack. Add 1 to counter 0.
  4012. --1/2 chance to use Ground Pierce. Add 1 to counter 0.
  4013. -If counter 0 is at 2 and it is the first action in the turn:
  4014. --Attack. Add 1 to counter 0.
  4015. -If counter 0 is at 1 and it is the second action in the turn:
  4016. --Use Purgatory Blizzard. Add 1 to counter 0.
  4017. -If counter 0 is at 0 and it is the first action in the turn:
  4018. --1/2 chance to use Ground Pierce. Add 1 to counter 0.
  4019. --1/2 chance to attack. Add 1 to counter 0.
  4020. -Else:
  4021. --1/2 chance to attack. Add 1 to counter 0.
  4022. --1/2 chance to use Ground Pierce. Add 1 to counter 0.
  4023.  
  4024. Axe Dragon (LV. 16/13)
  4025. ======================
  4026. -Take 2 actions per turn.
  4027. -If counter 0 is at 5 and it is the second action in the turn:
  4028. --Attack (Targets the party member with the lowest level). Set counters 0, 1, and 2 to 0.
  4029. -If counter 0 is at 4, counter 1 is at 20, and it is the first action in the turn:
  4030. --Use Downstroke (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 1 to 0.
  4031. -If counter 0 is at 4 and it is the first action in the turn:
  4032. --2/4 chance to use Mow Down. Add 1 to counter 0.
  4033. --2/4 chance to attack (Targets the party member with the lowest level). Add 1 to counter 0.
  4034. -If counter 0 is at 3, counter 1 is at 10, and it is the second action in the turn:
  4035. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 1 to 20.
  4036. -If counter 0 is at 3 and it is the second action in the turn:
  4037. --Attack (Targets the party member with the highest level). Add 1 to counter 0.
  4038. -If counter 0 is at 2, counter 2 is at 10, and it is the first action in the turn:
  4039. --Use Downstroke (Targets the party member with the lowest level). Add 1 to counter 0. Set counter 2 to 0.
  4040. -If counter 0 is at 2 and it is the first action in the turn:
  4041. --2/4 chance to attack. Add 1 to counter 0.
  4042. --2/4 chance to use Mow Down. Add 1 to counter 0.
  4043. -If counter 0 is at 1, self does not have an ATK buff, and it is the second action in the turn:
  4044. --Use Gather Power (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  4045. -If counter 0 is at 1 and it is the second action in the turn:
  4046. --Attack (Targets the party member with the lowest LIFE). Add 1 to counter 0. Set counter 1 to 10.
  4047. -If counter 0 is at 0:
  4048. --2/3 chance to attack. Add 1 to counter 0.
  4049. --1/3 chance to use Mow Down. Add 1 to counter 0. Set counter 2 to 10.
  4050. -Else:
  4051. --2/3 chance to attack. Add 1 to counter 0.
  4052. --1/3 chance to use Mow Down. Add 1 to counter 0.
  4053.  
  4054. Dragon 202 (LV. 8/6)
  4055. ====================
  4056. -Take 1 action per turn.
  4057. -If counter 0 is at or above 9:
  4058. --Attack (Targets the party member with the lowest level). Set counters 0, 1, and 2 to 0.
  4059. -If counter 0 is at or above 8 and counter 2 is at 10:
  4060. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 2 to 0.
  4061. -If counter 0 is at or above 8:
  4062. --1/2 chance to use Sonic Boom (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 2 to 0.
  4063. --1/2 chance to attack (Targets the party member with the lowest LIFE). Add 1 to counter 0. Set counter 2 to 0.
  4064. -If counter 0 is at 7 and self is at or below 50% LIFE:
  4065. --Use Power Charge (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0. Add 10 to counter 2.
  4066. -If counter 0 is at 7:
  4067. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4068. --1/2 chance to use Sonic Boom (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4069. -If counter 0 is at 6:
  4070. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4071. --1/2 chance to use Sonic Boom (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4072. -If counter 0 is at 5:
  4073. --Attack (Targets the party member with the lowest level). Add 1 to counter 0.
  4074. -If counter 0 is at 4:
  4075. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4076. -If counter 0 is at 3:
  4077. --Use Gather Power (Targets the user's side). Add 1 to counter 0.
  4078. -If counter 0 is at 2:
  4079. --1/2 chance to use Sonic Boom (Targets the party member with the lowest level). Add 1 to counter 0.
  4080. --1/2 chance to attack (Targets the party member with the lowest level). Add 1 to counter 0.
  4081. -If counter 0 is at 1:
  4082. --Attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4083. -If counter 0 is at 0:
  4084. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4085.  
  4086. Dragon 201 (LV. 7/5)
  4087. ====================
  4088. -Take 1 action per turn.
  4089. -If counter 0 is at or above 9:
  4090. --Attack (Targets the party member with the lowest level). Set counters 0, 1, and 2 to 0.
  4091. -If counter 0 is at or above 8 and counter 2 is at 10:
  4092. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 2 to 0.
  4093. -If counter 0 is at or above 8:
  4094. --1/2 chance to use Sonic Boom (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 2 to 0.
  4095. --1/2 chance to attack (Targets the party member with the lowest LIFE). Add 1 to counter 0. Set counter 2 to 0.
  4096. -If counter 0 is at 7 and self is at or below 50% LIFE:
  4097. --Use Power Charge (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0. Add 10 to counter 2.
  4098. -If counter 0 is at 7:
  4099. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4100. --1/2 chance to use Sonic Boom (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4101. -If counter 0 is at 6:
  4102. --1/2 chance to attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4103. --1/2 chance to use Sonic Boom (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4104. -If counter 0 is at 5:
  4105. --Attack (Targets the party member with the lowest level). Add 1 to counter 0.
  4106. -If counter 0 is at 4:
  4107. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4108. -If counter 0 is at 3:
  4109. --Use Gather Power (Targets the user's side). Add 1 to counter 0.
  4110. -If counter 0 is at 2:
  4111. --1/2 chance to use Sonic Boom (Targets the party member with the lowest level). Add 1 to counter 0.
  4112. --1/2 chance to attack (Targets the party member with the lowest level). Add 1 to counter 0.
  4113. -If counter 0 is at 1:
  4114. --Attack (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4115. -If counter 0 is at 0:
  4116. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4117.  
  4118. Bersersnatch (LV. 54/50)
  4119. ========================
  4120. -Take 2 actions per turn.
  4121. -If it is the first action in the turn, self does not have an Inflict React buff, and counter 2 is at 0:
  4122. --Use Blood React (Targets the user's side). Set counter 2 to 10.
  4123. -If it is the second action in the turn and counter 2 is at 10:
  4124. --Use Slalom Stance (Targets the user's side). Set counter 2 to 20.
  4125. -If it is the first action in the turn, no party member is inflicted with Bleed, and counter 2 is at 20:
  4126. --Use Giant Slalom (Targets party members that are not inflicted with Bleed). Set counter 0 to 1. Set counter 2 to 0.
  4127. -If it is the first action in the turn and counter 2 is at 20:
  4128. --Use Giant Slalom (Targets the party member with the lowest level). Set counter 2 to 0.
  4129. -If the extra turn phase is active, it is the first action in the turn, and at least 1 party member is inflicted with Bleed:
  4130. --Use Blood Frenzy (Targets the user's side). Set counter 2 to 0. Set global counter 2 to 50.
  4131. -If counter 0 is at 7 and it is the second action in the turn:
  4132. --Attack. Set counter 0 to 0.
  4133. -If counter 0 is at 6 and it is the first action in the turn:
  4134. --Attack. Add 1 to counter 0.
  4135. -If counter 0 is at 5 it is the second action in the turn:
  4136. --Attack. Add 1 to counter 0.
  4137. -If counter 0 is at 4, no party member is inflicted with Bleed, and it is the first action in the turn:
  4138. --Use Giant Slalom (Targets party members that are not inflicted with Bleed). Add 1 to counter 0.
  4139. -If counter 0 is at 4 and it is the first action in the turn:
  4140. --Use Giant Slalom (Targets the party member with the lowest level). Add 1 to counter 0.
  4141. -If counter 0 is at 3 it is the second action in the turn:
  4142. --Use Slalom Stance (Targets the user's side). Add 1 to counter 0.
  4143. -If counter 0 is at 2 and it is the first action in the turn:
  4144. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  4145. --1/2 chance to attack. Add 1 to counter 0.
  4146. -If counter 0 is at 1 and it is the second action in the turn:
  4147. --1/2 chance to attack. Add 1 to counter 0.
  4148. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  4149. -If counter 0 is at 0 and it is the first action in the turn:
  4150. --1/2 chance to use Seal Cannon. Add 1 to counter 0.
  4151. --1/2 chance to attack. Add 1 to counter 0.
  4152. -Else:
  4153. --1/2 chance to attack. Add 1 to counter 0.
  4154. --1/2 chance to use Seal Cannon (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4155.  
  4156. Blind Dragon (LV. 67/62)
  4157. ========================
  4158. Routine 1:
  4159. -Take 2 actions per turn.
  4160. -If global counter 2 is at 0:
  4161. --Use Poison Breath. Set global counter 2 to 10.
  4162. -If global counter 2 is at 10 and counter 2 is at or above 1:
  4163. --Use Sleep Breath. Set counter 0 to 1. Set global counter 2 to 20.
  4164. -If global counter 1 is at 0 and self is at or below 45% LIFE:
  4165. --Use Tensile Roll (Targets the user's side). Add 1 to counters 0 and 1. Set global counter 1 to 10.
  4166. -If counter 1 is at or above 8:
  4167. --Use Poison Breath. Add 1 to counter 0. Set counter 1 to 0.
  4168. -If counter 0 is at or above 3:
  4169. --Use Sleep Breath. Set counter 0 to 0. Add 1 to counters 1 and 2.
  4170. -Else:
  4171. --Attack. Add 1 to counters 0, 1, and 2.
  4172.  
  4173. Routine 2:
  4174. -Take 2 actions per turn.
  4175. -If global counter 2 is at 0 and it is the second action in the turn:
  4176. --Use Sleep Breath. Set global counter 0 to 10.
  4177. -If global counter 1 is at 0 and self is at or below 45% LIFE:
  4178. --Use Tensile Roll (Targets the user's side). Set global counter 1 to 10.
  4179. -If counter 1 is at or above 6:
  4180. --Use Poison Breath. Add 1 to counter 0. Set counter 1 to 0.
  4181. -If counter 0 is at or above 3:
  4182. --Use Sleep Breath. Set counter 0 to 0. Add 1 to counter 1.
  4183. -Else:
  4184. --Attack. Add 1 to counters 0 and 1.
  4185.  
  4186. Scarviper (LV. 37/33)
  4187. =====================
  4188. Routine 1:
  4189. -Take 2 actions per turn.
  4190. -If counter 0 is at or above 2, swap to routine 2.
  4191. -Attack. Add 1 to counter 0.
  4192.  
  4193. Routine 2:
  4194. -Take 1 action per turn.
  4195. -If counter 1 is at or above 10, swap to routine 3.
  4196. -If counter 1 is at 0:
  4197. --Use Tyrant's Roar (Targets the user's side). Add 1 to counter 0.
  4198. -If counter 1 is at 1:
  4199. --Use Great Horn. Subtract 1 from counter 0. Set counter 1 to 10.
  4200. -Else:
  4201. --Attack. Add 1 to counter 0.
  4202.  
  4203. Routine 3:
  4204. -Take 2 actions per turn.
  4205. -If counter 0 is at or above 3, swap to routine 2.
  4206. -Attack. Add 1 to counter 0.
  4207.  
  4208. Routine 4:
  4209. -Take 1 action per turn.
  4210. -If counter 0 is at or above 10, swap to routine 3.
  4211. -If counter 1 is at 0:
  4212. --Use Tyrant's Roar (Targets the user's side). Add 10 to counter 0.
  4213. -Else:
  4214. --Attack.
  4215.  
  4216. Routine 5:
  4217. -Take 1 action per turn.
  4218. -If counter 0 is at or above 10, swap to routine 1.
  4219. -If counter 1 is at 0:
  4220. --Use Great Horn. Add 10 to counter 0.
  4221. -Else:
  4222. --Attack.
  4223.  
  4224. Machine Dragon (LV. 40/36)
  4225. ==========================
  4226. Routine 1:
  4227. -Take 2 actions per turn.
  4228. -If counter 2 is at 0 and it is the second action in the turn:
  4229. --Use Fire Breath. Set counter 2 to 10.
  4230. -If counter 2 is at 10 and self is at or below 55% LIFE:
  4231. --Use Rise Again (Targets the user's side). Set counter 2 to 20.
  4232. -If counter 0 is at or above 5:
  4233. --Use Fire Breath. Set counter 0 to 0. Add 1 to counter 1.
  4234. -Else:
  4235. --Attack. Add 1 to counters 0 and 1.
  4236.  
  4237. Routine 2:
  4238. -Take 2 actions per turn.
  4239. -If counter 1 is at or above 8:
  4240. --Use Rise Again (Targets the user's side). Set counter 1 to 0.
  4241. -If counter 1 is at or above 6:
  4242. --1/2 chance to attack. Add 1 to counters 0 and 1.
  4243. --1/2 chance to use Rise Again (Targets the user's side). Add 1 to counter 0. Set counter 1 to 0.
  4244. -If counter 0 is at or above 4:
  4245. --Use Fire Breath. Set counter 0 to 0. Add 1 to counter 1.
  4246. -If counter 0 is at or above 3:
  4247. --1/3 chance to attack. Add 1 to counters 0 and 1.
  4248. --2/3 chance to use Rise Again (Targets the user's side). Set counter 0 to 0. Add 1 to counter 1.
  4249. -If counter 0 is at or above 2:
  4250. --1/2 chance to attack. Add 1 to counters 0 and 1.
  4251. --1/2 chance to use Rise Again (Targets the user's side). Set counter 0 to 0. Add 1 to counter 1.
  4252. -Else:
  4253. --Attack. Add 1 to counters 0 and 1.
  4254.  
  4255. Massive Dragon (LV. 70/65)
  4256. ==========================
  4257. Routine 1:
  4258. -Take 2 actions per turn.
  4259. -If self is at or below 70% LIFE, swap to routine 2.
  4260. -If counter 2 is at or above 6, swap to routine 2.
  4261. -If counter 1 is at 0:
  4262. --Use Super Headbutt (Targets the party member with the highest LIFE). Set counter 1 to 10. Add 1 to counter 2.
  4263. -If counter 0 is at or above 3:
  4264. --Use Super Headbutt (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  4265. -Else:
  4266. --Attack. Add 1 to counters 0 and 2.
  4267.  
  4268. Routine 2:
  4269. -Take 2 actions per turn.
  4270. -If it is the first action in the turn and global counter 2 is at 0:
  4271. --Use Chaos Eye. Set global counter 2 to 10.
  4272. -If it is the second action in the turn and global counter 2 is at 10:
  4273. --Use Super Muscle Charge (Targets the user's side). Set global counter 2 to 20.
  4274. -If it is the first action in the turn and global counter 2 is at 20:
  4275. --Use Super Burning Lariat. Set counter 0 to 1. Set global counter 2 to 30.
  4276. -If counter 0 is at or above 9 and it is the second action in the turn:
  4277. --Attack. Set counter 0 to 0.
  4278. -If counter 0 is at or above 8 and it is the first action in the turn:
  4279. --1/2 chance to use Super Jump Kick. Add 1 to counter 0.
  4280. --1/2 chance to attack. Add 1 to counter 0.
  4281. -If counter 0 is at 7, at least 1 party member is not inflicted with Skill Seal, and it is the second action in the turn:
  4282. --1/2 chance to attack. Add 1 to counter 0.
  4283. --1/2 chance to use Chaos Eye (Targets party members that are not inflicted with Skill Seal). Add 1 to counter 0.
  4284. -If counter 0 is at 7 and it is the second action in the turn:
  4285. --1/2 chance to attack. Add 1 to counter 0.
  4286. --1/2 chance to use Super Headbutt. Add 1 to counter 0.
  4287. -If counter 0 is at 6 and it is the first action in the turn:
  4288. --1/2 chance to attack. Add 1 to counter 0.
  4289. --1/2 chance to use Super Jump Kick. Add 1 to counter 0.
  4290. -If counter 0 is at 5 and it is the second action in the turn:
  4291. --Attack (Targets a random party member). Add 1 to counter 0.
  4292. -If counter 0 is at 4, counter 1 is at 10, and it is the first action in the turn:
  4293. --Use Super Burning Lariat. Add 1 to counter 0. Set counter 1 to 0.
  4294. -If counter 0 is at 3 and it is the first action in the turn:
  4295. --1/2 chance to use Super Jump Kick. Add 1 to counter 0.
  4296. --1/2 chance to attack. Add 1 to counter 0.
  4297. -If counter 0 is at 2 and it is the second action in the turn:
  4298. --1/2 chance to use Super Muscle Charge (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  4299. --1/2 chance to attack. Add 1 to counter 0.
  4300. -If counter 0 is at 2 and it is the first action in the turn:
  4301. --1/2 chance to use Super Jump Kick (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4302. --1/2 chance to attack. Add 1 to counter 0.
  4303. -If counter 0 is at 1 and it is the second action in the turn:
  4304. --1/2 chance to use Super Headbutt. Add 1 to counter 0.
  4305. --1/2 chance to attack. Add 1 to counter 0.
  4306. -If counter 0 is at 0 and it is the first action in the turn:
  4307. --1/2 chance to attack. Add 1 to counter 0.
  4308. --1/2 chance to use Super Jump Kick (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4309. -Else:
  4310. --Attack. Add 1 to counters 0 and 1.
  4311.  
  4312. Evil Tyrano (LV. 60/55)
  4313. =======================
  4314. -Take 2 actions per turn.
  4315. -If counter 0 is at 5 and it is the second action in the turn:
  4316. --Attack. Set counters 0 and 1 to 0.
  4317. -If counter 0 is at 4, counter 1 is at 10, and it is the first action in the turn:
  4318. --Use Mow Down. Add 1 to counter 0. Set counter 1 to 20.
  4319. -If counter 0 is at 4 and it is the first action in the turn:
  4320. --1/3 chance to use Sharptooth (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4321. --2/3 chance to attack. Add 1 to counter 0.
  4322. -If counter 0 is at 3, self does not have an ATK buff, and it is the second action in the turn:
  4323. --2/3 chance to use Tyrant's Roar (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  4324. --1/3 chance to attack. Add 1 to counter 0.
  4325. -If counter 0 is at 3 and it is the second action in the turn:
  4326. --Attack. Add 1 to counter 0.
  4327. -If counter 0 is at 2 and it is the first action in the turn:
  4328. --1/2 chance to use Sharptooth. Add 1 to counter 0.
  4329. --1/2 chance to attack. Add 1 to counter 0.
  4330. -If counter 0 is at 1 and it is the second action in the turn:
  4331. --1/3 chance to use Dark Howl. Add 1 to counter 0.
  4332. --1/3 chance to use Sharptooth. Add 1 to counter 0.
  4333. --1/3 chance to attack. Add 1 to counter 0.
  4334. -If counter 0 is at 1 and it is the second action in the turn:
  4335. --2/3 chance to attack. Add 1 to counter 0.
  4336. --1/3 chance to use Sharptooth. Add 1 to counter 0.
  4337. -If counter 0 is at 0 and it is the second action in the turn:
  4338. --2/3 chance to attack. Add 1 to counter 0.
  4339. --1/3 chance to use Sharptooth. Add 1 to counter 0.
  4340. -Else:
  4341. --Attack. Add 1 to counters 0, 1, and 2.
  4342.  
  4343. Megalip Dragon (LV. 64/59)
  4344. ==========================
  4345. -Take 2 actions per turn.
  4346. -If counter 0 is at 9 and it is the second action in the turn:
  4347. --Use Bite and Chew. Set counter 0 to 0.
  4348. -If counter 0 is at 8 and it is the first action in the turn:
  4349. --Attack. Add 1 to counter 0.
  4350. -If counter 0 is at 7, it is the second action in the turn, and at least 1 party member is not inflicted with Freeze:
  4351. --2/3 chance to use Numbing Snowball (Targets party members that are not inflicted with Freeze). Add 1 to counter 0.
  4352. --1/3 chance to attack. Add 1 to counter 0.
  4353. -If counter 0 is at 7 and it is the second action in the turn:
  4354. --Use Bite and Chew. Add 1 to counter 0.
  4355. -If counter 0 is at 6 and it is the first action in the turn:
  4356. --Attack. Add 1 to counter 0.
  4357. -If counter 0 is at 5 and it is the second action in the turn:
  4358. --Attack. Add 1 to counter 0.
  4359. -If counter 0 is at 4 and it is the first action in the turn:
  4360. --Use Snap. Add 1 to counter 0.
  4361. -If counter 0 is at 3 and it is the second action in the turn:
  4362. --Use Gather Power (Targets the user's side). Add 1 to counter 0.
  4363. -If counter 0 is at 2, it is the first action in the turn, and at least 1 party member is not inflicted with Freeze:
  4364. --1/2 chance to use Numbing Snowball. Add 1 to counter 0.
  4365. --1/2 chance to attack. Add 1 to counter 0.
  4366. -If counter 0 is at 2 and it is the first action in the turn:
  4367. --Attack. Add 1 to counter 0.
  4368. -If counter 0 is at 1, it is the second action in the turn, and at least 1 party member is not inflicted with Freeze:
  4369. --2/3 chance to use Numbing Snowball. Add 1 to counter 0.
  4370. --1/3 chance to attack. Add 1 to counter 0.
  4371. -If counter 0 is at 1 and it is the second action in the turn:
  4372. --Use Bite and Chew. Add 1 to counter 0.
  4373. -If counter 0 is at 0 and it is the first action in the turn:
  4374. --Attack. Add 1 to counter 0.
  4375. -Else:
  4376. --Attack. Add 1 to counter 0.
  4377.  
  4378. Red Wyvern (LV. 42/38)
  4379. ======================
  4380. -Take 2 actions per turn.
  4381. -If counter 0 is at or above 9 and it is the second action in the turn:
  4382. --Attack. Set counters 0, 1, and 2 to 0.
  4383. -If counter 0 is at or above 8 and it is the first action in the turn:
  4384. --Use Exhaust Breath. Add 1 to counter 0.
  4385. -If counter 0 is at 7 and it is the second action in the turn:
  4386. --Use Tyrant's Roar (Targets the user's side). Add 1 to counter 0.
  4387. -If counter 0 is at or above 6 and it is the first action in the turn:
  4388. --1/2 chance to use Sonic Chaff. Add 1 to counter 0.
  4389. --1/2 chance to attack. Add 1 to counter 0.
  4390. -If counter 0 is at or above 5, no party members have a SPD debuff, and it is the second action in the turn:
  4391. --1/2 chance to use Daunting Roar (Targets party members without a SPD debuff). Add 1 to counter 0.
  4392. --1/2 chance to attack. Add 1 to counter 0.
  4393. -If counter 0 is at or above 5 and it is the second action in the turn:
  4394. --Attack. Add 1 to counter 0.
  4395. -If counter 0 is at or above 4 and it is the first action in the turn:
  4396. --1/2 chance to use Sonic Chaff. Add 1 to counter 0.
  4397. --1/2 chance to attack. Add 1 to counter 0.
  4398. -If counter 0 is at 3 and it is the second action in the turn:
  4399. --Attack. Add 1 to counter 0.
  4400. -If counter 0 is at or above 2 and it is the first action in the turn:
  4401. --Use Exhaust Breath. Add 1 to counter 0.
  4402. -If counter 0 is at 1 and it is the second action in the turn:
  4403. --Use Tyrant's Roar (Targets the user's side). Add 1 to counter 0.
  4404. -If counter 0 is at 0, no party members have a SPD debuff, and it is the first action in the turn:
  4405. --Use Daunting Roar. Add 1 to counter 0.
  4406. -If counter 0 is at 0 and it is the first action in the turn:
  4407. --Attack. Add 1 to counter 0.
  4408. -Else:
  4409. --Attack. Add 1 to counter 0.
  4410.  
  4411. Furious Salamander (LV. 13/10)
  4412. ==============================
  4413. Routine 1:
  4414. -Take 2 actions per turn.
  4415. -If counter 0 is at or above 3, counter 1 is at 0, and it is the first action in the turn:
  4416. --Use Fire Breath. Set counter 1 to 1.
  4417. -If counter 0 is at or above 3 and it is the first action in the turn:
  4418. --Use Fire Breath (Targets the party member with the highest LIFE). Set counter 1 to 0.
  4419. -If counter 0 is at or above 3:
  4420. --Attack (Targets the party member with the highest LIFE).
  4421. -If counter 0 is at or above 1 and it is the second action in the turn:
  4422. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4423. -If it is the second action in the turn and counter 0 is at or above 0:
  4424. --Attack. Add 1 to counter 0.
  4425.  
  4426. Routine 2:
  4427. -Take 2 actions per turn.
  4428. -If counter 0 is at or above 5:
  4429. --Use Fire Breath (Targets the party member with the highest LIFE). Set counter 0 to 0.
  4430. -If counter 0 is at or above 2:
  4431. --1/4 chance to attack. Add 1 to counter 0.
  4432. --3/4 chance to use Fire Breath (Targets the party member with the highest LIFE). Set counter 0 to 0.
  4433. -Else:
  4434. --Attack. Add 1 to counter 0.
  4435.  
  4436. Furious Twinhorn (LV. 13/10)
  4437. ============================
  4438. -Take 2 actions per turn.
  4439. -If counter 0 is at or above 2, counter 1 is at or above 10, and it is the first action in the turn:
  4440. --Use Horn Assault. Add 1 to counter 0. Set counter 1 to 0.
  4441. -If counter 0 is at or above 2, it is the second action in the turn, and self does not have an ATK buff:
  4442. --Use Assault Stance (Targets the user's side). Set counter 1 to 10.
  4443. -If counter 0 is at or above 2 and it is the first action in the turn:
  4444. --1/2 chance to attack. Add 1 to counter 0.
  4445. --1/2 chance to use Power Slash. Add 1 to counter 0.
  4446. -If counter 0 is at or above 2 and it is the second action in the turn:
  4447. --3/4 chance to attack. Add 1 to counter 0.
  4448. --1/4 chance to use Power Slash (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4449. -If counter 0 is at 1:
  4450. --2/3 chance to attack. Add 1 to counter 0.
  4451. --1/3 chance to use Power Slash (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4452. -If counter 0 is at 0:
  4453. --Attack. Add 1 to counter 0.
  4454.  
  4455. Hurt Bloodwyvern (LV. 45/41)
  4456. ============================
  4457. -Take 2 actions per turn.
  4458. -If counter 0 is at or above 9 and it is the second action in the turn:
  4459. --Attack. Set counters 0, 1, and 2 to 0.
  4460. -If counter 0 is at or above 8 and it is the first action in the turn:
  4461. --Use Exhaust Breath. Add 1 to counter 0.
  4462. -If counter 0 is at 7 and it is the second action in the turn:
  4463. --Use Tyrant's Roar (Targets the user's side). Add 1 to counter 0.
  4464. -If counter 0 is at or above 6 and it is the first action in the turn:
  4465. --1/2 chance to use Sonic Chaff. Add 1 to counter 0.
  4466. --1/2 chance to attack. Add 1 to counter 0.
  4467. -If counter 0 is at or above 5, no party members have a SPD debuff, and it is the second action in the turn:
  4468. --1/2 chance to use Daunting Roar (Targets party members without a SPD debuff). Add 1 to counter 0.
  4469. --1/2 chance to attack. Add 1 to counter 0.
  4470. -If counter 0 is at or above 5 and it is the second action in the turn:
  4471. --Attack. Add 1 to counter 0.
  4472. -If counter 0 is at or above 4 and it is the first action in the turn:
  4473. --1/2 chance to use Sonic Chaff. Add 1 to counter 0.
  4474. --1/2 chance to attack. Add 1 to counter 0.
  4475. -If counter 0 is at 3 and it is the second action in the turn:
  4476. --Attack. Add 1 to counter 0.
  4477. -If counter 0 is at or above 2 and it is the first action in the turn:
  4478. --Use Exhaust Breath. Add 1 to counter 0.
  4479. -If counter 0 is at 1 and it is the second action in the turn:
  4480. --Use Tyrant's Roar (Targets the user's side). Add 1 to counter 0.
  4481. -If counter 0 is at 0, no party members have a SPD debuff, and it is the first action in the turn:
  4482. --Use Daunting Roar. Add 1 to counter 0.
  4483. -If counter 0 is at 0 and it is the first action in the turn:
  4484. --Attack. Add 1 to counter 0.
  4485. -Else:
  4486. --Attack. Add 1 to counter 0.
  4487.  
  4488. Little Dragon (LV. 37/33)
  4489. =========================
  4490. Routine 1:
  4491. -Take 2 actions per turn.
  4492. -If counter 2 is at 0:
  4493. --Use Gnaw. Set counter 2 to 10.
  4494. -If counter 2 is at 10:
  4495. --Use Gnaw (Targets the party member with the highest LIFE). Set counter 2 to 20.
  4496. -If counter 0 is at or above 2:
  4497. --1/3 chance to use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 0.
  4498. --2/3 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0.
  4499. -Else:
  4500. --Attack. Add 1 to counter 0.
  4501.  
  4502. Routine 2:
  4503. -If counter 1 is at or above 2, swap to routine 2.
  4504. -If counter 2 is at or above 2, swap to routine 3.
  4505. -If counter 0 is at or above 2:
  4506. --1/5 chance to use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  4507. --4/5 chance to use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  4508. -Else:
  4509. --Attack. Add 1 to counter 0.
  4510.  
  4511. Routine 3:
  4512. -If counter 0 is at or above 10, swap to routine 1.
  4513. -Use Gnaw (Targets the party member with the highest LIFE). Set counter 0 to 10. Add 1 to counter 2.
  4514.  
  4515. Routine 4:
  4516. -If counter 0 is at or above 10, swap to routine 1.
  4517. -Use Fireball (Targets the party member with the highest LIFE). Set counter 0 to 10. Add 1 to counter 2.
  4518.  
  4519. Criminal Dragon V (LV. 95/90)
  4520. =============================
  4521. Routine 1:
  4522. -Take 2 actions per turn.
  4523. -If self is at or below 50% LIFE, swap to routine 2.
  4524. -If counter 2 is at or above 8, swap to routine 2.
  4525. -If counter 1 is at 0:
  4526. --Use Headbutt (Targets the party member with the highest LIFE). Set counter 1 to 10. Add 1 to counter 2.
  4527. -If counter 0 is at or above 3:
  4528. --Use Headbutt (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  4529. -Else:
  4530. --Use Melee attack 1. Add 1 to counters 0 and 2.
  4531.  
  4532. Routine 2:
  4533. -Take 2 actions per turn.
  4534. -If global counter 2 is at 0:
  4535. --Use Typhoon Lariat. Set global counter 2 to 10.
  4536. -If global counter 2 is at 10:
  4537. --Use Muscle Eye (Targets party members that are not inflicted with Skill Seal). Set global counter 2 to 20.
  4538. -If global counter 1 is at 0 and self is at or below 20% LIFE:
  4539. --Use Muscle Eye (Targets party members that are not inflicted with Skill Seal). Set global counter 1 to 10.
  4540. -If counter 1 is at or above 8:
  4541. --Use Typhoon Lariat. Add 1 to counter 0. Set counter 1 to 0.
  4542. -If counter 0 is at or above 3:
  4543. --Use Jump Kick (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  4544. -Else:
  4545. --Use Melee attack 2. Add 1 to counters 0 and 1.
  4546.  
  4547. Salamander V (LV. 91/86)
  4548. ========================
  4549. Routine 1:
  4550. -Take 2 actions per turn.
  4551. -If counter 0 is at or above 3, counter 1 is at 0, and it is the first action in the turn:
  4552. --Use Fire Breath. Set counter 1 to 1.
  4553. -If counter 0 is at or above 3 and it is the first action in the turn:
  4554. --Use Fire Breath (Targets the party member with the highest LIFE). Set counter 1 to 0.
  4555. -If counter 0 is at or above 3:
  4556. --Attack (Targets the party member with the highest LIFE).
  4557. -If counter 0 is at or above 1 and it is the second action in the turn:
  4558. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counter 0.
  4559. -If it is the second action in the turn and counter 0 is at or above 0:
  4560. --Attack. Add 1 to counter 0.
  4561.  
  4562. Routine 2:
  4563. -Take 2 actions per turn.
  4564. -If counter 0 is at or above 5:
  4565. --Use Fire Breath (Targets the party member with the highest LIFE). Set counter 0 to 0.
  4566. -If counter 0 is at or above 2:
  4567. --1/4 chance to attack. Add 1 to counter 0.
  4568. --3/4 chance to use Fire Breath (Targets the party member with the highest LIFE). Set counter 0 to 0.
  4569. -Else:
  4570. --Attack. Add 1 to counter 0.
  4571.  
  4572. Red Wyvern V (LV. 92/87)
  4573. ========================
  4574. -Take 2 actions per turn.
  4575. -If counter 1 is at 5 and it is the second action in the turn:
  4576. --Use Fire Breath. Add 1 to counters 0 and 2. Set counter 1 to 0.
  4577. -If counter 0 is at or above 3 and it is the second action in the turn:
  4578. --1/2 chance to use Sonic Boom (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counters 1 and 2.
  4579. --1/2 chance to use its time to take a deep breath... (Targets the user's side). Set counter 0 to 0. Add 1 to counters 1 and 2.
  4580. -Else:
  4581. --Attack (Targets the party member with the highest LIFE). Add 1 to counters 0, 1, and 2.
  4582. -If counter 0 is at 0:
  4583. --Use Fire Breath (Targets the party member with the highest LIFE). Add 1 to counters 0 and 2. Set counter 1 to 0.
  4584.  
  4585. Demon Dragon V (LV. 95/90)
  4586. ==========================
  4587. -Take 2 actions per turn.
  4588. -If counter 0 is at 9 and it is the second action in the turn:
  4589. --Attack. Set counter 0 to 0.
  4590. -If counter 0 is at 10 and it is the first action in the turn:
  4591. --1/2 chance to attack. Add 1 to counter 0.
  4592. --1/2 chance to use Ground Pierce. Add 1 to counter 0.
  4593. -If counter 0 is at 9 and it is the second action in the turn:
  4594. --Attack. Add 1 to counter 0.
  4595. -If counter 0 is at 8 and it is the first action in the turn:
  4596. --1/2 chance to use Ground Pierce. Add 1 to counter 0.
  4597. --1/2 chance to attack. Add 1 to counter 0.
  4598. -If counter 0 is at 7 and it is the second action in the turn:
  4599. --Attack. Add 1 to counter 0.
  4600. -If counter 0 is at 6 and it is the first action in the turn:
  4601. --Use Judgement Thorns. Add 1 to counter 0.
  4602. -If counter 0 is at 5 and it is the second action in the turn:
  4603. --Use Energized Tail (Targets the user's side). Add 1 to counter 0.
  4604. -If counter 0 is at 4 and it is the first action in the turn:
  4605. --Attack. Add 1 to counter 0.
  4606. -If counter 0 is at 3 and it is the second action in the turn:
  4607. --1/2 chance to attack. Add 1 to counter 0.
  4608. --1/2 chance to use Ground Pierce. Add 1 to counter 0.
  4609. -If counter 0 is at 2 and it is the first action in the turn:
  4610. --Attack. Add 1 to counter 0.
  4611. -If counter 0 is at 1 and it is the second action in the turn:
  4612. --Use Purgatory Blizzard. Add 1 to counter 0.
  4613. -If counter 0 is at 0 and it is the first action in the turn:
  4614. --1/2 chance to use Ground Pierce. Add 1 to counter 0.
  4615. --1/2 chance to attack. Add 1 to counter 0.
  4616. -Else:
  4617. --1/2 chance to attack. Add 1 to counter 0.
  4618. --1/2 chance to use Ground Pierce. Add 1 to counter 0.
  4619.  
  4620. Granderodon V (LV. 86/81)
  4621. =========================
  4622. Routine 1:
  4623. -Take 2 actions per turn.
  4624. -If global counter 0 is at 0:
  4625. --Use Atmospheric Vibration (Targets self). Set global counter 0 to 10.
  4626. -If counter 1 is at or above 5:
  4627. --Use Atmospheric Vibration (Targets self). Add 1 to counter 0. Set counter 1 to 0.
  4628. -If counter 0 is at or above 3:
  4629. --Use Thunder Breath. Set counter 0 to 0. Add 1 to counter 1.
  4630. -Else:
  4631. --Attack. Add 1 to counters 0 and 1.
  4632.  
  4633. Routine 2:
  4634. -Take 2 actions per turn.
  4635. -If self is at or below 30% LIFE, swap to routine 2.
  4636. -If counter 0 is at 0:
  4637. --Use Atmospheric Vibration (Targets self). Add 1 to counter 0.
  4638. -If counter 2 is at or above 5:
  4639. --Use Atmospheric Vibration (Targets self). Set counter 2 to 0.
  4640. -If counter 1 is at or above 4:
  4641. --Use Thunder Breath. Set counter 1 to 0. Add 1 to counter 2.
  4642. -Else:
  4643. --Attack. Add 1 to counters 1 and 2.
  4644.  
  4645. Routine 3:
  4646. -Take 2 actions per turn.
  4647. -If counter 0 is at 10:
  4648. --Use Atmospheric Vibration (Targets the user's side). Set counter 0 to 30.
  4649. -If counter 0 is at 0:
  4650. --Use Defenses Up (Targets the user's side). Set counter 0 to 10.
  4651. -If counter 2 is at or above 5:
  4652. --Use Atmospheric Vibration (Targets self). Set counter 2 to 0.
  4653. -If counter 1 is at or above 4:
  4654. --Use Thunder Breath. Set counter 1 to 0. Add 1 to counter 2.
  4655. -Else:
  4656. --Attack. Add 1 to counters 1 and 2.
  4657.  
  4658. Megamouth Dragon (LV. 59/55)
  4659. ============================
  4660. -Take 2 actions per turn.
  4661. -If counter 2 is at 10:
  4662. --Use Bite and Chew. Add 1 to counter 0. Set counter 2 to 20.
  4663. -If at least 1 party member is not inflicted with Poison and counter 2 is at 0:
  4664. --1/2 chance to use Toxic Sludge (Targets party members that are not inflicted with Poison). Add 1 to counter 0. Set counter 2 to 10.
  4665. --1/2 chance to attack. Add 1 to counter 0. Set counter 2 to 10.
  4666. -If counter 2 is at 0:
  4667. --Attack. Add 1 to counter 0. Set counter 2 to 10.
  4668. -If counter 0 is at or above 1, this routine has not been accessed for at least 3 turns, global counter 1 is at or below 0, self does not have an ATK buff, and it is the second action in the turn:
  4669. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1. Set global counters 0 and 1 to 10.
  4670. -If global counter 0 is at 10 and it is the first action in the turn:
  4671. --Use Snap. Add 1 to counter 0. Set counter 1 to 0. Set global counters 0 and 1 to 0.
  4672. -If counter 0 is at or above 2 and it is the second action in the turn:
  4673. --1/2 chance to attack. Add 1 to counters 0 and 1.
  4674. --1/2 chance to use Bite and Chew (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  4675. -If counter 0 is at or above 2, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  4676. --1/2 chance to use Toxic Sludge (Targets party members that are not inflicted with Poison). Add 1 to counters 0 and 1.
  4677. --1/2 chance to attack. Add 1 to counters 0 and 1.
  4678. -If counter 0 is at or above 2 and it is the first action in the turn:
  4679. --Attack. Add 1 to counters 0 and 1.
  4680. -Else:
  4681. --Attack. Add 1 to counters 0 and 1.
  4682.  
  4683. Neko (LV. 60/55)
  4684. ================
  4685. Routine 1:
  4686. -Take 1 action per turn.
  4687. -If there are 1 or less enemies in the battle, swap to routine 2.
  4688. -If counter 0 is at or above 1:
  4689. --Use Attack Down (Targets party members that do not have an ATK debuff). Set counter 0 to 0.
  4690. -Else:
  4691. --Use Freeze. Add 1 to counter 0.
  4692.  
  4693. Routine 2:
  4694. -Take 1 action per turn.
  4695. -If counter 1 is at 1:
  4696. --Use Freeze. Set counter 1 to 10.
  4697. -If counter 1 is at 0:
  4698. --Use All Down (Targets party members that do not have an ATK debuff). Set counter 1 to 1.
  4699. -If counter 0 is at or above 1:
  4700. --Use Attack Down (Targets party members that do not have an ATK debuff). Set counter 0 to 0.
  4701. -Else:
  4702. --Use Freeze. Add 1 to counter 0.
  4703.  
  4704. Daigo (LV. 60/55)
  4705. =================
  4706. Routine 1:
  4707. -Take 1 action per turn.
  4708. -If there are 1 or less enemies in the battle, swap to routine 2.
  4709. -If counter 1 is at or above 1, global counter 0 is at 0, and there are 2 or more enemies in the battle:
  4710. --Use SKY Combo. Set counters 1 and 2 to 0. Set global counter 0 to 10.
  4711. -If counter 2 is at or above 2 and there are 2 or more enemies in the battle:
  4712. --Use SKY Combo. Add 1 to counters 0 and 1. Set counter 2 to 0.
  4713. -If counter 0 is at or above 1:
  4714. --Use Power Hook (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counters 1 and 2.
  4715. -Else:
  4716. --Attack. Add 1 to counters 0, 1, and 2.
  4717.  
  4718. Routine 2:
  4719. -Take 2 actions per turn.
  4720. -If counter 2 is at 1:
  4721. --Use Power Hook (Targets the party member with the highest LIFE). Set counter 2 to 0.
  4722. -If counter 2 is at 0:
  4723. --Use Raging Ambition (Targets the user's side). Set counter 2 to 1.
  4724. -If counter 0 is at or above 3:
  4725. --Use Power Hook (Targets the party member with the highest LIFE). Set counter 0 to 0.
  4726. -Else:
  4727. --Attack. Add 1 to counter 0.
  4728.  
  4729. Takehaya, Warrior (LV. 99/94)
  4730. =============================
  4731. Routine 1:
  4732. -Take 1 action per turn.
  4733. -If counter 1 is at or above 10, swap to routine 2.
  4734. -Use SKY. Set counter 0 to 10.
  4735.  
  4736. Routine 2:
  4737. -Take 2 actions per turn.
  4738. -If global counter 2 is at or above 10, swap to routine 3.
  4739. -If self is at or below 65% LIFE and it is the second action in the turn:
  4740. --Use Dragon Blood (Targets the user's side). Set global counter 2 to 10.
  4741. -If counter 1 is at or above 5:
  4742. --Use SKY. Add 1 to counter 0. Set counter 1 to 0.
  4743. -If counter 0 is at or above 3:
  4744. --Use Double Javelin. Set counter 0 to 0. Add 1 to counter 1.
  4745. -Else:
  4746. --1/3 chance to use Melee attack 1. Add 1 to counters 0 and 1.
  4747. --2/3 chance to use Melee attack 2. Add 1 to counters 0 and 1.
  4748.  
  4749. Routine 3:
  4750. -Take 2 actions per turn.
  4751. -If global counter 2 is at or above 20, swap to routine 4.
  4752. -If global counter 0 is at 0:
  4753. --Use Supersonic Spin. Set global counter 0 to 10.
  4754. -If global counter 0 is at 10:
  4755. --Use D-Cell Activate (Targets the user's side). Set global counter 0 to 20.
  4756. -If self is at or below 25% LIFE and global counter 2 is at 0:
  4757. --Use D-Cell Activate (Targets the user's side). Set counter 2 to 10.
  4758. -If counter 2 is at 10 and it is the first action in the turn:
  4759. --Use Supersonic Spin. Set counter 2 to 20.
  4760. -If counter 2 is at 20 and it is the second action in the turn:
  4761. --Use Human Blood (Targets the user's side). Set counter 2 to 30. Set global counter 2 to 20.
  4762. -If counter 1 is at or above 5:
  4763. --Use Supersonic Spin. (Target the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  4764. -If counter 0 is at or above 3:
  4765. --Use Thunder Breath. Set counter 0 to 0. Add 1 to counter 1.
  4766. -Else:
  4767. --Use Melee attack 3. Add 1 to counters 0 and 1.
  4768.  
  4769. Routine 4:
  4770. -Take 2 actions per turn.
  4771. -If global counter 2 is at 20 and it is the second action in the turn:
  4772. --Use Exhaust Mode (Targets the user's side). Set global counter 2 to 30.
  4773. -If global counter 2 is at 30:
  4774. --Use SKY. Set global counter 2 to 40.
  4775. -If counter 2 is at or above 6 and it is the second action in the turn:
  4776. --Use Exhaust Mode (Targets the user's side). Set counter 2 to 0. Set global counter 1 to 10.
  4777. -If global counter 1 is at 10:
  4778. --Use SKY. Set counter 2 to 0. Set global counter 1 to 0.
  4779. -If counter 1 is at or above 4:
  4780. --Use SKY. Add 1 to counters 0 and 2. Set counter 1 to 0.
  4781. -If counter 0 is at or above 3:
  4782. --Use Double Javelin. Set counter 0 to 0. Add 1 to counters 1 and 2.
  4783. -Else:
  4784. --1/3 chance to use Melee attack 1. Add 1 to counters 0, 1, and 2.
  4785. --2/3 chance to use Melee attack 2. Add 1 to counters 0, 1, and 2.
  4786.  
  4787. Ino (LV. 12/9)
  4788. ==============
  4789. -Take 1 action per turn.
  4790. -If counter 1 is at 1:
  4791. --Attack. Set counters 0 and 1 to 0.
  4792. -If counter 0 is at or above 2:
  4793. --1/2 chance to use Cure (Targets the enemy with the lowest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  4794. --1/2 chance to use Attack Boost (Targets an enemy without an ATK buff). Set counter 0 to 0. Set counter 1 to 1.
  4795. -If counter 0 is at or above 1:
  4796. --2/4 chance to attack. Add 1 to counter 0.
  4797. --1/4 chance to use Cure (Targets the enemy with the lowest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  4798. --1/4 chance to use Attack Boost (Targets an enemy without an ATK buff). Set counter 0 to 0. Set counter 1 to 1.
  4799. -Else:
  4800. --Attack. Add 1 to counter 0.
  4801.  
  4802. Guchi (LV. 12/9)
  4803. ================
  4804. -Take 1 action per turn.
  4805. -If counter 0 is at or above 1:
  4806. --1/3 chance to attack. Add 1 to counter 0.
  4807. --2/3 chance to use Double Cut. Set counter 0 to 0.
  4808. -Else:
  4809. --Attack. Add 1 to counter 0.
  4810.  
  4811. Neko (LV. 20/17)
  4812. ================
  4813. Routine 1:
  4814. -Take 1 action per turn.
  4815. -If there are 1 or less enemies in the battle, swap to routine 2.
  4816. -If counter 0 is at or above 1:
  4817. --Use Attack Down (Targets party members that do not have an ATK debuff). Set counter 0 to 0.
  4818. -Else:
  4819. --Use Freeze. Add 1 to counter 0.
  4820.  
  4821. Routine 2:
  4822. -Take 1 action per turn.
  4823. -If counter 1 is at 1:
  4824. --Use Freeze. Set counter 1 to 10.
  4825. -If counter 1 is at 0:
  4826. --Use All Down (Targets party members that do not have an ATK debuff). Set counter 1 to 1.
  4827. -If counter 0 is at or above 1:
  4828. --Use Attack Down (Targets party members that do not have an ATK debuff). Set counter 0 to 0.
  4829. -Else:
  4830. --Use Freeze. Add 1 to counter 0.
  4831.  
  4832. Neko (LV. 29/26)
  4833. ================
  4834. Routine 1:
  4835. -Take 1 action per turn.
  4836. -If counter 0 is at or above 1:
  4837. --Use Attack Down (Targets party members that do not have an ATK debuff). Set counter 0 to 0.
  4838. -Else:
  4839. --Use Freeze. Add 1 to counter 0.
  4840.  
  4841. Routine 2:
  4842. -Take 1 action per turn.
  4843. -If counter 1 is at 1:
  4844. --Use Freeze. Set counter 1 to 10.
  4845. -If counter 1 is at 0:
  4846. --Do nothing. (Targets party members that do not have an ATK debuff). Set counter 1 to 1.
  4847. -If counter 0 is at or above 1:
  4848. --Use Attack Down (Targets party members that do not have an ATK debuff). Set counter 0 to 0.
  4849. -Else:
  4850. --Use Freeze. Add 1 to counter 0.
  4851.  
  4852. Routine 3:
  4853. -Take 1 action per turn.
  4854. -If counter 0 is at or above 1:
  4855. --Use Attack Down (Targets party members that do not have an ATK debuff). Set counter 0 to 0.
  4856. -Else:
  4857. --Use Freeze. Add 1 to counter 0.
  4858.  
  4859. Daigo (LV. 20/17)
  4860. =================
  4861. Routine 1:
  4862. -Take 1 action per turn.
  4863. -If there are 1 or less enemies in the battle, swap to routine 2.
  4864. -If counter 1 is at or above 1, global counter 0 is at 0, and there are 2 or more enemies in the battle:
  4865. --Use SKY Combo. Set counters 1 and 2 to 0. Set global counter 0 to 10.
  4866. -If counter 2 is at or above 2 and there are 2 or more enemies in the battle:
  4867. --Use SKY Combo. Add 1 to counters 0 and 1. Set counter 2 to 0.
  4868. -If counter 0 is at or above 1:
  4869. --Use Power Hook (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counters 1 and 2.
  4870. -Else:
  4871. --Attack. Add 1 to counters 0, 1, and 2.
  4872.  
  4873. Routine 2:
  4874. -Take 2 actions per turn.
  4875. -If counter 2 is at 1:
  4876. --Use Power Hook (Targets the party member with the highest LIFE). Set counter 2 to 0.
  4877. -If counter 2 is at 0:
  4878. --Use Raging Ambition (Targets the user's side). Set counter 2 to 1.
  4879. -If counter 0 is at or above 3:
  4880. --Use Power Hook (Targets the party member with the highest LIFE). Set counter 0 to 0.
  4881. -Else:
  4882. --Attack. Add 1 to counter 0.
  4883.  
  4884. Daigo (LV. 29/26)
  4885. =================
  4886. Routine 1:
  4887. -Take 1 action per turn.
  4888. -If there are 1 or less enemies in the battle, swap to routine 2.
  4889. -If counter 1 is at or above 2:
  4890. --Use Mark of Vigor. Add 1 to counter 0. Set counter 1 to 0.
  4891. -If counter 0 is at or above 2:
  4892. --Use Power Hook (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  4893. -Else:
  4894. --Attack. Add 1 to counters 0 and 1.
  4895.  
  4896. Routine 2:
  4897. -Take 1 action per turn.
  4898. -If counter 2 is at 0:
  4899. --Use Power Hook (Targets the party member with the highest LIFE). Set counter 2 to 10.
  4900. -If counter 0 is at or above 1:
  4901. --Use Power Hook (Targets the party member with the highest LIFE). Set counter 0 to 0.
  4902. -Else:
  4903. --Attack. Add 1 to counter 0.
  4904.  
  4905. Routine 3:
  4906. -Take 1 action per turn.
  4907. -If counter 2 is at or above 3:
  4908. --Do nothing. Add 1 to counters 0 and 1. Set counter 2 to 0.
  4909. -If counter 1 is at or above 2:
  4910. --1/2 chance to do nothing. Add 1 to counters 0 and 2. Set counter 1 to 0.
  4911. --1/2 chance to use Mark of Vigor (Targets the enemy with the lowest LIFE). Add 1 to counters 0 and 2. Set counter 1 to 0.
  4912. -If counter 0 is at or above 1:
  4913. --Use Power Hook. Set counter 0 to 0. Add 1 to counters 1 and 2.
  4914. -Else:
  4915. --Attack. Add 1 to counters 0, 1, and 2.
  4916.  
  4917. Tao (LV. 12/9)
  4918. ==============
  4919. -Take 1 action per turn.
  4920. -If counter 0 is at or above 1:
  4921. --1/3 chance to attack. Add 1 to counter 0.
  4922. --2/3 chance to use Double Cut. Set counter 0 to 0.
  4923. -Else:
  4924. --Attack. Add 1 to counter 0.
  4925.  
  4926. Tao (LV. 23/20)
  4927. ===============
  4928. -Take 1 action per turn.
  4929. -If counter 0 is at or above 1:
  4930. --1/3 chance to attack. Add 1 to counter 0.
  4931. --2/3 chance to use Double Cut. Set counter 0 to 0.
  4932. -Else:
  4933. --Attack. Add 1 to counter 0.
  4934.  
  4935. Akira (LV. 12/9)
  4936. ================
  4937. -Take 1 action per turn.
  4938. -If counter 0 is at or above 1:
  4939. --1/3 chance to attack. Add 1 to counter 0.
  4940. --2/3 chance to use Double Cut. Set counter 0 to 0.
  4941. -Else:
  4942. --Attack. Add 1 to counter 0.
  4943.  
  4944. Akira (LV. 25/22)
  4945. =================
  4946. -Take 1 action per turn.
  4947. -If counter 0 is at or above 1:
  4948. --1/3 chance to attack. Add 1 to counter 0.
  4949. --2/3 chance to use Double Cut. Set counter 0 to 0.
  4950. -Else:
  4951. --Attack. Add 1 to counter 0.
  4952.  
  4953. Ino (LV. 29/26)
  4954. ===============
  4955. -Take 1 action per turn.
  4956. -If counter 1 is at 1:
  4957. --Attack. Set counters 0 and 1 to 0.
  4958. -If counter 0 is at or above 2:
  4959. --1/2 chance to use Cure (Targets the enemy with the lowest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  4960. --1/2 chance to use Attack Boost (Targets an enemy without an ATK buff). Set counter 0 to 0. Set counter 1 to 1.
  4961. -If counter 0 is at or above 1:
  4962. --2/4 chance to attack. Add 1 to counter 0.
  4963. --1/4 chance to use Cure (Targets the enemy with the lowest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  4964. --1/4 chance to use Attack Boost (Targets an enemy without an ATK buff). Set counter 0 to 0. Set counter 1 to 1.
  4965. -Else:
  4966. --Attack. Add 1 to counter 0.
  4967.  
  4968. Guchi (LV. 28/25)
  4969. =================
  4970. -Take 1 action per turn.
  4971. -If counter 0 is at or above 1:
  4972. --1/3 chance to attack. Add 1 to counter 0.
  4973. --2/3 chance to use Double Cut. Set counter 0 to 0.
  4974. -Else:
  4975. --Attack. Add 1 to counter 0.
  4976.  
  4977. Ino (LV. 12/9)
  4978. ==============
  4979. -Take 1 action per turn.
  4980. -If counter 1 is at 1:
  4981. --Attack. Set counters 0 and 1 to 0.
  4982. -If counter 0 is at or above 2:
  4983. --1/2 chance to use Cure (Targets the enemy with the lowest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  4984. --1/2 chance to use Attack Boost (Targets an enemy without an ATK buff). Set counter 0 to 0. Set counter 1 to 1.
  4985. -If counter 0 is at or above 1:
  4986. --2/4 chance to attack. Add 1 to counter 0.
  4987. --1/4 chance to use Cure (Targets the enemy with the lowest LIFE). Set counter 0 to 0. Set counter 1 to 1.
  4988. --1/4 chance to use Attack Boost (Targets an enemy without an ATK buff). Set counter 0 to 0. Set counter 1 to 1.
  4989. -Else:
  4990. --Attack. Add 1 to counter 0.
  4991.  
  4992. Guchi (LV. 12/9)
  4993. ================
  4994. -Take 1 action per turn.
  4995. -If counter 0 is at or above 1:
  4996. --1/3 chance to attack. Add 1 to counter 0.
  4997. --2/3 chance to use Double Cut. Set counter 0 to 0.
  4998. -Else:
  4999. --Attack. Add 1 to counter 0.
  5000.  
  5001. Kimo (LV. 24/21)
  5002. ================
  5003. -Take 1 action per turn.
  5004. -If counter 0 is at or above 1:
  5005. --1/3 chance to attack. Add 1 to counter 0.
  5006. --2/3 chance to use Double Cut. Set counter 0 to 0.
  5007. -Else:
  5008. --Attack. Add 1 to counter 0.
  5009.  
  5010. Kaku (LV. 26/23)
  5011. ================
  5012. -Take 1 action per turn.
  5013. -If counter 0 is at or above 1:
  5014. --1/3 chance to attack. Add 1 to counter 0.
  5015. --2/3 chance to use Double Cut. Set counter 0 to 0.
  5016. -Else:
  5017. --Attack. Add 1 to counter 0.
  5018.  
  5019. Shouji (LV. 45/41)
  5020. ==================
  5021. Routine 1:
  5022. -Take 1 action per turn.
  5023. -If global counter 2 is at 50, swap to routine 2.
  5024. -If counter 2 is at 0 and there are 1 or less enemies in the battle:
  5025. --Use Furious Roar (Targets the user's side). Add 1 to counter 0. Add 50 to counter 2. Set global counter 2 to 50.
  5026. -If counter 1 is at 0, this routine has not been accessed for at least 5 turns, and the turn count is above 5:
  5027. --1/2 chance to use Wide Shot. Add 1 to counter 0.
  5028. --1/2 chance to use Grenade. Add 1 to counter 0.
  5029. -If counter 1 is at 0:
  5030. --Attack. Add 1 to counter 0.
  5031. -Else:
  5032. --1/2 chance to use Salute (Targets the party member with the lowest LIFE). Add 1 to counter 0.
  5033. --1/2 chance to attack. Add 1 to counter 0.
  5034. -Else:
  5035. --1/5 chance to attack. Add 1 to counter 0.
  5036. --1/5 chance to use Wide Shot (Targets the party member with the highest LIFE). Add 1 to counter 0.
  5037. --1/5 chance to use Salute (Targets the party member with the lowest LIFE). Add 1 to counter 0.
  5038. --1/5 chance to use Ricochet (Targets the party member with the highest LIFE). Add 1 to counter 0.
  5039. --1/5 chance to use Grenade (Targets the party member with the highest LIFE). Add 1 to counter 0.
  5040.  
  5041. Routine 2:
  5042. -Take 2 actions per turn.
  5043. -If this routine has not been accessed for at least 2 turns and it is the second action in the turn:
  5044. --1/3 chance to use Wide Shot. Add 1 to counter 0.
  5045. --1/3 chance to use Grenade. Add 1 to counter 0.
  5046. --1/3 chance to attack. Add 1 to counter 0.
  5047. -If it is the second action in the turn:
  5048. --1/3 chance to attack. Add 1 to counter 0.
  5049. --1/3 chance to use Salute (Targets the party member with the lowest level). Add 1 to counter 0.
  5050. --1/3 chance to use Ricochet (Targets the party member with the highest level). Add 1 to counter 0.
  5051. -If it is the first action in the turn:
  5052. --1/3 chance to use Salute (Targets the party member with the lowest level). Add 1 to counter 0.
  5053. --1/3 chance to use Ricochet (Targets the party member with the highest level). Add 1 to counter 0.
  5054. --1/3 chance to attack. Add 1 to counter 0.
  5055. -Else:
  5056. --1/3 chance to attack. Add 1 to counter 0.
  5057. --1/3 chance to use Salute (Targets the party member with the lowest LIFE). Add 1 to counter 0.
  5058. --1/3 chance to use Ricochet (Targets the party member with the highest LIFE). Add 1 to counter 0.
  5059.  
  5060. Izumi (LV. 44/40)
  5061. =================
  5062. Routine 1:
  5063. -Take 2 actions per turn.
  5064. -If global counter 2 is at 50, swap to routine 2.
  5065. -If counter 2 is at 0 and there are 1 or less enemies in the battle:
  5066. --Use her blade to hide her disappointment. (Targets the user's side). Add 1 to counter 0. Set global counter 2 to 50.
  5067. -If counter 0 is at or above 5 and it is the second action in the turn:
  5068. --Attack. Set counter 0 to 0.
  5069. -If counter 0 is at or above 4, counter 1 is at 0, and there are 2 or more enemies in the battle:
  5070. --Use SECT Combo. Add 1 to counter 0. Set counter 1 to 50.
  5071. -If counter 0 is at or above 8, there are 2 or more enemies in the battle, and it is the first action in the turn:
  5072. --Use SECT Combo. Add 1 to counter 0. Set counter 1 to 0.
  5073. -If counter 0 is at or above 4, there are 2 or more enemies in the battle, and it is the first action in the turn:
  5074. --1/2 chance to use Air Slash. Add 1 to counter 0. Set counter 1 to 0.
  5075. --1/2 chance to use SECT Combo. Add 1 to counter 0. Set counter 1 to 0.
  5076. -If counter 0 is at 3 and it is the second action in the turn:
  5077. --Use Pour It On. Add 1 to counter 0.
  5078. -If counter 0 is at 2 and it is the first action in the turn:
  5079. --Use Straight Cut. Add 1 to counter 0.
  5080. -If counter 0 is at 1 and it is the second action in the turn:
  5081. --Attack. Add 1 to counter 0.
  5082. -If counter 0 is at 0 and it is the first action in the turn:
  5083. --1/2 chance to attack. Add 1 to counter 0.
  5084. --1/2 chance to use Air Slash. Add 1 to counter 0.
  5085. -Else:
  5086. --1/3 chance to attack. Add 1 to counter 0.
  5087. --1/3 chance to use Air Slash. Add 1 to counter 0.
  5088. --1/3 chance to use Straight Cut. Add 1 to counter 0.
  5089.  
  5090. Routine 2:
  5091. -Take 1 action per turn.
  5092. -If self does not have an ATK Charge buff, counter 0 is at or above 2, and this routine has not been accessed for at least 4 turns:
  5093. --Use Pour It On (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  5094. -If counter 2 is at 10:
  5095. --Use Straight Cut. Add 1 to counter 0. Set counter 2 to 0.
  5096. -If counter 0 is at or above 2 and this routine has not been accessed for at least 3 turns:
  5097. --1/2 chance to use Air Slash. Add 1 to counter 0.
  5098. --1/2 chance to attack. Add 1 to counter 0.
  5099. -If counter 0 is at 0:
  5100. --1/2 chance to attack. Add 1 to counter 0.
  5101. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5102. -Else:
  5103. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5104. --1/2 chance to attack. Add 1 to counter 0.
  5105.  
  5106. Izumi (LV. 23/20)
  5107. =================
  5108. -Take 1 action per turn.
  5109. -If self does not have an ATK Charge buff, counter 0 is at or above 2, and this routine has not been accessed for at least 4 turns:
  5110. --Use Pour It On (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  5111. -If counter 2 is at 10:
  5112. --Use Straight Cut. Add 1 to counter 0. Set counter 2 to 0.
  5113. -If counter 0 is at or above 2 and this routine has not been accessed for at least 3 turns:
  5114. --1/2 chance to use Air Slash. Add 1 to counter 0.
  5115. --1/2 chance to attack. Add 1 to counter 0.
  5116. -If counter 0 is at 0:
  5117. --1/2 chance to attack. Add 1 to counter 0.
  5118. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5119. -Else:
  5120. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5121. --1/2 chance to attack. Add 1 to counter 0.
  5122.  
  5123. Izumi (LV. 65/60)
  5124. =================
  5125. Routine 1:
  5126. -Take 2 actions per turn.
  5127. -If counter 0 is at 11 and it is the second action in the turn:
  5128. --Attack. Set counters 0, 1, and 2 to 0.
  5129. -If counter 0 is at 10, counter 2 is at 10, and it is the first action in the turn:
  5130. --Use Air Slash. Add 1 to counter 0. Set counter 2 to 20.
  5131. -If counter 0 is at 10 and it is the first action in the turn:
  5132. --1/2 chance to attack. Add 1 to counter 0.
  5133. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5134. -If counter 0 is at 9 and it is the second action in the turn:
  5135. --2/3 chance to use Pour It On (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  5136. --1/3 chance to attack. Add 1 to counter 0.
  5137. -If counter 0 is at 8 and it is the first action in the turn:
  5138. --1/2 chance to attack. Add 1 to counter 0.
  5139. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5140. -If counter 0 is at 7 and it is the second action in the turn:
  5141. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5142. --1/2 chance to attack. Add 1 to counter 0.
  5143. -If counter 0 is at 6 and it is the first action in the turn:
  5144. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5145. --1/2 chance to attack. Add 1 to counter 0.
  5146. -If counter 0 is at 5 and it is the second action in the turn:
  5147. --Attack. Add 1 to counter 0.
  5148. -If counter 0 is at 4, counter 1 is at 10, and it is the first action in the turn:
  5149. --Use Justice of Solomon. Add 1 to counter 0. Set counter 1 to 20.
  5150. -If counter 0 is at 4 and it is the first action in the turn:
  5151. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5152. --1/2 chance to attack. Add 1 to counter 0.
  5153. -If counter 0 is at 3, the turn count is at or below 3, and it is the second action in the turn:
  5154. --Use Pour It On (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  5155. -If counter 0 is at 3 and it is the second action in the turn:
  5156. --2/3 chance to use Pour It On (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  5157. --1/3 chance to attack. Add 1 to counter 0.
  5158. -If counter 0 is at 2 and it is the first action in the turn:
  5159. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5160. --1/2 chance to attack. Add 1 to counter 0.
  5161. -If counter 0 is at 1 and it is the second action in the turn:
  5162. --1/2 chance to attack. Add 1 to counter 0.
  5163. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5164. -If counter 0 is at 0 and it is the first action in the turn:
  5165. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5166. --1/2 chance to attack. Add 1 to counter 0.
  5167. -Else:
  5168. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5169. --1/2 chance to attack. Add 1 to counter 0.
  5170.  
  5171. Will (LV. 22/19)
  5172. ================
  5173. -Take 1 action per turn.
  5174. -If there are 3 or more enemies in the battle and counter 0 is at 2:
  5175. --Use SECT Formation. Set counter 0 to 0.
  5176. -If the turn count is above 3, this routine has not been accessed for at least 2 turns, and there are 3 or more enemies in the battle:
  5177. --Use Bazooka (Targets the party member with the lowest level). Add 1 to counter 0.
  5178. -If the turn count is above 2, this routine has not been accessed for at least 2 turns, and there are 2 or more enemies in the battle:
  5179. --Use Hand Grenade. Add 1 to counter 0.
  5180. -If this routine has not been accessed for at least 4 turns, the turn count is above 3, and there are 2 or more enemies in the battle:
  5181. --Use Full-auto Sweep. Add 1 to counter 0.
  5182. -Else:
  5183. --Attack. Add 1 to counter 0.
  5184.  
  5185. Will (LV. 44/40)
  5186. ================
  5187. -Take 1 action per turn.
  5188. -If there are 3 or more enemies in the battle and counter 0 is at 2:
  5189. --Use SECT Formation. Set counter 0 to 0.
  5190. -If the turn count is above 3, this routine has not been accessed for at least 2 turns, and there are 3 or more enemies in the battle:
  5191. --Use Bazooka (Targets the party member with the lowest level). Add 1 to counter 0.
  5192. -If the turn count is above 2, this routine has not been accessed for at least 2 turns, and there are 2 or more enemies in the battle:
  5193. --Use Hand Grenade. Add 1 to counter 0.
  5194. -If this routine has not been accessed for at least 4 turns, the turn count is above 3, and there are 2 or more enemies in the battle:
  5195. --Use Full-auto Sweep. Add 1 to counter 0.
  5196. -Else:
  5197. --Attack. Add 1 to counter 0.
  5198.  
  5199. Assault Soldier (LV. 20/17)
  5200. ===========================
  5201. -Take 1 action per turn.
  5202. -If there are 3 or more enemies in the battle, this routine has not been accessed for at least 3 turns, counter 0 is at or above 5, and counter 1 is at 10:
  5203. --Use Hand Grenade. Add 1 to counter 0. Set counter 1 to 10.
  5204. -If there are 3 or more enemies in the battle, this routine has not been accessed for at least 4 turns, counter 0 is at or above 5, and counter 1 is at 10:
  5205. --Use Full-auto Sweep. Add 1 to counter 0. Set counter 1 to 10.
  5206. -If counter 0 is at or above 5 and counter 1 is at 10:
  5207. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  5208. -If counter 0 is at 4:
  5209. --Attack. Add 1 to counter 0.
  5210. -If there are 3 or more enemies in the battle and counter 0 is at 2:
  5211. --Use Hand Grenade. Add 1 to counter 0.
  5212. -If counter 0 is at 3:
  5213. --Attack. Add 1 to counter 0.
  5214. -If counter 0 is at 2:
  5215. --Attack. Add 1 to counter 0.
  5216. -If there are 3 or more enemies in the battle and counter 0 is at 1:
  5217. --1/3 chance to use Full-auto Sweep. Add 1 to counter 0.
  5218. --2/3 chance to attack. Add 1 to counter 0.
  5219. -If counter 0 is at 1:
  5220. --Attack. Add 1 to counter 0.
  5221. -Else:
  5222. --Attack.
  5223.  
  5224. Fred (LV. 42/38)
  5225. ================
  5226. -Take 1 action per turn.
  5227. -If counter 1 is at 0:
  5228. --Use Flashbang Toss. Add 1 to counter 0. Set counter 1 to 10.
  5229. -If counter 0 is at or above 1:
  5230. --Attack. Set counter 0 to 0.
  5231. -If there are 3 or more enemies in the battle, at least 1 party member is not inflicted with Burn, and this routine has not been accessed for at least 3 turns:
  5232. --1/2 chance to use Flashbang Toss. Add 1 to counter 0.
  5233. --1/2 chance to attack. Add 1 to counter 0.
  5234. -Else:
  5235. --Attack. Add 1 to counter 0.
  5236.  
  5237. Assault Soldier (LV. 35/31)
  5238. ===========================
  5239. -Take 1 action per turn.
  5240. -If there are 3 or more enemies in the battle and counter 0 is at 6:
  5241. --1/2 chance to use Full-auto Sweep. Set counter 0 to 0.
  5242. --1/2 chance to attack. Set counter 0 to 0.
  5243. -If counter 0 is at 6:
  5244. --Attack. Add 1 to counter 0.
  5245. -If counter 0 is at 5:
  5246. --Attack. Add 1 to counter 0.
  5247. -If there are 3 or more enemies in the battle and counter 0 is at 4:
  5248. --1/2 chance to attack. Add 1 to counter 0.
  5249. --1/2 chance to use Flashbang Toss. Add 1 to counter 0.
  5250. -If at least 1 party member is not inflicted with Blind and counter 0 is at 3:
  5251. --1/2 chance to use Full-auto Sweep. Add 1 to counter 0.
  5252. --1/2 chance to attack. Add 1 to counter 0.
  5253. -If counter 0 is at 3:
  5254. --Attack. Add 1 to counter 0.
  5255. -If at least 1 party member is not inflicted with Blind and counter 0 is at 2:
  5256. --Use Flashbang Toss. Add 1 to counter 0.
  5257. -If counter 0 is at 2:
  5258. --Attack. Add 1 to counter 0.
  5259. -If there are 3 or more enemies in the battle and counter 0 is at 1:
  5260. --1/3 chance to use Full-auto Sweep. Add 1 to counter 0.
  5261. --2/3 chance to attack. Add 1 to counter 0.
  5262. -If counter 0 is at 1:
  5263. --Attack. Add 1 to counter 0.
  5264. -Else:
  5265. --Attack. Add 1 to counter 0.
  5266.  
  5267. Tony (LV. 43/39)
  5268. ================
  5269. -Take 1 action per turn.
  5270. -If there are 3 or more enemies in the battle, the turn count is above 2, and this routine has not been accessed for at least 2 turns:
  5271. --1/2 chance to use Full-auto Sweep.
  5272. --1/2 chance to attack.
  5273. -Else:
  5274. --Attack.
  5275.  
  5276. Assault Soldier (LV. 40/36)
  5277. ===========================
  5278. -Take 1 action per turn.
  5279. -If there are 3 or more enemies in the battle and counter 0 is at 6:
  5280. --1/2 chance to use Full-auto Sweep. Set counter 0 to 0.
  5281. --1/2 chance to attack. Set counter 0 to 0.
  5282. -If counter 0 is at 6:
  5283. --Attack. Add 1 to counter 0.
  5284. -If counter 0 is at 5:
  5285. --Attack. Add 1 to counter 0.
  5286. -If there are 3 or more enemies in the battle and counter 0 is at 4:
  5287. --1/2 chance to attack. Add 1 to counter 0.
  5288. --1/2 chance to use Flashbang Toss. Add 1 to counter 0.
  5289. -If at least 1 party member is not inflicted with Blind and counter 0 is at 3:
  5290. --1/2 chance to use Full-auto Sweep. Add 1 to counter 0.
  5291. --1/2 chance to attack. Add 1 to counter 0.
  5292. -If counter 0 is at 3:
  5293. --Attack. Add 1 to counter 0.
  5294. -If at least 1 party member is not inflicted with Blind and counter 0 is at 2:
  5295. --Use Flashbang Toss. Add 1 to counter 0.
  5296. -If counter 0 is at 2:
  5297. --Attack. Add 1 to counter 0.
  5298. -If there are 3 or more enemies in the battle and counter 0 is at 1:
  5299. --1/3 chance to use Full-auto Sweep. Add 1 to counter 0.
  5300. --2/3 chance to attack. Add 1 to counter 0.
  5301. -If counter 0 is at 1:
  5302. --Attack. Add 1 to counter 0.
  5303. -Else:
  5304. --Attack. Add 1 to counter 0.
  5305.  
  5306. Grenadier (LV. 35/31)
  5307. =====================
  5308. -Take 1 action per turn.
  5309. -If there are 3 or more enemies in the battle, this routine has not been accessed for at least 3 turns, counter 0 is at or above 5, and counter 1 is at 10:
  5310. --2/3 chance to use Flashbang Toss. Add 1 to counter 0. Set counter 1 to 0.
  5311. --1/3 chance to use Full-auto Sweep (Targets the party member with the highest LIFE). Add 1 to counter 0. Set counter 1 to 0.
  5312. -If counter 0 is at or above 5 and counter 1 is at 10:
  5313. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  5314. -If counter 0 is at or above 5 and counter 1 is at 0:
  5315. --1/2 chance to attack. Add 1 to counter 0. Add 10 to counter 1.
  5316. --1/2 chance to use Flashbang Toss. Add 1 to counter 0. Add 10 to counter 1.
  5317. -If counter 0 is at 4:
  5318. --Attack. Add 1 to counter 0.
  5319. -If there are 3 or more enemies in the battle, at least 1 party member is not inflicted with Blind, and counter 0 is at 2:
  5320. --Use Flashbang Toss. Add 1 to counter 0.
  5321. -If counter 0 is at 3:
  5322. --Attack. Add 1 to counter 0.
  5323. -If counter 0 is at 2:
  5324. --Attack. Add 1 to counter 0.
  5325. -If there are 3 or more enemies in the battle and counter 0 is at 1:
  5326. --1/3 chance to use Full-auto Sweep. Add 1 to counter 0.
  5327. --2/3 chance to attack. Add 1 to counter 0.
  5328. -If counter 0 is at 1:
  5329. --Attack. Add 1 to counter 0.
  5330. -Else:
  5331. --Attack. Add 1 to counter 0.
  5332.  
  5333. Psychic (LV. 40/36)
  5334. ===================
  5335. -Take 1 action per turn.
  5336. -If global counter 1 is at 0 and counter 0 is at or above 3:
  5337. --Use Sap Command (Targets party members without a DEF debuff). Add 1 to counter 0. Set global counter 1 to 10.
  5338. -If global counter 0 is at 0 and counter 0 is at or above 3:
  5339. --Use Cure Command (Targets the enemy with the lowest LIFE). Add 1 to counter 0. Set global counter 0 to 10.
  5340. -If counter 0 is at or above 1:
  5341. --1/3 chance to use Freeze Command. Add 1 to counter 0.
  5342. --2/3 chance to attack. Add 1 to counter 0.
  5343. -Else:
  5344. --Attack. Add 1 to counter 0.
  5345.  
  5346. Psychic (LV. 35/31)
  5347. ===================
  5348. -Take 1 action per turn.
  5349. -If global counter 1 is at 0 and counter 0 is at or above 3:
  5350. --Use Sap Command (Targets party members without a DEF debuff). Add 1 to counter 0. Set global counter 1 to 10.
  5351. -If global counter 0 is at 0 and counter 0 is at or above 3:
  5352. --Use Cure Command (Targets the enemy with the lowest LIFE). Add 1 to counter 0. Set global counter 0 to 10.
  5353. -If counter 0 is at or above 1:
  5354. --1/3 chance to use Freeze Command. Add 1 to counter 0.
  5355. --2/3 chance to attack. Add 1 to counter 0.
  5356. -Else:
  5357. --Attack. Add 1 to counter 0.
  5358.  
  5359. Psychic (LV. 43/39)
  5360. ===================
  5361. -Take 1 action per turn.
  5362. -If global counter 1 is at 0 and counter 0 is at or above 3:
  5363. --Use Sap Command (Targets party members without a DEF debuff). Add 1 to counter 0. Set global counter 1 to 10.
  5364. -If global counter 0 is at 0 and counter 0 is at or above 3:
  5365. --Use Cure Command (Targets the enemy with the lowest LIFE). Add 1 to counter 0. Set global counter 0 to 10.
  5366. -If counter 0 is at or above 1:
  5367. --1/3 chance to use Freeze Command. Add 1 to counter 0.
  5368. --2/3 chance to attack. Add 1 to counter 0.
  5369. -Else:
  5370. --Attack. Add 1 to counter 0.
  5371.  
  5372. Psychic (LV. 43/39)
  5373. ===================
  5374. -Take 1 action per turn.
  5375. -If global counter 1 is at 0 and counter 0 is at or above 3:
  5376. --Use Sap Command (Targets party members without a DEF debuff). Add 1 to counter 0. Set global counter 1 to 10.
  5377. -If global counter 0 is at 0 and counter 0 is at or above 3:
  5378. --Use Cure Command (Targets the enemy with the lowest LIFE). Add 1 to counter 0. Set global counter 0 to 10.
  5379. -If counter 0 is at or above 1:
  5380. --1/3 chance to use Freeze Command. Add 1 to counter 0.
  5381. --2/3 chance to attack. Add 1 to counter 0.
  5382. -Else:
  5383. --Attack. Add 1 to counter 0.
  5384.  
  5385. SECT Mage (LV. 35/31)
  5386. =====================
  5387. -Take 1 action per turn.
  5388. -If global counter 1 is at 0 and counter 0 is at or above 3:
  5389. --Use Sap Command (Targets party members without a DEF debuff). Add 1 to counter 0. Set global counter 1 to 10.
  5390. -If global counter 0 is at 0 and counter 0 is at or above 3:
  5391. --Use Cure Command (Targets the enemy with the lowest LIFE). Add 1 to counter 0. Set global counter 0 to 10.
  5392. -If counter 0 is at or above 1:
  5393. --1/3 chance to use Freeze Command. Add 1 to counter 0.
  5394. --2/3 chance to attack. Add 1 to counter 0.
  5395. -Else:
  5396. --Attack. Add 1 to counter 0.
  5397.  
  5398. SECT Mage (LV. 35/31)
  5399. =====================
  5400. -Take 1 action per turn.
  5401. -If global counter 1 is at 0 and counter 0 is at or above 3:
  5402. --Use Sap Command (Targets party members without a DEF debuff). Add 1 to counter 0. Set global counter 1 to 10.
  5403. -If global counter 0 is at 0 and counter 0 is at or above 3:
  5404. --Use Cure Command (Targets the enemy with the lowest LIFE). Add 1 to counter 0. Set global counter 0 to 10.
  5405. -If counter 0 is at or above 1:
  5406. --1/3 chance to use Freeze Command. Add 1 to counter 0.
  5407. --2/3 chance to attack. Add 1 to counter 0.
  5408. -Else:
  5409. --Attack. Add 1 to counter 0.
  5410.  
  5411. Izumi (LV. 36/32)
  5412. =================
  5413. -Take 1 action per turn.
  5414. -If self does not have an ATK Charge buff, counter 0 is at or above 2, and this routine has not been accessed for at least 4 turns:
  5415. --Use Pour It On (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  5416. -If counter 2 is at 10:
  5417. --Use Straight Cut. Add 1 to counter 0. Set counter 2 to 0.
  5418. -If counter 0 is at or above 2 and this routine has not been accessed for at least 3 turns:
  5419. --1/2 chance to use Air Slash. Add 1 to counter 0.
  5420. --1/2 chance to attack. Add 1 to counter 0.
  5421. -If counter 0 is at 0:
  5422. --1/2 chance to attack. Add 1 to counter 0.
  5423. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5424. -Else:
  5425. --1/2 chance to use Straight Cut. Add 1 to counter 0.
  5426. --1/2 chance to attack. Add 1 to counter 0.
  5427.  
  5428. Shouji (LV. 96/91)
  5429. ==================
  5430. Routine 1:
  5431. -Take 2 actions per turn.
  5432. -If counter 2 is at 0 and there are 1 or less enemis in the battle:
  5433. --Use Furious Roar (Target's the user's side). Add 50 to counter 2.
  5434. -If this routine has not been accessed for at least 2 turns and it is the second action in the turn:
  5435. --1/3 chance to use Wide Shot. Add 1 to counter 0.
  5436. --1/3 chance to use Grenade. Add 1 to counter 0.
  5437. --1/3 chance to attack. Add 1 to counter 0.
  5438. -If it is the second action in the turn:
  5439. --1/3 chance to attack. Add 1 to counter 0.
  5440. --1/3 chance to use Halo Shot (Targets the party member with the lowest level). Add 1 to counter 0.
  5441. --1/3 chance to use Ricochet (Targets the party member with the highest level). Add 1 to counter 0.
  5442. -If it is the first action in the turn:
  5443. --1/3 chance to use Halo Shot (Targets the party member with the lowest level). Add 1 to counter 0.
  5444. --1/3 chance to use Ricochet (Targets the party member with the highest level). Add 1 to counter 0.
  5445. --1/3 chance to attack. Add 1 to counter 0.
  5446. -Else:
  5447. --1/4 chance to attack. Add 1 to counter 0.
  5448. --1/4 chance to use Halo Shot (Targets the party member with the lowest LIFE). Add 1 to counter 0.
  5449. --1/4 chance to use Ricochet (Targets the party member with the highest LIFE). Add 1 to counter 0.
  5450. --1/4 chance to use Grenade (Targets the party member with the highest LIFE). Add 1 to counter 0.
  5451.  
  5452. Routine 2:
  5453. -Take 2 actions per turn.
  5454. -If this routine has not been accessed for at least 2 turns:
  5455. --1/2 chance to use Ricochet. Add 1 to counter 0.
  5456. --1/2 chance to use Grenade. Add 1 to counter 0.
  5457. -Else:
  5458. --1/4 chance to attack. Add 1 to counter 0.
  5459. --1/4 chance to use Ricochet. Add 1 to counter 0.
  5460. --1/4 chance to use Wide Shot. Add 1 to counter 0.
  5461. --1/4 chance to use Salute. Add 1 to counter 0.
  5462.  
  5463. Criminal Dragon (LV. 64/59)
  5464. ===========================
  5465. Routine 1:
  5466. -Take 2 actions per turn.
  5467. -If self is at or below 50% LIFE, swap to routine 2.
  5468. -If counter 2 is at or above 8, swap to routine 2.
  5469. -If counter 1 is at 0:
  5470. --Use Headbutt (Targets the party member with the highest LIFE). Set counter 1 to 10. Add 1 to counter 2.
  5471. -If counter 0 is at or above 3:
  5472. --Use Headbutt (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  5473. -Else:
  5474. --Use Melee attack 1. Add 1 to counters 0 and 2.
  5475.  
  5476. Routine 2:
  5477. -Take 2 actions per turn.
  5478. -If global counter 2 is at 0:
  5479. --Use Typhoon Lariat. Set global counter 2 to 10.
  5480. -If global counter 2 is at 10:
  5481. --Use Muscle Eye (Targets party members that are not inflicted with Skill Seal). Set global counter 2 to 20.
  5482. -If global counter 1 is at 0 and self is at or below 20% LIFE:
  5483. --Use Muscle Eye (Targets party members that are not inflicted with Skill Seal). Set global counter 1 to 10.
  5484. -If counter 1 is at or above 8:
  5485. --Use Typhoon Lariat. Add 1 to counter 0. Set counter 1 to 0.
  5486. -If counter 0 is at or above 3:
  5487. --Use Jump Kick (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  5488. -Else:
  5489. --Use Melee attack 2. Add 1 to counters 0 and 1.
  5490.  
  5491. Massive Dragon (LV. 70/65)
  5492. ==========================
  5493. Routine 1:
  5494. -Take 2 actions per turn.
  5495. -If self is at or below 70% LIFE, swap to routine 2.
  5496. -If counter 2 is at or above 6, swap to routine 2.
  5497. -If counter 1 is at 0:
  5498. --Use Super Headbutt (Targets the party member with the highest LIFE). Set counter 1 to 10. Add 1 to counter 2.
  5499. -If counter 0 is at or above 3:
  5500. --Use Super Headbutt (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 2.
  5501. -Else:
  5502. --Attack. Add 1 to counters 0 and 2.
  5503.  
  5504. Routine 2:
  5505. -Take 2 actions per turn.
  5506. -If it is the first action in the turn and global counter 2 is at 0:
  5507. --Use Chaos Eye. Set global counter 2 to 10.
  5508. -If it is the second action in the turn and global counter 2 is at 10:
  5509. --Use Super Muscle Charge (Targets the user's side). Set global counter 2 to 20.
  5510. -If it is the first action in the turn and global counter 2 is at 20:
  5511. --Use Super Burning Lariat. Set counter 0 to 1. Set global counter 2 to 30.
  5512. -If counter 0 is at or above 9 and it is the second action in the turn:
  5513. --Attack. Set counter 0 to 0.
  5514. -If counter 0 is at or above 8 and it is the first action in the turn:
  5515. --1/2 chance to use Super Jump Kick. Add 1 to counter 0.
  5516. --1/2 chance to attack. Add 1 to counter 0.
  5517. -If counter 0 is at 7, at least 1 party member is not inflicted with Skill Seal, and it is the second action in the turn:
  5518. --1/2 chance to attack. Add 1 to counter 0.
  5519. --1/2 chance to use Chaos Eye (Targets party members that are not inflicted with Skill Seal). Add 1 to counter 0.
  5520. -If counter 0 is at 7 and it is the second action in the turn:
  5521. --1/2 chance to attack. Add 1 to counter 0.
  5522. --1/2 chance to use Super Headbutt. Add 1 to counter 0.
  5523. -If counter 0 is at 6 and it is the first action in the turn:
  5524. --1/2 chance to attack. Add 1 to counter 0.
  5525. --1/2 chance to use Super Jump Kick. Add 1 to counter 0.
  5526. -If counter 0 is at 5 and it is the second action in the turn:
  5527. --Attack (Targets a random party member). Add 1 to counter 0.
  5528. -If counter 0 is at 4, counter 1 is at 10, and it is the first action in the turn:
  5529. --Use Super Burning Lariat. Add 1 to counter 0. Set counter 1 to 0.
  5530. -If counter 0 is at 3 and it is the first action in the turn:
  5531. --1/2 chance to use Super Jump Kick. Add 1 to counter 0.
  5532. --1/2 chance to attack. Add 1 to counter 0.
  5533. -If counter 0 is at 2 and it is the second action in the turn:
  5534. --1/2 chance to use Super Muscle Charge (Targets the user's side). Add 1 to counter 0. Set counter 1 to 10.
  5535. --1/2 chance to attack. Add 1 to counter 0.
  5536. -If counter 0 is at 2 and it is the first action in the turn:
  5537. --1/2 chance to use Super Jump Kick (Targets the party member with the highest LIFE). Add 1 to counter 0.
  5538. --1/2 chance to attack. Add 1 to counter 0.
  5539. -If counter 0 is at 1 and it is the second action in the turn:
  5540. --1/2 chance to use Super Headbutt. Add 1 to counter 0.
  5541. --1/2 chance to attack. Add 1 to counter 0.
  5542. -If counter 0 is at 0 and it is the first action in the turn:
  5543. --1/2 chance to attack. Add 1 to counter 0.
  5544. --1/2 chance to use Super Jump Kick (Targets the party member with the highest LIFE). Add 1 to counter 0.
  5545. -Else:
  5546. --Attack. Add 1 to counters 0 and 1.
  5547.  
  5548. Megalip Dragon (LV. 64/59)
  5549. ==========================
  5550. -Take 2 actions per turn.
  5551. -If counter 0 is at 9 and it is the second action in the turn:
  5552. --Use Bite and Chew. Set counter 0 to 0.
  5553. -If counter 0 is at 8 and it is the first action in the turn:
  5554. --Attack. Add 1 to counter 0.
  5555. -If counter 0 is at 7, it is the second action in the turn, and at least 1 party member is not inflicted with Freeze:
  5556. --2/3 chance to use Numbing Snowball (Targets party members that are not inflicted with Freeze). Add 1 to counter 0.
  5557. --1/3 chance to attack. Add 1 to counter 0.
  5558. -If counter 0 is at 7 and it is the second action in the turn:
  5559. --Use Bite and Chew. Add 1 to counter 0.
  5560. -If counter 0 is at 6 and it is the first action in the turn:
  5561. --Attack. Add 1 to counter 0.
  5562. -If counter 0 is at 5 and it is the second action in the turn:
  5563. --Attack. Add 1 to counter 0.
  5564. -If counter 0 is at 4 and it is the first action in the turn:
  5565. --Use Snap. Add 1 to counter 0.
  5566. -If counter 0 is at 3 and it is the second action in the turn:
  5567. --Use Gather Power (Targets the user's side). Add 1 to counter 0.
  5568. -If counter 0 is at 2, it is the first action in the turn, and at least 1 party member is not inflicted with Freeze:
  5569. --1/2 chance to use Numbing Snowball. Add 1 to counter 0.
  5570. --1/2 chance to attack. Add 1 to counter 0.
  5571. -If counter 0 is at 2 and it is the first action in the turn:
  5572. --Attack. Add 1 to counter 0.
  5573. -If counter 0 is at 1, it is the second action in the turn, and at least 1 party member is not inflicted with Freeze:
  5574. --2/3 chance to use Numbing Snowball. Add 1 to counter 0.
  5575. --1/3 chance to attack. Add 1 to counter 0.
  5576. -If counter 0 is at 1 and it is the second action in the turn:
  5577. --Use Bite and Chew. Add 1 to counter 0.
  5578. -If counter 0 is at 0 and it is the first action in the turn:
  5579. --Attack. Add 1 to counter 0.
  5580. -Else:
  5581. --Attack. Add 1 to counter 0.
  5582.  
  5583. Dragonfly (LV. 19/16)
  5584. =====================
  5585. -Take 2 actions per turn.
  5586. -If counter 2 is at 0:
  5587. --1/2 chance to use Intense Radiation. Set counter 2 to 10.
  5588. --1/2 chance to use Sleepy Buzz. Set counter 2 to 10.
  5589. -If counter 2 is at 10:
  5590. --Use Intense Radiation (Targets party members that are not inflicted with Blind). Set counters 0 and 1 to 0. Set counter 2 to 20.
  5591. -If counter 2 is at 20 and global counter 0 is at or above 1:
  5592. --1/2 chance to use Intense Radiation (Targets party members that are not inflicted with Blind). Set counter 2 to 30.
  5593. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  5594. -If counter 2 is at 30 and self is at or below 25% LIFE:
  5595. --1/2 chance to use Intense Radiation (Targets party members that are not inflicted with Blind). Add 1 to counters 0 and 1. Set counter 2 to 40. Set global counter 0 to 0.
  5596. --1/2 chance to use Sleepy Buzz. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  5597. -If counter 1 is at or above 4:
  5598. --1/2 chance to use Intense Radiation (Targets party members that are not inflicted with Blind). Add 1 to counter 0. Set counter 1 to 0.
  5599. --1/2 chance to use Melee attack 2. Add 1 to counter 0. Set counter 1 to 0.
  5600. -If counter 0 is at or above 2:
  5601. --1/2 chance to use Buzzwing (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  5602. --1/2 chance to use Melee attack 1. Set counter 0 to 0. Add 1 to counter 1. Add 1 to global counter 0.
  5603. -Else:
  5604. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  5605. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1. Add 1 to global counter 0.
  5606.  
  5607. Freeze Dragon (LV. 50/46)
  5608. =========================
  5609. -Take 2 actions per turn.
  5610. -If counter 0 is at or above 9 and it is the second action in the turn:
  5611. --Attack. Set counters 0, 1, and 2 to 0.
  5612. -If counter 0 is at or above 8 and it is the first action in the turn:
  5613. --Use Freeze Breath. Add 1 to counter 0.
  5614. -If counter 0 is at 7 and it is the second action in the turn:
  5615. --Use Gather Power (Targets the user's side). Add 1 to counter 0.
  5616. -If counter 0 is at or above 6 and it is the first action in the turn:
  5617. --1/2 chance to use Sonic Boom. Add 1 to counter 0.
  5618. --1/2 chance to attack. Add 1 to counter 0.
  5619. -If counter 0 is at 5, self does not have a Fire Resist buff, and it is the second action in the turn:
  5620. --Use Rainbow Shield (Targets self). Add 1 to counter 0.
  5621. -If counter 0 is at or above 5 and it is the second action in the turn:
  5622. --Attack. Add 1 to counter 0.
  5623. -If counter 0 is at or above 4 and it is the first action in the turn:
  5624. --1/2 chance to use Sonic Boom. Add 1 to counter 0.
  5625. --1/2 chance to attack. Add 1 to counter 0.
  5626. -If counter 0 is at 3 and it is the second action in the turn:
  5627. --Attack. Add 1 to counter 0.
  5628. -If counter 0 is at or above 2 and it is the first action in the turn:
  5629. --Use Freeze Breath. Add 1 to counter 0.
  5630. -If counter 0 is at 1 and it is the second action in the turn:
  5631. --Use Gather Power (Targets the user's side). Add 1 to counter 0.
  5632. -If counter 0 is at 0, self does not have a Fire Resist buff, and it is the first action in the turn:
  5633. --Use Rainbow Shield (Targets self). Add 1 to counter 0.
  5634. -If counter 0 is at 0 and it is the first action in the turn:
  5635. --Attack. Add 1 to counter 0.
  5636. -Else:
  5637. --Attack. Add 1 to counter 0.
  5638.  
  5639. Killhorn Dragon (LV. 54/50)
  5640. ===========================
  5641. Routine 1:
  5642. -Take 2 actions per turn.
  5643. -If counter 0 is at 9 and it is the second action in the turn:
  5644. --Attack. Set counter 0 to 0.
  5645. -If counter 0 is at 8 and it is the first action in the turn:
  5646. --Attack. Add 1 to counter 0.
  5647. -If counter 0 is at 7 and it is the second action in the turn:
  5648. --Attack. Add 1 to counter 0.
  5649. -If counter 0 is at 6 and it is the first action in the turn:
  5650. --Attack. Add 1 to counter 0.
  5651. -If counter 0 is at 5 and it is the second action in the turn:
  5652. --Attack. Add 1 to counter 0.
  5653. -If counter 0 is at 4 and at least 1 party member is not inflicted with Bleed:
  5654. --Use Great Horn (Targets party members not inflicted with Bleed). Add 1 to counter 0.
  5655. -If counter 0 is at 4 and it is the first action in the turn:
  5656. --Use Great Horn. Add 1 to counter 0.
  5657. -If counter 0 is at 3 and it is the second action in the turn:
  5658. --Use Charging Stance (Targets the user's side). Add 1 to counter 0.
  5659. -If counter 0 is at 2 and it is the first action in the turn:
  5660. --Use Sealing Cry. Add 1 to counter 0.
  5661. -If counter 0 is at 1 and it is the second action in the turn:
  5662. --Attack. Add 1 to counter 0.
  5663. -If counter 0 is at 0 and it is the first action in the turn:
  5664. --Attack. Add 1 to counter 0.
  5665. -Else:
  5666. --Attack. Add 1 to counter 0.
  5667.  
  5668. Routine 2:
  5669. -Take 2 actions per turn.
  5670. -If counter 0 is at or above 3, swap to routine 1.
  5671. -Attack. Add 1 to counter 0.
  5672. -Attack. Add 1 to counter 0.
  5673.  
  5674. Illusory Monarch (LV. 98/93)
  5675. ============================
  5676. Routine 1:
  5677. -Take 2 actions per turn.
  5678. -If self is at or below 65% LIFE, swap to routine 2.
  5679. -If counter 2 is at or above 6:
  5680. --Use Nihil Gaze. Add 1 to counters 0 and 1. Set counter 2 to 0.
  5681. -If counter 1 is at or above 5:
  5682. --Use True Dragon Breath. Add 1 to counters 0 and 2. Set counter 1 to 0.
  5683. -If counter 0 is at 3 or above:
  5684. --Use Black Blaze. Set counter 0 to 0. Add 1 to counters 1 and 2.
  5685. -Else:
  5686. --1/2 chance to use a Fang attack. Add 1 to counters 0, 1, and 2.
  5687. --1/2 chance to use a Ranged attack. Add 1 to counters 0, 1, and 2.
  5688.  
  5689. Routine 2:
  5690. -Take 2 actions per turn.
  5691. -If global counter 2 is at or above 8, swap to routine 3.
  5692. -If global counter 2 is at 20:
  5693. --Use Nihil Gaze. Set global counter 2 to 0.
  5694. -If global counter 1 is at 0:
  5695. --Use Killer React (Targets the user's side). Set global counter 1 to 10.
  5696. -If global counter 1 is at 10:
  5697. --Use True Dragon Fang. Set global counter 1 to 20.
  5698. -If global counter 1 is at 20:
  5699. --Use Nihil Gaze. Set global counter 1 to 30.
  5700. -If the extra turn phase is active and it is the first action in the turn:
  5701. --Use Repair (Targets the user's side).
  5702. -If the extra turn phase is active and it is the second action in the turn:
  5703. --Use a Fang attack.
  5704. -If counter 2 is at or above 7:
  5705. --Use Nihil Gaze. Add 1 to counters 0 and 1. Set counter 2 to 0. Add 1 to global counters 0 and 2.
  5706. -If global counter 0 is at or above 6:
  5707. --Use Black Blaze. Add 1 to counters 0, 1, and 2. Set global counter 0 to 0. Add 1 to global counter 2.
  5708. -If counter 1 is at 4 or above:
  5709. --Use True Dragon Breath. Add 1 to counters 0 and 2. Set counter 1 to 0. Add 1 to global counters 0 and 2.
  5710. -If counter 0 is at 3 or above:
  5711. --Use True Dragon Fang. Set counter 0 to 0. Add 1 to counters 1 and 2. Add 1 to global counters 0 and 2.
  5712. -Else:
  5713. --1/2 chance to use a Ranged attack. Add 1 to counters 0, 1, and 2. Add 1 to global counters 0 and 2.
  5714. --1/2 chance to use a Fang attack. Add 1 to counters 0, 1, and 2. Add 1 to global counters 0 and 2.
  5715.  
  5716. Routine 3:
  5717. -Take 1 action per turn.
  5718. -If counter 0 is at or above 10, swap to routine 2.
  5719. -If the extra turn phase is active and it is the first action in the turn:
  5720. --Use Repair (Targets the user's side). Set counter 0 to 10. Set global counter 2 to 20.
  5721. -If counter 0 is at or above 2:
  5722. --Use True Dragon Meteor 2020. Set counter 1 to 10. Set global counter 2 to 20.
  5723. -If counter 0 is at 1 or above:
  5724. --Use Ruinous Omen (Targets the user's side). Add 1 to counter 0. Set global counter 2 to 20.
  5725. -Else:
  5726. --Use Ruinous Omen (Targets the user's side). Add 1 to counter 0. Set global counter 2 to 20.
  5727.  
  5728. Tiamat (LV. 40/36)
  5729. ==================
  5730. Routine 1:
  5731. -Take 1 action per turn.
  5732. -If counter 0 is at or above 3:
  5733. --Use Crystal Breath. Add 1 to counter 0.
  5734. -If counter 0 is at 2:
  5735. --Use Typhoon Howl. Add 1 to counter 0.
  5736. -If counter 0 is at 1:
  5737. --Use a Melee attack. Add 1 to counter 0.
  5738. -Else:
  5739. --Use a Claw attack. Add 1 to counter 0.
  5740.  
  5741. Routine 2:
  5742. -Take 1 action per turn.
  5743. -If counter 0 is at or above 3:
  5744. --Use Crystal Breath. Add 1 to counter 0.
  5745. -If counter 0 is at 2:
  5746. --Use its time to take a deep breath (Targets the user's side). Add 1 to counter 0.
  5747. -Else:
  5748. --Use a Claw attack. Add 1 to counter 0.
  5749.  
  5750. Wounded Tiamat (LV. 17/14)
  5751. ==========================
  5752. Routine 1:
  5753. -Take 2 actions per turn.
  5754. -If self is at or below 70% LIFE, swap to routine 2.
  5755. -If global counter 0 is at 9 and it is the second action in the turn:
  5756. --1/2 chance to use a Claw attack. Set global counter 0 to 0.
  5757. --1/2 chance to use a Melee attack. Set global counter 0 to 0.
  5758. -If global counter 0 is at 8, at least 1 party member is not inflicted with Paralysis, and it is the first action in the turn:
  5759. --Use Typhoon Howl. Add 1 to global counter 0.
  5760. -If global counter 0 is at 8 and it is the first action in the turn:
  5761. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  5762. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5763. -If global counter 0 is at 7 and it is the second action in the turn:
  5764. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  5765. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5766. -If global counter 0 is at 6 and it is the first action in the turn:
  5767. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5768. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5769. -If global counter 0 is at 5 and it is the second action in the turn:
  5770. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5771. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5772. -If global counter 0 is at 4, it is the first action in the turn, and at least 1 party member is not inflicted with Paralysis:
  5773. --Use Typhoon Howl. Add 1 to global counter 0.
  5774. -If global counter 0 is at 4 and it is the first action in the turn:
  5775. --Use a Claw attack. Add 1 to global counter 0.
  5776. -If global counter 0 is at 3 and it is the second action in the turn:
  5777. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5778. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5779. -If global counter 0 is at 2 and it is the first action in the turn:
  5780. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5781. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5782. -If global counter 0 is at 1 and it is the second action in the turn:
  5783. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  5784. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5785. -If global counter 0 is at 0 and it is the first action in the turn:
  5786. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5787. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5788. -Else:
  5789. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5790. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5791.  
  5792. Routine 2:
  5793. -Take 2 actions per turn.
  5794. -If self is at or below 30% LIFE, swap to routine 2.
  5795. -If counter 2 is at 0 and it is the second action in the turn:
  5796. --Use its time to take a deep breath (Targets the user's side). Set counter 2 to 10. Set global counter 0 to 8. Set global counter 1 to 10.
  5797. -If counter 2 is at 10, global counter 1 is at 10, and it is the first action in the turn:
  5798. --Use Crystal Breath. Set counter 2 to 20. Set global counter 0 to 9. Set global counter 1 to 0.
  5799. -If global counter 0 is at 8, global counter 1 is at 10, and it is the first action in the turn:
  5800. --Use Crystal Breath. Set global counter 0 to 9.
  5801. -If global counter 0 is at 9 and it is the second action in the turn:
  5802. --1/2 chance to use a Claw attack. Set global counter 0 to 0.
  5803. --1/2 chance to use a Melee attack. Set global counter 0 to 0.
  5804. -If global counter 0 is at 8, global counter 1 is at 10, and it is the first action in the turn:
  5805. --Use Crystal Breath. Add 1 to global counter 0.
  5806. -If global counter 0 is at 7 and it is the second action in the turn:
  5807. --Use its time to take a deep breath (Targets the user's side). Add 1 to global counter 0. Set global counter 1 to 10.
  5808. -If global counter 0 is at 6, it is the first action in the turn, and at least 1 party member is not inflicted with Paralysis:
  5809. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  5810. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5811. -If global counter 0 is at 6 and it is the first action in the turn:
  5812. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5813. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5814. -If global counter 0 is at 5, it is the second action in the turn, and at least 1 party member is not inflicted with Paralysis:
  5815. --1/2 chance to use Typhoon Howl. Add 1 to global counter 0.
  5816. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5817. -If global counter 0 is at 5 and it is the second action in the turn:
  5818. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5819. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5820. -If global counter 0 is at 4 and it is the first action in the turn:
  5821. --Use a Claw attack. Add 1 to global counter 0.
  5822. -If global counter 0 is at 3 and it is the second action in the turn:
  5823. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  5824. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5825. -If global counter 0 is at 2 and it is the first action in the turn:
  5826. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5827. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5828. -If global counter 0 is at 1 and it is the second action in the turn:
  5829. --1/2 chance to use Dragon Fang (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  5830. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5831. -If global counter 0 is at 1 and it is the second action in the turn:
  5832. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5833. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5834. -If global counter 0 is at 0 and it is the first action in the turn:
  5835. --1/3 chance to use Dragon Fang. Add 1 to global counter 0.
  5836. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  5837. --1/3 chance to use a Melee attack. Add 1 to global counter 0.
  5838. -Else:
  5839. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5840. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5841.  
  5842. Routine 3:
  5843. -Take 2 actions per turn.
  5844. -If counter 1 is at 10, counter 0 is at 0, and it is the first action in the turn:
  5845. --Use Crystal Breath. Set counter 0 to 10. Set global counter 0 to 9. Set global counter 1 to 0.
  5846. -If counter 1 is at 0 and it is the first action in the turn:
  5847. --Use Dimensional Tear. Set counter 1 to 10. Set global counter 0 to 5.
  5848. -If global counter 0 is at 13 and it is the second action in the turn:
  5849. --1/2 chance to use a Claw attack. Set global counter 0 to 0.
  5850. --1/2 chance to use a Melee attack. Set global counter 0 to 0.
  5851. -If global counter 0 is at 18 and it is the first action in the turn:
  5852. --Use Crystal Breath. Add 1 to global counter 0.
  5853. -If global counter 0 is at 17 and it is the second action in the turn:
  5854. --Use its time to take a deep breath (Targets the user's side). Add 1 to global counter 0.
  5855. -If global counter 0 is at 16 and it is the first action in the turn:
  5856. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5857. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5858. -If global counter 0 is at 15 and it is the second action in the turn:
  5859. --Use Dimensional Tear. Add 1 to global counter 0.
  5860. -If global counter 0 is at 14 and it is the first action in the turn:
  5861. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5862. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  5863. -If global counter 0 is at 13, at least 1 party member is not inflicted with Paralysis, and it is the second action in the turn:
  5864. --Use Typhoon Howl. Add 1 to global counter 0.
  5865. -If global counter 0 is at 13 and it is the second action in the turn:
  5866. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5867. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5868. -If global counter 0 is at 12 and it is the first action in the turn:
  5869. --Use Crystal Breath. Add 1 to global counter 0.
  5870. -If global counter 0 is at 11 and it is the second action in the turn:
  5871. --Use its time to take a deep breath (Targets the user's side). Add 1 to global counter 0.
  5872. -If global counter 0 is at 10, it is the first action in the turn, and at least 1 party member is not inflicted with Paralysis:
  5873. --1/2 chance to use Dragon Fang (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  5874. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5875. -If global counter 0 is at 10 and it is the first action in the turn:
  5876. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5877. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5878. -If global counter 0 is at 9 and it is the second action in the turn:
  5879. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5880. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5881. -If global counter 0 is at 8 and it is the first action in the turn:
  5882. --Use Crystal Breath. Add 1 to global counter 0.
  5883. -If global counter 0 is at 7 and it is the second action in the turn:
  5884. --Use its time to take a deep breath (Targets the user's side). Add 1 to global counter 0.
  5885. -If global counter 0 is at 6, it is the first action in the turn, and at least 1 party member is not inflicted with Paralysis:
  5886. --1/2 chance to use a Claw attack (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  5887. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5888. -If global counter 0 is at 6 and it is the first action in the turn:
  5889. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  5890. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5891. -If global counter 0 is at 5, it is the second action in the turn, and at least 1 party member is not inflicted with Paralysis:
  5892. --1/2 chance to use Typhoon Howl. Add 1 to global counter 0.
  5893. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5894. -If global counter 0 is at 5 and it is the second action in the turn:
  5895. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5896. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5897. -If global counter 0 is at 4 and it is the first action in the turn:
  5898. --3/4 chance to use Dimensional Tear. Add 1 to global counter 0.
  5899. --1/4 chance to use a Claw attack. Add 1 to global counter 0.
  5900. -If global counter 0 is at 3 and it is the second action in the turn:
  5901. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5902. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5903. -If global counter 0 is at 2, it is the first action in the turn, and at least 1 party member is not inflicted with Paralysis:
  5904. --Use Dragon Fang (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  5905. -If global counter 0 is at 2 and it is the first action in the turn:
  5906. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5907. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5908. -If global counter 0 is at 1, it is the second action in the turn, and at least 1 party member is not inflicted with Paralysis:
  5909. --1/2 chance to use Dimensional Tear (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  5910. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5911. -If global counter 0 is at 1 and it is the second action in the turn:
  5912. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  5913. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  5914. -If global counter 0 is at 0 and it is the first action in the turn:
  5915. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  5916. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  5917. -If it is the first action in the turn:
  5918. --1/2 chance to use a Claw attack. Set global counter 0 to 1.
  5919. --1/2 chance to use a Melee attack. Set global counter 0 to 1.
  5920. -If it is the second action in the turn:
  5921. --1/2 chance to use a Claw attack. Set global counter 0 to 2.
  5922. --1/2 chance to use a Melee attack. Set global counter 0 to 2.
  5923.  
  5924. Oceanus (LV. 27/24)
  5925. ===================
  5926. Routine 1:
  5927. -Take 2 actions per turn.
  5928. -If self is at or below 70% LIFE, swap to routine 2.
  5929. -If global counter 0 is at 9, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  5930. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Set global counter 0 to 0.
  5931. --1/3 chance to use a Ranged attack (Targets the party member with the lowest level). Set global counter 0 to 0.
  5932. -If global counter 0 is at 9 and it is the second action in the turn:
  5933. --Use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  5934. -If global counter 0 is at 8, at least 1 party member does not have a DEF debuff, and it is the first action in the turn:
  5935. --2/3 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  5936. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  5937. -If global counter 0 is at 8 and it is the first action in the turn:
  5938. --Use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  5939. -If global counter 0 is at 7 and it is the second action in the turn:
  5940. --1/2 chance to use Chew. Add 1 to global counter 0.
  5941. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  5942. -If global counter 0 is at 6, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  5943. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  5944. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  5945. -If global counter 0 is at 6 and it is the first action in the turn:
  5946. --Use a Fang attack. Add 1 to global counter 0.
  5947. -If global counter 0 is at 5 and it is the second action in the turn:
  5948. --Use a Fang attack. Add 1 to global counter 0.
  5949. -If global counter 0 is at 4, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  5950. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  5951. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  5952. -If global counter 0 is at 4 and it is the first action in the turn:
  5953. --Use a Fang attack. Add 1 to global counter 0.
  5954. -If global counter 0 is at 3, at least 1 party member does not have a DEF debuff, and it is the second action in the turn:
  5955. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  5956. --2/3 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  5957. -If global counter 0 is at 3 and it is the second action in the turn:
  5958. --Use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  5959. -If global counter 0 is at 2 and it is the first action in the turn:
  5960. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  5961. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  5962. -If global counter 0 is at 1, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  5963. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  5964. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  5965. -If global counter 0 is at 1 and it is the second action in the turn:
  5966. --Use a Fang attack. Add 1 to global counter 0.
  5967. -If global counter 0 is at 0, at least 1 party member has a DEF debuff, and it is the first action in the turn:
  5968. --Use a Fang attack. Add 1 to global counter 0.
  5969. -If global counter 0 is at 0 and it is the first action in the turn:
  5970. --1/2 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  5971. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  5972. -Else:
  5973. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  5974. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  5975.  
  5976. Routine 2:
  5977. -Take 2 actions per turn.
  5978. -If self is at or below 40% LIFE, swap to routine 3.
  5979. -If global counter 1 is at 0 and it is the second action in the turn:
  5980. --Use Rain Prayer. Set global counter 1 to 10.
  5981. -If global counter 1 is at 10 and it is the first action in the turn:
  5982. --Use Acid Rain. Set counter 0 to 1. Set global counter 0 to 1. Set global counter 1 to 20.
  5983. -If global counter 0 is at 9 and it is the second action in the turn:
  5984. --Use a Fang attack (Targets the party member with the lowest level). Set global counter 0 to 0.
  5985. -If global counter 2 is at 10, global counter 0 is at 8, and it is the first action in the turn:
  5986. --Use Acid Rain. Add 1 to global counter 0. Set global counter 2 to 0.
  5987. -If global counter 0 is at 8, at least 1 party member does not have a DEF debuff, and it is the first action in the turn:
  5988. --Use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  5989. -If global counter 0 is at 8 and it is the first action in the turn:
  5990. --Use a Fang attack. Add 1 to global counter 0.
  5991. -If global counter 0 is at 7 and it is the second action in the turn:
  5992. --Use Rain Prayer. Add 1 to global counter 0. Add 10 to global counter 2.
  5993. -If global counter 0 is at 6, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  5994. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  5995. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  5996. -If global counter 0 is at 6 and it is the first action in the turn:
  5997. --Use a Fang attack. Add 1 to global counter 0.
  5998. -If global counter 0 is at 5 and it is the second action in the turn:
  5999. --Use a Fang attack. Add 1 to global counter 0.
  6000. -If global counter 0 is at 4, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  6001. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  6002. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  6003. -If global counter 0 is at 4 and it is the first action in the turn:
  6004. --Use a Fang attack. Add 1 to global counter 0.
  6005. -If global counter 0 is at 3, at least 1 party member does not have a DEF debuff, and it is the second action in the turn:
  6006. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  6007. --2/3 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  6008. -If global counter 0 is at 3 and it is the second action in the turn:
  6009. --Use a Fang attack. Add 1 to global counter 0.
  6010. -If global counter 0 is at 2 and it is the first action in the turn:
  6011. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  6012. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6013. -If global counter 0 is at 1, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  6014. --Use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  6015. -If global counter 0 is at 1 and it is the second action in the turn:
  6016. --Use a Fang attack. Add 1 to global counter 0.
  6017. -If global counter 0 is at 0, at least 1 party member does not have a DEF debuff, and it is the first action in the turn:
  6018. --2/3 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  6019. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  6020. -If global counter 0 is at 0 and it is the first action in the turn:
  6021. --Use a Fang attack. Add 1 to global counter 0.
  6022. -Else:
  6023. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6024. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  6025.  
  6026. Routine 3:
  6027. -Take 2 actions per turn.
  6028. -If global counter 1 is at 0, any party member is inflicted with Poison, and it is the second action in the turn:
  6029. --Use Venomous Ball (Targets party members that are inflicted with Poison). Set global counter 1 to 10.
  6030. -If global counter 1 is at 10 and it is the first action in the turn:
  6031. --Use Chew (Targets the party member with the lowest level). Set counter 0 to 1. Set global counter 1 to 10.
  6032. -If global counter 0 is at 9 and it is the second action in the turn:
  6033. --Use a Fang attack. Set global counter 0 to 0.
  6034. -If global counter 0 is at 8, global counter 2 is at 10, and it is the first action in the turn:
  6035. --Use Acid Rain. Add 1 to global counter 0. Set global counter 2 to 0.
  6036. -If global counter 0 is at 8, at least 1 party member does not have a DEF debuff, and it is the first action in the turn:
  6037. --Use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  6038. -If global counter 0 is at 8 and it is the first action in the turn:
  6039. --Use a Fang attack. Add 1 to global counter 0.
  6040. -If global counter 0 is at 7, at least 1 party member does not have an MDF debuff, and it is the second action in the turn:
  6041. --Use Rain Prayer. Add 1 to global counter 0. Add 10 to global counter 2.
  6042. -If global counter 0 is at 7 and it is the second action in the turn:
  6043. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6044. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  6045. -If global counter 0 is at 6, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  6046. --1/2 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  6047. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6048. -If global counter 0 is at 6 and it is the first action in the turn:
  6049. --Use a Fang attack. Add 1 to global counter 0.
  6050. -If global counter 0 is at 5 and it is the second action in the turn:
  6051. --Use a Fang attack. Add 1 to global counter 0.
  6052. -If global counter 0 is at 4, counter 2 is at 10, and it is the first action in the turn:
  6053. --Use Acid Rain. Set counter 2 to 0. Add 1 to global counter 0.
  6054. -If global counter 0 is at 4, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  6055. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  6056. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  6057. -If global counter 0 is at 4 and it is the first action in the turn:
  6058. --Use a Fang attack. Add 1 to global counter 0.
  6059. -If global counter 0 is at 3, any party member is inflicted with Poison, and it is the second action in the turn:
  6060. --Use Venomous Ball (Targets party members that are inflicted with Poison). Add 1 to global counter 0.
  6061. -If global counter 0 is at 3, at least 1 party member does not have a DEF debuff, and it is the second action in the turn:
  6062. --1/4 chance to use Rain Prayer. Set counter 2 to 10. Add 1 to global counter 0.
  6063. --1/4 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  6064. --2/4 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  6065. -If global counter 0 is at 3 and it is the second action in the turn:
  6066. --Use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  6067. -If global counter 0 is at 2 and it is the first action in the turn:
  6068. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  6069. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6070. -If global counter 0 is at 1, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  6071. --3/4 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  6072. --1/4 chance to use a Fang attack. Add 1 to global counter 0.
  6073. -If global counter 0 is at 1 and it is the second action in the turn:
  6074. --Use a Fang attack. Add 1 to global counter 0.
  6075. -If global counter 0 is at 0, any party member is inflicted with Poison, and it is the second action in the turn:
  6076. --Use Venomous Ball (Targets party members that are inflicted with Poison). Add 1 to global counter 0.
  6077. -If global counter 0 is at 0, at least 1 party member does not have a DEF debuff, and it is the first action in the turn:
  6078. --2/3 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  6079. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  6080. -If global counter 0 is at 0 and it is the first action in the turn:
  6081. --Use a Fang attack. Add 1 to global counter 0.
  6082. -Else:
  6083. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6084. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  6085.  
  6086. Jabberwock (LV. 55/51)
  6087. ======================
  6088. Routine 1:
  6089. -Take 2 actions per turn.
  6090. -If the turn count is above 4 and it is the first action in the turn:
  6091. --Use vibrations to drop rocks from above (Targets a random party member). Add 1 to counters 0 and 1.
  6092. -If it is the second action in the turn and counter 0 is at or above 5:
  6093. --Use Firey Surprise (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  6094. -If it is the first action in the turn and the turn count is above 1:
  6095. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1.
  6096. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1.
  6097. -If if is the second action in the turn and the turn count is above 1:
  6098. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1.
  6099. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1.
  6100. -If global counter 0 is at 0, the turn count is at or below 1, and it is the second action in the turn:
  6101. --Use Hide in Shell (Targets the user's side). Add 1 to counters 0 and 1. Add 50 to global counter 0.
  6102. -If the turn count is at or below 3, global counter 2 is at 0, and it is the first action in the turn:
  6103. --Use vibrations to drop rocks from above. Add 1 to counters 0 and 1. Set global counter 2 to 50.
  6104.  
  6105. Routine 2:
  6106. -Take 1 action per turn.
  6107. -If counter 0 is at or above 10, swap to routine 3.
  6108. -Use Melee attack 1. Add 10 to counter 0.
  6109.  
  6110. Routine 3:
  6111. -Take 2 actions per turn.
  6112. -If global counter 0 is at 0:
  6113. --Use Melee attack 1. Set counter 1 to 0. Set global counter 0 to 50.
  6114. -If counter 2 is at or above 7 and it is the second action in the turn:
  6115. --Use Melee attack 1. Add 1 to global counter 1.
  6116. -If counter 2 is at or above 7, global counter 1 is at or above 1, and it is the first action in the turn:
  6117. --Use Melee attack 1. Add to counter 1. Set counter 2 to 0. Set global counter 1 to 0.
  6118. -If counter 1 is at or above 4 and it is the second action in the turn:
  6119. --Use Melee attack 1. Set counter 1 to 0. Add 1 to counter 2.
  6120. -If counter 0 is at or above 2:
  6121. --Use Melee attack 1. Set counter 0 to 0. Add 1 to counters 1 and 2.
  6122. -Else:
  6123. --1/3 chance to use Melee attack 1. Add 1 to counters 0, 1, and 2.
  6124. --2/3 chance to use Melee attack 2. Add 1 to counters 0, 1, and 2.
  6125.  
  6126. Insomnia (LV. 60/55)
  6127. ====================
  6128. Routine 1:
  6129. -Take 2 actions per turn.
  6130. -If self is at or below 70% LIFE and global counter 1 is at 0, swap to routine 2.
  6131. -If global counter 2 is at 11 and it is the second action in the turn:
  6132. --1/2 chance to use a Fang attack. Set global counters 1 and 2 to 0.
  6133. --1/2 chance to use a Claw attack. Set global counters 1 and 2 to 0.
  6134. -If global counter 2 is at 10, global counter 1 is at 20, and it is the first action in the turn:
  6135. --Use Death Sentence. Set global counter 1 to 0. Add 1 to global counter 2.
  6136. -If global counter 2 is at 9 and it is the second action in the turn:
  6137. --Use Death Omen (Targets the user's side). Set global counter 1 to 20. Add 1 to global counter 2.
  6138. -If global counter 2 is at 8 and it is the first action in the turn:
  6139. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6140. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6141. -If global counter 2 is at 7 and it is the second action in the turn:
  6142. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6143. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6144. -If global counter 2 is at 6 and it is the first action in the turn:
  6145. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  6146. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6147. -If global counter 2 is at 5 and it is the second action in the turn:
  6148. --1/2 chance to use a Fang attack. Add 1 to global counter 2. Set counter 3 to 0.
  6149. --1/2 chance to use a Claw attack. Add 1 to global counter 2. Set counter 3 to 0.
  6150. -If global counter 2 is at 4, global counter 1 is at 10, and it is the first action in the turn:
  6151. --Use Exhaust Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6152. -If global counter 2 is at 3 and it is the second action in the turn:
  6153. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  6154. -If global counter 2 is at 2, global counter 1 is at 20, and it is the first action in the turn:
  6155. --Use Death Sentence. Set global counter 1 to 0. Add 1 to global counter 2.
  6156. -If global counter 2 is at 1 and it is the second action in the turn:
  6157. --Use Death Omen (Targets the user's side). Set global counter 1 to 20. Add 1 to global counter 2.
  6158. -If global counter 2 is at 0 and it is the first action in the turn:
  6159. --1/3 chance to use Power Slash. Add 1 to global counter 2.
  6160. --1/3 chance to use a Fang attack. Add 1 to global counter 2.
  6161. --1/3 chance to use a Claw attack. Add 1 to global counter 2.
  6162. -Else:
  6163. --1/3 chance to use a Claw attack. Set global counter 1 to 0. Add 1 to global counter 2.
  6164. --1/3 chance to use a Fang attack. Set global counter 1 to 0. Add 1 to global counter 2.
  6165. --1/3 chance to use Power Slash. Set global counter 1 to 0. Add 1 to global counter 2.
  6166.  
  6167. Routine 2:
  6168. -Take 2 actions per turn.
  6169. -If self is at or below 40% LIFE and global counter 1 is at 0, swap to routine 3.
  6170. -If global counter 1 is at 20 and it is the first action in the turn:
  6171. --Use Death Sentence. Set global counter 1 to 0. Add 1 to global counter 2.
  6172. -If global counter 2 is at 10, global counter 1 is at 10, and it is the first action in the turn:
  6173. --1/2 chance to use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6174. --1/2 chance to use Exhaust Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6175. -If global counter 0 is at 0, and it is the first action in the turn:
  6176. --1/2 chance to use a Fang attack. Set global counter 0 to 10.
  6177. --1/2 chance to use a Claw attack. Set global counter 0 to 10.
  6178. -If global counter 0 is at 10 and it is the second action in the turn:
  6179. --Use its time to take a deep breath. Set global counter 0 to 20. Set global counter 1 to 10.
  6180. -If global counter 0 is at 20 and it is the first action in the turn:
  6181. --Use Ebon Breath. Set global counter 0 to 30. Set global counter 1 to 0.
  6182. -If global counter 0 is at 30 and it is the first action in the turn:
  6183. --1/2 chance to use a Fang attack. Set global counter 1 to 0.
  6184. --1/2 chance to use a Claw attack. Set global counter 1 to 0.
  6185. -If global counter 2 is at 15 and it is the second action in the turn:
  6186. --1/2 chance to use a Fang attack. Set global counters 1 and 2 to 0.
  6187. --1/2 chance to use a Claw attack. Set global counters 1 and 2 to 0.
  6188. -If global counter 2 is at 14, counter 1 is at 20, and it is the first action in the turn:
  6189. --Use Death Sentence. Set global counter 1 to 0. Add 1 to global counter 2.
  6190. -If global counter 2 is at 13 and it is the second action in the turn:
  6191. --Use Death Omen (Targets the user's side). Set global counter 1 to 20. Add 1 to global counter 2.
  6192. -If global counter 2 is at 12 and it is the first action in the turn:
  6193. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6194. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6195. -If global counter 2 is at 11 and it is the second action in the turn:
  6196. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6197. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6198. -If global counter 2 is at 10, global counter 1 is at 10, and it is the first action in the turn:
  6199. --1/2 chance to use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6200. --1/2 chance to use Exhaust Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6201. -If global counter 2 is at 9 and it is the second action in the turn:
  6202. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  6203. -If global counter 2 is at 8 and it is the first action in the turn:
  6204. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6205. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  6206. -If global counter 2 is at 7 and it is the second action in the turn:
  6207. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6208. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6209. -If global counter 2 is at 6 and it is the first action in the turn:
  6210. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  6211. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6212. -If global counter 2 is at 5 and it is the second action in the turn:
  6213. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6214. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6215. -If global counter 2 is at 4, global counter 1 is at 10, and it is the first action in the turn:
  6216. --Use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6217. -If global counter 2 is at 3 and it is the second action in the turn:
  6218. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  6219. -If global counter 2 is at 2 and it is the first action in the turn:
  6220. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6221. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6222. -If global counter 2 is at 1 and it is the second action in the turn:
  6223. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  6224. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6225. -If global counter 2 is at 0 and it is the first action in the turn:
  6226. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6227. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6228. -Else:
  6229. --1/3 chance to use a Claw attack. Set global counter 1 to 0. Add 1 to global counter 2.
  6230. --1/3 chance to use a Fang attack. Set global counter 1 to 0. Add 1 to global counter 2.
  6231. --1/3 chance to use Power Slash. Set global counter 1 to 0. Add 1 to global counter 2.
  6232.  
  6233. Routine 3:
  6234. -Take 2 actions per turn.
  6235. -If global counter 1 is at 20 and it is the first action in the turn:
  6236. --Use Death Sentence. Set global counter 1 to 0. Add 1 to global counter 2.
  6237. -If global counter 2 is at 10, global counter 1 is at 10, and it is the first action in the turn:
  6238. --1/2 chance to use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6239. --1/2 chance to use Exhaust Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6240. -If counter 1 is at 50 and it is the second action in the turn:
  6241. --Use its fangs to devour lifeforce (Targets the user's side). Set counter 0 to 1. Set counter 1 to 100. Set counter 2 to 0. Set global counter 2 to 0.
  6242. -If counter 1 is at 50 and it is the first action in the turn:
  6243. --Use its fangs to devour lifeforce (Targets the user's side). Set counter 0 to 1. Set counter 1 to 100. Set counter 2 to 0. Set global counter 2 to 1.
  6244. -If counter 1 is at 0:
  6245. --Use its crystal to gather dark energies (Targets the user's side). Set counter 0 to 1. Set counter 1 to 50. Set counter 2 to 0. Set global counter 2 to 0.
  6246. -If global counter 2 is at 17 and it is the second action in the turn:
  6247. --1/2 chance to use a Fang attack. Set global counters 1 and 2 to 0.
  6248. --1/2 chance to use a Claw attack. Set global counters 1 and 2 to 0.
  6249. -If global counter 2 is at 16, global counter 1 is at 10, and it is the first action in the turn:
  6250. --Use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6251. -If global counter 2 is at 15 and it is the second action in the turn:
  6252. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  6253. -If global counter 2 is at 14 and it is the first action in the turn:
  6254. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  6255. --1/2 chance to use Snap. Add 1 to global counter 2.
  6256. -If global counter 2 is at 13 and it is the second action in the turn:
  6257. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6258. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6259. -If global counter 2 is at 12 and it is the first action in the turn:
  6260. --Use Snap (Targets the party member with the highest LIFE). Add 1 to global counter 2.
  6261. -If global counter 2 is at 11 and it is the second action in the turn:
  6262. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6263. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6264. -If global counter 2 is at 10, global counter 1 is at 10, and it is the first action in the turn:
  6265. --Use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6266. -If global counter 2 is at 9 and it is the second action in the turn:
  6267. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  6268. -If global counter 2 is at 8 and it is the first action in the turn:
  6269. --2/3 chance to use Snap. Add 1 to global counter 2.
  6270. --1/3 chance to use a Claw attack. Add 1 to global counter 2.
  6271. -If global counter 2 is at 7 and it is the second action in the turn:
  6272. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6273. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6274. -If global counter 2 is at 6 and it is the first action in the turn:
  6275. --Use Power Slash. Add 1 to global counter 2.
  6276. -If global counter 2 is at 5 and it is the second action in the turn:
  6277. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6278. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6279. -If global counter 2 is at 4, global counter 1 is at 10, and it is the first action in the turn:
  6280. --Use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  6281. -If global counter 2 is at 4 and it is the first action in the turn:
  6282. --2/3 chance to use a Claw attack. Add 1 to global counter 2.
  6283. --1/3 chance to use Power Slash. Add 1 to global counter 2.
  6284. -If global counter 2 is at 3 and it is the second action in the turn:
  6285. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  6286. -If global counter 2 is at 2 and it is the first action in the turn:
  6287. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6288. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6289. -If global counter 2 is at 1 and it is the second action in the turn:
  6290. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  6291. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6292. -If global counter 2 is at 0 and it is the first action in the turn:
  6293. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  6294. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  6295. -Else:
  6296. --1/3 chance to use a Claw attack. Set global counter 1 to 0. Add 1 to global counter 2.
  6297. --1/3 chance to use a Fang attack. Set global counter 1 to 0. Add 1 to global counter 2.
  6298. --1/3 chance to use Power Slash. Set global counter 1 to 0. Add 1 to global counter 2.
  6299.  
  6300. Jigowatt (LV. 52/48)
  6301. ====================
  6302. Routine 1:
  6303. -Take 2 actions per turn.
  6304. -If counter 2 is at or above 5, swap to routine 3.
  6305. -If self is at or below 55% LIFE, swap to routine 2.
  6306. -If counter 2 is at 0 and it is the 2nd action in the turn:
  6307. --Use Clean Sweep.
  6308. -If counter 1 is at or above 3:
  6309. --Use Aimed Shot (Targets the party member with the highest LIFE). Add 1 to counters 0 and 2. Set counter 1 to 0.
  6310. -If counter 0 is at or above 2:
  6311. --Use Clean Sweep. Set counter 0 to 0. Add 1 to counters 1 and 2.
  6312. -Else:
  6313. --Use Ranged attack. Add 1 to counters 0, 1, and 2.
  6314.  
  6315. Routine 2:
  6316. -Take 2 actions per turn:
  6317. -If counter 2 is at or above 10, swap to routine 3.
  6318. -If global counter 1 is at 0:
  6319. --Use Discharge. Set global counter 1 to 10.
  6320. -If counter 2 is at or above 6 and global counter 2 is at 10:
  6321. --1/2 chance to use Aimed Shot (Targets the party member with the highest LIFE). Set global counter 2 to 0.
  6322. --1/2 chance to use Clean Sweep. Set global counter 2 to 0.
  6323. -If counter 2 is at or above 6 and global counter 2 is at 0:
  6324. --Use Discharge. Add 1 to counters 0 and 1. Set counter 2 to 10. Add 10 to global counter 2.
  6325. -If counter 1 is at or above 3:
  6326. --Use Aimed Shot (Targets the party member with the highest LIFE). Add 1 to counters 0 and 2. Set counter 1 to 0.
  6327. -If counter 0 is at or above 2:
  6328. --Use Clean Sweep. Set counter 0 to 0. Add 1 to counters 1 and 2.
  6329. -Else:
  6330. --1/3 chance to use a Ranged attack. Add 1 to counters 0, 1, and 2.
  6331. --2/3 chance to use a Melee attack. Add 1 to counters 0, 1, and 2.
  6332.  
  6333. Routine 3:
  6334. -Take 1 action per turn.
  6335. -If counter 0 is at or above 10 and self is at or above 56% LIFE, swap to routine 1.
  6336. -If counter 0 is at or above 10 and self is at or below 55% LIFE, swap to routine 2.
  6337. -If counter 0 is at or above 2:
  6338. --Use Railgun. Set counter 0 to 10. Set global counter 2 to 0.
  6339. -If counter 0 is at or above 1:
  6340. --Use Rail Charge (Targets the user's side). Add 1 to counter 0. Set global counter 2 to 0.
  6341. -Else:
  6342. --Use Rail Charge (Targets the user's side). Add 1 to counter 0. Set global counter 2 to 0.
  6343.  
  6344. Trinitro (LV. 43/39)
  6345. ====================
  6346. Routine 1:
  6347. -Take 2 actions per turn.
  6348. -If self is at or below 55% LIFE, swap to routine 2.
  6349. -If counter 1 is at or above 4 and it is the first action in the turn:
  6350. --Use Tail Blade. Add 1 to counter 0. Set counter 1 to 0.
  6351. -If counter 0 is at or above 3:
  6352. --Use Flame Bane. Set counter 0 to 0. Add 1 to counter 1.
  6353. -Else:
  6354. --1/3 chance to use a Fang attack. Add 1 to counters 0 and 1.
  6355. --2/3 chance to use a Ranged attack. Add 1 to counters 0 and 1.
  6356.  
  6357. Routine 2:
  6358. -Take 2 actions per turn:
  6359. -If global counter 2 is at 0:
  6360. --Use Turboregeneration (Targets the user's side). Set global counter 2 to 10.
  6361. -If global counter 2 is at 10 and it is the second action in the turn:
  6362. --Use Heat Charge (Targets the user's side). Set global counter 2 to 20.
  6363. -If global counter 2 is at 20:
  6364. --Use Heat Breath. Set global counter 2 to 30.
  6365. -If global counter 2 is at 30 and self is at or below 30% LIFE:
  6366. --Use Internal Flare (Targets the user's side). Add 1 to counters 0, 1, and 2. Add 1 to global counter 0. Set global counter 2 to 50.
  6367. -If counter 2 is at or above 14:
  6368. --Use Turboregeneration (Targets the user's side). Add 1 to counters 0 and 1. Set counter 2 to 0. Add 1 to global counter 0.
  6369. -If global counter 0 is at or above 7, global counter 1 is at 0, and it is the second action in the turn:
  6370. --Use Heat Charge (Targets the user's side). Add 1 to counters 0, 1, and 2. Add 1 to global counter 0. Set global counter 1 to 10.
  6371. -If global counter 0 is at or above 7 and global counter 1 is at 10:
  6372. --Use Heat Breath. Add 1 to counters 0, 1, and 2. Set global counters 0 and 1 to 0.
  6373. -If counter 1 is at or above 4 and it is the first action in the turn:
  6374. --Use Tail Blade. Add 1 to counters 0 and 2. Set counter 1 to 0. Add 1 to global counter 0.
  6375. -If counter 0 is at or above 3 and it is the first action in the turn:
  6376. --Use Flame Bane. Set counter 0 to 0. Add 1 to counters 1 and 2. Add 1 to global counter 0.
  6377. -Else:
  6378. --1/2 chance to use a Fang attack. Add 1 to counters 0, 1, and 2. Add 1 to global counter 0.
  6379. --1/2 chance to use a Ranged attack. Add 1 to counters 0, 1, and 2. Add 1 to global counter 0.
  6380.  
  6381. Sleepy Hollow (LV. 34/30)
  6382. =========================
  6383. Routine 1:
  6384. -Take 2 actions per turn.
  6385. -If self is at or below 70% LIFE, swap to routine 2.
  6386. -If global counter 0 is at 5, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  6387. --Use Poison Scales. Set global counter 0 to 0.
  6388. -If global counter 0 is at 5 and it is the second action in the turn:
  6389. --1/3 chance to use a Claw attack. Set global counter 0 to 0.
  6390. --1/3 chance to use a Melee attack. Set global counter 0 to 0.
  6391. --1/3 chance to use Double Claw. Set global counter 0 to 0.
  6392. -If global counter 0 is at 4, counter 0 is at 10, and it is the first action in the turn:
  6393. --Use Madness Flight. Set counter 0 to 0. Add 1 to global counter 0.
  6394. -If global counter 0 is at 4, global counter 1 is at 10, and it is the first action in the turn:
  6395. --1/2 chance to use Double Claw. Add 1 to global counter 0. Set global counter 1 to 0.
  6396. --1/2 chance to use a Melee attack. Add 1 to global counter 0. Set global counter 1 to 0.
  6397. -If global counter 0 is at 3, counter 0 is at 0, it is the second action in the turn, and self does not have an ATK buff:
  6398. --1/2 chance to use Gather Power (Targets the user's side). Set counter 0 to 10. Add 1 to global counter 0.
  6399. --1/2 chance to use Double Claw. Add 1 to global counter 0.
  6400. -If global counter 0 is at 3, counter 1 is at 0, and it is the second action in the turn:
  6401. --1/2 chance to use Poison Scales. Add 1 to global counter 0. Set global counter 1 to 10.
  6402. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6403. -If global counter 0 is at 2 and it is the first action in the turn:
  6404. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  6405. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6406. -If global counter 0 is at 1 and it is the second action in the turn:
  6407. --1/2 chance to use Double Claw. Add 1 to global counter 0.
  6408. --1/2 chance to use Poison Scales. Add 1 to global counter 0.
  6409. -If global counter 0 is at 0 and it is the first action in the turn:
  6410. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6411. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  6412. -Else:
  6413. --1/3 chance to use a Melee attack.
  6414. --1/3 chance to use a Claw attack.
  6415. --1/3 chance to use Double Claw.
  6416.  
  6417. Routine 2:
  6418. -Take 2 actions per turn.
  6419. -If the extra turn phase is active and it is the second action in the turn:
  6420. --9/10 chance to use Venomous Scratch. (Targets party members that are inflicted with Sleep).
  6421. --1/10 chance to use Venomous Scratch.
  6422. -If the extra turn phase is active and it is the first action in the turn:
  6423. --Use Sleeper Lock-on (Targets the user's side).
  6424. -If global counter 1 is at 10:
  6425. --Use Sleep Scales. Set global counter 0 to 0. Set global counter 1 to 20.
  6426. -If global counter 1 is at 0 and counter 2 is at 0:
  6427. --Use Sleep React (Targets the user's side). Set counter 2 to 10. Set global counter 1 to 10. Set global counter 0 to 0.
  6428. -If global counter 0 is at 13 and it is the second action in the turn:
  6429. --Use Sleep React (Targets the user's side). Set global counter 0 to 0.
  6430. -If global counter 0 is at 12 and it is the first action in the turn:
  6431. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6432. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  6433. -If global counter 0 is at 11 and it is the second action in the turn:
  6434. --2/3 chance to use Sleep Scales. Add 1 to global counter 0.
  6435. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  6436. -If global counter 0 is at 10 and it is the first action in the turn:
  6437. --2/3 chance to use Double Claw. Add 1 to global counter 0.
  6438. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  6439. -If global counter 0 is at 9 and it is the second action in the turn:
  6440. --1/3 chance to use a Melee attack. Add 1 to global counter 0.
  6441. --1/3 chance to use Poison Scales. Add 1 to global counter 0.
  6442. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  6443. -If global counter 0 is at 8 and it is the first action in the turn:
  6444. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6445. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  6446. -If global counter 0 is at 7 and it is the second action in the turn:
  6447. --1/2 chance to use Poison Scales. Add 1 to global counter 0.
  6448. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6449. -If global counter 0 is at 6 and it is the first action in the turn:
  6450. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6451. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  6452. -If global counter 0 is at 5, at least 1 party member is not inflicted with Sleep, and it is the second action in the turn:
  6453. --1/2 chance to use Double Claw. Add 1 to global counter 0.
  6454. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  6455. -If global counter 0 is at 5, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  6456. --1/2 chance to use Poison Scales. Add 1 to global counter 0.
  6457. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6458. -If global counter 0 is at 5 and it is the second action in the turn:
  6459. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  6460. --1/3 chance to use a Melee attack. Add 1 to global counter 0.
  6461. --1/3 chance to use Double Claw. Add 1 to global counter 0.
  6462. -If global counter 0 is at 4, counter 0 is at 10, and it is the first action in the turn:
  6463. --Use Madness Flight. Set counter 0 to 0. Add 1 to global counter 0.
  6464. -If global counter 0 is at 4, counter 1 is at 10, and it is the first action in the turn:
  6465. --Use Double Claw. Set counter 1 to 0. Add 1 to global counter 0.
  6466. -If global counter 0 is at 3, counter 0 is at 0, it is the second action in the turn, and self does not have an ATK buff:
  6467. --1/2 chance to use Gather Power (Targets the user's side). Set counter 0 to 10. Add 1 to global counter 0.
  6468. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6469. -If global counter 0 is at 3, counter 0 is at 0, and it is the second action in the turn:
  6470. --Use Poison Scales. Set counter 1 to 10. Add 1 to global counter 0.
  6471. -If global counter 0 is at 2 and it is the first action in the turn:
  6472. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  6473. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6474. -If global counter 0 is at 1 and it is the second action in the turn:
  6475. --2/3 chance to use Sleep Scales. Add 1 to global counter 0.
  6476. --1/3 chance to use Poison Scales. Add 1 to global counter 0.
  6477. -If global counter 0 is at 0 and it is the first action in the turn:
  6478. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6479. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  6480. -If global counter 0 is at 0 and it is the second action in the turn:
  6481. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6482. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  6483. -Else:
  6484. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6485. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  6486.  
  6487. Fomalhaut (LV. 99/94)
  6488. =====================
  6489. Routine 1:
  6490. -Take 2 actions per turn.
  6491. -If global counter 0 is at 7 and it is the second action in the turn:
  6492. --Attack. Set global counters 0 and 1 to 0.
  6493. -If global counter 0 is at 6, global counter 1 is at 10, and it is the first action in the turn:
  6494. --Use Dark Flash. Add 1 to global counter 0. Set global counter 1 to 0.
  6495. -If global counter 0 is at 6 and it is the first action in the turn:
  6496. --Use Claw of Curses (Targets party members that are not inflicted with Poison). Add 1 to global counter 0. Set global counter 1 to 0.
  6497. -If global counter 0 is at 5 and it is the second action in the turn:
  6498. --Use Roar of the Abyss (Targets the user's side). Add 1 to global counter 0.
  6499. -If global counter 0 is at 4 and it is the first action in the turn:
  6500. --Use Nightmare of Darkbloom. Add 1 to global counter 0.
  6501. -If global counter 0 is at 3 and it is the second action in the turn:
  6502. --Use Omen of Ruin (Targets the user's side). Add 1 to global counter 0.
  6503. -If global counter 0 is at 2 and it is the first action in the turn:
  6504. --Attack. Add 1 to global counter 0.
  6505. -If global counter 0 is at 1, it is the second action in the turn, and at least 1 party member is not inflicted with Chaos:
  6506. --Use Daunting Gaze (Targets party members that are not inflicted with Chaos). Add 1 to global counter 0.
  6507. -If global counter 0 is at 3 and it is the second action in the turn:
  6508. --Attack. Add 1 to global counter 0.
  6509. -If global counter 0 is at 0 and it is the first action in the turn:
  6510. --Attack. Add 1 to global counter 0.
  6511. -Else:
  6512. --1/4 chance to attack. Add 1 to global counter 0.
  6513. --1/4 chance to use Wings of Rending. Add 1 to global counter 0.
  6514. --1/4 chance to use Claw of Curses. Add 1 to global counter 0.
  6515. --1/4 chance to use Daunting Gaze. Add 1 to global counter 0.
  6516.  
  6517. Routine 2:
  6518. -Take 2 actions per turn.
  6519. -If self is at or below 50% HP, swap to routine 3.
  6520. -If global counter 0 is at 7 and it is the second action in the turn:
  6521. --Attack. Set global counters 0 and 1 to 0.
  6522. -If global counter 0 is at 6, global counter 1 is at 10, and it is the first action in the turn:
  6523. --Use Dark Flash. Add 1 to global counter 0. Set global counter 1 to 0.
  6524. -If global counter 0 is at 6 and it is the first action in the turn:
  6525. --Use Claw of Curses. Add 1 to global counter 0. Set global counter 1 to 0.
  6526. -If global counter 0 is at 5, global counter 1 is at 0, and it is the second action in the turn:
  6527. --Use Omen of Ruin (Targets the user's side). Add 1 to global counter 0. Set global counter 1 to 10.
  6528. -If global counter 0 is at 5, global counter 1 is at 20, and it is the second action in the turn:
  6529. --Attack. Add 1 to global counter 0. Set global counter 1 to 0.
  6530. -If global counter 0 is at 4, global counter 1 is at 10, at least 1 party member is not inflicted with Downer, and it is the first action in the turn:
  6531. --Use Nightmare of Darkbloom. Add 1 to global counter 0. Set global counter 1 to 20.
  6532. -If global counter 0 is at 4, global counter 1 is at 10, and it is the first action in the turn:
  6533. --Use Dark Flash. Add 1 to global counter 0. Set global counter 1 to 20.
  6534. -If global counter 0 is at 4, at least 1 party member is not inflicted with Skill Seal, and it is the first action in the turn:
  6535. --2/3 chance to use Daunting Gaze. Add 1 to global counter 0. Set global counter 1 to 20.
  6536. --1/3 chance to attack. Add 1 to global counter 0.
  6537. -If global counter 0 is at 4 and it is the first action in the turn:
  6538. --Attack. Add 1 to global counter 0.
  6539. -If global counter 0 is at 3 and it is the second action in the turn:
  6540. --1/2 chance to use Omen of Ruin (Targets the user's side). Add 1 to global counter 0. Set global counter 1 to 10.
  6541. --1/2 chance to attack (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  6542. -If global counter 0 is at 2 and it is the first action in the turn:
  6543. --1/2 chance to attack. Add 1 to global counter 0.
  6544. --1/2 chance to use Wings of Rending (Targets a random party member). Add 1 to global counter 0.
  6545. -If global counter 0 is at 1 and it is the second action in the turn:
  6546. --1/3 chance to use Claw of Curses (Targets the party member with the lowest level). Add 1 to global counter 0.
  6547. --2/3 chance to attack. Add 1 to global counter 0.
  6548. -If global counter 0 is at 0 and it is the first action in the turn:
  6549. --1/3 chance to use Wings of Rending (Targets a random party member). Add 1 to global counter 0.
  6550. --2/3 chance to attack. Add 1 to global counter 0.
  6551. -Else:
  6552. --Attack. Add 1 to global counter 0.
  6553.  
  6554. Routine 3:
  6555. -Take 2 actions per turn.
  6556. -If global counter 2 is at 0:
  6557. --Use Roar of the Abyss (Targets the user's side). Set counter 0 to 0. Set global counters 0 and 1 to 0. Set global counter 2 to 10.
  6558. -If global counter 2 is at 10:
  6559. --Attack (Targets the party member with the lowest LIFE). Set counter 0 to 0. Set global counters 0 and 1 to 0. Set global counter 2 to 20.
  6560. -If global counter 0 is at 7 and it is the second action in the turn:
  6561. --Attack (Targets the party member with the lowest LIFE). Set global counters 0 and 1 to 0.
  6562. -If global counter 0 is at 6, global counter 1 is at 10, at least 1 party member is not inflicted with Downer, and it is the first action in the turn:
  6563. --1/2 chance to use Nightmare of Darkbloom. Add 1 to global counter 0. Set global counter 1 to 0.
  6564. --1/2 chance to use Dark Flash. Add 1 to global counter 0. Set global counter 1 to 0.
  6565. -If global counter 0 is at 6 and it is the first action in the turn:
  6566. --Use Dark Flash. Add 1 to global counter 0. Set global counter 1 to 0.
  6567. -If global counter 0 is at 6 and it is the first action in the turn:
  6568. --Use Claw of Curses (Targets party members that are not inflicted with Poison). Add 1 to global counter 0. Set global counter 1 to 0.
  6569. -If global counter 0 is at 5, global counter 1 is at 0, and it is the second action in the turn:
  6570. --Use Omen of Ruin (Targets the user's side). Add 1 to global counter 0. Set global counter 1 to 10.
  6571. -If global counter 0 is at 5, global counter 1 is at 20, and it is the second action in the turn:
  6572. --2/3 chance to attack. Add 1 to global counter 0. Set global counter 1 to 0.
  6573. --1/3 chance to use Wings of Rending (Targets a random party member). Add 1 to global counter 0. Set global counter 1 to 0.
  6574. -If global counter 0 is at 4, global counter 1 is at 10, and it is the first action in the turn:
  6575. --2/3 chance to use Daunting Gaze (Targets party members that are not inflicted with Chaos). Add 1 to global counter 0. Set global counter 1 to 20.
  6576. --1/3 chance to attack. Add 1 to global counter 0.
  6577. -If global counter 0 is at 4 and it is the first action in the turn:
  6578. --Attack. Add 1 to global counter 0.
  6579. -If global counter 0 is at 3 and it is the second action in the turn:
  6580. --1/4 chance to use Omen of Ruin (Targets the user's side). Add 1 to global counter 0. Set global counter 1 to 10.
  6581. --2/4 chance to use Roar of the Abyss (Targets the user's side). Add 1 to global counter 0. Set global counter 1 to 20.
  6582. --1/4 chance to use Claw of Curses (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  6583. -If global counter 0 is at 2 and it is the first action in the turn:
  6584. --1/2 chance to attack. Add 1 to global counter 0.
  6585. --1/2 chance to use Wings of Rending (Targets a random party member). Add 1 to global counter 0.
  6586. -If global counter 0 is at 1 and it is the second action in the turn:
  6587. --1/3 chance to use Claw of Curses (Targets the party member with the lowest level). Add 1 to global counter 0.
  6588. --2/3 chance to attack. Add 1 to global counter 0.
  6589. -If global counter 0 is at 0 and it is the first action in the turn:
  6590. --1/2 chance to use Wings of Rending (Targets a random party member). Add 1 to global counter 0.
  6591. --1/2 chance to attack. Add 1 to global counter 0.
  6592. -Else:
  6593. --Attack. Add 1 to global counter 0.
  6594.  
  6595. Divine Fomalhaut (LV. 75/70)
  6596. ============================
  6597. Routine 1:
  6598. -Take 2 actions per turn.
  6599. -If self is at or below 75% LIFE and counter 0 is at 0, swap to routine 2.
  6600. -If global counter 0 is at 9 and it is the second action in the turn:
  6601. --Use a Fang attack. Set global counter 0 to 0.
  6602. -If global counter 0 is at 8 and it is the first action in the turn:
  6603. --Use Cursed Gleam. Add 1 to global counter 0.
  6604. -If global counter 0 is at 8 and it is the first action in the turn:
  6605. --Use Whirlwind. Add 1 to global counter 0.
  6606. -If global counter 0 is at 7 and it is the second action in the turn:
  6607. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6608. --1/2 chance to use Whirlwind. Add 1 to global counter 0.
  6609. -If global counter 0 is at 6 and it is the first action in the turn:
  6610. --Use End Breath. Set counter 0 to 0. Add 1 to global counter 0.
  6611. -If global counter 0 is at 5 and it is the second action in the turn:
  6612. --Use its time to take a deep breath (Targets the user's side). Set counter 0 to 10. Add 1 to global counter 0.
  6613. -If global counter 0 is at 4 and it is the first action in the turn:
  6614. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6615. --1/2 chance to use Whirlwind. Add 1 to global counter 0.
  6616. -If global counter 0 is at 3, it is the second action in the turn, and at least 1 party member is not inflicted with Curse:
  6617. --Use Cursed Gleam (Targets party members that are not inflicted with Curse). Add 1 to global counter 0.
  6618. -If global counter 0 is at 3 and it is the second action in the turn:
  6619. --Use a Fang attack. Add 1 to global counter 0.
  6620. -If global counter 0 is at 2 and it is the first action in the turn:
  6621. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6622. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6623. -If global counter 0 is at 1 and it is the second action in the turn:
  6624. --1/2 chance to use Crystal Plague. Add 1 to global counter 0.
  6625. --1/2 chance to use Whirlwind. Add 1 to global counter 0.
  6626. -If global counter 0 is at 0 and it is the first action in the turn:
  6627. --Use a Fang attack. Add 1 to global counter 0.
  6628. -Else:
  6629. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6630. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6631.  
  6632. Routine 2:
  6633. -Take 2 actions per turn.
  6634. -If self is at or below 45% LIFE and counter 0 is at 0, swap to routine 3.
  6635. -If the extra turn phase is active, self is inflicted with Curse, and it is the first action in the turn:
  6636. --Use Pain Eater (Targets the user's side).
  6637. -If the extra turn phase is active, self is inflicted with Bleed, and it is the first action in the turn:
  6638. --Use Pain Eater (Targets the user's side).
  6639. -If the extra turn phase is active, self is inflicted with Burn, and it is the first action in the turn:
  6640. --Use Pain Eater (Targets the user's side).
  6641. -If the extra turn phase is active, self is inflicted with Freeze, and it is the first action in the turn:
  6642. --Use Pain Eater (Targets the user's side).
  6643. -If the extra turn phase is active, self is inflicted with Paralysis, and it is the first action in the turn:
  6644. --Use Pain Eater (Targets the user's side).
  6645. -If the extra turn phase is active, self is inflicted with Sleep, and it is the first action in the turn:
  6646. --Use Pain Eater (Targets the user's side).
  6647. -If the extra turn phase is active, self is inflicted with Blind, and it is the first action in the turn:
  6648. --Use Pain Eater (Targets the user's side).
  6649. -If the extra turn phase is active, self is inflicted with Stun, and it is the first action in the turn:
  6650. --Use Pain Eater (Targets the user's side).
  6651. -If the extra turn phase is active, self is inflicted with Poison, and it is the first action in the turn:
  6652. --Use Pain Eater (Targets the user's side).
  6653. -If the extra turn phase is active, self is inflicted with Venom Boost, and it is the first action in the turn:
  6654. --Use Pain Eater (Targets the user's side).
  6655. -If the extra turn phase is active, at least 1 party member is inflicted with Curse, and it is the first action in the turn:
  6656. --Use Dark Gale (Targets party members inflicted with Curse).
  6657. -If the extra turn phase is active and it is the first action in the turn:
  6658. --Use Dark Gale.
  6659. -If the extra turn phase is active and it is the second action in the turn:
  6660. --Use a Fang attack.
  6661. -If global counter 0 is at 6 and it is the second action in the turn:
  6662. --Use End Breath.
  6663. -If it is the first action in the turn, self does not have an Inflict React buff, and counter 2 is at 0:
  6664. --Use Curse React (Targets the user's side). Set counter 2 to 10. Set global counter 0 to 1.
  6665. -If it is the second action in the turn and counter 2 is at 10:
  6666. --Use Cursed Gleam (Targets party members that are not inflicted with Curse). Set counter 2 to 0. Set global counter 0 to 2.
  6667. -If global counter 0 is at 9 and it is the second action in the turn:
  6668. --1/2 chance to use Whirlwind. Set global counter 0 to 0.
  6669. --1/2 chance to use a Fang attack. Set global counter 0 to 0.
  6670. -If global counter 0 is at 8 and it is the first action in the turn:
  6671. --Use Crystal Plague. Add 1 to global counter 0.
  6672. -If global counter 0 is at 8 and it is the first action in the turn:
  6673. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6674. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6675. -If global counter 0 is at 7, it is the second action in the turn, and at least 1 party member is not inflicted with Curse:
  6676. --Use Cursed Gleam (Targets party members that are not inflicted with Curse). Add 1 to global counter 0.
  6677. -If global counter 0 is at 7 and it is the second action in the turn:
  6678. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6679. --1/2 chance to use Whirlwind. Add 1 to global counter 0.
  6680. -If global counter 0 is at 6 and it is the first action in the turn:
  6681. --Use End Breath. Set counter 0 to 0. Add 1 to global counter 0.
  6682. -If global counter 0 is at 5 and it is the second action in the turn:
  6683. --Use its time to take a deep breath (Targets the user's side). Set counter 0 to 10. Add 1 to global counter 0.
  6684. -If global counter 0 is at 4 and it is the first action in the turn:
  6685. --1/2 chance to use Cursed Gleam. Add 1 to global counter 0.
  6686. --1/2 chance to use Whirlwind. Add 1 to global counter 0.
  6687. -If global counter 0 is at 3, it is the second action in the turn, and at least 1 party member is not inflicted with Curse:
  6688. --Use Cursed Gleam (Targets party members that are not inflicted with Curse). Add 1 to global counter 0.
  6689. -If global counter 0 is at 3 and it is the second action in the turn:
  6690. --1/2 chance to use Whirlwind. Add 1 to global counter 0.
  6691. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6692. -If global counter 0 is at 2 and it is the first action in the turn:
  6693. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6694. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6695. -If global counter 0 is at 1, it is the second action in the turn, and at least 1 party member is not inflicted with Curse:
  6696. --Use Cursed Gleam (Targets party members that are not inflicted with Curse). Add 1 to global counter 0.
  6697. -If global counter 0 is at 1 and it is the second action in the turn:
  6698. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6699. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6700. -If global counter 0 is at 0 and it is the first action in the turn:
  6701. --Use Whirlwind. Add 1 to global counter 0.
  6702. -Else:
  6703. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6704. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6705.  
  6706. Routine 3:
  6707. -Take 2 actions per turn.
  6708. -If the extra turn phase is active, self is inflicted with Curse, and it is the first action in the turn:
  6709. --Use Pain Eater (Targets the user's side).
  6710. -If the extra turn phase is active, self is inflicted with Bleed, and it is the first action in the turn:
  6711. --Use Pain Eater (Targets the user's side).
  6712. -If the extra turn phase is active, self is inflicted with Burn, and it is the first action in the turn:
  6713. --Use Pain Eater (Targets the user's side).
  6714. -If the extra turn phase is active, self is inflicted with Freeze, and it is the first action in the turn:
  6715. --Use Pain Eater (Targets the user's side).
  6716. -If the extra turn phase is active, self is inflicted with Paralysis, and it is the first action in the turn:
  6717. --Use Pain Eater (Targets the user's side).
  6718. -If the extra turn phase is active, self is inflicted with Sleep, and it is the first action in the turn:
  6719. --Use Pain Eater (Targets the user's side).
  6720. -If the extra turn phase is active, self is inflicted with Blind, and it is the first action in the turn:
  6721. --Use Pain Eater (Targets the user's side).
  6722. -If the extra turn phase is active, self is inflicted with Stun, and it is the first action in the turn:
  6723. --Use Pain Eater (Targets the user's side).
  6724. -If the extra turn phase is active, self is inflicted with Poison, and it is the first action in the turn:
  6725. --Use Pain Eater (Targets the user's side).
  6726. -If the extra turn phase is active, self is inflicted with Venom Boost, and it is the first action in the turn:
  6727. --Use Pain Eater (Targets the user's side).
  6728. -If the extra turn phase is active, at least 1 party member is inflicted with Curse, and it is the first action in the turn:
  6729. --Use Dark Gale (Targets party members inflicted with Curse).
  6730. -If the extra turn phase is active and it is the first action in the turn:
  6731. --Use Dark Gale.
  6732. -If the extra turn phase is active and it is the second action in the turn:
  6733. --Use a Fang attack.
  6734. -If counter 1 is at 0 and it is the second action in the turn:
  6735. --Use Omen of Ruin (Targets the user's side). Set counter 1 to 20. Set global counter 0 to 2.
  6736. -If counter 1 is at 20 and it is the first action in the turn:
  6737. --Use Blackspear Fomalhaut. Set counter 1 to 30. Set global counter 0 to 1.
  6738. -If it is the first action in the turn, self does not have an Inflict React buff, and counter 2 is at 0:
  6739. --Use Curse React (Targets the user's side). Set counter 2 to 10. Set global counter 0 to 1.
  6740. -If it is the second action in the turn and counter 2 is at 10:
  6741. --Use Cursed Gleam (Targets the party member with the lowest level). Set counter 2 to 0. Set global counter 0 to 2.
  6742. -If global counter 0 is at 9 and it is the second action in the turn:
  6743. --Use Whirlwind. Set global counter 0 to 0.
  6744. -If global counter 0 is at 8 and it is the first action in the turn:
  6745. --Use Crystal Plague. Add 1 to global counter 0.
  6746. -If global counter 0 is at 8 and it is the first action in the turn:
  6747. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6748. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6749. -If global counter 0 is at 7, it is the second action in the turn, and at least 1 party member is not inflicted with Curse:
  6750. --Use Cursed Gleam (Targets party members that are not inflicted with Curse). Add 1 to global counter 0.
  6751. -If global counter 0 is at 7 and it is the second action in the turn:
  6752. --2/3 chance to use Whirlwind. Add 1 to global counter 0.
  6753. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  6754. -If global counter 0 is at 6 and it is the first action in the turn:
  6755. --Use Blackspear Fomalhaut. Add 1 to global counter 0.
  6756. -If global counter 0 is at 5 and it is the second action in the turn:
  6757. --Use Omen of Ruin (Targets the user's side). Add 1 to global counter 0.
  6758. -If global counter 0 is at 4 and it is the first action in the turn:
  6759. --1/2 chance to use Whirlwind. Add 1 to global counter 0.
  6760. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6761. -If global counter 0 is at 3, it is the second action in the turn, and at least 1 party member is not inflicted with Curse:
  6762. --1/2 chance to use Cursed Gleam (Targets party members that are not inflicted with Curse). Add 1 to global counter 0.
  6763. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6764. -If global counter 0 is at 3 and it is the second action in the turn:
  6765. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6766. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6767. -If global counter 0 is at 2 and it is the first action in the turn:
  6768. --1/2 chance to use Cursed Gleam. Add 1 to global counter 0.
  6769. --1/2 chance to use Whirlwind. Add 1 to global counter 0.
  6770. -If global counter 0 is at 1, it is the second action in the turn, and at least 1 party member is not inflicted with Curse:
  6771. --Use Cursed Gleam (Targets party members that are not inflicted with Curse). Add 1 to global counter 0.
  6772. -If global counter 0 is at 1 and it is the second action in the turn:
  6773. --Use Whirlwind. Add 1 to global counter 0.
  6774. -Else:
  6775. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  6776. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  6777.  
  6778. ??? (LV. 99/94)
  6779. ===============
  6780. -Take 2 actions per turn.
  6781. -If counter 2 is at 10 and it is the second action in the turn:
  6782. --Use Heavy Impact (Targets the party member with the highest LIFE). Set counter 2 to 0.
  6783. -If counter 0 is at or above 2:
  6784. --1/3 chance to attack (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 5 to counter 2.
  6785. --2/3 chance to use Shockwave (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 5 to counter 2.
  6786. -Else:
  6787. --Attack. Add 1 to counter 0.
  6788.  
  6789. Crest (LV. 70/65)
  6790. =================
  6791. -Take 2 actions per turn.
  6792. -If counter 2 is at 10 and it is the second action in the turn:
  6793. --Use Heavy Impact (Targets the party member with the highest LIFE). Set counter 2 to 0.
  6794. -If counter 0 is at or above 2:
  6795. --1/3 chance to attack (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 5 to counter 2.
  6796. --2/3 chance to use Shockwave (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 5 to counter 2.
  6797. -Else:
  6798. --Attack. Add 1 to counter 0.
  6799.  
  6800. Fomalhaut (LV. 70/65)
  6801. =====================
  6802. Routine 1:
  6803. -Take 2 actions per turn.
  6804. -If self is at or below 60% LIFE and counter 0 is at 0, swap to routine 2.
  6805. -If global counter 0 is at 13, it is the second action in the turn, and at least 1 party member is not inflicted with Skill Seal:
  6806. --Use Wings of Rending (Targets party members not inflicted with Skill Seal). Set global counter 0 to 0.
  6807. -If global counter 0 is at 13 and it is the second action in the turn:
  6808. --Attack. Add 1 to global counter 0.
  6809. -If global counter 0 is at 12 and it is the first action in the turn:
  6810. --Attack. Add 1 to global counter 0.
  6811. -If global counter 0 is at 11 and it is the second action in the turn:
  6812. --Attack. Add 1 to global counter 0.
  6813. -If global counter 0 is at 10, it is the first action in the turn, and at least 1 party member is not inflicted with Curse:
  6814. --Use Claw of Curses (Targets party members not inflicted with Curse). Add 1 to global counter 0.
  6815. -If global counter 0 is at 10 and it is the first action in the turn:
  6816. --Attack. Add 1 to global counter 0.
  6817. -If global counter 0 is at 9 and it is the second action in the turn:
  6818. --Use Roar of the Abyss (Targets the user's side). Add 1 to global counter 0.
  6819. -If global counter 0 is at 8 and it is the first action in the turn:
  6820. --Attack. Add 1 to global counter 0. Set global counter 1 to 0.
  6821. -If global counter 0 is at 7 and it is the second action in the turn:
  6822. --Attack. Set global counters 0 and 1 to 0.
  6823. -If global counter 0 is at 6 and it is the first action in the turn:
  6824. --Use Nightmare of Darkbloom. Set counter 0 to 0. Add 1 to global counter 0. Set global counter 1 to 0.
  6825. -If global counter 0 is at 5 and it is the second action in the turn:
  6826. --Use Omen of Ruin (Targets the user's side). Set global counter 0 to 10. Add 1 to global counter 0.
  6827. -If global counter 0 is at 4, at least 1 party member is not inflicted with Chaos, and it is the second action in the turn:
  6828. --Use Daunting Gaze (Targets party members not inflicted with Chaos). Add 1 to global counter 0.
  6829. -If global counter 0 is at 4 and it is the first action in the turn:
  6830. --Attack. Add 1 to global counter 0.
  6831. -If global counter 0 is at 3 and it is the second action in the turn:
  6832. --Attack. Set global counters 0 and 1 to 0.
  6833. -If global counter 0 is at 2, it is the first action in the turn, and at least 1 party member is not inflicted with Curse:
  6834. --Use Claw of Curses (Targets party members not inflicted with Curse). Add 1 to global counter 0.
  6835. -If global counter 0 is at 2 and it is the first action in the turn:
  6836. --Attack. Add 1 to global counter 0.
  6837. -If global counter 0 is at 1, it is the second action in the turn, and at least 1 party member is not inflicted with Skill Seal:
  6838. --Use Wings of Rending (Targets party members not inflicted with Skill Seal). Add 1 to global counter 0.
  6839. -If global counter 0 is at 1 and it is the second action in the turn:
  6840. --Attack. Add 1 to global counter 0.
  6841. -If global counter 0 is at 0 and it is the first action in the turn:
  6842. --Attack. Add 1 to global counter 0.
  6843. -Else:
  6844. --2/5 chance to attack. Add 1 to global counter 0.
  6845. --1/5 chance to use Wings of Rending. Add 1 to global counter 0.
  6846. --1/5 chance to use Claw of Curses. Add 1 to global counter 0.
  6847. --1/5 chance to use Daunting Gaze. Add 1 to global counter 0.
  6848.  
  6849. Routine 2:
  6850. -Take 2 actions per turn.
  6851. -If counter 0 is at 30 and it is the second action in the turn:
  6852. --Attack. Set counter 0 to 40. Set global counter 0 to 0.
  6853. -If counter 0 is at 20 and it is the first action in the turn:
  6854. --Use Dark Flash. Set counter 0 to 30.
  6855. -If counter 0 is at 10 and it is the second action in the turn:
  6856. --Use Omen of Ruin (Targets the user's side). Set counter 0 to 20.
  6857. -If counter 0 is at 0 and it is the first action in the turn:
  6858. --Attack. Set counter 0 to 10.
  6859. -If global counter 0 is at 17 and it is the second action in the turn:
  6860. --Attack. Set global counters 0 and 1 to 0.
  6861. -If global counter 0 is at 16 and it is the first action in the turn:
  6862. --Use Dark Flash. Add 1 to global counter 0.
  6863. -If global counter 0 is at 15 and it is the second action in the turn:
  6864. --Use Omen of Ruin (Targets the user's side). Set counter 0 to 10. Add 1 to global counter 0.
  6865. -If global counter 0 is at 14, at least 1 party member is not inflicted with Chaos, and it is the second action in the turn:
  6866. --Use Daunting Gaze (Targets party members not inflicted with Chaos). Add 1 to global counter 0.
  6867. -If global counter 0 is at 14 and it is the first action in the turn:
  6868. --Attack. Add 1 to global counter 0.
  6869. -If global counter 0 is at 13, it is the second action in the turn, and at least 1 party member is not inflicted with Skill Seal:
  6870. --Use Wings of Rending (Targets party members not inflicted with Skill Seal). Set global counter 0 to 0.
  6871. -If global counter 0 is at 13 and it is the second action in the turn:
  6872. --Attack. Add 1 to global counter 0.
  6873. -If global counter 0 is at 12 and it is the first action in the turn:
  6874. --Attack. Add 1 to global counter 0.
  6875. -If global counter 0 is at 11 and it is the second action in the turn:
  6876. --Attack. Add 1 to global counter 0.
  6877. -If global counter 0 is at 10, it is the first action in the turn, and at least 1 party member is not inflicted with Curse:
  6878. --Use Claw of Curses (Targets party members not inflicted with Curse). Add 1 to global counter 0.
  6879. -If global counter 0 is at 10 and it is the first action in the turn:
  6880. --Attack. Add 1 to global counter 0.
  6881. -If global counter 0 is at 9 and it is the second action in the turn:
  6882. --Use Roar of the Abyss (Targets the user's side). Add 1 to global counter 0.
  6883. -If global counter 0 is at 8 and it is the first action in the turn:
  6884. --Attack. Add 1 to global counter 0. Set global counter 1 to 0.
  6885. -If global counter 0 is at 7 and it is the second action in the turn:
  6886. --Attack. Set global counter 0 to 0.
  6887. -If global counter 0 is at 6 and it is the first action in the turn:
  6888. --1/2 chance to use Dark Flash. Add 1 to global counter 0.
  6889. --1/2 chance to use Nightmare of Darkbloom. Add 1 to global counter 0.
  6890. -If global counter 0 is at 5 and it is the second action in the turn:
  6891. --Use Omen of Ruin (Targets the user's side). Set global counter 0 to 10. Add 1 to global counter 0.
  6892. -If global counter 0 is at 4, at least 1 party member is not inflicted with Chaos, and it is the second action in the turn:
  6893. --Use Daunting Gaze (Targets party members not inflicted with Chaos). Add 1 to global counter 0.
  6894. -If global counter 0 is at 4 and it is the first action in the turn:
  6895. --Attack. Add 1 to global counter 0.
  6896. -If global counter 0 is at 3 and it is the second action in the turn:
  6897. --Attack. Set global counters 0 and 1 to 0.
  6898. -If global counter 0 is at 2, it is the first action in the turn, and at least 1 party member is not inflicted with Curse:
  6899. --Use Claw of Curses (Targets party members not inflicted with Curse). Add 1 to global counter 0.
  6900. -If global counter 0 is at 2 and it is the first action in the turn:
  6901. --Attack. Add 1 to global counter 0.
  6902. -If global counter 0 is at 1, it is the second action in the turn, and at least 1 party member is not inflicted with Skill Seal:
  6903. --Use Wings of Rending (Targets party members not inflicted with Skill Seal). Add 1 to global counter 0.
  6904. -If global counter 0 is at 1 and it is the second action in the turn:
  6905. --Attack. Add 1 to global counter 0.
  6906. -If global counter 0 is at 0 and it is the first action in the turn:
  6907. --Attack. Add 1 to global counter 0.
  6908. -Else:
  6909. --2/5 chance to attack. Add 1 to global counter 0.
  6910. --1/5 chance to use Wings of Rending. Add 1 to global counter 0.
  6911. --1/5 chance to use Claw of Curses. Add 1 to global counter 0.
  6912. --1/5 chance to use Daunting Gaze. Add 1 to global counter 0.
  6913.  
  6914. Jabberwock (LV. 55/51)
  6915. ======================
  6916. Routine 1:
  6917. -Take 2 actions per turn.
  6918. -If the turn count is above 4 and it is the first action in the turn:
  6919. --Use vibrations to drop rocks from above (Targets a random party member). Add 1 to counters 0 and 1.
  6920. -If it is the second action in the turn and counter 0 is at or above 5:
  6921. --Use Firey Surprise (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  6922. -If it is the first action in the turn and the turn count is above 1:
  6923. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1.
  6924. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1.
  6925. -If if is the second action in the turn and the turn count is above 1:
  6926. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1.
  6927. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1.
  6928. -If global counter 0 is at 0, the turn count is at or below 1, and it is the second action in the turn:
  6929. --Use Hide in Shell (Targets the user's side). Add 1 to counters 0 and 1. Add 50 to global counter 0.
  6930. -If the turn count is at or below 3, global counter 2 is at 0, and it is the first action in the turn:
  6931. --Use vibrations to drop rocks from above. Add 1 to counters 0 and 1. Set global counter 2 to 50.
  6932.  
  6933. Routine 2:
  6934. -Take 1 action per turn.
  6935. -If counter 0 is at or above 10, swap to routine 3.
  6936. -Use Melee attack 1. Add 10 to counter 0.
  6937.  
  6938. Routine 3:
  6939. -Take 2 actions per turn.
  6940. -If global counter 0 is at 0:
  6941. --Use Melee attack 1. Set counter 1 to 0. Set global counter 0 to 50.
  6942. -If counter 2 is at or above 7 and it is the second action in the turn:
  6943. --Use Melee attack 1. Add 1 to global counter 1.
  6944. -If counter 2 is at or above 7, global counter 1 is at or above 1, and it is the first action in the turn:
  6945. --Use Melee attack 1. Add to counter 1. Set counter 2 to 0. Set global counter 1 to 0.
  6946. -If counter 1 is at or above 4 and it is the second action in the turn:
  6947. --Use Melee attack 1. Set counter 1 to 0. Add 1 to counter 2.
  6948. -If counter 0 is at or above 2:
  6949. --Use Melee attack 1. Set counter 0 to 0. Add 1 to counters 1 and 2.
  6950. -Else:
  6951. --1/3 chance to use Melee attack 1. Add 1 to counters 0, 1, and 2.
  6952. --2/3 chance to use Melee attack 2. Add 1 to counters 0, 1, and 2.
  6953.  
  6954. Jabberwock (LV. 55/51)
  6955. ======================
  6956. Routine 1:
  6957. -Take 2 actions per turn.
  6958. -If the turn count is above 4 and it is the first action in the turn:
  6959. --Use vibrations to drop rocks from above (Targets a random party member). Add 1 to counters 0 and 1.
  6960. -If it is the second action in the turn and counter 0 is at or above 5:
  6961. --Use Firey Surprise (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  6962. -If it is the first action in the turn and the turn count is above 1:
  6963. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1.
  6964. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1.
  6965. -If if is the second action in the turn and the turn count is above 1:
  6966. --1/2 chance to use Melee attack 1. Add 1 to counters 0 and 1.
  6967. --1/2 chance to use Melee attack 2. Add 1 to counters 0 and 1.
  6968. -If global counter 0 is at 0, the turn count is at or below 1, and it is the second action in the turn:
  6969. --Use Hide in Shell (Targets the user's side). Add 1 to counters 0 and 1. Add 50 to global counter 0.
  6970. -If the turn count is at or below 3, global counter 2 is at 0, and it is the first action in the turn:
  6971. --Use vibrations to drop rocks from above. Add 1 to counters 0 and 1. Set global counter 2 to 50.
  6972.  
  6973. Routine 2:
  6974. -Take 1 action per turn.
  6975. -If counter 0 is at or above 10, swap to routine 3.
  6976. -Use Melee attack 1. Add 10 to counter 0.
  6977.  
  6978. Routine 3:
  6979. -Take 2 actions per turn.
  6980. -If global counter 0 is at 0:
  6981. --Use Melee attack 1. Set counter 1 to 0. Set global counter 0 to 50.
  6982. -If counter 2 is at or above 7 and it is the second action in the turn:
  6983. --Use Melee attack 1. Add 1 to global counter 1.
  6984. -If counter 2 is at or above 7, global counter 1 is at or above 1, and it is the first action in the turn:
  6985. --Use Melee attack 1. Add to counter 1. Set counter 2 to 0. Set global counter 1 to 0.
  6986. -If counter 1 is at or above 4 and it is the second action in the turn:
  6987. --Use Melee attack 1. Set counter 1 to 0. Add 1 to counter 2.
  6988. -If counter 0 is at or above 2:
  6989. --Use Melee attack 1. Set counter 0 to 0. Add 1 to counters 1 and 2.
  6990. -Else:
  6991. --1/3 chance to use Melee attack 1. Add 1 to counters 0, 1, and 2.
  6992. --2/3 chance to use Melee attack 2. Add 1 to counters 0, 1, and 2.
  6993.  
  6994. Jabberwock (LV. 55/51)
  6995. ======================
  6996. Routine 1:
  6997. -Take 2 actions per turn.
  6998. -If self is at or below 80% LIFE, swap to routine 2.
  6999. -If global counter 2 is at 10 and it is the first action in the turn:
  7000. --Use Burning Breath. Set global counter 0 to 11. Set global counter 2 to 0.
  7001. -If is the first action in the turn, self does not have an Inflict React buff, and counter 2 is at 0:
  7002. --Use Blood React. Set counter 2 to 10. Set global counter 0 to 8.
  7003. -If it is the second action in the turn and counter 2 is at 10:
  7004. --Use Power Tackle (Targets the party member with the lowest level). Set counter 2 to 0. Set global counter 0 to 9.
  7005. -If the extra turn phase is active, it is the first action in the turn, and any party member is inflcted with Bleed:
  7006. --Use Blood Frenzy (Targets the user's side). Set counter 2 to 0.
  7007. -If the extra turn phase is active, it is the second action in the turn, and no party members are inflicted with Bleed:
  7008. --Use lost the scent of blood. (Targets the user's side).
  7009. -If global counter 0 is at 13 and it is the second action in the turn:
  7010. --1/3 chance to use Power Tackle (Targets the party member with the lowest level). Set global counter 0 to 0.
  7011. --1/3 chance to use Melee attack 2. Set global counter 0 to 0.
  7012. --1/3 chance to use Melee attack 1. Set global counter 0 to 0.
  7013. -If global counter 0 is at 12 and it is the first action in the turn:
  7014. --1/3 chance to use Melee attack 1. Set global counter 0 to 0.
  7015. --1/3 chance to use Hammer Crush (Targets the party member with the lowest level). Set global counter 0 to 0.
  7016. --1/3 chance to use Melee attack 2. Set global counter 0 to 0.
  7017. -If global counter 0 is at 11 and it is the second action in the turn:
  7018. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7019. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7020. -If global counter 0 is at 10, global counter 2 is at 10, and it is the first action in the turn:
  7021. --Use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7022. -If global counter 0 is at 10 and it is the first action in the turn:
  7023. --1/3 chance to use Melee attack 1. Add 1 to global counter 0.
  7024. --1/3 chance to use Hammer Crush (Targets the party member with the lowest level). Add 1 to global counter 0.
  7025. --1/3 chance to use Melee attack 2. Add 1 to global counter 0.
  7026. -If global counter 0 is at 9 and it is the second action in the turn:
  7027. --Use Gather Power (Targets the user's side). Add 1 to global counter 0. Set global counter 2 to 10.
  7028. -If global counter 0 is at 8 and it is the first action in the turn:
  7029. --Use Power Tackle (Targets the party member with the lowest level). Add 1 to global counter 0.
  7030. -If global counter 0 is at 7 and it is the second action in the turn:
  7031. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7032. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7033. -If global counter 0 is at 6 and it is the first action in the turn:
  7034. --1/2 chance to use Power Tackle. Add 1 to global counter 0.
  7035. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7036. -If global counter 0 is at 5 and it is the second action in the turn:
  7037. --1/3 chance to use Melee attack 2. Add 1 to global counter 0.
  7038. --1/3 chance to use Hammer Crush. Add 1 to global counter 0.
  7039. --1/3 chance to use Power Tackle. Add 1 to global counter 0.
  7040. -If global counter 0 is at 4 and it is the first action in the turn:
  7041. --2/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7042. --1/4 chance to use Hammer Crush. Add 1 to global counter 0.
  7043. --1/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7044. -If global counter 0 is at 3 and it is the second action in the turn:
  7045. --1/4 chance to use Power Tackle. Add 1 to global counter 0.
  7046. --1/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7047. --1/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7048. --1/4 chance to use Hammer Crush. Add 1 to global counter 0.
  7049. -If global counter 0 is at 2 and it is the first action in the turn:
  7050. --Use Burning Breath. Add 1 to global counter 0.
  7051. -If global counter 0 is at 2 and it is the first action in the turn:
  7052. --2/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7053. --1/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7054. --1/4 chance to use Power Tackle. Add 1 to global counter 0.
  7055. -If global counter 0 is at 2 and it is the first action in the turn:
  7056. --2/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7057. --1/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7058. --1/4 chance to use Hammer Crush. Add 1 to global counter 0.
  7059. -If global counter 0 is at 1 and it is the second action in the turn:
  7060. --Use Gather Power (Targets the user's side). Set global counter 0 to 1.
  7061. -If global counter 0 is at 0 and it is the first action in the turn:
  7062. --2/3 chance to use Melee attack 1. Set global counter 0 to 1.
  7063. --1/3 chance to use Melee attack 2. Set global counter 0 to 1.
  7064. -If global counter 2 is at 10 and it is the first action in the turn:
  7065. --Use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7066. -If global counter 2 is at 0 and it is the second action in the turn:
  7067. --Use Gather Power (Targets the user's side). Set global counter 0 to 1. Set global counter 2 to 10.
  7068. -Else:
  7069. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7070. --1/2 chance to use Hammer Crush. Add 1 to global counter 0.
  7071.  
  7072. Routine 2:
  7073. -Take 2 actions per turn.
  7074. -If self is at or below 50% LIFE, swap to routine 3.
  7075. -If global counter 2 is at 10 and it is the first action in the turn:
  7076. --Use Burning Breath. Set global counter 0 to 11. Set global counter 2 to 0.
  7077. -If is the first action in the turn, self does not have an Inflict React buff, and counter 2 is at 0:
  7078. --Use Blood React. Set counter 2 to 10. Set global counter 0 to 8.
  7079. -If it is the second action in the turn and counter 2 is at 10:
  7080. --Use Power Tackle. Set counter 2 to 0. Set global counter 0 to 9.
  7081. -If the extra turn phase is active, it is the first action in the turn, and any party member is inflcted with Bleed:
  7082. --Use Blood Frenzy (Targets the user's side).
  7083. -If the extra turn phase is active, it is the second action in the turn, and no party members are inflicted with Bleed:
  7084. --Use lost the scent of blood. (Targets the user's side).
  7085. -If global counter 0 is at 13 and it is the second action in the turn:
  7086. --1/3 chance to use Power Tackle. Set global counter 0 to 0.
  7087. --1/3 chance to use Melee attack 2. Set global counter 0 to 0.
  7088. --1/3 chance to use Melee attack 1. Set global counter 0 to 0.
  7089. -If global counter 0 is at 12 and it is the first action in the turn:
  7090. --Use Melee attack 1. Set global counter 0 to 0.
  7091. -If global counter 0 is at 11 and it is the second action in the turn:
  7092. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7093. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7094. -If global counter 0 is at 10, global counter 2 is at 10, and it is the first action in the turn:
  7095. --Use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7096. -If global counter 0 is at 10 and it is the first action in the turn:
  7097. --1/3 chance to use Melee attack 1. Add 1 to global counter 0.
  7098. --1/3 chance to use Hammer Crush. Add 1 to global counter 0.
  7099. --1/3 chance to use Melee attack 2. Add 1 to global counter 0.
  7100. -If global counter 0 is at 9 and it is the second action in the turn:
  7101. --Use Gather Power (Targets the user's side). Add 1 to global counter 0. Set global counter 2 to 10.
  7102. -If global counter 0 is at 8 and it is the first action in the turn:
  7103. --Use Power Tackle. Add 1 to global counter 0.
  7104. -If global counter 0 is at 7 and it is the second action in the turn:
  7105. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7106. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7107. -If global counter 0 is at 6, global counter 2 is at 10, and it is the first action in the turn:
  7108. --Use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7109. -If global counter 0 is at 6 and it is the first action in the turn:
  7110. --Use Hammer Crush. Add 1 to global counter 0.
  7111. -If global counter 0 is at 5 and it is the second action in the turn:
  7112. --3/4 chance to use Gather Power (Targets self). Add 1 to global counter 0. Set global counter 2 to 10.
  7113. --1/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7114. -If global counter 0 is at 4 and it is the first action in the turn:
  7115. --1/2 chance to use Power Tackle. Add 1 to global counter 0.
  7116. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7117. -If global counter 0 is at 3 and it is the second action in the turn:
  7118. --1/3 chance to use Hammer Crush. Add 1 to global counter 0.
  7119. --1/3 chance to use Melee attack 1. Add 1 to global counter 0.
  7120. --1/3 chance to use Power Tackle. Add 1 to global counter 0.
  7121. -If global counter 0 is at 2 and it is the first action in the turn:
  7122. --2/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7123. --1/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7124. --1/4 chance to use Power Tackle. Add 1 to global counter 0.
  7125. -If global counter 0 is at 2 and it is the first action in the turn:
  7126. --2/4 chance to use Melee attack 1.
  7127. --1/4 chance to use Power Tackle.
  7128. --1/4 chance to use Hammer Crush.
  7129. -If global counter 0 is at 1 and it is the second action in the turn:
  7130. --Use Burning Breath. Add 1 to global counter 0.
  7131. -If global counter 0 is at 0 and it is the second action in the turn:
  7132. --Use Gather Power (Targets the user's side). Set global counter 0 to 2.
  7133. -If global counter 0 is at 0 and it is the first action in the turn:
  7134. --2/3 chance to use Melee attack 1. Set global counter 0 to 1.
  7135. --1/3 chance to use Melee attack 2. Set global counter 0 to 1.
  7136. -If global counter 2 is at 10 and it is the first action in the turn:
  7137. --1/2 chance to use Rampage. Add 1 to global counter 0. Set global counter 2 to 0.
  7138. --1/2 chance to use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7139. -If global counter 2 is at 0 and it is the second action in the turn:
  7140. --Use Gather Power (Targets the user's side). Set global counter 0 to 1. Set global counter 2 to 10.
  7141. -Else:
  7142. --1/2 chance to use Melee attack 1. Add 1 to counter 1. Set global counter 0 to 0.
  7143. --1/2 chance to use Hammer Crush. Add 1 to counter 1. Set global counter 0 to 0.
  7144.  
  7145. Routine 3:
  7146. -Take 2 actions per turn.
  7147. -If global counter 2 is at 10 and it is the first action in the turn:
  7148. --2/3 chance to use Rampage. Set global counter 0 to 1. Set global counter 2 to 0.
  7149. --1/3 chance to use Burning Breath. Set global counter 0 to 1. Set global counter 2 to 0.
  7150. -If is the first action in the turn, self does not have an Inflict React buff, and counter 2 is at 0:
  7151. --Use Blood React. Set counter 2 to 10. Set global counter 0 to 8.
  7152. -If it is the second action in the turn and counter 2 is at 10:
  7153. --Use Power Tackle. Set counter 2 to 0. Set global counter 0 to 9.
  7154. -If the extra turn phase is active, it is the first action in the turn, and any party member is inflcted with Bleed:
  7155. --Use Blood Frenzy (Targets the user's side).
  7156. -If the extra turn phase is active, it is the second action in the turn, and no party members are inflicted with Bleed:
  7157. --Use lost the scent of blood. (Targets the user's side).
  7158. -If global counter 0 is at 13 and it is the second action in the turn:
  7159. --1/3 chance to use Power Tackle. Set global counter 0 to 0.
  7160. --1/3 chance to use Melee attack 2. Set global counter 0 to 0.
  7161. --1/3 chance to use Melee attack 1. Set global counter 0 to 0.
  7162. -If global counter 0 is at 12 and it is the first action in the turn:
  7163. --Use Melee attack 1. Set global counter 0 to 0.
  7164. -If global counter 0 is at 11 and it is the second action in the turn:
  7165. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7166. --1/2 chance to use Power Tackle. Add 1 to global counter 0.
  7167. -If global counter 0 is at 10, global counter 2 is at 10, and it is the first action in the turn:
  7168. --Use Rampage. Add 1 to global counter 0. Set global counter 2 to 0.
  7169. -If global counter 0 is at 10 and it is the first action in the turn:
  7170. --1/3 chance to use Melee attack 1. Add 1 to global counter 0.
  7171. --1/3 chance to use Hammer Crush. Add 1 to global counter 0.
  7172. --1/3 chance to use Power Tackle. Add 1 to global counter 0.
  7173. -If global counter 0 is at 9 and it is the second action in the turn:
  7174. --Use Gather Power (Targets the user's side). Add 1 to global counter 0. Set global counter 2 to 10.
  7175. -If global counter 0 is at 8 and it is the first action in the turn:
  7176. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7177. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7178. -If global counter 0 is at 7 and it is the second action in the turn:
  7179. --1/2 chance to use Power Tackle. Add 1 to global counter 0.
  7180. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7181. -If global counter 0 is at 6, global counter 2 is at 10, and it is the first action in the turn:
  7182. --2/3 chance to use Rampage. Add 1 to global counter 0. Set global counter 2 to 0.
  7183. --1/3 chance to use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7184. -If global counter 0 is at 6 and it is the first action in the turn:
  7185. --Use Power Tackle. Add 1 to global counter 0.
  7186. -If global counter 0 is at 5 and it is the second action in the turn:
  7187. --Use Gather Power (Targets self). Add 1 to global counter 0. Set global counter 2 to 10.
  7188. -If global counter 0 is at 4 and it is the first action in the turn:
  7189. --1/2 chance to use Hammer Crush. Add 1 to global counter 0.
  7190. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7191. -If global counter 0 is at 3 and it is the second action in the turn:
  7192. --2/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7193. --1/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7194. --1/4 chance to use Power Tackle. Add 1 to global counter 0.
  7195. -If global counter 0 is at 2 and it is the first action in the turn:
  7196. --2/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7197. --1/4 chance to use Power Tackle. Add 1 to global counter 0.
  7198. --1/4 chance to use Hammer Crush. Add 1 to global counter 0.
  7199. -If global counter 0 is at 1 and it is the second action in the turn:
  7200. --Use Burning Breath. Add 1 to global counter 0.
  7201. -If global counter 0 is at 0 and it is the second action in the turn:
  7202. --Use Gather Power (Targets the user's side). Set global counter 0 to 2.
  7203. -If global counter 0 is at 0 and it is the second action in the turn:
  7204. --2/3 chance to use Melee attack 1. Set global counter 0 to 2.
  7205. --1/3 chance to use Melee attack 2. Set global counter 0 to 2.
  7206. -If global counter 2 is at 10 and it is the first action in the turn:
  7207. --2/3 chance to use Rampage. Add 1 to global counter 0. Set global counter 2 to 0.
  7208. --1/3 chance to use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7209. -If global counter 2 is at 0 and it is the second action in the turn:
  7210. --Use Gather Power (Targets the user's side). Set global counter 0 to 1. Set global counter 2 to 10.
  7211. -Else:
  7212. --1/2 chance to use Melee attack 1. Add 1 to counter 1. Set global counter 0 to 0.
  7213. --1/2 chance to use Hammer Crush. Add 1 to counter 1. Set global counter 0 to 0.
  7214.  
  7215. Divine Fomalhaut (LV. 60/55)
  7216. ============================
  7217. Routine 1:
  7218. -Take 2 actions per turn.
  7219. -If counter 1 is at or above 4:
  7220. --Use End Breath. Set counter 1 to 0.
  7221. -If counter 0 is at or above 2:
  7222. --Use a Melee attack (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  7223. -Else:
  7224. --Use a Fang attack. Add 1 to counter 0. Set counter 1 to 0.
  7225.  
  7226. Routine 2:
  7227. -Take 1 action per turn.
  7228. -If counter 0 is at or above 10, swwap to routine 3:
  7229. -Attack. Add 10 to counter 0.
  7230.  
  7231. Routine 3:
  7232. -Take 2 actions per turn.
  7233. -If global counter 0 is at 0:
  7234. --Use a Fang attack. Set counter 1 to 0. Set global counter 0 to 0.
  7235. -If counter 2 is at or above 7 and it is the second action in the turn:
  7236. --Use a Fang attack. Add 1 to global counter 1.
  7237. -If counter 2 is at or above 7, global counter 1 is at or above 1, and it is the first action in the turn:
  7238. --Use a Fang attack. Add 1 to counter 1. Set counter 2 to 0. Set global counter 1 to 0.
  7239. -If counter 1 is at or above 4 and it is the second action in the turn:
  7240. --Use a Fang attack. Set counter 1 to 0. Add 1 to counter 2.
  7241. -If counter 0 is at or above 2:
  7242. --Use a Fang attack (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counters 1 and 2.
  7243. -Else:
  7244. --1/3 chance to use a Fang attack. Add 1 to counters 0, 1, and 2.
  7245. --2/3 chance to use a Melee attack. Add 1 to counters 0, 1, and 2.
  7246.  
  7247. Illusory Meltwing (LV. 82/77)
  7248. =============================
  7249. Routine 1:
  7250. -Take 2 actions per turn.
  7251. -If self is at or below 70% LIFE, swap to routine 2.
  7252. -If global counter 0 is at 9, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  7253. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Set global counter 0 to 0.
  7254. --1/3 chance to use a Ranged attack (Targets the party member with the lowest level). Set global counter 0 to 0.
  7255. -If global counter 0 is at 9 and it is the second action in the turn:
  7256. --Use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  7257. -If global counter 0 is at 8, at least 1 party member does not have a DEF debuff, and it is the first action in the turn:
  7258. --2/3 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  7259. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  7260. -If global counter 0 is at 8 and it is the first action in the turn:
  7261. --Use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  7262. -If global counter 0 is at 7 and it is the second action in the turn:
  7263. --1/2 chance to use Chew. Add 1 to global counter 0.
  7264. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  7265. -If global counter 0 is at 6, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  7266. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  7267. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  7268. -If global counter 0 is at 6 and it is the first action in the turn:
  7269. --Use a Fang attack. Add 1 to global counter 0.
  7270. -If global counter 0 is at 5 and it is the second action in the turn:
  7271. --Use a Fang attack. Add 1 to global counter 0.
  7272. -If global counter 0 is at 4, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  7273. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  7274. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  7275. -If global counter 0 is at 4 and it is the first action in the turn:
  7276. --Use a Fang attack. Add 1 to global counter 0.
  7277. -If global counter 0 is at 3, at least 1 party member does not have a DEF debuff, and it is the second action in the turn:
  7278. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  7279. --2/3 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  7280. -If global counter 0 is at 3 and it is the second action in the turn:
  7281. --Use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  7282. -If global counter 0 is at 2 and it is the first action in the turn:
  7283. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  7284. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  7285. -If global counter 0 is at 1, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  7286. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  7287. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  7288. -If global counter 0 is at 1 and it is the second action in the turn:
  7289. --Use a Fang attack. Add 1 to global counter 0.
  7290. -If global counter 0 is at 0, at least 1 party member has a DEF debuff, and it is the first action in the turn:
  7291. --Use a Fang attack. Add 1 to global counter 0.
  7292. -If global counter 0 is at 0 and it is the first action in the turn:
  7293. --1/2 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  7294. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  7295. -Else:
  7296. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  7297. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  7298.  
  7299. Routine 2:
  7300. -Take 2 actions per turn.
  7301. -If self is at or below 40% LIFE, swap to routine 3.
  7302. -If global counter 1 is at 0 and it is the second action in the turn:
  7303. --Use Rain Prayer. Set global counter 1 to 10.
  7304. -If global counter 1 is at 10 and it is the first action in the turn:
  7305. --Use Acid Rain. Set counter 0 to 1. Set global counter 0 to 1. Set global counter 1 to 20.
  7306. -If global counter 0 is at 9 and it is the second action in the turn:
  7307. --Use a Fang attack (Targets the party member with the lowest level). Set global counter 0 to 0.
  7308. -If global counter 2 is at 10, global counter 0 is at 8, and it is the first action in the turn:
  7309. --Use Acid Rain. Add 1 to global counter 0. Set global counter 2 to 0.
  7310. -If global counter 0 is at 8, at least 1 party member does not have a DEF debuff, and it is the first action in the turn:
  7311. --Use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  7312. -If global counter 0 is at 8 and it is the first action in the turn:
  7313. --Use a Fang attack. Add 1 to global counter 0.
  7314. -If global counter 0 is at 7 and it is the second action in the turn:
  7315. --Use Rain Prayer. Add 1 to global counter 0. Add 10 to global counter 2.
  7316. -If global counter 0 is at 6, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  7317. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  7318. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  7319. -If global counter 0 is at 6 and it is the first action in the turn:
  7320. --Use a Fang attack. Add 1 to global counter 0.
  7321. -If global counter 0 is at 5 and it is the second action in the turn:
  7322. --Use a Fang attack. Add 1 to global counter 0.
  7323. -If global counter 0 is at 4, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  7324. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  7325. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  7326. -If global counter 0 is at 4 and it is the first action in the turn:
  7327. --Use a Fang attack. Add 1 to global counter 0.
  7328. -If global counter 0 is at 3, at least 1 party member does not have a DEF debuff, and it is the second action in the turn:
  7329. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  7330. --2/3 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  7331. -If global counter 0 is at 3 and it is the second action in the turn:
  7332. --Use a Fang attack. Add 1 to global counter 0.
  7333. -If global counter 0 is at 2 and it is the first action in the turn:
  7334. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  7335. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  7336. -If global counter 0 is at 1, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  7337. --Use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  7338. -If global counter 0 is at 1 and it is the second action in the turn:
  7339. --Use a Fang attack. Add 1 to global counter 0.
  7340. -If global counter 0 is at 0, at least 1 party member does not have a DEF debuff, and it is the first action in the turn:
  7341. --2/3 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  7342. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  7343. -If global counter 0 is at 0 and it is the first action in the turn:
  7344. --Use a Fang attack. Add 1 to global counter 0.
  7345. -Else:
  7346. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  7347. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  7348.  
  7349. Routine 3:
  7350. -Take 2 actions per turn.
  7351. -If global counter 1 is at 0, any party member is inflicted with Poison, and it is the second action in the turn:
  7352. --Use Venomous Ball (Targets party members that are inflicted with Poison). Set global counter 1 to 10.
  7353. -If global counter 1 is at 10 and it is the first action in the turn:
  7354. --Use Chew (Targets the party member with the lowest level). Set counter 0 to 1. Set global counter 1 to 10.
  7355. -If global counter 0 is at 9 and it is the second action in the turn:
  7356. --Use a Fang attack. Set global counter 0 to 0.
  7357. -If global counter 0 is at 8, global counter 2 is at 10, and it is the first action in the turn:
  7358. --Use Acid Rain. Add 1 to global counter 0. Set global counter 2 to 0.
  7359. -If global counter 0 is at 8, at least 1 party member does not have a DEF debuff, and it is the first action in the turn:
  7360. --Use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  7361. -If global counter 0 is at 8 and it is the first action in the turn:
  7362. --Use a Fang attack. Add 1 to global counter 0.
  7363. -If global counter 0 is at 7, at least 1 party member does not have an MDF debuff, and it is the second action in the turn:
  7364. --Use Rain Prayer. Add 1 to global counter 0. Add 10 to global counter 2.
  7365. -If global counter 0 is at 7 and it is the second action in the turn:
  7366. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  7367. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  7368. -If global counter 0 is at 6, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  7369. --1/2 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  7370. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  7371. -If global counter 0 is at 6 and it is the first action in the turn:
  7372. --Use a Fang attack. Add 1 to global counter 0.
  7373. -If global counter 0 is at 5 and it is the second action in the turn:
  7374. --Use a Fang attack. Add 1 to global counter 0.
  7375. -If global counter 0 is at 4, counter 2 is at 10, and it is the first action in the turn:
  7376. --Use Acid Rain. Set counter 2 to 0. Add 1 to global counter 0.
  7377. -If global counter 0 is at 4, at least 1 party member is not inflicted with Poison, and it is the first action in the turn:
  7378. --2/3 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  7379. --1/3 chance to use a Fang attack. Add 1 to global counter 0.
  7380. -If global counter 0 is at 4 and it is the first action in the turn:
  7381. --Use a Fang attack. Add 1 to global counter 0.
  7382. -If global counter 0 is at 3, any party member is inflicted with Poison, and it is the second action in the turn:
  7383. --Use Venomous Ball (Targets party members that are inflicted with Poison). Add 1 to global counter 0.
  7384. -If global counter 0 is at 3, at least 1 party member does not have a DEF debuff, and it is the second action in the turn:
  7385. --1/4 chance to use Rain Prayer. Set counter 2 to 10. Add 1 to global counter 0.
  7386. --1/4 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  7387. --2/4 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  7388. -If global counter 0 is at 3 and it is the second action in the turn:
  7389. --Use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  7390. -If global counter 0 is at 2 and it is the first action in the turn:
  7391. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  7392. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  7393. -If global counter 0 is at 1, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  7394. --3/4 chance to use Acid Ball (Targets party members that are not inflicted with Poison). Add 1 to global counter 0.
  7395. --1/4 chance to use a Fang attack. Add 1 to global counter 0.
  7396. -If global counter 0 is at 1 and it is the second action in the turn:
  7397. --Use a Fang attack. Add 1 to global counter 0.
  7398. -If global counter 0 is at 0, any party member is inflicted with Poison, and it is the second action in the turn:
  7399. --Use Venomous Ball (Targets party members that are inflicted with Poison). Add 1 to global counter 0.
  7400. -If global counter 0 is at 0, at least 1 party member does not have a DEF debuff, and it is the first action in the turn:
  7401. --2/3 chance to use Water Wings (Targets party members that do not have a DEF debuff). Add 1 to global counter 0.
  7402. --1/3 chance to use a Fang attack (Targets the party member with the lowest level). Add 1 to global counter 0.
  7403. -If global counter 0 is at 0 and it is the first action in the turn:
  7404. --Use a Fang attack. Add 1 to global counter 0.
  7405. -Else:
  7406. --1/2 chance to use a Fang attack. Add 1 to global counter 0.
  7407. --1/2 chance to use Chew (Targets the party member with the lowest level). Add 1 to global counter 0.
  7408.  
  7409. Illusory Dream (LV. 84/79)
  7410. ==========================
  7411. Routine 1:
  7412. -Take 2 actions per turn.
  7413. -If self is at or below 70% LIFE, swap to routine 2.
  7414. -If global counter 0 is at 5, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  7415. --Use Poison Scales. Set global counter 0 to 0.
  7416. -If global counter 0 is at 5 and it is the second action in the turn:
  7417. --1/3 chance to use a Claw attack. Set global counter 0 to 0.
  7418. --1/3 chance to use a Melee attack. Set global counter 0 to 0.
  7419. --1/3 chance to use Double Claw. Set global counter 0 to 0.
  7420. -If global counter 0 is at 4, counter 0 is at 10, and it is the first action in the turn:
  7421. --Use Madness Flight. Set counter 0 to 0. Add 1 to global counter 0.
  7422. -If global counter 0 is at 4, global counter 1 is at 10, and it is the first action in the turn:
  7423. --1/2 chance to use Double Claw. Add 1 to global counter 0. Set global counter 1 to 0.
  7424. --1/2 chance to use a Melee attack. Add 1 to global counter 0. Set global counter 1 to 0.
  7425. -If global counter 0 is at 3, counter 0 is at 0, it is the second action in the turn, and self does not have an ATK buff:
  7426. --1/2 chance to use Gather Power (Targets the user's side). Set counter 0 to 10. Add 1 to global counter 0.
  7427. --1/2 chance to use Double Claw. Add 1 to global counter 0.
  7428. -If global counter 0 is at 3, counter 1 is at 0, and it is the second action in the turn:
  7429. --1/2 chance to use Poison Scales. Add 1 to global counter 0. Set global counter 1 to 10.
  7430. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7431. -If global counter 0 is at 2 and it is the first action in the turn:
  7432. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  7433. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7434. -If global counter 0 is at 1 and it is the second action in the turn:
  7435. --1/2 chance to use Double Claw. Add 1 to global counter 0.
  7436. --1/2 chance to use Poison Scales. Add 1 to global counter 0.
  7437. -If global counter 0 is at 0 and it is the first action in the turn:
  7438. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7439. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  7440. -Else:
  7441. --1/3 chance to use a Melee attack.
  7442. --1/3 chance to use a Claw attack.
  7443. --1/3 chance to use Double Claw.
  7444.  
  7445. Routine 2:
  7446. -Take 2 actions per turn.
  7447. -If the extra turn phase is active and it is the second action in the turn:
  7448. --9/10 chance to use Venomous Scratch. (Targets party members that are inflicted with Sleep).
  7449. --1/10 chance to use Venomous Scratch.
  7450. -If the extra turn phase is active and it is the first action in the turn:
  7451. --Use Sleeper Lock-on (Targets the user's side).
  7452. -If global counter 1 is at 10:
  7453. --Use Sleep Scales. Set global counter 0 to 0. Set global counter 1 to 20.
  7454. -If global counter 1 is at 0 and counter 2 is at 0:
  7455. --Use Sleep React (Targets the user's side). Set counter 2 to 10. Set global counter 1 to 10. Set global counter 0 to 0.
  7456. -If global counter 0 is at 13 and it is the second action in the turn:
  7457. --Use Sleep React (Targets the user's side). Set global counter 0 to 0.
  7458. -If global counter 0 is at 12 and it is the first action in the turn:
  7459. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7460. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  7461. -If global counter 0 is at 11 and it is the second action in the turn:
  7462. --2/3 chance to use Sleep Scales. Add 1 to global counter 0.
  7463. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  7464. -If global counter 0 is at 10 and it is the first action in the turn:
  7465. --2/3 chance to use Double Claw. Add 1 to global counter 0.
  7466. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  7467. -If global counter 0 is at 9 and it is the second action in the turn:
  7468. --1/3 chance to use a Melee attack. Add 1 to global counter 0.
  7469. --1/3 chance to use Poison Scales. Add 1 to global counter 0.
  7470. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  7471. -If global counter 0 is at 8 and it is the first action in the turn:
  7472. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7473. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  7474. -If global counter 0 is at 7 and it is the second action in the turn:
  7475. --1/2 chance to use Poison Scales. Add 1 to global counter 0.
  7476. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7477. -If global counter 0 is at 6 and it is the first action in the turn:
  7478. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7479. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  7480. -If global counter 0 is at 5, at least 1 party member is not inflicted with Sleep, and it is the second action in the turn:
  7481. --1/2 chance to use Double Claw. Add 1 to global counter 0.
  7482. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  7483. -If global counter 0 is at 5, at least 1 party member is not inflicted with Poison, and it is the second action in the turn:
  7484. --1/2 chance to use Poison Scales. Add 1 to global counter 0.
  7485. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7486. -If global counter 0 is at 5 and it is the second action in the turn:
  7487. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  7488. --1/3 chance to use a Melee attack. Add 1 to global counter 0.
  7489. --1/3 chance to use Double Claw. Add 1 to global counter 0.
  7490. -If global counter 0 is at 4, counter 0 is at 10, and it is the first action in the turn:
  7491. --Use Madness Flight. Set counter 0 to 0. Add 1 to global counter 0.
  7492. -If global counter 0 is at 4, counter 1 is at 10, and it is the first action in the turn:
  7493. --Use Double Claw. Set counter 1 to 0. Add 1 to global counter 0.
  7494. -If global counter 0 is at 3, counter 0 is at 0, it is the second action in the turn, and self does not have an ATK buff:
  7495. --1/2 chance to use Gather Power (Targets the user's side). Set counter 0 to 10. Add 1 to global counter 0.
  7496. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7497. -If global counter 0 is at 3, counter 0 is at 0, and it is the second action in the turn:
  7498. --Use Poison Scales. Set counter 1 to 10. Add 1 to global counter 0.
  7499. -If global counter 0 is at 2 and it is the first action in the turn:
  7500. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  7501. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7502. -If global counter 0 is at 1 and it is the second action in the turn:
  7503. --2/3 chance to use Sleep Scales. Add 1 to global counter 0.
  7504. --1/3 chance to use Poison Scales. Add 1 to global counter 0.
  7505. -If global counter 0 is at 0 and it is the first action in the turn:
  7506. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7507. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  7508. -If global counter 0 is at 0 and it is the second action in the turn:
  7509. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7510. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  7511. -Else:
  7512. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  7513. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  7514.  
  7515. Illusory Alloy (LV. 86/81)
  7516. ==========================
  7517. Routine 1:
  7518. -Take 2 actions per turn.
  7519. -If self is at or below 55% LIFE, swap to routine 2.
  7520. -If counter 1 is at or above 4 and it is the first action in the turn:
  7521. --Use Tail Blade. Add 1 to counter 0. Set counter 1 to 0.
  7522. -If counter 0 is at or above 3:
  7523. --Use Flame Bane. Set counter 0 to 0. Add 1 to counter 1.
  7524. -Else:
  7525. --1/3 chance to use a Fang attack. Add 1 to counters 0 and 1.
  7526. --2/3 chance to use a Ranged attack. Add 1 to counters 0 and 1.
  7527.  
  7528. Routine 2:
  7529. -Take 2 actions per turn:
  7530. -If global counter 2 is at 0:
  7531. --Use Turboregeneration (Targets the user's side). Set global counter 2 to 10.
  7532. -If global counter 2 is at 10 and it is the second action in the turn:
  7533. --Use Heat Charge (Targets the user's side). Set global counter 2 to 20.
  7534. -If global counter 2 is at 20:
  7535. --Use Heat Breath. Set global counter 2 to 30.
  7536. -If global counter 2 is at 30 and self is at or below 30% LIFE:
  7537. --Use Internal Flare (Targets the user's side). Add 1 to counters 0, 1, and 2. Add 1 to global counter 0. Set global counter 2 to 50.
  7538. -If counter 2 is at or above 14:
  7539. --Use Turboregeneration (Targets the user's side). Add 1 to counters 0 and 1. Set counter 2 to 0. Add 1 to global counter 0.
  7540. -If global counter 0 is at or above 7, global counter 1 is at 0, and it is the second action in the turn:
  7541. --Use Heat Charge (Targets the user's side). Add 1 to counters 0, 1, and 2. Add 1 to global counter 0. Set global counter 1 to 10.
  7542. -If global counter 0 is at or above 7 and global counter 1 is at 10:
  7543. --Use Heat Breath. Add 1 to counters 0, 1, and 2. Set global counters 0 and 1 to 0.
  7544. -If counter 1 is at or above 4 and it is the first action in the turn:
  7545. --Use Tail Blade. Add 1 to counters 0 and 2. Set counter 1 to 0. Add 1 to global counter 0.
  7546. -If counter 0 is at or above 3 and it is the first action in the turn:
  7547. --Use Flame Bane. Set counter 0 to 0. Add 1 to counters 1 and 2. Add 1 to global counter 0.
  7548. -Else:
  7549. --1/2 chance to use a Fang attack. Add 1 to counters 0, 1, and 2. Add 1 to global counter 0.
  7550. --1/2 chance to use a Ranged attack. Add 1 to counters 0, 1, and 2. Add 1 to global counter 0.
  7551.  
  7552. Illusory Charger (LV. 88/83)
  7553. ============================
  7554. Routine 1:
  7555. -Take 2 actions per turn.
  7556. -If counter 2 is at or above 5, swap to routine 3.
  7557. -If self is at or below 55% LIFE swap to routine 2.
  7558. -If counter 2 is at 0 and it is the 2nd action in the turn:
  7559. --Use Clean Sweep.
  7560. -If counter 1 is at or above 3:
  7561. --Use Aimed Shot (Targets the party member with the highest LIFE). Add 1 to counters 0 and 2. Set counter 1 to 0.
  7562. -If counter 0 is at or above 2:
  7563. --Use Clean Sweep. Set counter 0 to 0. Add 1 to counters 1 and 2.
  7564. -Else:
  7565. --Use a Ranged attack. Add 1 to counters 0, 1, and 2.
  7566.  
  7567. Routine 2:
  7568. -Take 2 actions per turn:
  7569. -If counter 2 is at or above 10, swap to routine 3.
  7570. -If global counter 1 is at 0:
  7571. --Use Discharge. Set global counter 1 to 10.
  7572. -If counter 2 is at or above 6 and global counter 2 is at 10:
  7573. --1/2 chance to use Aimed Shot (Targets the party member with the highest LIFE). Set global counter 2 to 0.
  7574. --1/2 chance to use Clean Sweep. Set global counter 2 to 0.
  7575. -If counter 2 is at or above 6 and global counter 2 is at 0:
  7576. --Use Discharge. Add 1 to counters 0 and 1. Set counter 2 to 10. Add 10 to global counter 2.
  7577. -If counter 1 is at or above 3:
  7578. --Use Aimed Shot (Targets the party member with the highest LIFE). Add 1 to counters 0 and 2. Set counter 1 to 0.
  7579. -If counter 0 is at or above 2:
  7580. --Use Clean Sweep. Set counter 0 to 0. Add 1 to counters 1 and 2.
  7581. -Else:
  7582. --1/3 chance to use a Ranged attack. Add 1 to counters 0, 1, and 2.
  7583. --2/3 chance to use a Melee attack. Add 1 to counters 0, 1, and 2.
  7584.  
  7585. Routine 3:
  7586. -Take 1 action per turn.
  7587. -If counter 0 is at or above 10 and self is at or above 56% LIFE, swap to routine 1.
  7588. -If counter 0 is at or above 10 and self is at or below 55% LIFE, swap to routine 2.
  7589. -If counter 0 is at or above 2:
  7590. --Use Railgun. Set counter 0 to 10. Set global counter 2 to 0.
  7591. -If counter 0 is at or above 1:
  7592. --Use Rail Charge (Targets the user's side). Add 1 to counter 0. Set global counter 2 to 0.
  7593. -Else:
  7594. --Use Rail Charge (Targets the user's side). Add 1 to counter 0. Set global counter 2 to 0.
  7595.  
  7596. Illusory Strength (LV. 90/85)
  7597. =============================
  7598. Routine 1:
  7599. -Take 2 actions per turn.
  7600. -If self is at or below 80% LIFE, swap to routine 2.
  7601. -If global counter 2 is at 10 and it is the first action in the turn:
  7602. --Use Burning Breath. Set global counter 0 to 11. Set global counter 2 to 0.
  7603. -If is the first action in the turn, self does not have an Inflict React buff, and counter 2 is at 0:
  7604. --Use Blood React. Set counter 2 to 10. Set global counter 0 to 8.
  7605. -If it is the second action in the turn and counter 2 is at 10:
  7606. --Use Power Tackle (Targets the party member with the lowest level). Set counter 2 to 0. Set global counter 0 to 9.
  7607. -If the extra turn phase is active, it is the first action in the turn, and any party member is inflcted with Bleed:
  7608. --Use Blood Frenzy (Targets the user's side). Set counter 2 to 0.
  7609. -If the extra turn phase is active, it is the second action in the turn, and no party members are inflicted with Bleed:
  7610. --Use lost the scent of blood. (Targets the user's side).
  7611. -If global counter 0 is at 13 and it is the second action in the turn:
  7612. --1/3 chance to use Power Tackle (Targets the party member with the lowest level). Set global counter 0 to 0.
  7613. --1/3 chance to use Melee attack 2. Set global counter 0 to 0.
  7614. --1/3 chance to use Melee attack 1. Set global counter 0 to 0.
  7615. -If global counter 0 is at 12 and it is the first action in the turn:
  7616. --1/3 chance to use Melee attack 1. Set global counter 0 to 0.
  7617. --1/3 chance to use Hammer Crush (Targets the party member with the lowest level). Set global counter 0 to 0.
  7618. --1/3 chance to use Melee attack 2. Set global counter 0 to 0.
  7619. -If global counter 0 is at 11 and it is the second action in the turn:
  7620. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7621. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7622. -If global counter 0 is at 10, global counter 2 is at 10, and it is the first action in the turn:
  7623. --Use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7624. -If global counter 0 is at 10 and it is the first action in the turn:
  7625. --1/3 chance to use Melee attack 1. Add 1 to global counter 0.
  7626. --1/3 chance to use Hammer Crush (Targets the party member with the lowest level). Add 1 to global counter 0.
  7627. --1/3 chance to use Melee attack 2. Add 1 to global counter 0.
  7628. -If global counter 0 is at 9 and it is the second action in the turn:
  7629. --Use Gather Power (Targets the user's side). Add 1 to global counter 0. Set global counter 2 to 10.
  7630. -If global counter 0 is at 8 and it is the first action in the turn:
  7631. --Use Power Tackle (Targets the party member with the lowest level). Add 1 to global counter 0.
  7632. -If global counter 0 is at 7 and it is the second action in the turn:
  7633. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7634. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7635. -If global counter 0 is at 6 and it is the first action in the turn:
  7636. --1/2 chance to use Power Tackle. Add 1 to global counter 0.
  7637. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7638. -If global counter 0 is at 5 and it is the second action in the turn:
  7639. --1/3 chance to use Melee attack 2. Add 1 to global counter 0.
  7640. --1/3 chance to use Hammer Crush. Add 1 to global counter 0.
  7641. --1/3 chance to use Power Tackle. Add 1 to global counter 0.
  7642. -If global counter 0 is at 4 and it is the first action in the turn:
  7643. --2/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7644. --1/4 chance to use Hammer Crush. Add 1 to global counter 0.
  7645. --1/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7646. -If global counter 0 is at 3 and it is the second action in the turn:
  7647. --1/4 chance to use Power Tackle. Add 1 to global counter 0.
  7648. --1/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7649. --1/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7650. --1/4 chance to use Hammer Crush. Add 1 to global counter 0.
  7651. -If global counter 0 is at 2 and it is the first action in the turn:
  7652. --Use Burning Breath. Add 1 to global counter 0.
  7653. -If global counter 0 is at 2 and it is the first action in the turn:
  7654. --2/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7655. --1/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7656. --1/4 chance to use Power Tackle. Add 1 to global counter 0.
  7657. -If global counter 0 is at 2 and it is the first action in the turn:
  7658. --2/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7659. --1/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7660. --1/4 chance to use Hammer Crush. Add 1 to global counter 0.
  7661. -If global counter 0 is at 1 and it is the second action in the turn:
  7662. --Use Gather Power (Targets the user's side). Set global counter 0 to 1.
  7663. -If global counter 0 is at 0 and it is the first action in the turn:
  7664. --2/3 chance to use Melee attack 1. Set global counter 0 to 1.
  7665. --1/3 chance to use Melee attack 2. Set global counter 0 to 1.
  7666. -If global counter 2 is at 10 and it is the first action in the turn:
  7667. --Use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7668. -If global counter 2 is at 0 and it is the second action in the turn:
  7669. --Use Gather Power (Targets the user's side). Set global counter 0 to 1. Set global counter 2 to 10.
  7670. -Else:
  7671. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7672. --1/2 chance to use Hammer Crush. Add 1 to global counter 0.
  7673.  
  7674. Routine 2:
  7675. -Take 2 actions per turn.
  7676. -If self is at or below 50% LIFE, swap to routine 3.
  7677. -If global counter 2 is at 10 and it is the first action in the turn:
  7678. --Use Burning Breath. Set global counter 0 to 11. Set global counter 2 to 0.
  7679. -If is the first action in the turn, self does not have an Inflict React buff, and counter 2 is at 0:
  7680. --Use Blood React. Set counter 2 to 10. Set global counter 0 to 8.
  7681. -If it is the second action in the turn and counter 2 is at 10:
  7682. --Use Power Tackle. Set counter 2 to 0. Set global counter 0 to 9.
  7683. -If the extra turn phase is active, it is the first action in the turn, and any party member is inflcted with Bleed:
  7684. --Use Blood Frenzy (Targets the user's side).
  7685. -If the extra turn phase is active, it is the second action in the turn, and no party members are inflicted with Bleed:
  7686. --Use lost the scent of blood. (Targets the user's side).
  7687. -If global counter 0 is at 13 and it is the second action in the turn:
  7688. --1/3 chance to use Power Tackle. Set global counter 0 to 0.
  7689. --1/3 chance to use Melee attack 2. Set global counter 0 to 0.
  7690. --1/3 chance to use Melee attack 1. Set global counter 0 to 0.
  7691. -If global counter 0 is at 12 and it is the first action in the turn:
  7692. --Use Melee attack 1. Set global counter 0 to 0.
  7693. -If global counter 0 is at 11 and it is the second action in the turn:
  7694. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7695. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7696. -If global counter 0 is at 10, global counter 2 is at 10, and it is the first action in the turn:
  7697. --Use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7698. -If global counter 0 is at 10 and it is the first action in the turn:
  7699. --1/3 chance to use Melee attack 1. Add 1 to global counter 0.
  7700. --1/3 chance to use Hammer Crush. Add 1 to global counter 0.
  7701. --1/3 chance to use Melee attack 2. Add 1 to global counter 0.
  7702. -If global counter 0 is at 9 and it is the second action in the turn:
  7703. --Use Gather Power (Targets the user's side). Add 1 to global counter 0. Set global counter 2 to 10.
  7704. -If global counter 0 is at 8 and it is the first action in the turn:
  7705. --Use Power Tackle. Add 1 to global counter 0.
  7706. -If global counter 0 is at 7 and it is the second action in the turn:
  7707. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7708. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7709. -If global counter 0 is at 6, global counter 2 is at 10, and it is the first action in the turn:
  7710. --Use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7711. -If global counter 0 is at 6 and it is the first action in the turn:
  7712. --Use Hammer Crush. Add 1 to global counter 0.
  7713. -If global counter 0 is at 5 and it is the second action in the turn:
  7714. --3/4 chance to use Gather Power (Targets self). Add 1 to global counter 0. Set global counter 2 to 10.
  7715. --1/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7716. -If global counter 0 is at 4 and it is the first action in the turn:
  7717. --1/2 chance to use Power Tackle. Add 1 to global counter 0.
  7718. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7719. -If global counter 0 is at 3 and it is the second action in the turn:
  7720. --1/3 chance to use Hammer Crush. Add 1 to global counter 0.
  7721. --1/3 chance to use Melee attack 1. Add 1 to global counter 0.
  7722. --1/3 chance to use Power Tackle. Add 1 to global counter 0.
  7723. -If global counter 0 is at 2 and it is the first action in the turn:
  7724. --2/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7725. --1/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7726. --1/4 chance to use Power Tackle. Add 1 to global counter 0.
  7727. -If global counter 0 is at 2 and it is the first action in the turn:
  7728. --2/4 chance to use Melee attack 1.
  7729. --1/4 chance to use Power Tackle.
  7730. --1/4 chance to use Hammer Crush.
  7731. -If global counter 0 is at 1 and it is the second action in the turn:
  7732. --Use Burning Breath. Add 1 to global counter 0.
  7733. -If global counter 0 is at 0 and it is the second action in the turn:
  7734. --Use Gather Power (Targets the user's side). Set global counter 0 to 2.
  7735. -If global counter 0 is at 0 and it is the first action in the turn:
  7736. --2/3 chance to use Melee attack 1. Set global counter 0 to 1.
  7737. --1/3 chance to use Melee attack 2. Set global counter 0 to 1.
  7738. -If global counter 2 is at 10 and it is the first action in the turn:
  7739. --1/2 chance to use Rampage. Add 1 to global counter 0. Set global counter 2 to 0.
  7740. --1/2 chance to use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7741. -If global counter 2 is at 0 and it is the second action in the turn:
  7742. --Use Gather Power (Targets the user's side). Set global counter 0 to 1. Set global counter 2 to 10.
  7743. -Else:
  7744. --1/2 chance to use Melee attack 1. Add 1 to counter 1. Set global counter 0 to 0.
  7745. --1/2 chance to use Hammer Crush. Add 1 to counter 1. Set global counter 0 to 0.
  7746.  
  7747. Routine 3:
  7748. -Take 2 actions per turn.
  7749. -If global counter 2 is at 10 and it is the first action in the turn:
  7750. --2/3 chance to use Rampage. Set global counter 0 to 1. Set global counter 2 to 0.
  7751. --1/3 chance to use Burning Breath. Set global counter 0 to 1. Set global counter 2 to 0.
  7752. -If is the first action in the turn, self does not have an Inflict React buff, and counter 2 is at 0:
  7753. --Use Blood React. Set counter 2 to 10. Set global counter 0 to 8.
  7754. -If it is the second action in the turn and counter 2 is at 10:
  7755. --Use Power Tackle. Set counter 2 to 0. Set global counter 0 to 9.
  7756. -If the extra turn phase is active, it is the first action in the turn, and any party member is inflcted with Bleed:
  7757. --Use Blood Frenzy (Targets the user's side).
  7758. -If the extra turn phase is active, it is the second action in the turn, and no party members are inflicted with Bleed:
  7759. --Use lost the scent of blood. (Targets the user's side).
  7760. -If global counter 0 is at 13 and it is the second action in the turn:
  7761. --1/3 chance to use Power Tackle. Set global counter 0 to 0.
  7762. --1/3 chance to use Melee attack 2. Set global counter 0 to 0.
  7763. --1/3 chance to use Melee attack 1. Set global counter 0 to 0.
  7764. -If global counter 0 is at 12 and it is the first action in the turn:
  7765. --Use Melee attack 1. Set global counter 0 to 0.
  7766. -If global counter 0 is at 11 and it is the second action in the turn:
  7767. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7768. --1/2 chance to use Power Tackle. Add 1 to global counter 0.
  7769. -If global counter 0 is at 10, global counter 2 is at 10, and it is the first action in the turn:
  7770. --Use Rampage. Add 1 to global counter 0. Set global counter 2 to 0.
  7771. -If global counter 0 is at 10 and it is the first action in the turn:
  7772. --1/3 chance to use Melee attack 1. Add 1 to global counter 0.
  7773. --1/3 chance to use Hammer Crush. Add 1 to global counter 0.
  7774. --1/3 chance to use Power Tackle. Add 1 to global counter 0.
  7775. -If global counter 0 is at 9 and it is the second action in the turn:
  7776. --Use Gather Power (Targets the user's side). Add 1 to global counter 0. Set global counter 2 to 10.
  7777. -If global counter 0 is at 8 and it is the first action in the turn:
  7778. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7779. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7780. -If global counter 0 is at 7 and it is the second action in the turn:
  7781. --1/2 chance to use Power Tackle. Add 1 to global counter 0.
  7782. --1/2 chance to use Melee attack 2. Add 1 to global counter 0.
  7783. -If global counter 0 is at 6, global counter 2 is at 10, and it is the first action in the turn:
  7784. --2/3 chance to use Rampage. Add 1 to global counter 0. Set global counter 2 to 0.
  7785. --1/3 chance to use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7786. -If global counter 0 is at 6 and it is the first action in the turn:
  7787. --Use Power Tackle. Add 1 to global counter 0.
  7788. -If global counter 0 is at 5 and it is the second action in the turn:
  7789. --Use Gather Power (Targets self). Add 1 to global counter 0. Set global counter 2 to 10.
  7790. -If global counter 0 is at 4 and it is the first action in the turn:
  7791. --1/2 chance to use Hammer Crush. Add 1 to global counter 0.
  7792. --1/2 chance to use Melee attack 1. Add 1 to global counter 0.
  7793. -If global counter 0 is at 3 and it is the second action in the turn:
  7794. --2/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7795. --1/4 chance to use Melee attack 2. Add 1 to global counter 0.
  7796. --1/4 chance to use Power Tackle. Add 1 to global counter 0.
  7797. -If global counter 0 is at 2 and it is the first action in the turn:
  7798. --2/4 chance to use Melee attack 1. Add 1 to global counter 0.
  7799. --1/4 chance to use Power Tackle. Add 1 to global counter 0.
  7800. --1/4 chance to use Hammer Crush. Add 1 to global counter 0.
  7801. -If global counter 0 is at 1 and it is the second action in the turn:
  7802. --Use Burning Breath. Add 1 to global counter 0.
  7803. -If global counter 0 is at 0 and it is the second action in the turn:
  7804. --Use Gather Power (Targets the user's side). Set global counter 0 to 2.
  7805. -If global counter 0 is at 0 and it is the second action in the turn:
  7806. --2/3 chance to use Melee attack 1. Set global counter 0 to 2.
  7807. --1/3 chance to use Melee attack 2. Set global counter 0 to 2.
  7808. -If global counter 2 is at 10 and it is the first action in the turn:
  7809. --2/3 chance to use Rampage. Add 1 to global counter 0. Set global counter 2 to 0.
  7810. --1/3 chance to use Burning Breath. Add 1 to global counter 0. Set global counter 2 to 0.
  7811. -If global counter 2 is at 0 and it is the second action in the turn:
  7812. --Use Gather Power (Targets the user's side). Set global counter 0 to 1. Set global counter 2 to 10.
  7813. -Else:
  7814. --1/2 chance to use Melee attack 1. Add 1 to counter 1. Set global counter 0 to 0.
  7815. --1/2 chance to use Hammer Crush. Add 1 to counter 1. Set global counter 0 to 0.
  7816.  
  7817. Illusory Darkpool (LV. 92/87)
  7818. =============================
  7819. Routine 1:
  7820. -Take 2 actions per turn.
  7821. -If self is at or below 70% LIFE and global counter 1 is at 0, swap to routine 2.
  7822. -If global counter 2 is at 11 and it is the second action in the turn:
  7823. --1/2 chance to use a Fang attack. Set global counters 1 and 2 to 0.
  7824. --1/2 chance to use a Claw attack. Set global counters 1 and 2 to 0.
  7825. -If global counter 2 is at 10, global counter 1 is at 20, and it is the first action in the turn:
  7826. --Use Death Sentence. Set global counter 1 to 0. Add 1 to global counter 2.
  7827. -If global counter 2 is at 9 and it is the second action in the turn:
  7828. --Use Death Omen (Targets the user's side). Set global counter 1 to 20. Add 1 to global counter 2.
  7829. -If global counter 2 is at 8 and it is the first action in the turn:
  7830. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7831. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7832. -If global counter 2 is at 7 and it is the second action in the turn:
  7833. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7834. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7835. -If global counter 2 is at 6 and it is the first action in the turn:
  7836. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  7837. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7838. -If global counter 2 is at 5 and it is the second action in the turn:
  7839. --1/2 chance to use a Fang attack. Add 1 to global counter 2. Set counter 3 to 0.
  7840. --1/2 chance to use a Claw attack. Add 1 to global counter 2. Set counter 3 to 0.
  7841. -If global counter 2 is at 4, global counter 1 is at 10, and it is the first action in the turn:
  7842. --Use Exhaust Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7843. -If global counter 2 is at 3 and it is the second action in the turn:
  7844. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  7845. -If global counter 2 is at 2, global counter 1 is at 20, and it is the first action in the turn:
  7846. --Use Death Sentence. Set global counter 1 to 0. Add 1 to global counter 2.
  7847. -If global counter 2 is at 1 and it is the second action in the turn:
  7848. --Use Death Omen (Targets the user's side). Set global counter 1 to 20. Add 1 to global counter 2.
  7849. -If global counter 2 is at 0 and it is the first action in the turn:
  7850. --1/3 chance to use Power Slash. Add 1 to global counter 2.
  7851. --1/3 chance to use a Fang attack. Add 1 to global counter 2.
  7852. --1/3 chance to use a Claw attack. Add 1 to global counter 2.
  7853. -Else:
  7854. --1/3 chance to use a Claw attack. Set global counter 1 to 0. Add 1 to global counter 2.
  7855. --1/3 chance to use a Fang attack. Set global counter 1 to 0. Add 1 to global counter 2.
  7856. --1/3 chance to use Power Slash. Set global counter 1 to 0. Add 1 to global counter 2.
  7857.  
  7858. Routine 2:
  7859. -Take 2 actions per turn.
  7860. -If self is at or below 40% LIFE and global counter 1 is at 0, swap to routine 3.
  7861. -If global counter 1 is at 20 and it is the first action in the turn:
  7862. --Use Death Sentence. Set global counter 1 to 0. Add 1 to global counter 2.
  7863. -If global counter 2 is at 10, global counter 1 is at 10, and it is the first action in the turn:
  7864. --1/2 chance to use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7865. --1/2 chance to use Exhaust Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7866. -If global counter 0 is at 0, and it is the first action in the turn:
  7867. --1/2 chance to use a Fang attack. Set global counter 0 to 10.
  7868. --1/2 chance to use a Claw attack. Set global counter 0 to 10.
  7869. -If global counter 0 is at 10 and it is the second action in the turn:
  7870. --Use its time to take a deep breath. Set global counter 0 to 20. Set global counter 1 to 10.
  7871. -If global counter 0 is at 20 and it is the first action in the turn:
  7872. --Use Ebon Breath. Set global counter 0 to 30. Set global counter 1 to 0.
  7873. -If global counter 0 is at 30 and it is the first action in the turn:
  7874. --1/2 chance to use a Fang attack. Set global counter 1 to 0.
  7875. --1/2 chance to use a Claw attack. Set global counter 1 to 0.
  7876. -If global counter 2 is at 15 and it is the second action in the turn:
  7877. --1/2 chance to use a Fang attack. Set global counters 1 and 2 to 0.
  7878. --1/2 chance to use a Claw attack. Set global counters 1 and 2 to 0.
  7879. -If global counter 2 is at 14, counter 1 is at 20, and it is the first action in the turn:
  7880. --Use Death Sentence. Set global counter 1 to 0. Add 1 to global counter 2.
  7881. -If global counter 2 is at 13 and it is the second action in the turn:
  7882. --Use Death Omen (Targets the user's side). Set global counter 1 to 20. Add 1 to global counter 2.
  7883. -If global counter 2 is at 12 and it is the first action in the turn:
  7884. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7885. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7886. -If global counter 2 is at 11 and it is the second action in the turn:
  7887. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7888. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7889. -If global counter 2 is at 10, global counter 1 is at 10, and it is the first action in the turn:
  7890. --1/2 chance to use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7891. --1/2 chance to use Exhaust Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7892. -If global counter 2 is at 9 and it is the second action in the turn:
  7893. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  7894. -If global counter 2 is at 8 and it is the first action in the turn:
  7895. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7896. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  7897. -If global counter 2 is at 7 and it is the second action in the turn:
  7898. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7899. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7900. -If global counter 2 is at 6 and it is the first action in the turn:
  7901. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  7902. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7903. -If global counter 2 is at 5 and it is the second action in the turn:
  7904. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7905. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7906. -If global counter 2 is at 4, global counter 1 is at 10, and it is the first action in the turn:
  7907. --Use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7908. -If global counter 2 is at 3 and it is the second action in the turn:
  7909. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  7910. -If global counter 2 is at 2 and it is the first action in the turn:
  7911. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7912. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7913. -If global counter 2 is at 1 and it is the second action in the turn:
  7914. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  7915. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7916. -If global counter 2 is at 0 and it is the first action in the turn:
  7917. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7918. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7919. -Else:
  7920. --1/3 chance to use a Claw attack. Set global counter 1 to 0. Add 1 to global counter 2.
  7921. --1/3 chance to use a Fang attack. Set global counter 1 to 0. Add 1 to global counter 2.
  7922. --1/3 chance to use Power Slash. Set global counter 1 to 0. Add 1 to global counter 2.
  7923.  
  7924. Routine 3:
  7925. -Take 2 actions per turn.
  7926. -If global counter 1 is at 20 and it is the first action in the turn:
  7927. --Use Death Sentence. Set global counter 1 to 0. Add 1 to global counter 2.
  7928. -If global counter 2 is at 10, global counter 1 is at 10, and it is the first action in the turn:
  7929. --1/2 chance to use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7930. --1/2 chance to use Exhaust Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7931. -If counter 1 is at 50 and it is the second action in the turn:
  7932. --Use its fangs to devour lifeforce (Targets the user's side). Set counter 0 to 1. Set counter 1 to 100. Set counter 2 to 0. Set global counter 2 to 0.
  7933. -If counter 1 is at 50 and it is the first action in the turn:
  7934. --Use its fangs to devour lifeforce (Targets the user's side). Set counter 0 to 1. Set counter 1 to 100. Set counter 2 to 0. Set global counter 2 to 1.
  7935. -If counter 1 is at 0:
  7936. --Use its crystal to gather dark energies (Targets the user's side). Set counter 0 to 1. Set counter 1 to 50. Set counter 2 to 0. Set global counter 2 to 0.
  7937. -If global counter 2 is at 17 and it is the second action in the turn:
  7938. --1/2 chance to use a Fang attack. Set global counters 1 and 2 to 0.
  7939. --1/2 chance to use a Claw attack. Set global counters 1 and 2 to 0.
  7940. -If global counter 2 is at 16, global counter 1 is at 10, and it is the first action in the turn:
  7941. --Use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7942. -If global counter 2 is at 15 and it is the second action in the turn:
  7943. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  7944. -If global counter 2 is at 14 and it is the first action in the turn:
  7945. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  7946. --1/2 chance to use Snap. Add 1 to global counter 2.
  7947. -If global counter 2 is at 13 and it is the second action in the turn:
  7948. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7949. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7950. -If global counter 2 is at 12 and it is the first action in the turn:
  7951. --Use Snap (Targets the party member with the highest LIFE). Add 1 to global counter 2.
  7952. -If global counter 2 is at 11 and it is the second action in the turn:
  7953. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7954. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7955. -If global counter 2 is at 10, global counter 1 is at 10, and it is the first action in the turn:
  7956. --Use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7957. -If global counter 2 is at 9 and it is the second action in the turn:
  7958. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  7959. -If global counter 2 is at 8 and it is the first action in the turn:
  7960. --2/3 chance to use Snap. Add 1 to global counter 2.
  7961. --1/3 chance to use a Claw attack. Add 1 to global counter 2.
  7962. -If global counter 2 is at 7 and it is the second action in the turn:
  7963. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7964. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7965. -If global counter 2 is at 6 and it is the first action in the turn:
  7966. --Use Power Slash. Add 1 to global counter 2.
  7967. -If global counter 2 is at 5 and it is the second action in the turn:
  7968. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7969. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7970. -If global counter 2 is at 4, global counter 1 is at 10, and it is the first action in the turn:
  7971. --Use Ebon Breath. Set global counter 1 to 0. Add 1 to global counter 2.
  7972. -If global counter 2 is at 4 and it is the first action in the turn:
  7973. --2/3 chance to use a Claw attack. Add 1 to global counter 2.
  7974. --1/3 chance to use Power Slash. Add 1 to global counter 2.
  7975. -If global counter 2 is at 3 and it is the second action in the turn:
  7976. --Use its time to take a deep breath (Targets the user's side). Set global counter 1 to 10. Add 1 to global counter 2.
  7977. -If global counter 2 is at 2 and it is the first action in the turn:
  7978. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7979. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7980. -If global counter 2 is at 1 and it is the second action in the turn:
  7981. --1/2 chance to use Power Slash. Add 1 to global counter 2.
  7982. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7983. -If global counter 2 is at 0 and it is the first action in the turn:
  7984. --1/2 chance to use a Claw attack. Add 1 to global counter 2.
  7985. --1/2 chance to use a Fang attack. Add 1 to global counter 2.
  7986. -Else:
  7987. --1/3 chance to use a Claw attack. Set global counter 1 to 0. Add 1 to global counter 2.
  7988. --1/3 chance to use a Fang attack. Set global counter 1 to 0. Add 1 to global counter 2.
  7989. --1/3 chance to use Power Slash. Set global counter 1 to 0. Add 1 to global counter 2.
  7990.  
  7991. Illusory Crystal (LV. 94/89)
  7992. ============================
  7993. Routine 1:
  7994. -Take 2 actions per turn.
  7995. -If self is at or below 70% LIFE, swap to routine 2.
  7996. -If global counter 0 is at 9 and it is the second action in the turn:
  7997. --1/2 chance to use a Claw attack. Set global counter 0 to 0.
  7998. --1/2 chance to use a Melee attack. Set global counter 0 to 0.
  7999. -If global counter 0 is at 8, at least 1 party member is not inflicted with Paralysis, and it is the first action in the turn:
  8000. --Use Typhoon Howl. Add 1 to global counter 0.
  8001. -If global counter 0 is at 8 and it is the first action in the turn:
  8002. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  8003. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8004. -If global counter 0 is at 7 and it is the second action in the turn:
  8005. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  8006. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8007. -If global counter 0 is at 6 and it is the first action in the turn:
  8008. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8009. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8010. -If global counter 0 is at 5 and it is the second action in the turn:
  8011. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8012. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8013. -If global counter 0 is at 4, it is the first action in the turn, and at least 1 party member is not inflicted with Paralysis:
  8014. --Use Typhoon Howl. Add 1 to global counter 0.
  8015. -If global counter 0 is at 4 and it is the first action in the turn:
  8016. --Use a Claw attack. Add 1 to global counter 0.
  8017. -If global counter 0 is at 3 and it is the second action in the turn:
  8018. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8019. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8020. -If global counter 0 is at 2 and it is the first action in the turn:
  8021. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8022. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8023. -If global counter 0 is at 1 and it is the second action in the turn:
  8024. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  8025. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8026. -If global counter 0 is at 0 and it is the first action in the turn:
  8027. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8028. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8029. -Else:
  8030. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8031. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8032.  
  8033. Routine 2:
  8034. -Take 2 actions per turn.
  8035. -If self is at or below 40% LIFE, swap to routine 2.
  8036. -If counter 2 is at 0 and it is the second action in the turn:
  8037. --Use its time to take a deep breath (Targets the user's side). Set counter 2 to 10. Set global counter 0 to 8.
  8038. -If counter 2 is at 10 and it is the first action in the turn:
  8039. --Use Crystal Breath. Set counter 2 to 20. Set global counter 0 to 9.
  8040. -If global counter 0 is at 8 and it is the first action in the turn:
  8041. --Use Crystal Breath. Set global counter 0 to 9.
  8042. -If global counter 0 is at 9 and it is the second action in the turn:
  8043. --1/2 chance to use a Claw attack. Set global counter 0 to 0.
  8044. --1/2 chance to use a Melee attack. Set global counter 0 to 0.
  8045. -If global counter 0 is at 8 and it is the first action in the turn:
  8046. --Use Crystal Breath. Add 1 to global counter 0.
  8047. -If global counter 0 is at 7 and it is the second action in the turn:
  8048. --Use its time to take a deep breath (Targets the user's side). Add 1 to global counter 0.
  8049. -If global counter 0 is at 6, it is the first action in the turn, and at least 1 party member is not inflicted with Paralysis:
  8050. --1/2 chance to use Dragon Fang (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  8051. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8052. -If global counter 0 is at 6 and it is the first action in the turn:
  8053. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8054. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8055. -If global counter 0 is at 5, it is the second action in the turn, and at least 1 party member is not inflicted with Paralysis:
  8056. --1/2 chance to use Typhoon Howl. Add 1 to global counter 0.
  8057. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8058. -If global counter 0 is at 5 and it is the second action in the turn:
  8059. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8060. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8061. -If global counter 0 is at 4 and it is the first action in the turn:
  8062. --Use a Claw attack. Add 1 to global counter 0.
  8063. -If global counter 0 is at 3 and it is the second action in the turn:
  8064. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8065. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  8066. -If global counter 0 is at 2 and it is the first action in the turn:
  8067. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8068. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8069. -If global counter 0 is at 1 and it is the second action in the turn:
  8070. --1/2 chance to use Dragon Fang (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  8071. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8072. -If global counter 0 is at 1 and it is the second action in the turn:
  8073. --1/4 chance to use a Melee attack. Add 1 to global counter 0.
  8074. --3/4 chance to use a Claw attack. Add 1 to global counter 0.
  8075. -If global counter 0 is at 0 and it is the first action in the turn:
  8076. --1/3 chance to use Dragon Fang. Add 1 to global counter 0.
  8077. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  8078. --1/3 chance to use a Melee attack. Add 1 to global counter 0.
  8079. -Else:
  8080. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8081. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8082.  
  8083. Routine 3:
  8084. -Take 2 actions per turn.
  8085. -If counter 1 is at 0 and it is the second action in the turn:
  8086. --Use Dimensional Tear. Set counter 1 to 10. Set global counter 0 to 4.
  8087. -If global counter 0 is at 16 and it is the second action in the turn:
  8088. --1/2 chance to use Dimensional Tear. Set global counter 0 to 0.
  8089. --1/2 chance to use a Melee attack. Set global counter 0 to 0.
  8090. -If global counter 0 is at 15 and it is the second action in the turn:
  8091. --Use Crystal Breath. Add 1 to global counter 0.
  8092. -If global counter 0 is at 14 and it is the first action in the turn:
  8093. --Use its time to take a deep breath (Targets the user's side). Add 1 to global counter 0.
  8094. -If global counter 0 is at 13, at least 1 party member is not inflicted with Paralysis, and it is the second action in the turn:
  8095. --Use Typhoon Howl. Add 1 to global counter 0.
  8096. -If global counter 0 is at 13 and it is the second action in the turn:
  8097. --Use Dimensional Tear. Add 1 to global counter 0.
  8098. -If global counter 0 is at 12 and it is the first action in the turn:
  8099. --Use Crystal Breath. Add 1 to global counter 0.
  8100. -If global counter 0 is at 11 and it is the second action in the turn:
  8101. --Use its time to take a deep breath (Targets the user's side). Add 1 to global counter 0.
  8102. -If global counter 0 is at 10, it is the first action in the turn, and at least 1 party member is not inflicted with Paralysis:
  8103. --1/2 chance to use Dimensional Tear (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  8104. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8105. -If global counter 0 is at 10 and it is the first action in the turn:
  8106. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8107. --1/2 chance to use Dimensional Tear. Add 1 to global counter 0.
  8108. -If global counter 0 is at 9 and it is the second action in the turn:
  8109. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8110. --1/2 chance to use Dimensional Tear. Add 1 to global counter 0.
  8111. -If global counter 0 is at 8 and it is the first action in the turn:
  8112. --Use Crystal Breath. Add 1 to global counter 0.
  8113. -If global counter 0 is at 7 and it is the second action in the turn:
  8114. --Use its time to take a deep breath (Targets the user's side). Add 1 to global counter 0.
  8115. -If global counter 0 is at 6, it is the first action in the turn, and at least 1 party member is not inflicted with Paralysis:
  8116. --1/2 chance to use Dimensional Tear (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  8117. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8118. -If global counter 0 is at 6 and it is the first action in the turn:
  8119. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8120. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  8121. -If global counter 0 is at 5, it is the second action in the turn, and at least 1 party member is not inflicted with Paralysis:
  8122. --1/2 chance to use Typhoon Howl. Add 1 to global counter 0.
  8123. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8124. -If global counter 0 is at 5 and it is the second action in the turn:
  8125. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  8126. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8127. -If global counter 0 is at 4 and it is the first action in the turn:
  8128. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8129. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8130. -If global counter 0 is at 3 and it is the second action in the turn:
  8131. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8132. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8133. -If global counter 0 is at 2, it is the first action in the turn, and at least 1 party member is not inflicted with Paralysis:
  8134. --1/2 chance to use Dimensional Tear (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  8135. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8136. -If global counter 0 is at 2 and it is the first action in the turn:
  8137. --2/3 chance to use a Claw attack. Add 1 to global counter 0.
  8138. --1/3 chance to use a Claw attack. Add 1 to global counter 0.
  8139. -If global counter 0 is at 1, it is the second action in the turn, and at least 1 party member is not inflicted with Paralysis:
  8140. --1/2 chance to use Dimensional Tear (Targets party members not inflicted with Paralysis). Add 1 to global counter 0.
  8141. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8142. -If global counter 0 is at 1 and it is the second action in the turn:
  8143. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8144. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  8145. -If global counter 0 is at 0 and it is the first action in the turn:
  8146. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8147. --1/2 chance to use Dragon Fang. Add 1 to global counter 0.
  8148. -Else:
  8149. --1/2 chance to use a Claw attack. Add 1 to global counter 0.
  8150. --1/2 chance to use a Melee attack. Add 1 to global counter 0.
  8151.  
  8152. Sleepy Hollow (LV. 34/30)
  8153. =========================
  8154. Routine 1:
  8155. -Take 2 actions per turn.
  8156. -If counter 2 is at 0 and it is the first action in the turn:
  8157. --1/2 chance to use a Claw attack. Set counter 0 to 0. Set counter 2 to 10.
  8158. --1/2 chance to use a Melee attack. Set counter 0 to 0. Set counter 2 to 10.
  8159. -If counter 2 is at 10 and it is the second action in the turn:
  8160. --Use Gather Power (Targets the user's side). Set counter 0 to 0. Set counter 2 to 20.
  8161. -If counter 2 is at 20 and it is the first action in the turn:
  8162. --Use Madness Flight. Add 1 to counter 0. Set counter 2 to 30.
  8163. -If counter 0 is at 1 and it is the second action in the turn:
  8164. --Use Poison Scales. Add 1 to counter 0.
  8165. -If counter 0 is at 2 and it is the first action in the turn:
  8166. --1/2 chance to use a Melee attack. Add 1 to counter 0.
  8167. --1/2 chance to use a Claw attack. Add 1 to counter 0.
  8168. -If counter 0 is at 3 and it is the second action in the turn:
  8169. --Use Gather Power (Targets the user's side). Add 1 to counter 0.
  8170. -Else:
  8171. --1/2 chance to use a Melee attack. Add 1 to counters 0, 1, and 2.
  8172. --1/2 chance to use a Claw attack. Add 1 to counters 0, 1, and 2.
  8173.  
  8174. Routine 2:
  8175. -Take 2 actions per turn.
  8176. -If global counter 2 is at 0 and it is the 2nd action in the turn:
  8177. --Use Gather Power. Set global counter 1 to 0. Set global counter 2 to 10.
  8178. -If global counter 2 is at 10:
  8179. --Use Madness Flight. Set global counter 1 to 0. Set global counter 2 to 20.
  8180. -If global counter 0 is at or above 8, global counter 1 is at 0, and it is the second action in the turn:
  8181. --Use Gather Power. Add 1 to counters 0, 1, and 2. Add 1 to global counter 0. Set global counter 1 to 10.
  8182. -If global counter 0 is at or above 8 and global counter 1 is at 10:
  8183. --Use Madness Flight. Add 1 to counters 0, 1 and 2. Set global counters 0 and 1 to 0.
  8184. -If counter 2 is at or above 6 and it is the second action in the turn:
  8185. --Use Sleep Scales. (Targets party members that are not inflicted with Sleep). Add 1 to counters 0 and 1. Set counter 2 to 0. Add 1 to global counter 0.
  8186. -If counter 1 is at or above 4:
  8187. --Use Poison Scales. (Targets party members that are not inflicted with Poison). Add 1 to counters 0 and 2. Set counter 1 to 0. Add 1 to global counter 0.
  8188. -If counter 0 is at or above 3 and it is the second action in the turn:
  8189. --Use Double Claw. Set counter 0 to 0. Add 1 to counters 1 and 2. Add 1 to global counter 0.
  8190. -Else:
  8191. --1/2 chance to use a Melee attack. Add 1 to counters 0, 1, and 2. Add 1 to global counter 0.
  8192. --1/2 chance to use a Claw attack. Add 1 to counters 0, 1, and 2. Add 1 to global counter 0.
  8193.  
  8194. Dark Rabi (LV. 6/4)
  8195. ===================
  8196. -Take 1 action per turn.
  8197. -If counter 1 is at or above 1:
  8198. --Attack. Set counters 0 and 1 to 0.
  8199. -If counter 0 is at or above 2:
  8200. --2/3 chance to attack. Add 1 to counter 0.
  8201. --1/3 chance to use Chomp (Targets the party member with the highest LIFE). Add 1 to counter 1.
  8202. -Else:
  8203. --3/4 chance to attack. Add 1 to counter 0.
  8204. --1/4 chance to use Chomp (Targets the party member with the highest LIFE). Add 1 to counter 1.
  8205.  
  8206. Gold Rabi (LV. 19/16)
  8207. =====================
  8208. -Take 1 action per turn.
  8209. -If counter 0 is at or above 3:
  8210. --Use Escape. Set counter 0 to 0.
  8211. -Else:
  8212. --1/3 chance to attack. Add 1 to counter 0.
  8213. --1/3 chance to use Headlong Charge (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  8214. --1/3 chance to use Escape.
  8215.  
  8216. Gold Rabi DX (LV. 30/26)
  8217. ========================
  8218. -Take 1 action per turn.
  8219. -If counter 0 is at or above 3:
  8220. --Use Escape. Set counter 0 to 0.
  8221. -Else:
  8222. --1/3 chance to attack. Add 1 to counter 0.
  8223. --1/3 chance to use Headlong Charge (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  8224. --1/3 chance to use Escape.
  8225.  
  8226. Doom Seed (LV. 1/1)
  8227. ===================
  8228. -Take 1 action per turn.
  8229. -If counter 0 is at or above 5:
  8230. --Use Escape. Set counter 0 to 0.
  8231. -Else:
  8232. --1/3 chance to attack. Add 1 to counter 0.
  8233. --1/3 chance to use Escape.
  8234. --1/3 chance to use Ebon Spores. Set counter 0 to 0.
  8235.  
  8236. Doom Seed DX (LV. 1/1)
  8237. ======================
  8238. -Take 1 action per turn.
  8239. -If counter 0 is at or above 5:
  8240. --Use Escape. Set counter 0 to 0.
  8241. -Else:
  8242. --1/3 chance to attack. Add 1 to counter 0.
  8243. --1/3 chance to use Escape.
  8244. --1/3 chance to use Ebon Spores. Set counter 0 to 0.
  8245.  
  8246. Doom Seed EX (LV. 1/1)
  8247. ======================
  8248. -Take 1 action per turn.
  8249. -If counter 0 is at or above 5:
  8250. --Use Escape. Set counter 0 to 0.
  8251. -Else:
  8252. --1/3 chance to attack. Add 1 to counter 0.
  8253. --1/3 chance to use Escape.
  8254. --1/3 chance to use Ebon Spores. Set counter 0 to 0.
  8255.  
  8256. Doom Seed 20XX (LV. 1/1)
  8257. ========================
  8258. -Take 1 action per turn.
  8259. -If counter 0 is at or above 5:
  8260. --Use Escape. Set counter 0 to 0.
  8261. -Else:
  8262. --1/3 chance to attack. Add 1 to counter 0.
  8263. --1/3 chance to use Escape.
  8264. --1/3 chance to use Ebon Spores. Set counter 0 to 0.
  8265.  
  8266. Wolverine (LV. 38/34)
  8267. =====================
  8268. -Take 1 action per turn.
  8269. -If global counter 0 is at or above 20 and self does not have a MAT Charge buff:
  8270. --2/4 chance to use Accelerate (Targets a random enemy). Set global counter 0 to 10.
  8271. --1/4 chance to use Double Bite (Targets the party member with the highest LIFE). Add 3 to counter 0.
  8272. --1/4 chance to attack (Targets the party member with the highest LIFE). Add 3 to counter 0.
  8273. -If global counter 0 is at or above 20 and self does not have an ATK buff:
  8274. --2/3 chance to use Bristle (Targets the user's side). Add 1 to counter 0. Set global counter 0 to 10.
  8275. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 3 to counter 0.
  8276. -If counter 2 is at or above 10 and global counter 0 is at 10:
  8277. --1/2 chance to use Double Bite (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1. Set global counter 0 to 20.
  8278. --1/2 chance to use Power Claw (Targets the party member with the lowest level). Add 1 to counters 0 and 1. Set global counter 0 to 20.
  8279. -If counter 2 is at or above 5 and global counter 0 is at 10:
  8280. --1/2 chance to use Power Claw (Targets the party member with the lowest level). Add 5 to counter 2. Set global counter 0 to 10.
  8281. --1/2 chance to use Bristle (Targets the user's side). Add 5 to counter 2. Set global counter 0 to 10.
  8282. -If counter 0 is at or above 2, self does not have a MAT Charge buff, and global counter 0 is at 0:
  8283. --Use Accelerate (Targets the user's side). Add 1 to counter 0. Add 5 to counter 2. Set global counter 0 to 10.
  8284. -If counter 0 is at or above 2, self does not have an ATK buff, and global counter 0 is at 0:
  8285. --Use Bristle (Targets the user's side). Add 1 to counters 0 and 1. Add 10 to counter 2. Set global counter 0 to 10.
  8286. -Else:
  8287. --3/4 chance to attack. Set counter 0 to 0.
  8288. --1/4 chance to use Power Claw (Targets the party member with the lowest level). Add 1 to counters 0 and 1.
  8289.  
  8290. Lich Lord (LV. 63/58)
  8291. =====================
  8292. -Take 1 action per turn.
  8293. -If the extra turn phase is active:
  8294. --Use Noxious Surge (Targets party members that are not inflicted with Downer).
  8295. -If the turn count at or below 1:
  8296. --1/4 chance to attack. Add 1 to counter 0.
  8297. --1/4 chance to use Swaying React (Targets the user's side).
  8298. --1/4 chance to use Plasma Ball. Set counter 1 to 1.
  8299. --1/4 chance to use Cursed Surge.
  8300. -If counter 1 is at 1:
  8301. --Attack. Set counters 0, 1, and 2 to 0.
  8302. -If counter 0 is at or above 1 and self does not have a Sway React buff:
  8303. --1/5 chance to attack. Add 1 to counter 0.
  8304. --2/5 chance to use Swaying React (Targets the user's side).
  8305. --1/5 chance to use Plasma Ball. Set counter 1 to 1.
  8306. --1/5 chance to use Cursed Surge.
  8307. -If counter 0 is at or above 1 and self has a Sway React buff:
  8308. --1/4 chance to attack. Add 1 to counter 0.
  8309. --2/4 chance to use Plasma Ball. Set counter 1 to 1.
  8310. --1/4 chance to use Cursed Surge.
  8311. -Else:
  8312. --1/4 chance to attack. Add 1 to counter 0.
  8313. --2/4 chance to use Plasma Ball. Set counter 1 to 1.
  8314. --1/4 chance to use Cursed Surge.
  8315.  
  8316. Wolverine (LV. 48/44)
  8317. =====================
  8318. -Take 1 action per turn.
  8319. -If global counter 0 is at or above 20 and self does not have a MAT Charge buff:
  8320. --2/4 chance to use Accelerate (Targets a random enemy). Set global counter 0 to 10.
  8321. --1/4 chance to use Double Bite (Targets the party member with the highest LIFE). Add 3 to counter 0.
  8322. --1/4 chance to attack (Targets the party member with the highest LIFE). Add 3 to counter 0.
  8323. -If global counter 0 is at or above 20 and self does not have an ATK buff:
  8324. --2/3 chance to use Bristle (Targets the user's side). Add 1 to counter 0. Set global counter 0 to 10.
  8325. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 3 to counter 0.
  8326. -If counter 2 is at or above 10 and global counter 0 is at 10:
  8327. --1/2 chance to use Double Bite (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1. Set global counter 0 to 20.
  8328. --1/2 chance to use Power Claw (Targets the party member with the lowest level). Add 1 to counters 0 and 1. Set global counter 0 to 20.
  8329. -If counter 2 is at or above 5 and global counter 0 is at 10:
  8330. --1/2 chance to use Power Claw (Targets the party member with the lowest level). Add 5 to counter 2. Set global counter 0 to 10.
  8331. --1/2 chance to use Bristle (Targets the user's side). Add 5 to counter 2. Set global counter 0 to 10.
  8332. -If counter 0 is at or above 2, self does not have a MAT Charge buff, and global counter 0 is at 0:
  8333. --Use Accelerate (Targets the user's side). Add 1 to counter 0. Add 5 to counter 2. Set global counter 0 to 10.
  8334. -If counter 0 is at or above 2, self does not have an ATK buff, and global counter 0 is at 0:
  8335. --Use Bristle (Targets the user's side). Add 1 to counters 0 and 1. Add 10 to counter 2. Set global counter 0 to 10.
  8336. -Else:
  8337. --3/4 chance to attack. Set counter 0 to 0.
  8338. --1/4 chance to use Power Claw (Targets the party member with the lowest level). Add 1 to counters 0 and 1.
  8339.  
  8340. Death Jackal (LV. 5/4)
  8341. ======================
  8342. -Take 1 action per turn.
  8343. -If counter 1 is at or above 1:
  8344. --Attack. Set counters 0 and 1 to 0.
  8345. -If counter 0 is at or above 1:
  8346. --1/4 chance to attack. Add 1 to counter 0.
  8347. --1/4 chance to use Blade Fang (Targets the party member with the highest LIFE). Add 1 to counter 1.
  8348. --2/4 chance to use Slashing Claw (Targets the party member with the highest LIFE). Add 1 to counter 1.
  8349. -Else:
  8350. --1/3 chance to attack. Add 1 to counter 0.
  8351. --1/3 chance to use Blade Fang (Targets the party member with the highest LIFE). Add 1 to counter 1.
  8352. --1/3 chance to use Slashing Claw (Targets the party member with the highest LIFE). Add 1 to counter 1.
  8353.  
  8354. Gold Rabi EX (LV. 43/39)
  8355. ========================
  8356. -Take 1 action per turn.
  8357. -If counter 0 is at or above 3:
  8358. --Use Escape. Set counter 0 to 0.
  8359. -Else:
  8360. --1/3 chance to attack. Add 1 to counter 0.
  8361. --1/3 chance to use Headlong Charge (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  8362. --1/3 chance to use Escape.
  8363.  
  8364. Gold Rabi 20XX (LV. 73/68)
  8365. ==========================
  8366. -Take 1 action per turn.
  8367. -If counter 0 is at or above 3:
  8368. --Use Escape. Set counter 0 to 0.
  8369. -Else:
  8370. --1/3 chance to attack. Add 1 to counter 0.
  8371. --1/3 chance to use Headlong Charge (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1.
  8372. --1/3 chance to use Escape.
  8373.  
  8374. Schwarzer Tod (LV. 42/38)
  8375. =========================
  8376. -Take 1 action per turn.
  8377. -If the extra turn phase is active:
  8378. --Use Predator (Targets the party member with the highest LIFE).
  8379. -If the turn count at or below 1:
  8380. --1/2 chance to attack. Add 1 to counter 0.
  8381. --1/2 chance to use Critical React (Targets the user's side).
  8382. -If counter 0 is at or above 1 and self does not have a Critical React buff:
  8383. --1/3 chance to attack. Add 1 to counter 0.
  8384. --2/3 chance to use Critical React (Targets the user's side). Set counter 0 to 0.
  8385. -If counter 0 is at or above 1 and self has a Critical React buff:
  8386. --Attack. Add 1 to counter 0.
  8387. -If self does not have a Critical React buff:
  8388. --1/2 chance to attack. Add 1 to counter 0.
  8389. --1/2 chance to use Critical React (Targets the user's side). Set counter 0 to 0.
  8390. -Else:
  8391. --Attack. Add 1 to counter 0.
  8392.  
  8393. Magnetic Golem (LV. 42/38)
  8394. ==========================
  8395. -Take 1 action per turn.
  8396. -If the turn count at or below 1:
  8397. --1/2 chance to attack. Add 1 to counter 0.
  8398. --1/2 chance to use Earthquake. Add 1 to counter 1.
  8399. -If counter 1 is at 1:
  8400. --Attack. Set counters 0 and 1 to 0.
  8401. -If counter 2 is at or above 2:
  8402. --Use Earthquake. Set counter 1 to 1. Set counter 2 to 0.
  8403. -If counter 0 is at or above 1:
  8404. --1/3 chance to attack. Add 1 to counters 0 and 2.
  8405. --2/3 chance to use Golem Hammer (Targets the party member with the highest LIFE). Set to counter 1 to 1. Add 1 to counter 2.
  8406. -Else:
  8407. --1/2 chance to attack. Add 1 to counters 0 and 2.
  8408. --1/2 chance to use Golem Hammer (Targets the party member with the highest LIFE). Set to counter 1 to 1. Add 1 to counter 2.
  8409.  
  8410. Poison Bird (LV. 64/59)
  8411. =======================
  8412. -Take 1 action per turn.
  8413. -If counter 0 is at 3:
  8414. --1/2 chance to use Rascal Kick. Set counters 0 and 1 to 0.
  8415. --1/2 chance to attack. Set counters 0 and 1 to 0.
  8416. -If counter 1 is at 1 and counter 0 is at 2:
  8417. --Use Talon Trample (Targets the party member with the highest LIFE). Set counter 1 to 0.
  8418. -If counter 1 is at 1 and counter 0 is at 2:
  8419. --Use Rascal Kick. Set counter 1 to 0.
  8420. -If counter 1 is at 1 and counter 0 is at 1:
  8421. --Use Talon Trample (Targets the party member with the highest LIFE). Set counter 1 to 0.
  8422. -If counter 0 is at 1 and at least 1 party member is not inflicted with Paralysis:
  8423. --Use Toxin Toss (Targets party members that are not inflicted with Paralysis). Add 1 to counter 0.
  8424. -If counter 0 is at 1:
  8425. --Use Talon Trample. Add 1 to counters 0 and 1.
  8426. -If counter 0 is at 1 and self does not have an ATK buff:
  8427. --Use Gather Power (Targets the user's side). Add 1 to counters 0 and 1.
  8428. -If counter 0 is at 0 and self does not have an ATK buff:
  8429. --1/3 chance to use Gather Power (Targets the user's side). Add 1 to counters 0 and 1.
  8430. --2/3 chance to use Rascal Kick (Targets the party member with the lowest level). Add 1 to counter 0.
  8431. -If counter 0 is at 0:
  8432. --2/4 chance to use Rascal Kick (Targets the party member with the lowest level). Add 1 to counter 0.
  8433. --2/4 chance to attack. Add 1 to counter 0.
  8434. -Else:
  8435. --Attack. Add 1 to counter 0.
  8436.  
  8437. Wolverine (LV. 63/58)
  8438. =====================
  8439. -Take 1 action per turn.
  8440. -If global counter 0 is at or above 20 and self does not have a MAT Charge buff:
  8441. --2/4 chance to use Accelerate (Targets a random enemy). Set global counter 0 to 10.
  8442. --1/4 chance to use Double Bite (Targets the party member with the highest LIFE). Add 3 to counter 0.
  8443. --1/4 chance to attack (Targets the party member with the highest LIFE). Add 3 to counter 0.
  8444. -If global counter 0 is at or above 20 and self does not have an ATK buff:
  8445. --2/3 chance to use Bristle (Targets the user's side). Add 1 to counter 0. Set global counter 0 to 10.
  8446. --1/3 chance to attack (Targets the party member with the highest LIFE). Add 3 to counter 0.
  8447. -If counter 2 is at or above 10 and global counter 0 is at 10:
  8448. --1/2 chance to use Double Bite (Targets the party member with the highest LIFE). Add 1 to counters 0 and 1. Set global counter 0 to 20.
  8449. --1/2 chance to use Power Claw (Targets the party member with the lowest level). Add 1 to counters 0 and 1. Set global counter 0 to 20.
  8450. -If counter 2 is at or above 5 and global counter 0 is at 10:
  8451. --1/2 chance to use Power Claw (Targets the party member with the lowest level). Add 5 to counter 2. Set global counter 0 to 10.
  8452. --1/2 chance to use Bristle (Targets the user's side). Add 5 to counter 2. Set global counter 0 to 10.
  8453. -If counter 0 is at or above 2, self does not have a MAT Charge buff, and global counter 0 is at 0:
  8454. --Use Accelerate (Targets the user's side). Add 1 to counter 0. Add 5 to counter 2. Set global counter 0 to 10.
  8455. -If counter 0 is at or above 2, self does not have an ATK buff, and global counter 0 is at 0:
  8456. --Use Bristle (Targets the user's side). Add 1 to counters 0 and 1. Add 10 to counter 2. Set global counter 0 to 10.
  8457. -Else:
  8458. --3/4 chance to attack. Set counter 0 to 0.
  8459. --1/4 chance to use Power Claw (Targets the party member with the lowest level). Add 1 to counters 0 and 1.
  8460.  
  8461. Death Beetle (LV. 66/61)
  8462. ========================
  8463. -Take 1 action per turn.
  8464. -If counter 0 is at or above 3:
  8465. --1/3 chance to attack. Set counter 0 to 0.
  8466. --1/3 chance to use Boomerang Cutter (Targets the party member with the lowest level). Set counter 0 to 0.
  8467. --1/3 chance to use Scissor Attack. Set counter 0 to 0.
  8468. -If counter 0 is at 2 and counter 2 is at 10:
  8469. --Use Cross Slash. Add 1 to counter 0. Set counter 2 to 0.
  8470. -If counter 0 is at 2:
  8471. --Use Boomerang Cutter (Targets the party member with the highest level). Add 1 to counter 0. Set counter 2 to 0.
  8472. -If counter 0 is at 1 and self does not have an ATK buff:
  8473. --1/2 chance to use Spinning Stance (Targets the user's side). Add 1 to counter 0. Set counter 2 to 10.
  8474. --1/2 chance to attack. Add 1 to counter 0.
  8475. -If counter 0 is at 1:
  8476. --1/2 chance to use Scissor Attack. Add 1 to counter 0.
  8477. --1/2 chance to use Boomerang Cutter (Targets the party member with the highest LIFE). Add 1 to counter 0.
  8478. -If counter 0 is at 0:
  8479. --1/3 chance to attack. Add 1 to counter 0.
  8480. --1/3 chance to use Boomerang Cutter (Targets the party member with the highest LIFE). Add 1 to counter 0.
  8481. --1/3 chance to use Scissor Attack. Add 1 to counter 0.
  8482. -If counter 0 is at 0:
  8483. --1/2 chance to attack. Set counter 2 to 0.
  8484. --1/2 chance to use Scissor Attack. Set counter 2 to 0.
  8485.  
  8486. White Jelly (LV. 67/62)
  8487. =======================
  8488. -Take 1 action per turn.
  8489. -If the turn count at or below 1:
  8490. --1/3 chance to attack. Add 1 to counter 0.
  8491. --2/3 chance to use Tackle (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  8492. -If counter 1 is at 1:
  8493. --Attack. Add 1 to counter 0. Set counter 1 to 0.
  8494. -If self does not have a DEF buff:
  8495. --1/3 chance to attack. Add 1 to counter 0.
  8496. --2/3 chance to use Tackle (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  8497. -If counter 0 is at or above 1:
  8498. --1/3 chance to attack. Add 1 to counter 0.
  8499. --2/3 chance to use Tackle (Targets the party member with the highest LIFE). Set counter 0 to 0. Add 1 to counter 1.
  8500. -Else:
  8501. --Attack. Add 1 to counter 0.
  8502.  
  8503. Vortex Golem (LV. 68/63)
  8504. ========================
  8505. -Take 1 action per turn.
  8506. -If the turn count at or below 1:
  8507. --1/2 chance to attack. Add 1 to counter 0.
  8508. --1/2 chance to use Earthquake. Add 1 to counter 1.
  8509. -If counter 1 is at 1:
  8510. --Attack. Set counters 0 and 1 to 0.
  8511. -If counter 2 is at or above 3:
  8512. --Use Earthquake. Set counter 1 to 1. Set counter 2 to 0.
  8513. -If counter 0 is at or above 1:
  8514. --1/3 chance to attack. Add 1 to counters 0 and 2.
  8515. --2/3 chance to use Golem Hammer (Targets the party member with the highest LIFE). Set to counter 1 to 1. Add 1 to counter 2.
  8516. -Else:
  8517. --1/2 chance to attack. Add 1 to counters 0 and 2.
  8518. --1/2 chance to use Golem Hammer (Targets the party member with the highest LIFE). Set to counter 1 to 1. Add 1 to counter 2.
Advertisement
Add Comment
Please, Sign In to add comment