- 19
- Posts
- 3
- Years
- Seen Sep 6, 2023
I'm using decomp to add a very small addition into pokemon firered, just for fun.
Line 2424 in pokemon.c starts a function block with a bunch of checks for giving stat bonuses in battle (
Line 2424 in pokemon.c starts a function block with a bunch of checks for giving stat bonuses in battle (
if (attackerHoldEffect == HOLD_EFFECT_CHOICE_BAND)
attack = (150 * attack) / 100;
, etc). I've written my own little check to add in there, but I was wondering how possible it would be to add some notification alongside the stat boost? It could be battle text that shows up (I don't even mind having to replace some other text like focus energy!) or a sound that plays or a small stat boosting animation. Really, any sort of notifier would be good. I don't the know the code structures for buffering text and making it appear in battle, so I'd like if someone could give me a run down on the functions to use :)