• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other] Making a key item/Full Restore like a Pokemon Center.

  • 38
    Posts
    11
    Years
    • Seen Aug 16, 2021
    Let's assume that I wanted to make a key item or normal item the same in function as the purified, protected zone of Pokemon Tower. You know, having a portable Pokemon Center? Unless, a patch like that is already existence. I know the special necessary, I just don't know how to implement it.

    Here's the Purified Zone's script:

    Code:
    '---------------
    #org 0x16343C
    lockall
    fadescreen 0x3
    special 0x0
    fadescreen 0x2
    msgbox 0x817A1FA 0x4 '"Entered the purified and protected..."
    setvar 0x4001 0x1
    releaseall
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x17A1FA
    = Entered the purified and protected\nzone.\p[player]'s POKéMON were fully\nhealed.

    The key item's name would be "White Magic". It would basically do what the purified zone does, and upon coming back, the text would be: "[player] chanted some magic words. [player]'s POKéMON were fully healed." The description would be: "Holy magic from the POKéMON TOWER that can heal all wounds on everyone. Can be used infinitely." If this can't be done, I have an easier alternative: what about making Full Restores work like that?
     

    Blah

    Free supporter
  • 1,924
    Posts
    11
    Years
    Let's assume that I wanted to make a key item or normal item the same in function as the purified, protected zone of Pokemon Tower. You know, having a portable Pokemon Center? Unless, a patch like that is already existence. I know the special necessary, I just don't know how to implement it.

    Here's the Purified Zone's script:

    Code:
    '---------------
    #org 0x16343C
    lockall
    fadescreen 0x3
    special 0x0
    fadescreen 0x2
    msgbox 0x817A1FA 0x4 '"Entered the purified and protected..."
    setvar 0x4001 0x1
    releaseall
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x17A1FA
    = Entered the purified and protected\nzone.\p[player]'s POKéMON were fully\nhealed.

    The key item's name would be "White Magic". It would basically do what the purified zone does, and upon coming back, the text would be: "[player] chanted some magic words. [player]'s POKéMON were fully healed." The description would be: "Holy magic from the POKéMON TOWER that can heal all wounds on everyone. Can be used infinitely." If this can't be done, I have an easier alternative: what about making Full Restores work like that?

    Check out Darthatron's post on making a script execute from an item. I'm lazy to link, but it's in the ROM research section.
     
  • 38
    Posts
    11
    Years
    • Seen Aug 16, 2021
    Check out Darthatron's post on making a script execute from an item. I'm lazy to link, but it's in the ROM research section.

    That, I shall do... and when I learn how to do this, I'll post what I did.
     
  • 38
    Posts
    11
    Years
    • Seen Aug 16, 2021
    ...Well, I've not the faintest clue of what Darthatron's even talking about, so instead of getting what I want... all I get is an item that resets the game instead of healing the party... here's the link to that thread FBI mentioned: https://www.pokecommunity.com/showthread.php?t=281573 and here's that Item Creation Tutorial thing Darth's referring to: https://www.pokecommunity.com/showthread.php?t=258426

    But, to show specifically of what "I don't know what he's talking about.', he says... (The bold parts of the quotes I will respond to with a question):

    First of all, follow DavidJCobb's Item Creation Tutorial, until the part where it attempts to add scripts, to actually create a new item...
    and
    Next step is to put this (assmelbed) code somewhere:
    Code:
    10 B5 04 1C 78 46 13 30 0C 49 08 60 20 1C 0C 49 00 F0 10 F8 10 BC 01 BC 00 47 10 B5 04 1C 0A 48 05 49 00 F0 07 F8 20 1C 06 49 00 F0 03 F8 10 BC 01 BC 00 47 08 47 C0 46 E5 9A 06 08 98 99 03 02 3D 10 0A 08 09 75 07 08 XX XX XX 08
    and
    Where XXXXXX is the location of your script reversed.

    1. In DavidJCobb's Item Creation thread, where is this part that he speaks of?
    2. He says to put this assembled code somewhere... Where is "somewhere"? Does he mean in the FireRed ROM by hex editing? If so, where in the ROM, opened by the hex editor, should it be put? Where the XXXXXX is? If not, then where? Should it be inserted into the emulator as a code?

    Yeah, forgive me if I'm a bit slow on the uptake, but I'm quite new to this "item editing and having it run a script" business.
     
    Last edited:
  • 38
    Posts
    11
    Years
    • Seen Aug 16, 2021
    Well, as of now, I think I'm getting somewhere... only one problem: "LEAF! This isn't the time to use that!" meaning the item ain't healing like it's supposed to do. This is the item's script offset: 0x800ADC and according to Darth, I have to add +1 to it for the Field Usage section, which results in 0x800ADD (800ADC takes the places of XXXXXX) So, my question is, "In the Item Manager, do I put this in the Field Usage: 8800ADD or DDA0088?"

    Update: I put 8800ADD in the Field Usage and... big shock, the game froze. I think this code might have something to do with it...

    Code:
    10 B5 04 1C 78 46 13 30 0C 49 08 60 20 1C 0C 49 00 F0 10 F8 10 BC 01 BC 00 47 10 B5 04 1C 0A 48 05 49 00 F0 07 F8 20 1C 06 49 00 F0 03 F8 10 BC 01 BC 00 47 08 47 C0 46 E5 9A 06 08 98 99 03 02 3D 10 0A 08 09 75 07 08 [B]DC 0A 80[/B] 08

    My offset is 0x800ADC. Darth says to reverse those three, and what we've got is "DC 0A 80". So, where do I put this in the ROM?

    Update #2 (As of 3:21 PM): I've gotten nowhere with this... thanks for the help, anyway, Spheal and FBI. The item just crashes/freezes the game, so... I'm kinda at an impasse, here. The script I used was the same one as the Healing Spot for a test, and even that just resets the game when Select is pressed...
     
    Last edited:
    Back
    Top