Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Note: All FOEs 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.
- 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.
- 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.
- Furyhorn
- ========
- If the party is not blindsided and flag 1 is not active, cast Step. (Targets Landsknechts, Protectors, Dark Hunters, Ronin, or Beasts.) Activate flag 1.
- If HP is below 75%:
- 75% chance to cast Step. (Targets party members that aren't confused.)
- 25% chance to use a regular attack. (Targets party members that aren't confused.)
- Else:
- 50% chance to cast Step. (Targets party members that aren't confused.)
- 50% chance to use a regular attack. (Targets party members that aren't confused.)
- Furylord
- ========
- If the party is not blindsided and flag 1 is not active, cast Step. (Targets Landsknechts, Protectors, Dark Hunters, Ronin, or Beasts.) Activate flag 1.
- If HP is below 75%:
- 75% chance to cast Step. (Targets party members that aren't confused.)
- 25% chance to use a regular attack. (Targets party members that aren't confused.)
- Else:
- 50% chance to cast Step. (Targets party members that aren't confused.)
- 50% chance to use a regular attack. (Targets party members that aren't confused.)
- Raptor
- ======
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 90% chance to cast Fangs. (Targets the front row.)
- 10% chance to cast Fangs. (Targets the back row.)
- If HP is below 50%:
- 79% chance to cast Fangs. (Targets the front row.)
- 21% chance to cast Fangs. (Targets the back row.)
- Else:
- 69% chance to cast Fangs. (Targets the front row.)
- 31% chance to cast Fangs. (Targets the back row.)
- Trigourd
- ========
- If the party is blindsided, and flag 1 is not active, cast Pain. (Standard targeting.) Activate flag 1.
- If flag 0 is active, deactivate flag 0, then: [NOTE: Flag 0 can't ever be active in this fight, causing this block of code to go completely unused.]
- 69% chance to cast Pain. (Standard targeting.)
- 31% chance to use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 59% chance to cast Pain. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 39% chance to cast Pain. (Standard targeting.)
- If Pain does not get cast, 59% chance to cast Whisper. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Else:
- 29% chance to cast Pain. (Standard targeting.)
- If Pain does not get cast, 69% chance to cast Whisper. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Redwood
- =======
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 79% chance to cast Poison. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 79% chance to cast Poison. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 59% chance to cast Poison. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- Else:
- 39% chance to cast Poison. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- Razeking
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 39% chance to cast Crusher. (Standard targeting.)
- If Crusher does not get cast, 79% chance to Axe Roar. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 49% chance to cast Crusher. (Standard targeting.)
- If Crusher does not get cast, 89% chance to Axe Roar. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 39% chance to cast Crusher. (Standard targeting.)
- If Crusher does not get cast, 69% chance to Axe Roar. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Else:
- 19% chance to cast Crusher. (Standard targeting.)
- If Crusher does not get cast, 39% chance to Axe Roar. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Darksoar
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 79% chance to cast Dust. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 79% chance to cast Dust. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 59% chance to cast Dust. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- Else:
- 39% chance to cast Dust. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- Killclaw
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 79% chance to cast Claws. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 79% chance to cast Claws. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 59% chance to cast Claws. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- Else:
- 39% chance to cast Claws. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- Armoth
- ======
- If flag 2 is not active, cast Charge. (Targets self.) Activate flags 0 and 2.
- If the party is blindsided, and flag 2 is not active, cast Charge. (Targets self.) Activate flag 2.
- If flag 0 is active, deactivate flag 0, then:
- 80% chance to cast Bullrush. (Standard targeting.)
- 20% chance to use a regular attack. (Standard targeting.)
- If HP is below 25%:
- If no enemy has an attack buff:
- 4% chance to cast Charge. (Targets self.) Activate flag 0.
- If Charge does not get cast, 54% chance to cast Bullrush. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If at least 1 enemy has an attack buff:
- 49% chance to cast Bullrush. (Standard targeting.)
- 51% chance to use a regular attack. (Standard targeting.)
- If HP is below 50%:
- If no enemy has an attack buff:
- 29% chance to cast Charge. (Targets self.) Activate flag 0.
- If Charge does not get cast, 59% chance to cast Bullrush. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If at least 1 enemy has an attack buff:
- 49% chance to cast Bullrush. (Standard targeting.)
- 51% chance to use a regular attack. (Standard targeting.)
- If no enemy has an attack buff:
- 9% chance to cast Bullrush. (Standard targeting.)
- If Bullrush does not get cast, 89% chance to cast Charge. (Targets self.) Activate flag 0.
- Else, use a regular attack. (Standard targeting.)
- If at least 1 enemy has an attack buff:
- 39% chance to cast Bullrush. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- Shelltor
- ========
- If the party is blindsided, and flag 1 is not active, cast Defend. (Targets self.) Activate flag 1.
- If HP is below 30%:
- 69% chance to cast Jaws. (Standard targeting.)
- 31% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- If no enemy has a defense buff:
- 29% chance to cast Defend. (Targets self.)
- If Defend does not get cast, 69% chance to cast Jaws. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If at least 1 enemy has a defense buff:
- 59% chance to cast Jaws. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- If no enemy has a defense buff:
- 49% chance to cast Defend. (Targets self.)
- If Defend does not get cast, 69% chance to cast Jaws. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If at least 1 enemy has a defense buff:
- 39% chance to cast Jaws. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- Flygourd
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 19% chance to cast Pain. (Standard targeting.)
- If Pain does not get cast, 79% chance to cast Dance. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If HP is below 60%:
- If no party member has a head bind:
- 9% chance to cast Dance. (Standard targeting.)
- If Dance does not get cast, 59% chance to cast Pain. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If at least 1 party member has a head bind:
- 49% chance to cast Pain. (Standard targeting.)
- 51% chance to use a regular attack. (Standard targeting.)
- If no party member has a head bind:
- 59% chance to cast Dance. (Standard targeting.)
- If Dance does not get cast, 79% chance to cast Pain. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If at least 1 party member has a head bind:
- 39% chance to cast Pain. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- Cocatris
- ========
- If the party is blindsided, and flag 1 is not active, cast Petrify. (Standard targeting.) Activate flag 1.
- If HP is below 99%, cast Petrify. (Targets party members that aren't petrified.)
- Else, use a regular attack. (Standard targeting.)
- Deathman
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 59% chance to cast Edge. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- If HP is below 35%:
- 44% chance to cast Edge. (Standard targeting.)
- 56% chance to use a regular attack. (Standard targeting.)
- If HP is below 70%:
- 29% chance to cast Edge. (Standard targeting.)
- 71% chance to use a regular attack. (Standard targeting.)
- Else:
- 19% chance to cast Edge. (Standard targeting.)
- 81% chance to use a regular attack. (Standard targeting.)
- Guardian
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 34% chance to cast Head EM. (Standard targeting.)
- If Head EM does not get cast, 69% chance to cast Arms EM. (Standard targeting.)
- Else, cast Legs EM. (Standard targeting.)
- If HP is below 50%:
- If no party member has a head bind, arm bind, or a leg bind:
- 34% chance to cast Head EM. (Standard targeting.)
- If Head EM does not get cast, 19% chance to cast Arms EM. (Standard targeting.)
- If Arms EM does not get cast, 29% chance to cast Legs EM. (Standard targeting.)
- Else, use a regular attack. (Targets party members with binds, prioritizing in this order: head, arms, legs.)
- If at least 1 party member has a head bind, arm bind, or a leg bind, use a regular attack. (Targets party members with binds, prioritizing in this order: head, arms, legs.)
- If no party member has a head bind, arm bind, or a leg bind:
- 29% chance to cast Head EM. (Standard targeting.)
- If Head EM does not get cast, 59% chance to cast Arms EM. (Standard targeting.)
- If Arms EM does not get cast, 89% chance to cast Legs EM. (Standard targeting.)
- Else, use a regular attack. (Targets party members with binds, prioritizing in this order: head, arms, legs.)
- If at least 1 party member is not fully bound, use a regular attack. (Targets party members with binds, prioritizing in this order: head, arms, legs.)
- Stir Eye
- ========
- If not every party member is not cursed, cast Glare. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Dinolich
- ========
- If flag 0 is active, cast Predator. (Targets the back row.)
- If the party is blindsided, and flag 2 is not active, cast Charge. (Targets self.) Activate flag 2.
- If HP is less than 99%:
- 55% chance to cast Charge. (Targets self.) Activate flag 0.
- 45% chance to use a regular attack. (Targets the back row.)
- Else, cast Charge. (Targets self.) Activate flag 0.
- Asterios
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 79% chance to cast Smash. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 79% chance to cast Smash. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 59% chance to cast Smash. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- Else:
- 39% chance to cast Smash. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- Riptor
- ======
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 79% chance to cast Fangs. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 79% chance to cast Fangs. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 59% chance to cast Fangs. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- Else:
- 39% chance to cast Fangs. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- Hexgourd
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 79% chance to cast Hellfire. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 79% chance to cast Hellfire. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 59% chance to cast Hellfire. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- Else:
- 39% chance to cast Hellfire. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- Raidmole
- ========
- If HP is below 50%:
- 50% chance to cast Claws. (Standard targeting.)
- 50% chance to use a regular attack. (Standard targeting.)
- Else:
- 10% chance to cast Claws. (50% chance to use standard targeting. Else, targets the party member with the highest HP.)
- 90% chance to use a regular attack. (50% chance to use standard targeting. Else, targets the party member with the highest HP.)
- Sonicker
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 59% chance to cast Claws. (Standard targeting.)
- 41% chance to cast Fangs. (Standard targeting.)
- If HP is below 30%:
- 19% chance to cast Fangs. (Standard targeting.)
- If Fangs does not get cast, 61% chance to cast Claws. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 49% chance to cast Fangs. (Standard targeting.)
- If Fangs does not get cast, 59% chance to cast Claws. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Else:
- 29% chance to cast Fangs. (Standard targeting.)
- If Fangs does not get cast, 39% chance to cast Claws. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Kilohorn
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 69% chance to cast Neigh. (Standard targeting.)
- If Neigh does not get cast, 89% chance to cast Deathorn. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 9% chance to cast Neigh. (Targets party members that aren't afraid.)
- If Neigh does not get cast, 79% chance to cast Deathorn. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 29% chance to cast Neigh. (Targets party members that aren't afraid.)
- If Neigh does not get cast, 59% chance to cast Deathorn. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Else:
- 39% chance to cast Neigh. (Targets party members that aren't afraid.)
- If Neigh does not get cast, 59% chance to cast Deathorn. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Icefiend
- ========
- If turn count is greater than 20, summon 1 Voltking.
- If the battle can load 2 more Snowsoul sprites:
- 10% chance to summon 2 Snowsouls.
- If the Snowsouls were not summoned, 55% chance to cast Icebreath. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If battle can load 1 more Snowsoul sprite:
- 15% chance to summon 1 Snowsoul.
- If the Snowsoul was not summoned, 70% chance to cast Icebreath. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Else, cast Icebreath. (Standard targeting.)
- Pollener
- ========
- If the party is blindsided, and flag 1 is not active, cast Sleeper. (Standard targeting.) Activate flag 1.
- If every player is asleep, cast Petals. (Standard targeting.)
- Else:
- 80% chance to cast Sleeper. (Standard targeting.)
- 20% chance to use a regular attack. (Standard targeting.)
- Stalker
- =======
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 89% chance to cast Amputate. (Targets the front row.)
- 11% chance to cast Amputate. (Targets the back row.)
- If it has been at least 2 turns since turn 25:
- 79% chance to cast Scythe. (Targets the front row.)
- 21% chance to cast Scythe. (Targets the back row.)
- If flag 0 is active, deactive flag 0, then:
- 34% chance to cast Amputate. (Targets the front row.)
- If Amputate does not get cast, 69% chance to cast Amputate. (Targets the back row.)
- If Amputate does not get cast, 89% chance to cast Scythe. (Targets the front row.)
- Else, cast Scythe. (Targets the back row.)
- If HP is below 25%:
- 19% chance to cast Amputate. (Targets the front row.)
- If Amputate does not get cast, 29% chance to cast Amputate. (Targets the back row.)
- If Amputate does not get cast, 64% chance to cast Scythe. (Targets the front row.) Activate flag 0.
- Else, cast Scythe. (Targets the back row.) Activate flag 0.
- Else:
- 89% chance to cast Amputate. (Targets the front row.)
- 11% chance to cast Amputate. (Targets the back row.)
- Fireking
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 89% chance to cast Roar. (Standard targeting.)
- 11% chance to cast Fury. (Standard targeting.)
- If flag 0 is active, deactive flag 0, then: [NOTE: Flag 0 can't ever be active in this fight, causing this block of code to go completely unused.]
- 34% chance to cast Fury. (Targets the fornt row.)
- If Fury does not get cast, then 69% chance to cast Fury. (Targets the back row.)
- Else, use a regular attack. (Targets the front row.)
- If HP is below 30%:
- 34% chance to cast Fury. (Standard targeting.)
- If Fury does not get cast, then 69% chance to cast Roar. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 39% chance to cast Fury. (Standard targeting.)
- If Fury does not get cast, then 59% chance to cast Roar. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Else:
- 29% chance to cast Fury. (Standard targeting.)
- If Fury does not get cast, then 69% chance to cast Roar. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Helldra
- =======
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 79% chance to cast Fang. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 79% chance to cast Fang. (Standard targeting.)
- 21% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 29% chance to cast Fang. (Standard targeting.)
- 71% chance to use a regular attack. (Standard targeting.)
- Else:
- 9% chance to cast Fang. (Standard targeting.)
- 91% chance to use a regular attack. (Standard targeting.)
- Voltking
- ========
- If the party is blindsided, and flag 1 is not active, activate flag 1, then:
- 89% chance to cast Roar. (Standard targeting.)
- 11% chance to cast Fury. (Standard targeting.)
- If HP is below 30%:
- 59% chance to cast Fury. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- If no party member is afraid:
- 34% chance to cast Fury. (Standard targeting.)
- If Fury does not get cast, then 54% chance to cast Roar. (Standard targeting.)
- Else, use a regular attack. (Targets party members that are afraid.)
- If at least 1 party member is afraid:
- 59% chance to cast Fury. (Standard targeting.)
- 41% chance to use a regular attack. (Standard targeting.)
- If no party member is afraid:
- 29% chance to cast Fury. (Standard targeting.)
- If Fury does not get cast, then 69% chance to cast Roar. (Standard targeting.)
- Else, use a regular attack. (Targets party members that are afraid.)
- If at least 1 party member is afraid:
- 29% chance to cast Fury. (Standard targeting.)
- 71% chance to use a regular attack. (Standard targeting.)
- Beamedge
- ========
- If the party is blindsided, and flag 1 is not active, cast Sever. (Standard targeting.) Activate flag 1.
- If HP is below 50%:
- 80% chance to cast Sever. (Standard targeting.)
- 20% chance to use a regular attack. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- Evildra
- =======
- If flag 2 is not active, cast Charge. (Targets self.) Activate flags 0 and 2.
- If the party is blindsided, and flag 2 is not active, cast Charge. (Targets self.) Activate flag 2.
- If flag 0 is active, deactivate flag 0, then:
- 69% chance to cast Banquet. (Standard targeting.)
- 31% chance to use a regular attack. (Standard targeting.)
- If HP is below 30%:
- 80% chance to cast Banquet. (Standard targeting.)
- 20% chance to use a regular attack. (Standard targeting.)
- If HP is below 50%:
- If no enemy has an attack buff:
- 19% chance to cast Charge. (Targets self.) Activate flag 0.
- If Charge does not get cast, 59% chance to cast Banquet. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If at least 1 enemy has an attack buff:
- 39% chance to cast Banquet. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- If no enemy has an attack buff:
- 29% chance to cast Charge. (Targets self.) Activate flag 0.
- If Charge does not get cast, 49% chance to cast Banquet. (Standard targeting.)
- Else, use a regular attack. (Standard targeting.)
- If at least 1 enemy has an attack buff:
- 39% chance to cast Banquet. (Standard targeting.)
- 61% chance to use a regular attack. (Standard targeting.)
- Iceking
- =======
- If the party is blindsided, and flag 1 is not active, cast Ice Blow. (Standard targeting.) Activate flag 1.
- If HP is below 30%:
- 69% chance to cast Ice Blow. (Standard targeting.)
- 31% chance to use a regular attack. (Standard targeting.)
- If HP is below 60%:
- 49% chance to cast Ice Blow. (Standard targeting.)
- 51% chance to use a regular attack. (Standard targeting.)
- Else:
- 29% chance to cast Ice Blow. (Standard targeting.)
- 71% chance to use a regular attack. (Standard targeting.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement