MintX's Crappy ASM

Been making a lot of ASM stuff lately so might as well post some of those here.

FE12 AI: link

What (I think) it does:
This hack changes AI to focus on doing the highest amount of damage like in FE12, allowing experienced players to trick the AI into doing dumb things.

What you can expect the AI to do:

  • Ignore players that can’t counter and go for the unit with the lowest defense
  • Use a Steel Lance over a Javelin against a one range enemy
  • Not being very smart, in general

The Target Priority(TP) calculation formula:
If kill: TP = 0xFF + Hit
If target has Provoke(from Skill System) TP = 0xF8
Otherwise TP is capped at 0xF0
TP = Damage Dealt in One Hit x (2 if Doubling) x (2 if Brave) x (3 if Crit >= 10) x (Hit/128 if Hit < 30) x 2
TP + 1 if enemy cannot counter


Yay, more AI stuff.

Recursive AI: link

This hack creates a bunch of AI2 options that makes the unit wait 2, 3, 4, … 10 turns then start moving, by default starting from AI2=13. Similar to vanilla AI2=12(Wait 1 turn, set AI2 to 00)'s effects.
Also includes a script that expands the AI1&2 tables.

Huge shoutout to 7743. FEBuilder has been a great help in creating this.


Even SGW doesn’t have it so
Thracia Rescue Trading AKA Infinite Give & Take:

ORG 0x229A8
SHORT 0x1C00

ORG 0x22A10
SHORT 0x1C00