DrFetus

EO5 Boss AI (WIP)

Nov 13th, 2017
1,413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.06 KB | None | 0 0
  1. Amalgolem/Golem Body
  2. ====================
  3. NOTE: This AI Script controls the Golem Body, Golem Head, Golem Arm, and Golem Leg.
  4.  
  5. If self is not petrified, panicking, and asleep, and Golem Leg, Golem Arm, and Golem Head are in the battle, cast Explode. (Standard targeting.)
  6.  
  7. If Golem Legs, Golem Arms, and Golem Head are in the battle, cast Explode. (Standard targeting.)
  8.  
  9. Basic routine:
  10. Turn 1: Golem Leg acts.
  11. Turn 2: Golem Arm acts.
  12. Turn 3: Golem Head acts.
  13.  
  14. Loop from the beginning.
  15.  
  16. If there are no FOEs on the field, cast Summon Ally. (Targets self.)
  17.  
  18. If the Golem Leg dies before self can cast Stomp, do nothing. Display message: "Amalgolem tried to attack, but it has no legs!"
  19.  
  20. If the Golem Leg dies before self can cast Stomp Crush, do nothing. Display message: "Amalgolem tried to attack, but it has no legs!"
  21.  
  22. If the Golem Arm dies before self can cast Flame Strike, do nothing. Display message: "Amalgolem tried to attack, but it has no arms!"
  23.  
  24. If the Golem Arm dies before self can cast Ice Strike, do nothing. Display message: "Amalgolem tried to attack, but it has no arms!"
  25.  
  26. If the Golem Head dies before self can cast Daunting Breath, do nothing. Display message: "Amalgolem tried to attack, but it has no head!"
  27.  
  28. If the Golem Head dies before self can cast Stone Breath, do nothing. Display message: "Amalgolem tried to attack, but it has no head!"
  29.  
  30. If Amalgolem cannot act for whatever reason, display message: "Amalgolem is panicked!"
  31.  
  32. From 100% to 51% HP:
  33. If Golem Leg is in the battle:
  34. 80% chance to cast Stomp. (Standard targeting.)
  35. 20% chance to cast Stomp Crush. (Standard targeting.)
  36.  
  37. If Golem Arm is in the battle:
  38. 80% chance to cast Flame Strike. (Standard targeting.)
  39. 20% chance to cast Ice Strike. (Targets the front row.)
  40.  
  41. If Golem Head is in the battle:
  42. 80% chance to cast Daunting Breath. (Standard targeting.)
  43. 20% chance to cast Stone Breath. (Standard targeting.)
  44.  
  45. If self cast Explode on the last turn:
  46. 30% chance to do nothing. Display message: "Amalgolem is panicked!"
  47. 70% chance to cast Command Ally. (Targets self.)
  48.  
  49. If Golem Head, Golem Arm, or Golem Leg are not alive on the appropriate turn:
  50. 30% chance to cast Command Ally. (Targets self.)
  51. 30% chance to cast Summon Ally. (Targets self.)
  52. 40% chance to do nothing. Display message: "Amalgolem is panicked!"
  53.  
  54. From 50% HP to death:
  55. If Golem Leg is in the battle:
  56. 30% chance to cast Stomp. (Standard targeting.)
  57. 70% chance to cast Stomp Crush. (Standard targeting.)
  58.  
  59. If Golem Arm is in the battle:
  60. 30% chance to cast Flame Strike. (Standard targeting.)
  61. 70% chance to cast Ice Strike. (Targets the front row.)
  62.  
  63. If Golem Head is in the battle:
  64. 30% chance to cast Daunting Breath. (Standard targeting.)
  65. 70% chance to cast Stone Breath. (Standard targeting.)
  66.  
  67. If self cast Explode on the last turn:
  68. 30% chance to do nothing. Display message: "Amalgolem is panicked!"
  69. 70% chance to cast Command Ally. (Targets self.)
  70.  
  71. If Golem Head, Golem Arm, or Golem Leg are not alive on the appropriate turn:
  72. 30% chance to cast Command Ally. (Targets self.)
  73. 30% chance to cast Summon Ally. (Targets self.)
  74. 40% chance to do nothing. Display message: "Amalgolem is panicked!"
  75.  
  76. Golem Head/Golem Arm/Golem Leg
  77. ==============================
  78. Do nothing.
  79.  
  80. White Golem/Red Golem/Black Golem/Yellow Golem
  81. ==============================================
  82. NOTE: All the Golems share the same AI.
  83.  
  84. If Golem Body is not in the battle:
  85. 40% chance to do nothing. Display message: "White/Red/Black/Yellow Golem is dozing!"
  86. 60% chance to use a regular attack. (Standard targeting.)
  87.  
  88. Else:
  89. 10% chance to do nothing. Display message: "White/Red/Black/Yellow Golem is dozing!"
  90. 90% chance to use a regular attack. (Standard targeting.)
  91.  
  92. If Amalgolem's HP is at or above 51%:
  93. If no one else cast Fuse, cast Fuse at the end of the turn.
  94. Fusion order:
  95. Turn 1: Reform Golem Leg.
  96. Turn 2: Reform Golem Arm.
  97. Turn 3: Reform Golem Head.
  98.  
  99. Loop from the beginning.
  100.  
  101. If Amalgolem's HP at or below 50%:
  102. If no one else cast Fuse, cast Fuse at the end of the turn.
  103. 70% chance to follow this routine:
  104. Fusion order:
  105. Turn 1: Reform Golem Leg.
  106. Turn 2: Reform Golem Arm.
  107. Turn 3: Reform Golem Head.
  108.  
  109. Loop from the beginning.
  110.  
  111. 35% chance to cast this routine instead:
  112. Fusion order:
  113. Turn 1: Reform Golem Head.
  114. Turn 2: Reform Golem Arm.
  115. Turn 3: Reform Golem Leg.
  116.  
  117. Loop from the beginning.
  118.  
  119. If the last routine was not followed, 70% chance to follow this routine:
  120. Fusion order:
  121. Turn 1: Reform Golem Arm.
  122. Turn 2: Reform Golem Leg.
  123. Turn 3: Reform Golem Head.
  124.  
  125. Loop from the beginning.
  126.  
  127. Else, follow this routine:
  128. Fusion order:
  129. Turn 1: Reform Golem Leg.
  130. Turn 2: Reform Golem Arm.
  131. Turn 3: Reform Golem Head.
  132.  
  133. Loop from the beginning.
  134.  
  135. Hippogryph
  136. ==========
  137. While in the Wing Shield state, follow this routine:
  138. Turn 1: Cast Rest. (Targets self.)
  139. Turn 2: Cast Rest. (Targets self.)
  140. Turn 3: Cast Rest. (Targets self.) Cast Wing Shield Down at the end of the turn. (Targets self.)
  141.  
  142. If self is petrified, panicking, or asleep while in the Wing Shield state, do nothing.
  143.  
  144. Cast Wing Shield at the end of the turn after casting Sky Dive. (Targets self.)
  145.  
  146. Cast Sky Dive once HP falls below 31%. (Standard targeting.)
  147.  
  148. Cast Sky Dive once HP falls below 51%. (Standard targeting.)
  149. Cast Lightning Storm once out of the Wing Shield state. (Standard targeting.)
  150.  
  151. Cast Sky Dive once HP falls below 71%. (Standard targeting.)
  152.  
  153. Cast Panic Glare. This routine can only activate once. (Standard targeting.)
  154.  
  155. From 100% to 51% HP:
  156. 40% chance to cast Bind Claw. (Standard targeting.)
  157. 20% chance to cast Back Kick. (Targets the front row.)
  158. 10% chance to cast Panic Glare. (Standard targeting.)
  159. 30% chance to use a regular attack. (Standard targeting.)
  160.  
  161. From 50% HP to death:
  162. 40% chance to cast Lightning Storm. (Standard targeting.)
  163. 30% chance to cast Back Kick. (Targets the front row.)
  164. 10% chance to cast Bind Claw. (Standard targeting.)
  165. 15% chance to cast Panic Glare. (Standard targeting.)
  166. 5% chance to use a regular attack. (Standard targeting.)
  167.  
  168. Undead King (Winged Form)
  169. =========================
  170. Do not cast Purge if there is at least 1 Undead Fencer in the battle, or self is dead, panicking, asleep, or petrified.
  171.  
  172. Else, cast Purge. (Targets self.)
  173.  
  174. If all Undead Fencers die before self can cast Wraith Explosion, do nothing. Display message: "Undead King attempted to attack, but there were no Undead Fencers!"
  175.  
  176. If all Undead Fencers die before self can cast Wraith Dance, do nothing. Display message: "Undead King attempted to attack, but there were no Undead Fencers!"
  177.  
  178. If all Undead Fencers die before self can cast Grave, do nothing. Display message: "Undead King attempted to attack, but there were no Undead Fencers!"
  179.  
  180. If all Undead Fencers die before self can cast Undead Shield, do nothing. Display message: "Undead King attempted to attack, but there were no Undead Fencers!"
  181.  
  182. If there is at least 1 Undead Fencer in the battle after 4 turns have passed since changing forms, cast Wraith Explosion. (Standard targeting.)
  183. If there are 2 Undead Fencers, cast Wraith Explosion twice.
  184.  
  185. From 100% to 76% HP:
  186. If there is at least 1 Undead Fencer in the battle:
  187. 80% chance to cast Undead Shield. (Targets an Undead Fencer.)
  188. If Undead Shield does not get cast, 95% chance to cast Wraith Dance. (Standard targeting.)
  189. If Wraith Dance does not get cast, 99% chance to cast Grave. (Standard targeting.)
  190. Else, use a regular attack. (Standard targeting.)
  191.  
  192. Else:
  193. Use a regular attack. (Standard targeting.)
  194.  
  195. From 75% to 51% HP:
  196. If there is at least 1 Undead Fencer in the battle:
  197. 45% chance to cast Wraith Dance. (Standard targeting.)
  198. If Wraith Dance does not get cast, 95% chance to cast Undead Shield. (Targets an Undead Fencer.)
  199. If Undead Shield does not get cast, 70% chance to cast Wraith Dance. (Standard targeting.)
  200. If Wraith Dance does not get cast, 99% chance to cast Grave. (Standard targeting.)
  201. Else, use a regular attack. (Standard targeting.)
  202.  
  203. From 50% HP to death:
  204. If there is at least 1 Undead Fencer in the battle:
  205. 35% chance to cast Grave. (Standard targeting.)
  206. If Grave does not get cast, 60% chance to cast Grave. (Standard targeting.)
  207. If Grave does not get cast, 50% chance to cast Undead Shield. (Targets an Undead Fencer.)
  208. If Undead Shield does not get cast, 99% chance to cast Wraith Dance. (Standard targeting.)
  209. Else, use a regular attack. (Standard targeting.)
  210.  
  211. Else:
  212. Use a regular attack. (Standard targeting.)
  213.  
  214. Undead King (Standing Form)
  215. ===========================
  216. Do not cast Dock if there is at least 1 Undead Archer in the battle, or self is dead, panicking, asleep, or petrified.
  217.  
  218. Else, cast Dock. (Targets self.)
  219.  
  220. Cast Summon Wraith after switching forms. (Targets self.)
  221.  
  222. If self tries to cast Black Ice Bomb, but every living party member is cursed, cast Life Compensation instead. (Targets self.)
  223.  
  224. If all Undead Archers are dead before self can cast Black Ice Bomb, do nothing instead. Display message: "Undead King attempted to attack, but there were no Undead Archers!"
  225.  
  226. If self tries to cast Poison Bomb, but every living party member is cursed and poisoned, cast Life Compensation instead. (Targets self.)
  227.  
  228. If all Undead Archers are dead before self can cast Poison Bomb, do nothing instead. Display message: "Undead King attempted to attack, but there were no Undead Archers!"
  229.  
  230. If all Undead Archers are dead before self can cast Life Compensation, do nothing instead. Display message: "Undead King attempted to attack, but there were no Undead Archers!"
  231.  
  232. If there are no Undead Archers in the battle, cast Summon Wraith. (Targets self.)
  233.  
  234. If there is at least 1 Undead Archer in the battle after 2 turns have passed since changing forms, cast Life Compensation. (Standard targeting.)
  235. If there are 2 Undead Archers, cast Life Compensation twice.
  236.  
  237. From 100% to 51% HP:
  238. If there is at least 1 Undead Fencer in the battle:
  239. 20% chance to cast Black Ice Bomb. (Standard targeting.)
  240. If Black Ice Bomb does not get cast, cast Poison Bomb. (Standard targeting.)
  241.  
  242. From 50% HP to death:
  243. If there is at least 1 Undead Fencer in the battle:
  244. 70% chance to cast Black Ice Bomb. (Standard targeting.)
  245. If Black Ice Bomb does not get cast, cast Poison Bomb. (Standard targeting.)
  246.  
  247. Else:
  248. Use a regular attack. (Standard targeting.)
  249.  
  250. Undead Fencer
  251. =============
  252. If Shield Formation was not cast on the last 4 turns and no one else cast Shield Formation, cast Shield Formation. (Targets self.)
  253.  
  254. If the Undead King (Winged Form) is at or below 50% HP:
  255. 60% chance to cast Falcon Rush. (Standard targeting.)
  256. 30% chance to cast Power Break. (Standard targeting.)
  257. 10% chance to use a regular attack. (Standard targeting.)
  258.  
  259. Else:
  260. If no one else cast Falcon Rush, 30% chance to cast Falcon Rush. (Standard targeting.)
  261. If no one else cast Power Break, 90% chance to cast Power Break. (Standard targeting.)
  262. Else, use a regular attack. (Standard targeting.)
  263.  
  264. Undead Archer
  265. =============
  266. Cast Arm Snipe. (70% chance to target the front row. Standard targeting otherwise.)
  267.  
  268. Crystal Dragon (Dragon Form)
  269. ============================
  270. End of turn parameters:
  271. If self is petrified, asleep, or panicking, do nothing.
  272.  
  273. If HP total from last turn - current HP = 10% or more, 5 turns pass, or flag 2 is active:
  274. If at least 1 party member has the Banefire Breath debuff, and flag 2 is not active, do nothing. Activate flag 1.
  275.  
  276. Else, cast Mode Change. (Targets self.)
  277.  
  278. Else, do nothing.
  279.  
  280. If flag 1 is active:
  281. If HP is below 51%:
  282. 30% chance to cast Frostcoat Breath. (Standard targeting.) Activate flag 2.
  283. 30% chance to cast Lockvolt Breath. (Targets the front row.) Activate flag 2.
  284. 40% chance to cast Prisim Laser. (Standard targeting.) Activate flag 2.
  285.  
  286. Else:
  287. 50% chance to cast Frostcoat Breath. (Standard targeting.)
  288. 50% chance to cast Lockvolt Breath. (Targets the front row.)
  289.  
  290. Else:
  291. If flag 3 is not active and HP is below 51%, cast Prism Laser. (Standard targeting.) Activate flag 3.
  292.  
  293. If flag 4 is not active and HP is below 76%, cast Clear Breath. (Standard targeting.) Activate flag 4.
  294.  
  295. If at least 1 party member has a buff, and flag 4 is active, and HP is below 76%, 30% chance to cast Clear Breath. (Standard targeting.)
  296.  
  297. From 100% to 76% HP:
  298. If flag 21 is active:
  299. 40% chance to cast Lockvolt Breath. (Targets the front row.) Activate flag 22. Deactivate flag 21.
  300. 40% chance to cast Banefire Breath. (Standard targeting.) Activate flag 23. Deactivate flag 21.
  301. 20% chance to use a regular attack. (Standard targeting.) Deactivate flag 21.
  302.  
  303. If flag 22 is active:
  304. 40% chance to cast Frostcoat Breath. (Standard targeting.) Activate flag 21. Deactivate flag 22.
  305. 40% chance to cast Banefire Breath. (Standard targeting.) Activate flag 23. Deactivate flag 22.
  306. 20% chance to use a regular attack. (Standard targeting.) Deactivate flag 22.
  307.  
  308. If flag 23 is active:
  309. 40% chance to cast Frostcoat Breath. (Standard targeting.) Activate flag 21. Deactivate flag 23.
  310. 40% chance to cast Lockvolt Breath. (Targets the front row.) Activate flag 22. Deactivate flag 23.
  311. 20% chance to use a regular attack. (Standard targeting.) Deactivate flag 23.
  312.  
  313. Else:
  314. 30% chance to cast Frostcoat Breath. (Standard targeting.) Activate flag 21.
  315. 30% chance to cast Lockvolt Breath. (Targets the front row.) Activate flag 22.
  316. 30% chance to cast Banefire Breath. (Standard targeting.) Activate flag 23.
  317. 10% chance to use a regular attack. (Standard targeting.)
  318.  
  319. From 76% to 51% HP:
  320. If at least 1 party member is petrified:
  321. 10% chance to cast Frostcoat Breath. (Standard targeting.)
  322. 30% chance to cast Lockvolt Breath. (Targets the front row.)
  323. 30% chance to cast Banefire Breath. (Standard targeting.)
  324. If flag 4 is active:
  325. 20% chance to cast Clear Breath. (Standard targeting.)
  326. 10% chance to use a regular attack. (Standard targeting.)
  327. Else:
  328. 30% chance to use a regular attack. (Standard targeting.)
  329.  
  330. If at least 1 party member has their arms bound:
  331. 30% chance to cast Frostcoat Breath. (Standard targeting.)
  332. 10% chance to cast Lockvolt Breath. (Targets the front row.)
  333. 30% chance to cast Banefire Breath. (Standard targeting.)
  334. If flag 4 is active:
  335. 20% chance to cast Clear Breath. (Standard targeting.)
  336. 10% chance to use a regular attack. (Standard targeting.)
  337. Else:
  338. 30% chance to use a regular attack. (Standard targeting.)
  339.  
  340. If at least 1 party member has a defense debuff:
  341. 30% chance to cast Frostcoat Breath. (Standard targeting.)
  342. 30% chance to cast Lockvolt Breath. (Targets the front row.)
  343. 10% chance to cast Banefire Breath. (Standard targeting.)
  344. If flag 4 is active:
  345. 20% chance to cast Clear Breath. (Standard targeting.)
  346. 10% chance to use a regular attack. (Standard targeting.)
  347. Else:
  348. 30% chance to use a regular attack. (Standard targeting.)
  349.  
  350. Else:
  351. 25% chance to cast Frostcoat Breath. (Standard targeting.)
  352. 25% chance to cast Lockvolt Breath. (Targets the front row.)
  353. 25% chance to cast Banefire Breath. (Standard targeting.)
  354. If flag 4 is active:
  355. 15% chance to cast Clear Breath. (Standard targeting.)
  356. 10% chance to use a regular attack. (Standard targeting.)
  357. Else:
  358. 25% chance to use a regular attack. (Standard targeting.)
  359.  
  360. From 50% HP to death:
  361. If flag 11 is not active:
  362. 30% chance to cast Frostcoat Breath. (Standard targeting.) Activate flag 11.
  363. 30% chance to cast Lockvolt Breath. (Targets the front row.) Activate flag 11.
  364. 30% chance to cast Banefire Breath. (Standard targeting.) Activate flag 11.
  365. 9% chance to cast Clear Breath. (Standard targeting.) Activate flag 11.
  366. 1% chance to use a regular attack. (Standard targeting.)
  367.  
  368. Else:
  369. 80% chance to cast Prism Laser. (Standard targeting.) Deactivate flag 11.
  370. 10% chance to cast Clear Breath. (Standard targeting.) Deactivate flag 11.
  371. 10% chance to use a regular attack. (Standard targeting.) Deactivate flag 11.
  372.  
  373. Crystal Dragon (Speed Form)
  374. ===========================
  375. End of turn parameters:
  376. If self is petrified, asleep, or panicking, do nothing.
  377.  
  378. If HP total from last turn - current HP = 10% or more, 5 turns pass, or flag 2 is active:
  379. If at least 1 party member is asleep, and flag 2 is not active, do nothing. Activate flag 1.
  380.  
  381. Else, cast Mode Change. (Targets self.)
  382.  
  383. Else, do nothing.
  384.  
  385. If flag 1 is active:
  386. 40% chance to cast Sonic Blow. (Targets party members that are asleep.) Activate flag 2.
  387. 20% chance to cast Rock Bullet. (Targets the front row.) Activate flag 2.
  388. 40% chance to cast Rending Claws. (Standard targeting.) Activate flag 2.
  389.  
  390. If flag 3 is not active, and HP is below 51%, cast Prism Laser. (Standard targeting.) Activate flag 3.
  391.  
  392. If flag 4 is not active, and HP is below 76%, cast Eternal Lament. (Standard targeting. Activate flag 4.
  393.  
  394. If no one is asleep, flag 4 is active, and HP is below 76%, 30% chance to cast Eternal Lament. (Standard targeting.)
  395.  
  396. If at least 1 party member is asleep, and HP is below 76%, 30% chance to cast Sonic Blow. (Targets party members that are asleep.)
  397.  
  398. From 100% to 76% HP:
  399. If flag 21 is active:
  400. 40% chance to cast Rock Bullet. (Targets the front row.) Activate flag 22. Deactivate flag 21.
  401. 40% chance to cast Rending Claws. (Standard targeting.) Activate flag 23. Deactivate flag 21.
  402. 20% chance to use a regular attack. (Standard targeting.) Deactivate flag 21.
  403.  
  404. If flag 22 is active:
  405. 40% chance to cast Sonic Blow. (Standard targeting.) Activate flag 21. Deactivate flag 22.
  406. 40% chance to cast Rending Claws. (Standard targeting.) Activate flag 23. Deactivate flag 22.
  407. 20% chance to use a regular attack. (Standard targeting.) Deactivate flag 22.
  408.  
  409. If flag 23 is active:
  410. 40% chance to cast Sonic Blow. (Standard targeting.) Activate flag 21. Deactivate flag 23.
  411. 40% chance to cast Rock Bullet. (Targets the front row.) Activate flag 22. Deactivate flag 23.
  412. 20% chance to use a regular attack. (Standard targeting.) Deactivate flag 23.
  413.  
  414. Else:
  415. 30% chance to cast Sonic Blow. (Standard targeting.) Activate flag 21.
  416. 30% chance to cast Rock Bullet. (Targets the front row.) Activate flag 22.
  417. 30% chance to cast Rending Claws. (Standard targeting.) Activate flag 23.
  418. 10% chance to use a regular attack. (Standard targeting.)
  419.  
  420. From 75% to 51% HP:
  421. If at least 1 party member is asleep, 70% chance to cast Sonic Blow. (Targets party members that are asleep.)
  422.  
  423. Else:
  424. 30% chance to cast Sonic Blow. (Standard targeting.)
  425. 30% chance to cast Rock Bullet. (Targets the front row.)
  426. 30% chance to cast Rending Claws. (Standard targeting.)
  427. 10% chance to use a regular attack. (Standard targeting.)
  428.  
  429. From 50% HP to death:
  430. If flag 11 is not active:
  431. 45% chance to cast Sonic Blow. (Standard targeting.) Activate flag 11.
  432. 45% chance to cast Rending Claws. (Standard targeting.) Activate flag 11.
  433. 10% chance to use a regular attack. (Standard targeting.)
  434.  
  435. Else:
  436. 50% chance to cast Prism Laser. (Standard targeting.) Deactivate flag 11.
  437. 40% chance to cast Rock Bullet. (Targets the front row.) Deactivate flag 11.
  438. 9% chance to cast Eternal Lament. (Standard targeting.) Deactivate flag 11.
  439. 1% chance to use a regular attack. (Standard targeting.) Deactivate flag 11.
  440.  
  441. Eternal Tyrant
  442. ==============
  443. End of turn parameters:
  444. Activate flag 22.
  445.  
  446. Add 1 to counter 1.
  447.  
  448. Add 1 to counter 2.
  449.  
  450. If Grudge Miasma is active, set counters 1 and 2 to 0.
  451.  
  452. If Grudge Miasma is active, cast Miasma Blade at the end of the turn. (Standard targeting.)
  453.  
  454. If self is petrified, asleep, or panicking, do nothing.
  455.  
  456. If counter 1 is at 5 or above, and Grudge Miasma is not active, cast Grudge Miasma. (Standard targeting.)
  457.  
  458. Else, do nothing.
  459.  
  460. If counter 1 is at 2 or less, deactivate flag 22.
  461.  
  462. If Miasma Drain is active, cast Burning Miasma. (Standard targeting.) Set counter 1 to 0.
  463.  
  464. If counter 2 is at 2 or above, cast Miasma Drain. (Standard targeting.) Deactivate flags 1, 2, 11, 12, 13, 14, and 15.
  465.  
  466. If no one has the Ruinous Roar buff, flags 21 and 22 are not active, and HP is below 76%, cast Ruinous Roar. (Standard targeting.) Activate flags 1 and 21.
  467.  
  468. If no one has the Ruinous Roar buff, flag 1 is not active, counter 1 is at 3 or above, and HP is below 51%, 40% chance to cast Ruinous Roar. (Standard targeting.) Activate flag 1.
  469.  
  470. If no one has the Ruinous Roar buff, flags 1 and 2 are not active, counter 1 is at 4 or above, and HP is below 51%, 60% chance to cast Ruinous Roar. (Standard targeting.) Activate flag 2.
  471.  
  472. If no one has the Ruinous Roar buff, flag 1 is not active, counter 1 is at 2 or below, and HP is below 76%, 50% chance to cast Ruinous Roar. (Standard targeting.) Activate flag 1.
  473.  
  474. If no one has the Ruinous Roar buff, flag 2 are not active, Grudge Miasma is active, and HP is below 76%, 20% chance to cast Ruinous Roar. (Standard targeting.) Activate flag 2.
  475.  
  476. From 100% to 76% HP:
  477. If flag 11 is active, cast Freeze Breath. (Standard targeting.) Deactivate flag 11.
  478. If Grudge Miasma is active:
  479. 40% chance to activate flag 13.
  480. 25% chance to activate flag 12.
  481. 30% chance to activate flag 13.
  482. 5% chance to do nothing.
  483.  
  484. Else:
  485. 65% chance to activate flag 12.
  486. 30% chance to activate flag 13.
  487. 5% chance to do nothing.
  488.  
  489. If flag 12 is active, cast Dark Claw. (Standard targeting.) Deactivate flag 12.
  490. If Grudge Miasma is active:
  491. 40% chance to activate flag 13.
  492. 25% chance to activate flag 11.
  493. 30% chance to activate flag 13.
  494. 5% chance to do nothing.
  495.  
  496. Else:
  497. 65% chance to activate flag 11.
  498. 30% chance to activate flag 13.
  499. 5% chance to do nothing.
  500.  
  501. If flag 13 is active, cast Crushing Claws. (Standard targeting.) Deactivate flag 13.
  502. If Grudge Miasma is not active:
  503. 45% chance to activate flag 11.
  504. 50% chance to activate flag 12.
  505. 5% chance to do nothing.
  506.  
  507. Else:
  508. 35% chance to activate flag 11.
  509. 35% chance to activate flag 12.
  510. 30% chance to do nothing.
  511.  
  512. Else, use a regular attack. (Standard targeting.)
  513. 45% chance to activate flag 11.
  514. 45% chance to activate flag 12.
  515. 10% chance to do nothing.
  516.  
  517. From 75% to 51% HP:
  518. If counter 1 is at 2, and flags 15 and 25 are not active, 70% chance to cast Panic Crush. (Targets the front row.) Activate flags 15 and 25.
  519.  
  520. If flag 11 is active, cast Freeze Breath. (Standard targeting.) Deactivate flag 11.
  521. If Grudge Miasma is active:
  522. 40% chance to activate flag 15.
  523. 30% chance to activate flag 12.
  524. 29% chance to activate flag 13.
  525. 1% chance to do nothing.
  526.  
  527. Else:
  528. 20% chance to activate flag 15.
  529. 40% chance to activate flag 12.
  530. 39% chance to activate flag 13.
  531. 1% chance to do nothing.
  532.  
  533. If flag 12 is active, cast Dark Claw. (Standard targeting.) Deactivate flag 12.
  534. If Grudge Miasma is active:
  535. 40% chance to activate flag 15.
  536. 30% chance to activate flag 11.
  537. 29% chance to activate flag 13.
  538. 1% chance to do nothing.
  539.  
  540. Else:
  541. 20% chance to activate flag 15.
  542. 40% chance to activate flag 11.
  543. 39% chance to activate flag 13.
  544. 1% chance to do nothing.
  545.  
  546. If flag 13 is active, cast Crushing Claws. (Standard targeting.) Deactivate flag 13.
  547. 10% chance to activate flag 15.
  548. 45% chance to activate flag 11.
  549. 44% chance to activate flag 12.
  550. 1% chance to do nothing.
  551.  
  552. If flag 14 is active, cast Thunder Howl. (Standard targeting.) Deactivate flag 14.
  553. 10% chance to activate flag 15.
  554. 30% chance to activate flag 11.
  555. 30% chance to activate flag 12.
  556. 29% chance to activate flag 13.
  557. 1% chance to do nothing.
  558.  
  559. If flag 15 is active, cast Panic Crush. (Targets the front row.) Deactivate flag 15.
  560. 40% chance to activate flag 11.
  561. 40% chance to activate flag 12.
  562. 19% chance to activate flag 13.
  563. 1% chance to do nothing.
  564.  
  565. Else, use a regular attack. (Standard targeting.)
  566. 45% chance to activate flag 11.
  567. 45% chance to activate flag 12.
  568. 5% chance to activate flag 13.
  569. 5% chance to do nothing.
  570.  
  571. From 50% HP to death:
  572. If counter 1 is at 2, and flags 14 and 26 are not active, 70% chance to cast Thunder Howl. (Standard targeting.) Activate flags 14 and 26.
  573.  
  574. If flag 11 is active, cast Freeze Breath. (Standard targeting.) Deactivate flag 11.
  575. If Grudge Miasma is active:
  576. 10% chance to activate flag 14.
  577. 40% chance to activate flag 15.
  578. 20% chance to activate flag 12.
  579. 29% chance to activate flag 13.
  580. 1% chance to do nothing.
  581.  
  582. Else:
  583. 10% chance to activate flag 14.
  584. 20% chance to activate flag 15.
  585. 35% chance to activate flag 12.
  586. 34% chance to activate flag 13.
  587. 1% chance to do nothing.
  588.  
  589. If flag 12 is active, cast Dark Claw. (Standard targeting.) Deactivate flag 12.
  590. If Grudge Miasma is active:
  591. 10% chance to activate flag 15.
  592. 40% chance to activate flag 14.
  593. 20% chance to activate flag 11.
  594. 29% chance to activate flag 13.
  595. 1% chance to do nothing.
  596.  
  597. Else:
  598. 10% chance to activate flag 15.
  599. 20% chance to activate flag 14.
  600. 35% chance to activate flag 11.
  601. 34% chance to activate flag 13.
  602. 1% chance to do nothing.
  603.  
  604. If flag 13 is active, cast Crushing Claws. (Standard targeting.) Deactivate flag 13.
  605. If Grudge Miasma is active:
  606. 10% chance to activate flag 15.
  607. 40% chance to activate flag 14.
  608. 20% chance to activate flag 11.
  609. 29% chance to activate flag 12.
  610. 1% chance to do nothing.
  611.  
  612. Else:
  613. 10% chance to activate flag 15.
  614. 20% chance to activate flag 14.
  615. 35% chance to activate flag 11.
  616. 34% chance to activate flag 12.
  617. 1% chance to do nothing.
  618.  
  619. If flag 14 is active, cast Thunder Howl. (Standard targeting.) Deactivate flag 14.
  620. 10% chance to activate flag 15.
  621. 30% chance to activate flag 11.
  622. 30% chance to activate flag 12.
  623. 29% chance to activate flag 13.
  624. 1% chance to do nothing.
  625.  
  626. If flag 15 is active, cast Panic Crush. (Targets the front row.) Deactivate flag 15.
  627. 10% chance to activate flag 14.
  628. 30% chance to activate flag 11.
  629. 30% chance to activate flag 12.
  630. 29% chance to activate flag 13.
  631. 1% chance to do nothing.
  632.  
  633. Else, use a regular attack. (Standard targeting.)
  634. 45% chance to activate flag 11.
  635. 45% chance to activate flag 12.
  636. 5% chance to activate flag 13.
  637. 1% chance to activate flag 14.
  638. 1% chance to activate flag 15.
  639. 3% chance to do nothing.
  640.  
  641. Harvester
  642. =========
  643. End of turn parameters:
  644. Set counter 3 to 0.
  645.  
  646. If self is petrified, asleep, or panicking, do nothing.
  647.  
  648. If flag 21 is not active and HP is below 91%, set counter 2 to 0.
  649.  
  650. If flag 22 is not active and HP is below 71%, set counter 2 to 0.
  651.  
  652. Add 1 to counter 1.
  653.  
  654. Add 1 to counter 2.
  655.  
  656. If counter 1 is at 5 or above, set counter 1 to 0. Deactivate flags 1, 2, 3, 4, and 5.
  657.  
  658. If counter 2 is at 5 or above, set counter 2 to 0.
  659.  
  660. If self is petrified, asleep, or panicking, do nothing.
  661.  
  662. If HP is below 51%:
  663. While self does not have a buff, 30% chance to follow this routine:
  664. If self does not have an accuracy buff, 30% chance to cast Calculated Jig. (Targets self.)
  665.  
  666. If self does not have a defense buff, 30% chance to cast Guard Waltz. (Targets self.)
  667.  
  668. If self does not have an attack buff, 30% chance to cast Charge Flamenco. (Targets self.)
  669.  
  670. If self does not have a disable resistance buff, 30% chance to cast Aberrant Klezmer. (Targets self.)
  671.  
  672. Else, add 1 to counter 3.
  673.  
  674. If counter 3 is at 6 or above, do nothing.
  675.  
  676. Else, Dodge Mazurka. (Targets self.)
  677.  
  678. If HP is below 70%:
  679. If flags 21 or 22 are not active, activate flags 21 and 22.
  680.  
  681. If counter 2 is at 1, cast Aberrant Klezmer. (Targets self.)
  682.  
  683. If counter 2 is at 2, cast Dodge Mazurka. (Targets self.)
  684.  
  685. If counter 2 is at 3 or above:
  686. 33% chance to cast Calculated Jig. (Targets self.)
  687. 33% chance to cast Guard Waltz. (Targets self.)
  688. 34% chance to cast Charge Flamenco. (Targets self.)
  689.  
  690. Else, do nothing.
  691.  
  692. If HP is below 90%:
  693. If flag 21 is not active, activate flag 21.
  694.  
  695. If counter 2 is at 1, cast Calculated Jig. (Targets self.)
  696.  
  697. If counter 2 is at 2, cast Guard Waltz. (Targets self.)
  698.  
  699. If counter 2 is at 3, cast Charge Flamenco. (Targets self.)
  700.  
  701. Else, do nothing. Set counter 2 to 0.
  702.  
  703. Else, do nothing.
  704.  
  705. If counter 1 is at 4, and HP is below 76%, cast Marionette. (Standard targeting.)
  706.  
  707. If every living party member has their heads, arms, and legs bound, cast Marionette. (Standard targeting.)
  708.  
  709. If HP is below 76%, chance to cast Marionette. (Standard targeting.) The chance is calculated by multiplying the number of binds on the party by 10.
  710.  
  711. From 100% to 76% HP:
  712. If counter 1 is at 0, cast Conviction. (Targets the front row.) Activate flag 1.
  713.  
  714. If counter 1 is at 1, cast Boreal Wind. (Standard targeting.) Activate flag 2.
  715.  
  716. If counter 1 is at 2, cast Discipline. (Standard targeting.) Activate flag 3.
  717.  
  718. Else, use a regular attack. (Standard targeting.)
  719.  
  720. From 75% to 51% HP:
  721. If counter 1 is at 4 and flag 25 is not active, cast Inflame. (Standard targeting.) Add 4 to counter 1. Activate flag 25.
  722.  
  723. If flag 1 is active, cast Conviction. (Targets the front row.) Deactivate flag 1.
  724. 40% chance to activate flag 2.
  725. 40% chance to activate flag 3.
  726. 20% chance to do nothing.
  727.  
  728. If flag 2 is active, cast Boreal Wind. (Standard targeting.) Deactivate flag 2.
  729. 40% chance to activate flag 1.
  730. 40% chance to activate flag 3.
  731. 20% chance to do nothing.
  732.  
  733. If flag 3 is active, cast Discipline. (Standard targeting.) Deactivate flag 3.
  734. 40% chance to activate flag 1.
  735. 40% chance to activate flag 2.
  736. 20% chance to do nothing.
  737.  
  738. Else, use a regular attack. (Standard targeting.)
  739. 30% chance to activate flag 1.
  740. 30% chance to activate flag 2.
  741. 30% chance to activate flag 3.
  742. 10% chance to do nothing.
  743.  
  744. From 50% HP to death:
  745. If flag 26 is not active, cast Glorious Flare. (Standard targeting.) Activate flags 5 and 26.
  746.  
  747. If counter 1 is at 1, and flag 4 is not active, 20% chance to cast Inflame. (Standard targeting.) Activate flag 4.
  748.  
  749. If counter 1 is at 4, and flag 4 is not active, 30% chance to cast Inflame. (Standard targeting.) Activate flag 4.
  750.  
  751. If flag 5 is active, cast Glorious Flare. (Standard targeting.) Deactivate flag 5.
  752. 33% chance to activate flag 1.
  753. 33% chance to activate flag 2.
  754. 33% chance to activate flag 3.
  755. 1% chance to do nothing.
  756.  
  757. If flag 1 is active, cast Conviction. (Targets the front row.) Deactivate flag 1.
  758. 30% chance to activate flag 2.
  759. 30% chance to activate flag 3.
  760. 39% chance to activate flag 5.
  761. 1% chance to do nothing.
  762.  
  763. If flag 2 is active, cast Boreal Wind. (Standard targeting.) Deactivate flag 2.
  764. 30% chance to activate flag 1.
  765. 30% chance to activate flag 3.
  766. 39% chance to activate flag 5.
  767. 1% chance to do nothing.
  768.  
  769. If flag 3 is active, cast Discipline. (Standard targeting.) Deactivate flag 3.
  770. 30% chance to activate flag 1.
  771. 30% chance to activate flag 2.
  772. 39% chance to activate flag 5.
  773. 1% chance to do nothing.
  774.  
  775. Else, use a regular attack. (Standard targeting.)
  776. 20% chance to activate flag 1.
  777. 20% chance to activate flag 2.
  778. 20% chance to activate flag 3.
  779. 39% chance to activate flag 5.
  780. 1% chance to do nothing.
  781.  
  782. Primordiphant
  783. =============
  784. If HP is below 61%, and flag 2 is not active, cast King's Grace. (Standard targeting.) Activate flags 2 and 1.
  785.  
  786. If HP is below 91%, and flag 1 is not active, cast Leg Binder. (Standard targeting.) Activate flag 1.
  787.  
  788. If flag 0 is active:
  789. Add 1 to counter 1.
  790.  
  791. If counter 1 is at 5 or above, set counter to 0.
  792.  
  793. If HP is below 31%:
  794. If counter 1 is at 3 or above, cast Emperor Strike. (Standard targeting.) Add 1 to counter 1.
  795.  
  796. If counter 1 is at 2, 50% chance to cast Fang Skewer. (Targets the front row.)
  797.  
  798. If coutner 1 is at 1:
  799. 50% chance to cast Trunk Whip. (Standard targeting.)
  800. 50% chance to cast Leg Binder. (Stnadard targeting.)
  801.  
  802. If counter 1 is at 0:
  803. If no one has the King's Grace debuff, cast King's Grace. (Standard targeting.)
  804. Else, use a regular attack. (Standard targeting.)
  805.  
  806. Else, use a regular attack. (Standard targeting.)
  807.  
  808. If HP is below 61%:
  809. If counter 1 is at 4 or above, cast Emperor Strike. (Standard targeting.)
  810.  
  811. If counter 1 is at 2, cast Fang Skewer. (Targets the front row.)
  812.  
  813. If counter 1 is at 1:
  814. If no one has the King's Grace debuff, cast King's Grace. (Standard targeting.)
  815. Else, use a regular attack. (Standard targeting.)
  816.  
  817. If counter 1 is at 0, cast Trunk Whip. (Standard targeting.)
  818.  
  819. Else, use a regular attack. (Standard targeting.)
  820.  
  821. If HP is below 91%:
  822. If counter 1 is at 4 or above, cast Emperor Strike. (Standard targeting.)
  823.  
  824. If counter 1 is at 2, cast Fang Skewer. (Targets the front row.)
  825.  
  826. If counter 1 is at 1, cast Leg Binder. (Standard targeting.)
  827.  
  828. Else, use a regular attack. (Standard targeting.)
  829.  
  830. Else:
  831. If counter 1 is at 4 or above, cast Emperor Strike. (Standard targeting.)
  832.  
  833. If counter 1 is at 2, cast Fang Skewer. (Targets the front row.)
  834.  
  835. Else, use a regular attack. (Standard targeting.)
  836.  
  837. Else, cast Emperor Strike. (Standard targeting.) Activate flag 0.
  838.  
  839. Dryad
  840. =====
  841. End of turn parameters:
  842. Add 1 to counter 1.
  843.  
  844. If counter 1 is at 6 or above, set counter to 0, then deactivate flags 1, 2, 3, 4, 5, and 6.
  845.  
  846. If self is petrified, asleep, or panicking, do nothing.
  847.  
  848. Cast Form Change on the 1st turn. (Targets self.)
  849.  
  850. If counter 1 is at 5, cast Form Change. (Targets self.)
  851.  
  852. Else, do nothing.
  853.  
  854. If self is in the Form Change state, cast Earth's Heal. (Targets self.)
  855.  
  856. If flag 11 is not active, cast Rage Vent. (Standard targeting.) Activate flag 11.
  857.  
  858. From 100% to 76% HP:
  859. If flag 1 is active, cast Double Flame. (Standard targeting.) Deactivate flag 1.
  860. 65% chance to activate flag 2.
  861. 30% chance to activate flag 3.
  862. 5% chance to do nothing.
  863.  
  864. If flag 2 is active, cast Icicle Triad. (Targets the front row.) Deactivate flag 2.
  865. 65% chance to activate flag 1.
  866. 30% chance to activate flag 3.
  867. 5% chance to do nothing.
  868.  
  869. If flag 3 is active, cast Bull Whip. (Standard targeting.) Deactivate flag 3.
  870. 45% chance to activate flag 1.
  871. 45% chance to activate flag 2.
  872. 10% chance to do nothing.
  873.  
  874. Else, use a regular attack. (Standard targeting.)
  875. 65% chance to activate flag 2.
  876. 30% chance to activate flag 3.
  877. 5% chance to do nothing.
  878.  
  879. From 75% to 51% HP:
  880. If counter 1 is equal to 2 or 4:
  881. 65% chance to cast Thunderbolt. (Standard targeting.)
  882. 30% chance to cast Bull Whip. (Stnadard targeting.)
  883. 5% chance to use a regular attack. (Standard targeting.)
  884.  
  885. Else:
  886. 35% chance to cast Double Flame. (Standard targeting.)
  887. 35% chance to cast Icicle Triad. (Targets the front row.)
  888. 25% chance to cast Bull Whip. (Standard targeting.)
  889. 5% chance to use a regular attack. (Standard targeting.)
  890.  
  891. From 50% HP to death:
  892. If counter 1 is equal to 0, 70% chance to cast Black Pollen. (Standard targeting.) Activate flag 5.
  893.  
  894. If counter 1 is equal to 1, and flag 5 is not active, cast Black Pollen. (Standard targeting.) Activate flag 5.
  895.  
  896. If counter 1 is equal to 1, and flag 5 is active, 70% chance to cast Rage Vent. (Standard targeting.) Activate flag 6.
  897.  
  898. If counter 1 is equal to 2, and flag 6 is not active, cast Rage Vent. (Standard targeting.) Activate flag 6.
  899.  
  900. Else:
  901. If flag 1 is active, cast Double Flame. (Standard targeting.) Deactivate flag 1.
  902. 40% chance to activate flag 2.
  903. 30% chance to activate flag 3.
  904. 25% chance to activate flag 4.
  905. 5% chance to do nothing.
  906.  
  907. If flag 2 is active, cast Icicle Triad. (Targets the front row.) Deactivate flag 2.
  908. 40% chance to activate flag 1.
  909. 30% chance to activate flag 3.
  910. 25% chance to activate flag 4.
  911. 5% chance to do nothing.
  912.  
  913. If flag 3 is active, cast Bull Whip. (Standard targeting.) Deactivate flag 3.
  914. 40% chance to activate flag 1.
  915. 40% chance to activate flag 2.
  916. 15% chance to activate flag 4.
  917. 5% chance to do nothing.
  918.  
  919. If flag 4 is active, cast Thunderbolt. (Standard targeting.) Deactivate flag 4.
  920. 35% chance to activate flag 1.
  921. 35% chance to activate flag 2.
  922. 25% chance to activate flag 3.
  923. 5% chance to do nothing.
  924.  
  925. Else, use a regular attack. (Standard targeting.)
  926. 35% chance to activate flag 1.
  927. 35% chance to activate flag 2.
  928. 20% chance to activate flag 3.
  929. 5% chance to activate flag 4.
  930. 5% chance to do nothing.
Advertisement
Add Comment
Please, Sign In to add comment