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

[Scripting Question] Disableing nicknaming Pokémon for a short while

  • 24
    Posts
    5
    Years
    • Seen Nov 30, 2023
    Hey guys,

    I got a short question which I just can't seem to find the awnser to. For my game I'm trying to disable the nicknaming because there are some events later on where the nicknaming of the first Pokémon occurres.

    So the main question is: Is there a way to disable nicknameing for a while? And if so how do I do it?

    Thanks for any help you can give me :)
     
  • 143
    Posts
    4
    Years
    • Seen Mar 26, 2024
    In "PokeBattle_BattleCommon" right at the top, this section should help. :)
    Code:
    # Nickname the Pokémon (unless it's a Shadow Pokémon)
        if !pkmn.shadowPokemon?
          if pbDisplayConfirm(_INTL("Would you like to give a nickname to {1}?",pkmn.name))
            nickname = @scene.pbNameEntry(_INTL("{1}'s nickname?",pkmn.speciesName),pkmn)
            pkmn.name = nickname if nickname!=""
          end
        end
     
    Back
    Top