You are not logged in.
Pages: 1
Hello everyone, I'm working on a personal hack (Pokémon Red) and I'm still new using pokered disassembly,anyway, I was wondering if there is a way to disable healing items (potions, Revives, antidotes....) just during battles. I've been looking through the items.asm file and to be honest I'm kind of...lost, so anyway, that's my question for now.
Offline
Here's a similar (but opposite) example - items which can only be used in battle, like Pokeballs:
ItemUseBall:
; Balls can't be used out of battle.
ld a, [wIsInBattle]
and a
jp z, ItemUseNotTime
You can add similar logic to ItemUseMedicine:
ItemUseMedicine:
; Medicine can't be used during battle.
ld a, [wIsInBattle]
and a
jp nz, ItemUseNotTime
Offline
Thank you very much, Danny! It works perfectly.
Offline
Pages: 1