• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

Adding a special to change PLAYERs name

Jaizu

Average rom hacker
  • 259
    Posts
    15
    Years
    Hey!
    Open /data/specials.inc and add at the end:
    Code:
    def_special name_test
    Now, in any .c file that is inside the src folder we add:
    Code:
    void name_test(void)
    {
        DoNamingScreen(0, gSaveBlock2Ptr->playerName, gSaveBlock2Ptr->playerGender, 0, 0, CB2_ReturnToFieldContinueScript);
    }
    I added it in the naming_screen.c cuz whynaut

    We can use it in any script, like this:
    Code:
    NameTest::
    special name_test
    end

    Easy duh?
    [PokeCommunity.com] Adding a special to change PLAYERs name

    Edit: If you think it might be appropiate to move it to the Simple Modifications thread go ahead, I wasn't sure so I made this thread.
    Edit 2: Fixed to make it so the script continues after you use it.
     
    Last edited:
    Back
    Top