• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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