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.
Something like this should work:
if $game_variables[12]==""
$game_variables[12]="Blue"
end
Just put it right after:
pbSet(12,pbEnterText("Rival's name?",1,7,"Blue"))
I haven't scripted in ages, but it should work.
Yeah, that is what I was thinking. It's probably an error with the compiler.
Have you replaced your compiler script for an unmodified one? Because that's probably the problem.
I don't know what's the problem, but if it happened right after changing the 10 maximum characters for a Pokémon, maybe you messed up something in the compiler script section. Try copying it from a unmodified Essentials version.
In fact, it's really easy. Just go to the Editor and create an animation called "Common:MegaEvolution".
Then just edit it and do whatever you want there, the game will automatically load it.
I think there isn't a "none" weather in-battle, so you may need to create it (I have never created new weathers, so I don't exactly know how they work, but it should be something like this):
Go to the script section PBWeather and create a new one like this:
NONE = X
Where X is the next...
Take a look at regenerator's code:
if @hp>0 && @pokemon && isConst?(self.ability,PBAbilities,:REGENERATOR)
self.pbRecoverHP((totalhp/3).floor,true)
end
You just need to put your code inside the def pbInitialize in PokeBattle_Battler. Then just set the weather to 0 and it should work.
This is the Pokémon Essentials forum. You need to go to the Rom Hacking forum to ask this.
----------------------------------
You can use this to remove the gender selection. It's in spanish, but it only has 2 buttons, so you won't miss it =P. It's "Load ROM" and "Patch".