Advertisement
DrFetus

EO2 Quest Enemy AI

Dec 31st, 2019
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.60 KB | None | 0 0
  1. Note: All quest enemies have a failsafe behavior in which they are forced to use a random attack with standard targeting if somehow none of the routines in the AI get followed. This is to prevent enemies from skipping turns like they could in the first Etrian Odyssey game due to errors in the AI.
  2.  
  3. Also, with anything regarding turn counts, be aware that it does not match up with the in-game turn counter, as the one the enemies check starts counting up from 0 instead of 1.
  4.  
  5. Due to the FOE system being a glitch ridden mess, blindside routines will not trigger if FOEs run into your back. Instead, they only trigger if you ran into them without triggering a guaranteed blindside, and the game decided to make the battle a blindside through RNG.
  6.  
  7. Gashtor
  8. =======
  9. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  10. 90% chance to cast Fangs. (Targets the front row.)
  11. 10% chance to cast Fangs. (Targets the back row.)
  12.  
  13. If HP is below 50%:
  14. 79% chance to cast Fangs. (Targets the front row.)
  15. 21% chance to cast Fangs. (Targets the back row.)
  16.  
  17. Else:
  18. 69% chance to cast Fangs. (Targets the front row.)
  19. 31% chance to cast Fangs. (Targets the back row.)
  20.  
  21. Fleehog
  22. =======
  23. If HP is below 50%:
  24. 50% chance to cast Claws. (Standard targeting.)
  25. 50% chance to use a regular attack. (Standard targeting.)
  26.  
  27. Else:
  28. 10% chance to cast Claws. (50% chance to use standard targeting. Else, targets the party member with the highest HP.)
  29. 90% chance to use a regular attack. (50% chance to use standard targeting. Else, targets the party member with the highest HP.)
  30.  
  31. Spectre
  32. =======
  33. If the party is blindsided, and flag 1 is not active, cast Breath. (Standard targeting.) Activate flag 1.
  34.  
  35. If flag 0 is active, deactivate flag 0, then:
  36. 84% chance to use a regular attack. (Targets the front row.)
  37. If a regular attack did not get used, 94% chance to use a regular attack. (Targets the back row.)
  38. Else, cast Breath. (Targets party members that aren't petrified.)
  39.  
  40. If HP is below 75%:
  41. 79% chance to cast Breath. (Targets party members that aren't petrified.)
  42. 21% chance to use a regular attack. (Targets the back row.)
  43.  
  44. Else:
  45. 19% chance to cast Breath. (Targets party members that aren't petrified.)
  46. 81% chance to use a regular attack. (Targets the back row.)
  47.  
  48. Killfish
  49. ========
  50. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  51. 69% chance to cast Jaws. (Standard targeting.)
  52. 31% chance to use a regular attack. (Standard targeting.)
  53.  
  54. If HP is below 60%:
  55. 59% chance to cast Jaws. (Standard targeting.)
  56. 41% chance to use a regular attack. (Standard targeting.)
  57.  
  58. Else:
  59. 39% chance to cast Jaws. (Standard targeting.)
  60. 61% chance to use a regular attack. (Standard targeting.)
  61.  
  62. Madsteps
  63. ========
  64. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  65. 69% chance to cast Run Amok. (Standard targeting.)
  66. 31% chance to use a regular attack. (Standard targeting.)
  67.  
  68. If HP is below 25%:
  69. 69% chance to cast Run Amok. (Standard targeting.)
  70. 31% chance to use a regular attack. (Standard targeting.)
  71.  
  72. If HP is below 50%:
  73. 39% chance to cast Run Amok. (Standard targeting.)
  74. 61% chance to use a regular attack. (Standard targeting.)
  75.  
  76. Else:
  77. 19% chance to cast Run Amok. (Standard targeting.)
  78. 81% chance to use a regular attack. (Standard targeting.)
  79.  
  80. Mawfish
  81. =======
  82. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  83. 39% chance to cast Rend. (Standard targeting.)
  84. If Rend does not get cast, 80% chance to cast Ice Fin. (Standard targeting.)
  85. Else, use a regular attack. (Standard targeting.)
  86.  
  87. If HP is below 60%:
  88. 29% chance to cast Rend. (Standard targeting.)
  89. If Rend does not get cast, 69% chance to cast Ice Fin. (Standard targeting.)
  90. Else, use a regular attack. (Standard targeting.)
  91.  
  92. Else:
  93. 19% chance to cast Rend. (Standard targeting.)
  94. If Rend does not get cast, 39% chance to cast Ice Fin. (Standard targeting.)
  95. Else, use a regular attack. (Standard targeting.)
  96.  
  97. Thiclaw
  98. =======
  99. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  100. 79% chance to cast Whirr. (Standard targeting.)
  101. 21% chance to use a regular attack. (Standard targeting.)
  102.  
  103. If HP is below 25%:
  104. If no party member has a head bind:
  105. 19% chance to cast Whirr. (Standard targeting.)
  106. 81% chance to use a regular attack. (Standard targeting.)
  107.  
  108. If at least 1 party member has a head bind, use a regular attack. (Standard targeting.)
  109.  
  110. If HP is below 50%:
  111. If no party member has a head bind:
  112. 49% chance to cast Whirr. (Standard targeting.)
  113. 51% chance to use a regular attack. (Standard targeting.)
  114.  
  115. If at least 1 party member has a head bind:
  116. 29% chance to cast Whirr. (Standard targeting.)
  117. 71% chance to use a regular attack. (Standard targeting.)
  118.  
  119. Else:
  120. If no party member has a head bind:
  121. 79% chance to cast Whirr. (Standard targeting.)
  122. 21% chance to use a regular attack. (Standard targeting.)
  123.  
  124. If at least 1 party member has a head bind:
  125. 49% chance to cast Whirr. (Standard targeting.)
  126. 51% chance to use a regular attack. (Standard targeting.)
  127.  
  128. Castwing
  129. ========
  130. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  131. 79% chance to cast Strike. (Standard targeting.)
  132. 21% chance to use a regular attack. (Standard targeting.)
  133.  
  134. If HP is below 60%:
  135. 59% chance to cast Strike. (Standard targeting.)
  136. 41% chance to use a regular attack. (Standard targeting.)
  137.  
  138. Else:
  139. 39% chance to cast Strike. (Standard targeting.)
  140. 61% chance to use a regular attack. (Standard targeting.)
  141.  
  142. Illgaze
  143. =======
  144. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  145. 79% chance to cast Slash. (Standard targeting.)
  146. 21% chance to use a regular attack. (Standard targeting.)
  147.  
  148. If HP is below 60%:
  149. 49% chance to cast Slash. (Standard targeting.)
  150. 51% chance to use a regular attack. (Standard targeting.)
  151.  
  152. Else:
  153. 19% chance to cast Slash. (Standard targeting.)
  154. 81% chance to use a regular attack. (Standard targeting.)
  155.  
  156. Edgewolf
  157. ========
  158. If flag 1 is not active, cast Evil Cry. (Targets self.) Activate flags 0 and 1.
  159.  
  160. If the party is blindsided, and flag 1 is not active, cast Evil Cry. (Targets self.) Activate flags 0 and 1.
  161.  
  162. If flag 0 is active, deactivate flag 0, then:
  163. 89% chance to cast Fang. (Standard targeting.)
  164. 11% chance to use a regular attack. (Standard targeting.)
  165.  
  166. If HP is below 60%:
  167. 29% chance to cast Evil Cry. (Targets self.)
  168. If Evil Cry does not get cast, 69% chance to cast Fang. (Standard targeting.)
  169. Else, use a regular attack. (Standard targeting.)
  170.  
  171. Else:
  172. 19% chance to cast Evil Cry. (Targets self.)
  173. If Evil Cry does not get cast, 39% chance to cast Fang. (Standard targeting.)
  174. Else, use a regular attack. (Standard targeting.)
  175.  
  176. Awebull
  177. =======
  178. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  179. 69% chance to cast Rampage. (Standard targeting.)
  180. 31% chance to use a regular attack. (Standard targeting.)
  181.  
  182. If HP is below 25%:
  183. 69% chance to cast Rampage. (Standard targeting.)
  184. 31% chance to use a regular attack. (Standard targeting.)
  185.  
  186. If HP is below 50%:
  187. 39% chance to cast Rampage. (Standard targeting.)
  188. 61% chance to use a regular attack. (Standard targeting.)
  189.  
  190. Else:
  191. 39% chance to cast Rampage. (Standard targeting.)
  192. 61% chance to use a regular attack. (Standard targeting.)
  193.  
  194. Banepion
  195. ========
  196. If the party is blindsided, and flag 1 is not active, cast Needle. (Standard targeting.) Activate flag 1.
  197.  
  198. If HP is below 50%:
  199. 75% chance to cast Needle. (Targets party members that aren't poisoned.)
  200. 25% chance to use a regular attack. (Targets party members that aren't poisoned.)
  201.  
  202. Else:
  203. 19% chance to cast Needle. (Targets party members that aren't poisoned.)
  204. 81% chance to use a regular attack. (Targets party members that aren't poisoned.)
  205.  
  206. Tortevil
  207. ========
  208. If the turn count is equal to or less than 1, and flag 1 is not active, cast Armor Up. (Targets self.) Activate flag 1.
  209.  
  210. If HP is below 25%:
  211. 59% chance to cast Crusher. (Standard targeting.)
  212. 41% chance to use a regular attack. (Standard targeting.)
  213.  
  214. If HP is below 50%:
  215. If no enemy has a defense buff:
  216. 9% chance to cast Armor Up. (Targets self.)
  217. If Armor Up does not get cast, 39% chance to cast Crusher. (Standard targeting.)
  218. Else, use a regular attack. (Standard targeting.)
  219.  
  220. If at least 1 enemy has a defense buff:
  221. 39% chance to cast Crusher. (Standard targeting.)
  222. 61% chance to use a regular attack. (Standard targeting.)
  223.  
  224. If no enemy has a defense buff:
  225. 59% chance to cast Armor Up. (Targets self.)
  226. If Armor Up does not get cast, 49% chance to cast Crusher. (Standard targeting.)
  227. Else, use a regular attack. (Standard targeting.)
  228.  
  229. If at least 1 enemy has a defense buff:
  230. 39% chance to cast Crusher. (Standard targeting.)
  231. 61% chance to use a regular attack. (Standard targeting.)
  232.  
  233. Sentinel
  234. ========
  235. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  236. 69% chance to cast Blade. (Standard targeting.)
  237. 31% chance to use a regular attack. (Standard targeting.)
  238.  
  239. If HP is below 60%:
  240. 59% chance to cast Blade. (Standard targeting.)
  241. 41% chance to use a regular attack. (Standard targeting.)
  242.  
  243. Else:
  244. 39% chance to cast Blade. (Standard targeting.)
  245. 61% chance to use a regular attack. (Standard targeting.)
  246.  
  247. Invader
  248. =======
  249. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  250. 39% chance to cast Paralyze. (Standard targeting.)
  251. If Paralyze does not get cast, 79% chance to cast Fang. (Standard targeting.)
  252. Else, use a regular attack. (Targets party members that are paralyzed.)
  253.  
  254. If HP is below 25%, use a regular attack. (Targets party members that are paralyzed.)
  255.  
  256. If HP is below 50%:
  257. If no party member is paralyzed, and no party member is poisoned:
  258. 29% chance to cast Paralyze. (Standard targeting.)
  259. If Paralyze does not get cast, 59% chance to cast Fang. (Standard targeting.)
  260. Else, use a regular attack. (Targets party members that are paralyzed.)
  261.  
  262. If at least 1 party member is paralyzed, and at least 1 party member is poisoned, use a regular attack. (Standard targeting.)
  263.  
  264. If no party member is paralyzed, and no party member is poisoned:
  265. 39% chance to cast Paralyze. (Standard targeting.)
  266. If Paralyze does not get cast, 79% chance to cast Fang. (Standard targeting.)
  267. Else, use a regular attack. (Targets party members that are paralyzed.)
  268.  
  269. If at least 1 party member is paralyzed, and at least 1 party member is poisoned, use a regular attack. (Standard targeting.)
  270.  
  271. Call Ape
  272. ========
  273. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  274. 69% chance to cast Dance. (Standard targeting.)
  275. 31% chance to use a regular attack. (Standard targeting.)
  276.  
  277. If HP is below 25%:
  278. 79% chance to cast Dance. (Targets party members that aren't confused.)
  279. 21% chance to use a regular attack. (Standard targeting.)
  280.  
  281. If HP is below 50%:
  282. 39% chance to cast Dance. (Targets party members that aren't confused.)
  283. 61% chance to use a regular attack. (Standard targeting.)
  284.  
  285. Else:
  286. 19% chance to cast Dance. (Targets party members that aren't confused.)
  287. 81% chance to use a regular attack. (Standard targeting.)
  288.  
  289. Huelord
  290. =======
  291. If the party is blindsided, and flag 1 is not active, cast Scales. (Standard targeting.) Activate flag 1.
  292.  
  293. If any enemy is below 50% HP:
  294. 59% chance to cast Healskin. (Targets the enemy with the lowest HP.)
  295. 41% chance to use a regular attack. (Standard targeting.)
  296.  
  297. If HP is below 50%:
  298. 19% chance to cast Scales. (Targets party members that aren't cursed.)
  299. If Scales does not get cast, 69% chance to cast Healskin. (Targets self.)
  300. Else, use a regular attack. (Targets party members that are cursed.)
  301.  
  302. Else:
  303. 59% chance to cast Scales. (Targets party members that aren't cursed.)
  304. 41% chance to use a regular attack. (Targets party members that are cursed.)
  305.  
  306. Greedbud
  307. ========
  308. If the party is blindsided, and flag 1 is not active, activate flag 1, then:
  309. 49% chance to cast Binding. (Standard targeting.)
  310. 51% chance to cast Thorn. (Standard targeting.)
  311.  
  312. If HP is below 30%:
  313. 14% chance to cast Binding. (Targets party members that aren't petrified.)
  314. If Binding wasn't cast, 29% chance to cast Thorn. (Target part members that aren't blind.)
  315. Else, use a regular attack. (Standard targeting.)
  316.  
  317. If HP is below 60%:
  318. 34% chance to cast Binding. (Targets party members that aren't petrified.)
  319. If Binding wasn't cast, 69% chance to cast Thorn. (Target part members that aren't blind.)
  320. Else, use a regular attack. (Standard targeting.)
  321.  
  322. Else:
  323. 49% chance to cast Binding. (Targets party members that aren't petrified.)
  324. 51% chance to cast Thorn. (Target part members that aren't blind.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement