• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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] How do I make PokeBattle_Pokemon class also be called pb_pkmn (like an alias)

  • 29
    Posts
    14
    Years
    • Seen Jan 28, 2024
    I am helping make a game in Pokemon Essentials v17.2 (more specifically, I am upgrading the game from Essentials v15 to v17.2), and I have around 50-60 event scripts in the game beginning with the following formatting:
    Code:
    p=PokeBattle_Pokemon.new(:pokemonname,pokemonlevel,$Trainer)

    However, for names of Pokemon longer than 8 characters (like BULBASAUR), RPG Maker XP automatically creates a new line between 'new' and the '(', which causes an error in Essentials v17.2. I believe I can mitigate this issue by making the PokeBattle_Pokemon class also be known as 'pb_pkmn', but I cannot seem to figure out a proper way of doing it without straight up using 'pb_pkmn = PokeBattle_Pokemon' (which requires partially redefining the class), which will break other parts of the game. I only will use this definition for this specific event type. Is this doable? How can I accomplish this? If is actually requires 'pb_pkmn = PokeBattle_Pokemon', how can I do it without breaking something else?

    Note: I haven't tried anything for fear of completely breaking something and forgetting exactly what I changed by the time I realize it broke. The game is about 90% upgraded, and I don't want to break anything unintentionally.

    Edit: Also, PokeBattle_Pokemon is completely stock Essentials v17.2, with zero changes.
     
    If your only issue is that you can't fit the entire script command in one line, you do NOT need to make an alias. All you need to do is run the program "extendtext.exe" located in your project folder after opening your project. Then all Show Text, Comment, and Script boxes will increase in size, and you'll be able to fit everything in one line.
     
    If your only issue is that you can't fit the entire script command in one line, you do NOT need to make an alias. All you need to do is run the program "extendtext.exe" located in your project folder after opening your project. Then all Show Text, Comment, and Script boxes will increase in size, and you'll be able to fit everything in one line.

    I just tried that, but it doesn't appear to have done anything. Do I need to run as Admin?

    Edit: Yep, it needed Admin. Thank you! Will this effect be permanent, or do I need to run it every time I run RPGXP?
     
    Back
    Top