• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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 Question] Letting player name maps?

  • 20
    Posts
    6
    Years
    • Seen Sep 4, 2024
    In the game I'm working on right now I'd like the player to be able to name a map and for that map name to be displayed on entry. I tried using the pbEnterNPCname command (storing it in variable 29) and then naming the map \v[29] Town but "\v[29] Town" is literally what's displayed on entry. (I also double checked to make sure the name was being stored with a dialogue box in game, and it is.)

    Is what I'm trying not possible? Or is there a different way to do what I'm trying?
     
    By default the game does not process any of the in line commands except for \PN, a hard coded exception.
    you'll need to edit def name in Game_Map, but the catch is game variables are not loaded on the load screen, so you won't be able to load it there. (there's similar code there as there is in def name) You could save it on a variable that is loaded, like $Trainer (which is just called trainer on the load screen).
     
    By default the game does not process any of the in line commands except for \PN, a hard coded exception.
    you'll need to edit def name in Game_Map, but the catch is game variables are not loaded on the load screen, so you won't be able to load it there. (there's similar code there as there is in def name) You could save it on a variable that is loaded, like $Trainer (which is just called trainer on the load screen).

    I thought that might have been the case. I'm unsure how to edit the code in Game_Map, I've tried a few things but it it doesn't seem to do anything.

    Code:
    def name2
        ret=pbGetMessage(MessageTypes::MapNames,@map_id)
        ret.gsub!(/\\v[29]/,$game_variables) if $game_variables[29]
        return ret
      end

    This is the most recent thing I've tried, could you point out where I'm going wrong? And also thank you so much for replying in the first place!
     
    Back
    Top