Been making a lot of ASM stuff lately so might as well post some of those here.
Update: All my public ASM hacks can be found here:
FE12 AI: Link
What 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
Update: AI4 as AI Priority is now part of the package. Some jumpToHacks have been replaced for simplicity.