Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2015-03-10 13:47:10

SinisterHoodedFigure
Member
Registered: 2011-12-09
Post 50/69

Changing revives for hardcore challenge

I recently discovered in a Gen 3 hack that it is possible to change revives, max revives, and revival herbs (we'll call these three items "revives" for space) to where they only work OUTSIDE of battle, but never DURING battle.

For illustration:
In battle:
Player selects revive
"You can't use this item now"

Outside battle:
Player selects revive
"Use on which pokemon?"
Player selects pokemon (that is fainted)
Pokemon restored health.


Now I know what I'm asking may be a bit much, but is there a way to make it so in Gen 1 AND 2, the revives are changed from items that work in battle and outside of battle, into items that ONLY work outside of battle and NEVER in battle, like a gym leader for example?

If it could be done with something like a jiggly puff asm editor, where and what would I have to change in the codes for blue and crystal, without damaging the game?

It would be an interesting idea, and thanks for taking some time on reading this.


Crystal Kaizo...
Not the hardest hack, but probably the most... Sinister
http://www.mediafire.com/download/q3o60 … +Kaizo.ips

Offline

#2 2015-03-10 17:53:42

comet
Member
Registered: 2012-04-09
Post 538/679

Re: Changing revives for hardcore challenge

The last byte of an item's attributes (Crystal: 0x67c1) reflects where (and in what menu) it can be used

The top nybble is how it works in the overworld. The bottom nybble is how it works in battle.

0: Can't use
4: Stay in the item menu (i.e. Coin Case).
5: Go to the party menu (Revive).
6: Close the item menu entirely (Bicycle, Poke Ball).

1-3 (and 7-f) are unused.


For Revive:

; REVIVE
    dw 1500 ; price
    db NONE ; effect
    db 0 ; param
    db CANT_SELECT
    db ITEM
    db $55 ; heal menu

Change $55 to $50 to prevent use in battle.

Offline

#3 2015-03-10 21:28:35

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 254/431
Website

Re: Changing revives for hardcore challenge

Yeah, it's very easy as comet showed. I've done it in my hack. It won't show a message like "You can't use this item now" though, but the only option you will see when attempting to use the item in battle is QUIT.

Offline

#4 2015-03-11 14:09:57

SinisterHoodedFigure
Member
Registered: 2011-12-09
Post 52/69

Re: Changing revives for hardcore challenge

Yeah it works very well. The illustration was from the gen 3 hack. Could the same be done for revives in red/blue/yellow?

Or would there have to be repointing from "using medicine" to "using vitamin"?


Crystal Kaizo...
Not the hardest hack, but probably the most... Sinister
http://www.mediafire.com/download/q3o60 … +Kaizo.ips

Offline

#5 2015-03-11 19:44:20

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 257/431
Website

Re: Changing revives for hardcore challenge

Could the same be done for revives in red/blue/yellow?

Make Revive (https://github.com/iimarckus/pokered/bl … ms.asm#L71) point to ItemUseVitamin (https://github.com/iimarckus/pokered/bl … s.asm#L668). Notice how ItemUseVitamin falls through to ItemUseMedicine while not in battle. By making this change Revive's "permission" will become like Protein's or any other vitamin's.

Offline

#6 2015-03-14 22:32:56

SinisterHoodedFigure
Member
Registered: 2011-12-09
Post 53/69

Re: Changing revives for hardcore challenge

Both modifications have successfully worked in both blue and crystal. Thank you both for your aid.


Crystal Kaizo...
Not the hardest hack, but probably the most... Sinister
http://www.mediafire.com/download/q3o60 … +Kaizo.ips

Offline

Board footer

Powered by FluxBB