Modular Battle Routine ~ Demo Released, Currently Needs Ease Of Installation

For the modular routines:
https://dl.dropboxusercontent.com/u/92273434/FE%20Hacking%2C%20Public%20Files/Modular%20Battle/Specifications%20For%20Custom%20Routines.txt

I actually avoided handing you the defender data in the might, hit and crit routines, because for just a single character, like in the stats screen, it had some weird effects. But I’ve got them documented now so, idk, maybe I’ll add it back in.

If you meant the original routines, which i modified: [FE7] Charting the Battle Stat Computations

(In which the originals are, yeah, basically what you said)

that is exactly what i wanted thanks

So how would one make modifications to final hit/crit/damage, especially for calculations including both units’ stats?

Either use the post-calculation module or the pre(or post)-rng-rolls module. Using the former allows for changed that show up on the R-menu of the unit’s data and for battle-by-battle changes. Use the second for round-by-round changes.

E.g. +5 defense against mounted units – I used post-calculation (Check if the opponent’s class is in the effectiveness pointer for the Zanbato/Longsword and if so, give +5 defense for the wielder)
Always 100% hit – I used pre-rng-rolls(Put 0x64 into the battle stats data)
SNES Criticals – I used post-rng-rolls (check if the critical bit is set in the battle buffer, and if so, change the damage dealt to what the SNES formula would be based on the battle stats data)

When I actually release this and gather all my files, there’ll be a ton of documentation for you to peruse through – you’d probably be most interested in the order of calculations, which is a condensed version of my “Charting The Battle Stat Computations” but also notes where the modules are inserted.

tbh i’m more interested in how things would work if there’s two weapons that both alter final hit in different ways and how the priority is determined if they fight each other

I have that in the order of calculations, or at least it’s implied. It’s always applied attacker first, then defender.

@CT075

Here’s the latest bundle of all the sources(for the Fire Shell installation), dumps, and documentation you need to develop things. If anything is unclear, let me know so I can update the documentation.

https://dl.dropboxusercontent.com/u/92273434/FE%20Hacking%2C%20Public%20Files/Modular%20Battle/Documentation_Epsilon.zip

As per the FEE3 video going up featuring some of the things you get in the first few turns of play… I’ve put the match links in the OP.