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