Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2013-02-09 18:21:06

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 30/421
Website

Items in battle [GSC]

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.

Offline

#2 2013-02-10 00:47:26

emaj30
Member
From: Indigo Plateau
Registered: 2012-12-29
Post 244/463
Website

Re: Items in battle [GSC]

I guess that'll only work for Crystal? But maybe it can be done with ASM? I dunno, I just thought of it. Maybe you can disable the item menu when battle starts.

Offline

#3 2013-02-10 00:52:39

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 292/494

Re: Items in battle [GSC]

You can try to make it so they function like rare candies. Try looking at how those are handled.

Offline

#4 2013-02-10 09:52:19

emaj30
Member
From: Indigo Plateau
Registered: 2012-12-29
Post 245/463
Website

Re: Items in battle [GSC]

Squall wrote:

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.

Offline

#5 2013-02-10 10:53:42

Akwa
Member
Registered: 2012-06-14
Post 89/140

Re: Items in battle [GSC]

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.

Offline

#6 2013-02-10 12:12:18

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 31/421
Website

Re: Items in battle [GSC]

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...

Offline

#7 2013-02-10 18:14:13

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 2,294/3,474

Re: Items in battle [GSC]

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.

Offline

#8 2013-02-10 18:51:18

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 32/421
Website

Re: Items in battle [GSC]

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)

Offline

Board footer

Powered by FluxBB