DrFetus

EO4 FOE AI Routines

May 6th, 2017 (edited)
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.30 KB | None | 0 0
  1. If a condition somehow turns out to be impossible to fulfill, the enemy will simply resort to using a regular attack with standard targeting.
  2.  
  3. Co-op attacks will also prevent any required enemies from taking any actions. Instead, they will do nothing, and the message: "[Enemy name] stands ready!" will be displayed.
  4.  
  5. Standard targeting is the default targeting routine most enemies follow. How it works is that each party member has an assigned aggro value each time the enemy makes an attack. Said value can be a random number from 0 to 4. Each enemy then chooses a target to attack, with preference being given to characters in the front row and the character with the most HP. Chosen targets get a random number from 0 to 6 added onto their initial value. Taunt and other aggro skills add a random number from 3 to the maximum aggro value onto the buff owner's aggro value. When all of this is said and done, the character with the highest resulting aggro value is the one who is attacked.
  6.  
  7. Rare Breed AI
  8. =============
  9. Every time a rare breed glows, they gain a +30 boost to their action speed, which is then multiplied by 10 (before randomization is added in), and their damage output is increased by +20% for each turn that passes in battle. This can only be done 10 times. After the 10th turn, their damage stops increasing, so they can only deal 3 times the damage at most. Every time they glow, they follow this routine.
  10.  
  11. Nomad Baboon
  12. ============
  13. If HP is below 51%:
  14. 59% chance to cast Swing. (Standard targeting.)
  15. 41% chance to use a regular attack. (Standard targeting.)
  16.  
  17. Else:
  18. 69% chance to use a regular attack. (Standard targeting.)
  19. 31% chance to cast Swing. (Standard targeting.)
  20.  
  21. Furyfawn
  22. ========
  23. 69% chance to use a regular attack. (Standard targeting.)
  24. 31% chance to cast Stomp. (Standard targeting.)
  25.  
  26. Furyhorn
  27. ========
  28. If at least one party member is panicking:
  29. 61% chance to cast Stomp (Standard targeting.)
  30. If Stomp does not get cast, 51% chance to cast Muddle Roar. (Standard targeting.)
  31. Else, use a regular attack. (Standard targeting.)
  32.  
  33. Else:
  34. Cast Muddle Roar. (Targets the front row.)
  35.  
  36. Cutter
  37. ======
  38. If HP is below 51%:
  39. 59% chance to cast Bear Claw. (Standard targeting.)
  40. 41% chance to use a regular attack. (Standard targeting.)
  41.  
  42. Else:
  43. 69% chance to use a regular attack. (Standard targeting.)
  44. 31% chance to cast Bear Claw. (Standard targeting.)
  45.  
  46. Bloodbear 1 (First two fights with one)
  47. =======================================
  48. If self is on B2F of Lush Woodlands and HP is below 51%, Escape. (Targets self.)
  49.  
  50. If the turn count is equal to 1, cast Binding Voice. (Standard targeting.)
  51.  
  52. If self is in the Delay Charge state:
  53. If the Delay Charge countdown reached 0, cast Ruinous Strike. (Targets the front row.)
  54. Else, do nothing. Display message: "Bloodbear is charging up!"
  55.  
  56. If HP is below 51%:
  57. 39% chance to cast Bear Claw. (Standard targeting.)
  58. 10% chance to use a regular attack. (Standard targeting.)
  59. 10% chance to cast Binding Voice. (Standard targeting.)
  60. 41% chance to cast Delay Charge. (Targets self.)
  61.  
  62. Else:
  63. 29% chance to use a regular attack. (Standard targeting.)
  64. 30% chance to cast Bear Claw. (Standard targeting.)
  65. 41% chance to cast Delay Charge. (Targets self.)
  66.  
  67. Bloodbear 2 (All other Bloodbears)
  68. ==================================
  69. If the turn count is equal to 1, cast Binding Voice. (Standard targeting.)
  70.  
  71. If self is in the Delay Charge state:
  72. If the Delay Charge countdown reached 0, cast Ruinous Strike. (Targets the front row.)
  73. Else, do nothing. Display message: "Bloodbear is charging up!"
  74.  
  75. If HP is below 51%:
  76. 39% chance to cast Bear Claw. (Standard targeting.)
  77. 10% chance to use a regular attack. (Standard targeting.)
  78. 10% chance to cast Binding Voice. (Standard targeting.)
  79. 41% chance to cast Delay Charge. (Targets self.)
  80.  
  81. Else:
  82. 29% chance to use a regular attack. (Standard targeting.)
  83. 20% chance to cast Bear Claw. (Standard targeting.)
  84. 10% chance to cast Binding Voice. (Standard targeting.)
  85. 41% chance to cast Delay Charge. (Targets self.)
  86.  
  87. Bounding Beast
  88. ==============
  89. If flag 1 is not active, cast Jet Uppercut. (Standard targeting.) Activate flag 1.
  90.  
  91. If HP is below 61%:
  92. 49% chance to cast Boomerang Hook. (Standard targeting.)
  93. If Boomerang Hook does not get cast, 69% chance to cast Jet Uppercut. (Standard targeting.)
  94. Else, use a regular attack. (Standard targeting.)
  95.  
  96. Else:
  97. 59% chance to cast Jet Uppercut. (Standard targeting.)
  98. 41% chance to use a regular attack. (Standard targeting.)
  99.  
  100. Supreme Wing
  101. ============
  102. If flag 1 is not active, cast Ripping Claw. (Standard targeting.) Activate flag 1.
  103.  
  104. If the turn count is a multiple of 4, cast Sand Wing. (Standard targeting.)
  105.  
  106. If HP is below 51%:
  107. 69% chance to cast Ripping Claw. (Standard targeting.)
  108. 31% chance to cast Stone Eye (Level 1). (Standard targeting.)
  109.  
  110. Else:
  111. 29% chance to cast Ripping Claw. (Standard targeting.)
  112. 71% chance to use a regular attack. (Standard targeting.)
  113.  
  114. Greedy Lizard
  115. =============
  116. If the turn count is equal to 1, cast Poison Sting. (Standard targeting.)
  117.  
  118. If HP is below 51%:
  119. 79% chance to cast Poison Sting. (Standard targeting.)
  120. 21% chance to use a regular attack. (Standard targeting.)
  121.  
  122. Else:
  123. 29% chance to cast Poison Sting. (Standard targeting.)
  124. 71% chance to use a regular attack. (Standard targeting.)
  125.  
  126. Big Moth
  127. ========
  128. Run this AI script the moment it's the user's turn.
  129.  
  130. On the moment of the user's turn:
  131. If self does not have an attack buff:
  132. If there is at least 1 Trip Mushroom in the battle, cast Devour Ally. (Targets the Trip Mushroom.)
  133. If there is at least 1 [ENEMY ID 20] in the battle, cast Devour Ally. (Targets the [ENEMY ID 20].)
  134. If there is at least 1 Petaloid in the battle, cast Devour Ally. (Targets the Petaloid.)
  135. If there is at least 1 Fire Bulb in the battle, cast Devour Ally. (Targets the Fire Bulb.)
  136. If there is at least 1 Glutton Vine in the battle, cast Devour Ally. (Targets the Glutton Vine.)
  137.  
  138. Else:
  139. 40% chance to cast Nerve Spores (Standard targeting.)
  140. 39% chance to cast Mince. (Standard targeting.)
  141. 21% chance to use a regular attack. (Standard targeting.)
  142.  
  143. Giant Moa
  144. =========
  145. If flag 1 is not active, cast Heavy Stamp. (Standard targeting.) Activate flag 1.
  146.  
  147. If HP is below 51%:
  148. 79% chance to cast Heavy Stamp. (Standard targeting.)
  149. 21% chance to use a regular attack. (Standard targeting.)
  150.  
  151. Else:
  152. 29% chance to cast Heavy Stamp. (Standard targeting.)
  153. 71% chance to use a regular attack. (Standard targeting.)
  154.  
  155. Spotted Frog
  156. ============
  157. If the turn count is equal to 1, cast High Jump. (Standard targeting.)
  158.  
  159. Else:
  160. 39% chance to cast High Jump. (Standard targeting.)
  161. 30% chance to cast Sticky Tongue. (Standard targeting.)
  162. 31% chance to use a regular attack. (Standard targeting.)
  163.  
  164. Dream Eater
  165. ===========
  166. If all party members are asleep, use a regular attack. (Standard targeting.)
  167.  
  168. Else:
  169. 49% chance to cast Dozing Gaze (Targets party members that aren't asleep.)
  170. 51% chance to use a regular attack. (Standard targeting.)
  171.  
  172. Omnihunter
  173. ==========
  174. If the turn count is equal to 1:
  175. 69% chance to cast Amputate. (Standard targeting.)
  176. 31% chance to use a regular attack. (Standard targeting.)
  177.  
  178. If HP is below 51%:
  179. 59% chance to cast Scythe Dance. (Standard targeting.)
  180. 30% chance to cast Amputate. (Standard targeting.)
  181. 11% chance to use a regular attack. (Standard targeting.)
  182.  
  183. Else:
  184. 39% chance to cast Scythe Dance. (Standard targeting.)
  185. 61% chance to use a regular attack. (Standard targeting.)
  186.  
  187. Dinogator
  188. =========
  189. If flag 1 is not active, cast Tear Apart. (Standard targeting.) Activate flag 1.
  190.  
  191. If HP is below 51%, cast Tear Apart. (Standard targeting.)
  192.  
  193. Else:
  194. 61% chance to use a regular attack. (Standard targeting.)
  195. 39% chance to cast Tear Apart. (Standard targeting.)
  196.  
  197. Patrol Bat
  198. ==========
  199. If there is a Rafflesia in the battle, cast Claw Dance. (Standard targeting.)
  200.  
  201. If flag 1 is not active, cast Claw Dance. (Standard targeting.) Activate flag 1.
  202.  
  203. If HP is below 51%:
  204. 79% chance to cast Claw Dance. (Standard targeting.)
  205. 21% chance to use a regular attack. (Standard targeting.)
  206.  
  207. Else:
  208. 49% chance to cast Claw Dance. (Standard targeting.)
  209. 51% chance to use a regular attack. (Standard targeting.)
  210.  
  211. Poison Lizard
  212. =============
  213. If the turn count is equal to 1, cast Poison Tail. (Standard targeting.)
  214.  
  215. If HP is below 51%:
  216. 79% chance to cast Poison Tail. (Standard targeting.)
  217. 21% chance to use a regular attack. (Standard targeting.)
  218.  
  219. Else:
  220. 29% chance to cast Poison Tail. (Standard targeting.)
  221. 71% chance to use a regular attack. (Standard targeting.)
  222.  
  223. Plated Chaser
  224. =============
  225. If flag 1 is not active, cast Grinder. (Standard targeting.) Activate flag 1.
  226.  
  227. If HP is below 61%:
  228. If the turn count is a multiple of 3, cast Oil Spin. (Standard targeting.)
  229. Else:
  230. 89% chance to cast Grinder. (Standard targeting.)
  231. 11% chance to use a regular attack. (Standard targeting.)
  232.  
  233. Else:
  234. 59% chance to cast Grinder. (Standard targeting.)
  235. 41% chance to use a regular attack. (Standard targeting.)
  236.  
  237. Raging Raptor
  238. =============
  239. If flag 1 is not active, cast Raging Winds. (Standard targeting.) Activate Flag 1.
  240.  
  241. If the turn count is a multiple of 5, cast Raging Winds. (Standard targeting.)
  242.  
  243. If HP is below 51%:
  244. 69% chance to cast Ripping Claw. (Standard targeting.)
  245. 31% chance to use a regular attack. (Standard targeting.)
  246.  
  247. Else:
  248. 29% chance to cast Ripping Claw. (Standard targeting.)
  249. 71% chance to use a regular attack. (Standard targeting.)
  250.  
  251. Tusked Crusher
  252. ==============
  253. If the turn count is equal to 1, cast Binge Eating (Level 1). (Standard targeting.)
  254. If the turn count is equal to 2, cast Binge Eating (Level 2). (Standard targeting.)
  255. If the turn count is equal to 3, cast Binge Eating (Level 3). (Standard targeting.)
  256. If the turn count is equal to 4, cast Binge Eating (Level 4). (Standard targeting.)
  257. If the turn count is equal to 5, cast Binge Eating (Level 5). (Standard targeting.)
  258. If the turn count is equal to 6, cast Binge Eating (Level 6). (Standard targeting.)
  259. If the turn count is equal to 7, cast Binge Eating (Level 7). (Standard targeting.)
  260. If the turn count is equal to 8, cast Binge Eating (Level 8). (Standard targeting.)
  261. If the turn count is equal to 9, cast Binge Eating (Level 9). (Standard targeting.)
  262. Else, cast Binge Eating (Level 10). (Standard targeting.)
  263.  
  264. Icy Pincer
  265. ==========
  266. If the turn count is equal to 1 or the turn count is a multiple of 4, cast Frigid Scythe. (Standard targeting.)
  267.  
  268. If HP is below 51%:
  269. If at least one party member is blind:
  270. 34% chance to cast Overhand Swing. (Targets blind party members.)
  271. 35% chance to cast Scythe Dance. (Standard targeting.)
  272. 20% chance to cast Blinding Blade. (Standard targeting.)
  273. 11% chance use a regular attack. (Standard targeting.)
  274.  
  275. Else:
  276. 34% chance to cast Blinding Blade. (Standard targeting.)
  277. 35% chance to cast Scythe Dance. (Standard targeting.)
  278. 31% chance use a regular attack. (Standard targeting.)
  279.  
  280. If at least one party member is blind:
  281. 44% chance to cast Overhand Swing. (Targets blind party members.)
  282. 40% chance to cast Blinding Blade. (Standard targeting.)
  283. 16% chance to use a regular attack. (Standard targeting.)
  284.  
  285. Else:
  286. 29% chance to cast Overhand Swing. (Standard targeting.)
  287. 60% chance to cast Blinding Blade. (Standard targeting.)
  288. 11% chance to use a regular attack. (Standard targeting.)
  289.  
  290. Stalking Shadow
  291. ===============
  292. If the party is blindsided, cast Camouflage. (Targets self.)
  293.  
  294. If self is in the camouflaged state:
  295. If flag 2 is not active:
  296. If self is blind, head bound, or leg bound:
  297. 81% chance to cast Entrapment. (Targets self.) Activate flag 2.
  298. 19% chance to use a regular attack. (Standard targeting.) Activate flag 2.
  299.  
  300. Else:
  301. 31% chance to cast Entrapment. (Targets self.) Activate flag 2.
  302. 69% chance to use a regular attack. (Standard targeting.) Activate flag 2.
  303.  
  304. Else, cast Blizzard. Deactivate flag 2.
  305.  
  306. If HP is below 51%:
  307. 60% chance to cast Blizzard. (Standard targeting.)
  308. 40% chance to cast Camouflage. (Targets self.)
  309.  
  310. Else:
  311. 40% chance to cast Camouflage. (Targets self.)
  312. If Camouflage does not get cast, 80% chance to cast Blizzard. (Targets self.)
  313. Else, use a regular attack. (Standard targeting.)
  314.  
  315. Golden Deer
  316. ===========
  317. If flag 1 is not active, cast Rush. (Standard targeting.) Activate flag 1.
  318.  
  319. If HP is below 61%:
  320. If flag 2 is active:
  321. 69% chance to cast Rush. (Standard targeting.) Deactivate flag 2.
  322. 31% chance to use a regular attack. (Standard targeting.) Deactivate flag 2.
  323.  
  324. Else:
  325. 69% chance to cast Charge. (Targets self.) Activate flag 2.
  326. 31% chance to cast Rush. (Standard targeting.)
  327.  
  328. Else:
  329. 39% chance to cast Rush. (Standard targeting.)
  330. 61% chance to use a regular attack. (Standard targeting.)
  331.  
  332. Cold Watchman
  333. =============
  334. If the party gets blindsided:
  335. 20% chance to cast Target Search. (Targets the party member with the lowest HP.)
  336. 20% chance to cast Target Search. (Targets the party member with the lowest HP percentage.)
  337. 20% chance to cast Target Search. (Targets the party member with the lowest level.)
  338. 20% chance to cast Target Search. (Targets the back row.)
  339. 20% chance to cast Target Search. (Standard targeting.)
  340.  
  341. If the turn count is equal to 1:
  342. 20% chance to cast Target Search. (Targets the party member with the lowest HP.)
  343. 20% chance to cast Target Search. (Targets the party member with the lowest HP percentage.)
  344. 20% chance to cast Target Search. (Targets the party member with the lowest level.)
  345. 20% chance to cast Target Search. (Targets the back row.)
  346. 20% chance to cast Target Search. (Standard targeting.)
  347.  
  348. If any party member has an aggro debuff:
  349. If HP is below 51%, cast Thorny Ball. (Standard targeting.)
  350. Else:
  351. 69% chance to cast Thorny Ball. (Standard targeting.)
  352. 31% chance to use a regular attack. (Standard targeting.)
  353.  
  354. 69% chance to follow this routine:
  355. 20% chance to cast Target Search. (Targets the party member with the lowest HP.)
  356. 20% chance to cast Target Search. (Targets the party member with the lowest HP percentage.)
  357. 20% chance to cast Target Search. (Targets the party member with the lowest level.)
  358. 20% chance to cast Target Search. (Targets the back row.)
  359. 20% chance to cast Target Search. (Standard targeting.)
  360.  
  361. [NOTE: Due to a bug, the RNG is only rolled for once in the previous block, resulting in the first 3 routines being inaccessible. The true chances are as follows:]
  362. A 11 out of 31 chance to cast Target Search. (Targets the back row.)
  363. A 20 out of 31 chance to cast Target Search. (Standard targeting.)
  364.  
  365. Else, cast Thorny Ball. (Standard targeting.)
  366.  
  367. Cruel Slayer
  368. ============
  369. If flag 1 is not active, cast Frozen Sphere on the 1st turn. (Standard targeting.) Activate flag 1.
  370.  
  371. If HP is below 61%:
  372. 59% chance to cast Wrenching Fang. (Standard targeting.)
  373. 41% chance to cast Frozen Sphere. (Standard targeting.)
  374.  
  375. Else:
  376. 10% chance to use a regular attack. (Standard targeting.)
  377. If a regular attack was not used, 40% chance to cast Wrenching Fang. (Standard targeting.)
  378. Else, cast Frozen Sphere. (Standard targeting.)
  379.  
  380. Ancient Keeper
  381. ==============
  382. If flag 1 is not active, cast Gavel Bang. (Standard targeting.) Activate flag 1.
  383.  
  384. If HP is below 61%:
  385. If self has the Purple Mist buff:
  386. 69% chance to cast Gavel Bang. (Standard targeting.)
  387. 31% chance to use a regular attack. (Standard targeting.)
  388.  
  389. Else:
  390. 69% chance to cast Purple Mist. (Targets self.)
  391. 31% chance to cast Gavel Bang. (Standard targeting.)
  392.  
  393. Else:
  394. 39% chance to cast Gavel Bang. (Standard targeting.)
  395. 61% chance to use a regular attack. (Standard targeting.)
  396.  
  397. Guardian Judge
  398. ==============
  399. If flag 1 is not active, cast Sleep Stomp. (Standard targeting.) Activate flag 1.
  400.  
  401. If HP is below 51%:
  402. If at least 1 party member is asleep:
  403. Cast Sleep Stomp. (Targets sleeping party members.)
  404.  
  405. Else:
  406. 69% chance to cast Sleep Stomp. (Standard targeting.)
  407. 31% chance to us a regular attack. (Standard targeting.)
  408.  
  409. If at least 1 party member has an evasion debuff:
  410. 69% chance to cast Sleep Stomp. (Standard targeting.)
  411. If at least 1 party member is asleep, use a regular attack. (Targets sleeping party members.)
  412. Else, use a regular attack. (Standard targeting.)
  413.  
  414. Else:
  415. 69% chance to cast Gravity Wave. (Standard targeting.)
  416. 31% chance to cast Sleep Stomp. (Standard targeting.)
  417.  
  418. Death Mantis
  419. ============
  420. If HP is below 51%:
  421. 29% chance to use a regular attack. (Standard targeting.)
  422. 71% chance to cast Scythe Dance. (Standard targeting.)
  423.  
  424. Else:
  425. 59% chance to use a regular attack. (Standard targeting.)
  426. 41% chance to cast Scythe Dance. (Standard targeting.)
  427.  
  428. Sky Emperor
  429. ===========
  430. If the action count is equal to 0, cast Godly Storm. (Standard targeting.)
  431.  
  432. If flag 1 is not active, cast Kiss of Death. (Standard targeting.) Activate flag 1.
  433.  
  434. If the turn count is a multiple of 3, cast Gravity Wave. (Standard targeting.) Activate flag 1.
  435.  
  436. If HP is below 61%:
  437. 79% chance to cast Godly Storm. (Standard targeting.)
  438. 21% chance to use a regular attack. (Standard targeting.)
  439.  
  440. Else:
  441. 59% chance to cast Godly Storm. (Standard targeting.)
  442. 41% chance to use a regular attack. (Standard targeting.)
  443.  
  444. Silent Killer
  445. =============
  446. If the party gets blindsided:
  447. 20% chance to cast Target Search. (Targets the party member with the lowest HP.)
  448. 20% chance to cast Target Search. (Targets the party member with the lowest HP percentage.)
  449. 20% chance to cast Target Search. (Targets the party member with the lowest level.)
  450. 20% chance to cast Target Search. (Targets the back row.)
  451. 20% chance to cast Target Search. (Standard targeting.)
  452.  
  453. If the turn count is equal to 1:
  454. 20% chance to cast Target Search. (Targets the party member with the lowest HP.)
  455. 20% chance to cast Target Search. (Targets the party member with the lowest HP percentage.)
  456. 20% chance to cast Target Search. (Targets the party member with the lowest level.)
  457. 20% chance to cast Target Search. (Targets the back row.)
  458. 20% chance to cast Target Search. (Standard targeting.)
  459.  
  460. If the turn count is a multiple of 3, cast Damage Drain. (Targets self.)
  461.  
  462. If any party member has an aggro debuff:
  463. If HP is below 51%:
  464. 89% chance to cast Guillotine Arm. (Standard targeting.)
  465. 11% chance to use a regular attack. (Standard targeting.)
  466.  
  467. Else:
  468. 59% chance to cast Guillotine Arm. (Standard targeting.)
  469. 41% chance to use a regular attack. (Standard targeting.)
  470.  
  471. 69% chance to follow this routine:
  472. 20% chance to cast Target Search. (Targets the party member with the lowest HP.)
  473. 20% chance to cast Target Search. (Targets the party member with the lowest HP percentage.)
  474. 20% chance to cast Target Search. (Targets the party member with the lowest level.)
  475. 20% chance to cast Target Search. (Targets the back row.)
  476. 20% chance to cast Target Search. (Standard targeting.)
  477.  
  478. Else, use a regular attack.. (Standard targeting.)
  479.  
  480. Scorching Beast
  481. ===============
  482. If flag 1 is not active, cast Flamethrower. (Standard targeting.) Activate flag 1.
  483.  
  484. If HP is below 51%:
  485. If any party member has a defense debuff:
  486. 69% chance to cast Wrenching Fang. (Standard targeting.)
  487. 31% chance to use a regular attack. (Standard targeting.)
  488.  
  489. Else:
  490. 59% chance to cast Acid Spray. (Standard targeting.)
  491. 41% chance to cast Flamethrower. (Standard targeting.)
  492.  
  493. Else:
  494. 69% chance to cast Flamethrower. (Standard targeting.)
  495. 31% chance to use a regular attack. (Standard targeting.)
  496.  
  497. Calm King
  498. =========
  499. If flag 2 is not active, cast Mow Down on the 1st turn. (Standard targeting.) Activate flag 2.
  500.  
  501. If HP is below 61%:
  502. If flag 1 is not active, cast Emperor Guard. (Targets self.) Activate flag 1.
  503.  
  504. If flag 3 is active:
  505. 69% chance to cast Mow Down. (Standard targeting.) Deactivate flag 3.
  506. 31% chance to use a regular attack. (Standard targeting.) Deactivate flag 3.
  507.  
  508. If self has the Emperor Guard buff, cast Mow Down. (Standard targeting.)
  509.  
  510. Else:
  511. 59% chance to cast Emperor Guard. (Targets self.)
  512. 41% chance to cast Charge. (Targets self.) Activate flag 3.
  513.  
  514. Else:
  515. 59% chance to cast Mow Down. (Standard targeting.)
  516. 41% chance to use a regular attack. (Standard targeting.)
  517.  
  518. Huge Moa
  519. ========
  520. If flag 1 is not active, cast Crushing Kick. (Standard targeting.) Activate flag 1.
  521.  
  522. If HP is below 61%:
  523. If flag 2 is not active, cast Crushing Kick. (Targets party members that aren't paralyzed.) Activate flag 2.
  524.  
  525. If flag 3 is active:
  526. 69% chance to cast Rush. (Standard targeting.) Deactivate flag 3.
  527. If all party members are paralyzed, use a regular attack. (Standard targeting.) Deactivate flag 3.
  528. Else, cast Crushing Kick. (Targets party members that aren't paralyzed.) Deactivate flag 3.
  529.  
  530. Else:
  531. 59% chance to cast Charge. (Targets self.) Activate flag 3.
  532. If all party members are paralyzed, use a regular attack. (Standard targeting.) Deactivate flag 3.
  533. Else, cast Crushing Kick. (Targets party members that aren't paralyzed.) Deactivate flag 3.
  534.  
  535. Else:
  536. 69% chance to cast Rush. (Standard targeting.)
  537. 31% chance to use a regular attack. (Standard targeting.)
  538.  
  539. Desouler
  540. ========
  541. If flag 3 is not active, cast Raging Assault. (Standard targeting.) Activate flag 3.
  542.  
  543. If HP is below 41%:
  544. If flag 2 is active, cast Raging Assault. (Standard targeting.) Activate flag 1. Deactivate flag 2.
  545. If flag 1 is active, cast Raging Assault. (Standard targeting.) Deactivate flag 1.
  546. Else, cast Charge. (Targets self.) Activate flag 2.
  547.  
  548. If HP is below 71%:
  549. If flag 2 is active:
  550. 69% chance to cast Raging Assault. (Standard targeting.) Deactivate flag 2.
  551. 31% chance to use a regular attack. (Standard targeting.)
  552.  
  553. Else:
  554. 69% chance to cast Charge. (Targets self.) Activate flag 2.
  555. 31% chance to use a regular attack. (Standard targeting.)
  556.  
  557. Else:
  558. 39% chance to cast Raging Assault. (Standard targeting.)
  559. 61% chance to use a regular attack. (Standard targeting.)
  560.  
  561. Rafflesia
  562. =========
  563. If HP is below 31%:
  564. If flag 1 is not active, cast Predatory Ice. (Standard targeting.) Activate flag 1.
  565. If all party members are panicking, 39% chance to use a regular attack. (Standard targeting.) Deactivate flag 1.
  566. Else, cast Panic Stench. (Standard targeting.) Deactivate flag 1.
  567.  
  568. If HP is below 71%:
  569. If flag 2 is not active, cast Panic Stench. (Standard targeting.) Activate flag 2.
  570. Else:
  571. 39% chance to cast Poison Dust. (Standard targeting.)
  572. 61% chance to use a regular attack. (Standard targeting.)
  573.  
  574. If at least 1 party member is poisoned, defend. (Targets self.)
  575.  
  576. Else:
  577. 39% chance to cast Poison Dust. (Standard targeting.)
  578. 61% chance to use a regular attack. (Standard targeting.)
  579.  
  580. Nightmare Ram
  581. =============
  582. If the turn count is equal to 1:
  583. 69% chance to cast Stone Eye (Level 2). (Standard targeting.)
  584. 31% chance to use a regular attack. (Standard targeting.)
  585.  
  586. If HP is below 61%:
  587. 29% chance to cast Stone Eye (Level 2). (Standard targeting.)
  588. 60% chance to cast Rush. (Standard targeting.)
  589. 11% chance to use a regular attack. (Standard targeting.)
  590.  
  591. Else:
  592. 29% chance to cast Stone Eye (Level 2). (Standard targeting.)
  593. 40% chance to cast Rush. (Standard targeting.)
  594. 31% chance to use a regular attack. (Standard targeting.)
  595.  
  596. Trigourd
  597. ========
  598. If a Hexgourd and a Flygourd are in the battle:
  599. If at least 1 party member is asleep, cast Strange Chant. (Standard targeting.)
  600.  
  601. Else, cast Trigourd Tune. (Standard targeting.)
  602.  
  603. If the turn count is equal to 1:
  604. 79% chance to cast Crazy Noise. (Standard targeting.)
  605. 21% chance to use a regular attack. (Standard targeting.)
  606.  
  607. If the turn count is a multiple of 4, cast Strange Chant. (Standard targeting.)
  608.  
  609. If the turn count is a multiple of 3, cast Binding. (Standard targeting.)
  610.  
  611. Else:
  612. 30% chance to cast Crazy Noise. (Standard targeting.)
  613. 70% chance to use a regular attack. (Standard targeting.)
  614.  
  615. Hexgourd
  616. ========
  617. If a Trigourd and a Flygourd are in the battle:
  618. If at least 1 party member is asleep, cast Violent Vines. (Standard targeting.)
  619.  
  620. Else, cast Trigourd Tune. (Standard targeting.)
  621.  
  622. If the turn count is equal to 1:
  623. 79% chance to cast Tangling Vines. (Standard targeting.) Activate flag 1.
  624. 21% chance to use a regular attack. (Standard targeting.)
  625.  
  626. If HP is below 31%, cast Violent Vines. (Standard targeting.)
  627.  
  628. If the turn count is a multiple of 4, cast Tangling Vines. (Standard targeting.) Activate flag 1.
  629.  
  630. If flag 1 is active, cast Violent Vines. (Standard targeting.) Deactivate flag 1.
  631.  
  632. Else:
  633. 29% chance to cast Violent Vines. (Standard targeting.)
  634. 71% chance to use a regular attack. (Standard targeting.)
  635.  
  636. Flygourd
  637. ========
  638. If a Trigourd and a Hexgourd are in the battle:
  639. If at least 1 party member is asleep, cast Scorching Hell. (Standard targeting.)
  640.  
  641. Else, cast Trigourd Tune. (Standard targeting.)
  642.  
  643. If the turn count is equal to 1:
  644. 79% chance to cast Bewildering Eye. (Standard targeting.) Activate flag 1.
  645. 21% chance to use a regular attack. (Standard targeting.)
  646.  
  647. If HP is below 51%:
  648. If the turn count is a multiple of 2, cast Healing Chant. (Standard targeting.)
  649. If flag 1 is not active, cast Bewildering Eye. (Standard targeting.) Activate flag 1.
  650. Else, cast Scorching Hell. (Standard targeting.) Deactivate flag 1.
  651.  
  652. If the turn count is a multiple of 4, cast Bewildering Eye. (Standard targeting.) Activate flag 1.
  653.  
  654. If flag 1 is active, cast Scorching Hell. (Standard targeting.) Deactivate flag 1.
  655.  
  656. Else:
  657. 29% chance to cast Scorching Hell. (Standard targeting.)
  658. 71% chance to use a regular attack. (Standard targeting.)
  659.  
  660. Moth Lord
  661. =========
  662. Run this AI script the moment it's the user's turn.
  663.  
  664. On the moment of the user's turn:
  665. If self does not have an attack buff:
  666. If there is at least 1 Gasser Tree in the battle, cast Devour Ally. (Targets the Gasser Tree.)
  667. If there is at least 1 Mauler Mole in the battle, cast Devour Ally. (Targets the Mauler Mole.)
  668. If there is at least 1 Beetle Lord in the battle, cast Devour Ally. (Targets the Beetle Lord.)
  669. If there is at least 1 King Dragonfly in the battle, cast Devour Ally. (Targets the King Dragonfly.)
  670.  
  671. If the turn count is a multiple of 3, cast Madness Spores. (Standard targeting.)
  672.  
  673. Else:
  674. 69% chance to cast Mince. (Standard targeting.)
  675. 31% chance to use a regular attack. (Standard targeting.)
  676.  
  677. Pooka
  678. =====
  679. If the party was not blindsided:
  680. It the turn count is equal to 1, 29% chance to escape. (Targets self.)
  681. Else, 69% chance to escape. (Targets self.)
  682.  
  683. Else, do nothing. Display message: "Pooka is floating..."
  684.  
  685. Red Pooka
  686. =========
  687. If the party was not blindsided:
  688. It the turn count is equal to 1, 29% chance to escape. (Targets self.)
  689. Else, 69% chance to escape. (Targets self.)
  690.  
  691. Else, do nothing. Display message: "Red Pooka is floating..."
  692.  
  693. Metal Pooka
  694. ===========
  695. If the party was not blindsided:
  696. It the turn count is equal to 1, 29% chance to escape. (Targets self.)
  697. Else, 69% chance to escape. (Targets self.)
  698.  
  699. Else, do nothing. Display message: "Metal Pooka is floating..."
  700.  
  701. Gold Pooka
  702. ==========
  703. If the party was not blindsided:
  704. It the turn count is equal to 1, 29% chance to escape. (Targets self.)
  705. Else, 69% chance to escape. (Targets self.)
  706.  
  707. Else, do nothing. Display message: "Gold Pooka is floating..."
  708.  
  709. Rainbow Pooka
  710. =============
  711. If the party was not blindsided:
  712. It the turn count is equal to 1, 29% chance to escape. (Targets self.)
  713. Else, 69% chance to escape. (Targets self.)
  714.  
  715. Else, do nothing. Display message: "Rainbow Pooka is floating..."
Add Comment
Please, Sign In to add comment