[FE8] Several questions on various things (some ASM, mostly mechanical)

  1. Needs ASM. I believe the topic you’re thinking of is this. Near the end of the battle stat computations (described here for fe7; fe8’s begins at 2A95C and follows pretty much the same pattern), there’s a “everything else” check that looks for magic swords, eclipse, and luna (and probably stone, too). You would stick a branch here to your code (since you almost certainly can’t fit this in-line, so you have to go into free space) and that code would do a check for…whatever. The SF request is based on class ID.

  2. It’s hard-coded to those three items (light brand, runesword, and wind sword), but you can change that. The “always do x damage” is doable, and I’d stick that in the same area, along with the accuracy debuff of the bow.

  3. Yes; I’m not quite sure how yet, but it’s certainly possible since @Brendor implemented Sol (heal same amount of damage dealt) and is a lovely person who always shares his notes. cough cough.

  4. Um, being unable to counter is a side-effect of the Uncounterable effect. If you meant “is it possible to have weapons that can only counter?”, then sure, it probably is. Not sure how I’d go about implementing it, though.

  5. It seems to me you figured it out; have items A and B use the same ability bit, and then use whichever one comes first in the inventory, and C on another bit.

I don’t actually know how the passive boosts hack works, but I’d assume it modifies the skill getters (the functions that, given the character id, return the character’s stat). If that’s the case, then the reason is because con and mov don’t have getters, and every function that requires one of them calculates it there. So you’d have to track down every place where that occurs and stick a bl (branch and link, basically a function call) in its place to your new getters. The hard part is, of course, finding all those places. Why don’t they exist? Your guess is as good as mine.

If you need more help, or just want to talk about assembly matters, drop by the discord. We’d love to have you!