Advertisement
DrFetus

EO2U Boss AI (WIP)

Jun 17th, 2017
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. Chimaera
  2. ========
  3. Cap the duration of Panic to 3 turns.
  4. Cap the duration of Fear to 3 turns.
  5. Cap the duration of Paralysis to 4 turns.
  6. Cap the duration of Blind to 4 turns.
  7. Cap the duration of Head Bind to 4 turns.
  8. Cap the duration of Arm Bind to 4 turns.
  9. Cap the duration of Leg Bind to 4 turns.
  10.  
  11. If flag 9 is not active, set counters 1 and 2 to 0. Activate flag 9.
  12.  
  13. If counter 1 is less than 6, add 1 to counter 1.
  14.  
  15. If counter 2 is less than 6, add 1 to counter 1.
  16.  
  17. If self is in a pitfall trap:
  18. If the turn count is equal to 2 or above, cast Pitfall Escape. (Targets self.) Set counter 2 to 0.
  19.  
  20. Else, cast Pitfall Snare. (Targets self.)
  21.  
  22. Cast Snake Pile on the 1st turn. (Targets the front row.)
  23.  
  24. If HP is below 16%:
  25. If counter 2 is greater than or equal to 2, cast Snake Pile. (Targets the front row.) Set counter 2 to 0.
  26.  
  27. If flag 1 is not active, cast Great Blaze. (Standard targeting.) Activate flag 1.
  28.  
  29. Else, cast Double Strike. (Standard targeting.) Deactivate flag 1.
  30.  
  31. If HP is below 31%:
  32. If counter 1 is greater than or equal to 5, 89% chance to cast Menacing Roar. (Standard targeting.) Set counter 1 to 0.
  33.  
  34. If counter 2 is greater than or equal to 3, 89% chance to cast Snake Pile. (Standard targeting.) Set counter 2 to 0.
  35.  
  36. If flag 1 is not active, cast Great Blaze. (Standard targeting.) Activate flag 1. Deactivate flag 2.
  37.  
  38. If flag 2 is not active, cast Double Strike. (Standard targeting.) Activate flag 2.
  39.  
  40. Else, use a regular attack. (Standard targeting.) Activate flag 2.
  41.  
  42. If HP is below 41%:
  43. If counter 1 is greater than or equal to 5, 89% chance to cast Menacing Roar. (Standard targeting.) Set counter 1 to 0.
  44.  
  45. If counter 2 is greater than or equal to 4, 89% chance to cast Snake Pile. (Standard targeting.) Set counter 2 to 0.
  46.  
  47. If flag 1 is not active, cast Great Blaze. (Standard targeting.) Activate flag 1. Deactivate flag 2.
  48.  
  49. Else, use a regular attack. (Standard targeting.)
  50. If flag 2 is active, deactivate flag 1.
  51. Else, activate flag 2.
  52.  
  53. If HP is below 51%:
  54. If counter 2 is greater than or equal to 4, 89% chance to cast Snake Pile. (Standard targeting.) Set counter 2 to 0.
  55.  
  56. If flag 1 is not active, cast Great Blaze. (Standard targeting.) Activate flag 1. Deactivate flag 2.
  57.  
  58. Else, use a regular attack. (Standard targeting.)
  59. If flag 2 is active, deactivate flag 1.
  60. Else, activate flag 2.
  61.  
  62. If HP is below 61%:
  63. If counter 2 is greater than or equal to 5, 89% chance to cast Snake Pile. (Standard targeting.) Set counter 2 to 0.
  64.  
  65. If flag 1 is not active, cast Great Blaze. (Standard targeting.) Activate flag 1. Deactivate flag 2.
  66.  
  67. Else, use a regular attack. (Standard targeting.)
  68. If flag 2 is active, deactivate flag 1.
  69. Else, activate flag 2.
  70.  
  71. Else:
  72. If flag 1 is not active, cast Great Blaze. (Standard targeting.) Activate flag 1. Deactivate flag 2.
  73.  
  74. Else, use a regular attack. (Standard targeting.)
  75. If flag 2 is active, deactivate flag 1.
  76. Else, activate flag 2.
  77.  
  78. Arachne
  79. =======
  80. [Note: Fang Sharpen activates persistent flag 30. Poison Swamp activates flags 7 through 14 depending on the level of the skill used, and will always activate flags 17 and 18.]
  81.  
  82. Cap the duration of Panic to 3 turns.
  83. Cap the duration of Fear to 3 turns.
  84. Cap the duration of Paralysis to 4 turns.
  85. Cap the duration of Blind to 4 turns.
  86. Cap the duration of Head Bind to 4 turns.
  87. Cap the duration of Arm Bind to 4 turns.
  88. Cap the duration of Leg Bind to 4 turns.
  89.  
  90. Run this AI script the moment it's the user's turn.
  91.  
  92. Start of turn parameters:
  93. If flag 16 is not active, store 4 in counter 1. Activate flag 16.
  94. If counter 1 is greater than or equal to 1, subtract 1 from counter 1.
  95.  
  96. End of turn parameters:
  97. If flag 20 is active, and self is capable of acting:
  98. Store 4 in counter 1. Deactivate flags 18 and 20.
  99. If flag 14 is active, deactivate flag 14.
  100. If flag 13 is active, deactivate flag 13.
  101. If flag 12 is active, deactivate flag 12.
  102. If flag 11 is active, deactivate flag 11.
  103. If flag 10 is active, deactivate flag 10.
  104. If flag 9 is active, deactivate flag 9.
  105. If flag 8 is active, deactivate flag 8.
  106. If flag 7 is active, deactivate flag 7.
  107. If flag 18 is active, and self is capable of acting, store 4 in counter 1. Deactivate flag 18.
  108. If self is asleep or panicking, do nothing. Deactivate persistent flag 30.
  109. If counter 1 is equal to 2, cast Fang Sharpen. (Targets self.) Display message: "Arachne began sharpening her fangs..."
  110. Else, do nothing. (Targets self.)
  111.  
  112. If persistent flag 30 is active, and counter 1 is equal to 1, cast Venomous Bite. (Targets the front row.)
  113. If self can act, deactivate persistent flag 30.
  114.  
  115. If self can act, deactivate persistent flag 30.
  116.  
  117. If flag 17 is not active:
  118. If HP is below 45% and the action counter is equal to 4 or above, cast Poison Swamp (Level 1). Display message: "Arachne spewed poison and created a poison marsh."
  119. If self is head bound, and self can act, activate flag 20.
  120.  
  121. If counter 1 is less than or equal to 0, and flag 7 is not active, cast Poison Swamp (Level 1). Display message: "Arachne spewed poison and created a poison marsh."
  122. If self is head bound, and self can act, activate flag 20.
  123.  
  124. If counter 1 is less than or equal to 0, and flag 8 is not active, cast Poison Swamp (Level 2). Display message: "Arachne spewed poison and created a poison marsh."
  125. If self is head bound, and self can act, activate flag 20.
  126.  
  127. If counter 1 is less than or equal to 0, and flag 9 is not active, cast Poison Swamp (Level 3). Display message: "Arachne spewed poison and created a poison marsh."
  128. If self is head bound, and self can act, activate flag 20.
  129.  
  130. If counter 1 is less than or equal to 0, and flag 10 is not active, cast Poison Swamp (Level 4). Display message: "Arachne spewed poison and created a poison marsh."
  131. If self is head bound, and self can act, activate flag 20.
  132.  
  133. If counter 1 is less than or equal to 0, and flag 11 is not active, cast Poison Swamp (Level 5). Display message: "Arachne spewed poison and created a poison marsh."
  134. If self is head bound, and self can act, activate flag 20.
  135.  
  136. If counter 1 is less than or equal to 0, and flag 12 is not active, cast Poison Swamp (Level 6). Display message: "Arachne spewed poison and created a poison marsh."
  137. If self is head bound, and self can act, activate flag 20.
  138.  
  139. If counter 1 is less than or equal to 0, and flag 13 is not active, cast Poison Swamp (Level 7). Display message: "Arachne spewed poison and created a poison marsh."
  140. If self is head bound, and self can act, activate flag 20.
  141.  
  142. If counter 1 is less than or equal to 0, and flag 14 is not active, cast Poison Swamp (Level 8). Display message: "Arachne spewed poison and created a poison marsh."
  143. If self is head bound, and self can act, activate flag 20.
  144.  
  145. If counter 1 is less than or equal to 0, cast Poison Swamp (Level 9). Display message: "Arachne spewed poison and created a poison marsh."
  146. If self is head bound, and self can act, activate flag 20.
  147.  
  148. If HP is below 15%:
  149. If flag 6 is not active and self cannot act, deactivate flags 1, 2, 3, and 4. Activate flag 6.
  150. If flag 1 is not active, cast Silk Spit. (Standard targeting.) If self can act, activate flag 1.
  151. If flag 2 is not active, cast Stinger. (Standard targeting.) If self can act, activate flag 2.
  152. Else, cast Silk Spread. (Standard targeting.) If self can act, deactivate flags 1 and 2.
  153.  
  154. If HP is below 30%:
  155. If flag 5 is not active and self cannot act, deactivate flags 1, 2, and 3. Activate flag 5.
  156. If flag 1 is not active, cast Silk Spit. (Standard targeting.) If self can act, activate flag 1.
  157. If flag 2 is not active, use a regular attack. (Standard targeting.) If self can act, activate flag 2.
  158. If flag 3 is not active, cast Silk Spread. (Standard targeting.) If self can act, deactivate flags 1 and 2.
  159. Else, cast Stinger. (Standard targeting.) If self can act, deactivate flags 1, 2, and 3.
  160.  
  161. If flag 17 is active:
  162. If flag 1 is not active, cast Silk Spit. (Standard targeting.) If self can act, activate flag 1.
  163. If flag 2 is not active, use a regular attack. (Standard targeting.) If self can act, activate flag 2.
  164. Else, cast Silk Spread. (Standard targeting.) If self can act, deactivate flags 1 and 2.
  165.  
  166. Else, use a regular attack. (Standard targeting.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement