You are not logged in.
Is there a way to disable the use of items such as potion and antidone during pokemon battles, so that they can only be used after or before a battle? I think this could be a way to increase the difficulty of my hack. I have tried using the tool ItemEd, but it doesn't seem to feature what I am looking for.
You can try to make it so they function like rare candies. Try looking at how those are handled.
This post is more relevant than mine:) Go and try it, I think it's the simplest answer to your question.
Don't think in terms of Rare Candies, I'm not into ASM but am 99% sure that the answer is in the routine which disables item use during link-battles. Something like setting a flag or modifying a jump should do the work.
Yeah, I also thought about link battles at first. I went here: https://raw.github.com/kanzure/pokecrys … r/main.asm, searched for "Linkbattle" but I got very few results and I couldn't identify what has to do with disabling the use of items. If it is as easy as modifying a flag or a jump for standard battles then I guess someone will know...
Each item has a byte that controls which "Use" options it has, both in the field and in battle. Changing it to not have any use options in battle should do the trick.
You can edit that byte with my item editor in the tools section, and koolboyman explained the format here.
Actually I'm so stupid that I must have forgotten to load the rom again when I tried yesterday because now it works. Yes, I'm that stupid. I was about to post again that it doesn't work with an item editor right away, so thank god I tried again lol. Sorry for everything you can lock this -_-
Last edited by Crystal_ (2013-02-10 18:51:36)