Dragz’s Backstage

Introducing Weapon Avoid/Dodge.


Exactly what it sounds like, this hack allows you to give weapons passive avoid and dodge bonuses a la Fire Emblem Fates and display those parameters in the weapon description. Avoid and dodge bonuses are signed, meaning values from -127 to 128 are supported.

Download link: asm/WeaponAvoidDodge at main · GigaExcalibur/asm · GitHub

This hack is Skillsys-exclusive since the battle unit dodge calculator is too small to be autohooked by Lyn. Sad! Anyway, installation and configuration details:

  1. #include WeaponAvoidDodge.event anywhere in your buildfile.
  2. Create two text ids in your text folder named AvoName and DodName. These correspond to the labels in the weapon description. My personal preference is “Dge” over “Dod,” but “Dod” is how the stat is shrunken in MMB and so by default I’m consistent with that.
  3. Add POIN AddWeaponAvoidDodge to the end of the prebattle calc loop. It should go after every other skill that affects avoid and dodge since the end of the function floors each stat at 0.
  4. Configure WeaponAvoidTable and WeaponDodgeTable to your specifications. Each are indexed by item id and any entry not set defaults to 0 avoid and 0 dodge. If both a weapon’s avoid and dodge bonuses are 0, the extra column in the weapon description is not drawn.

Credit to Ysor and Aura Wolf: the former for providing the first implementation of passive weapon avoid/dodge and the latter for their massive body of work on R-text. This hack is probably incompatible with their new R-text modules, unfortunately, though I encourage everyone to check them out! Thank you very much for reading! Have a wonderful day.

17 Likes