Maruno
Lead Dev of Pokémon Essentials
- 5,286
- Posts
- 17
- Years
- Seen May 3, 2024
The error is because you're not using it properly. It should be pbGenerateEgg(PBSpecies::RHYHORN,1). The notes are a bit stupid about that, but the wiki gives more detail and more accurate detail at that.Now, my question:
pbGenerateEgg("RHYHORN",1)
I get an error when this is used.
It says it can't generate the egg cuz the party is full. However, isn't the first part of the conditional branch supposed to handle that?
The conditional branch solely checks how many things (pokémon/eggs) are in your party, and if it's 5 or less, you move on to pbGenerateEgg (which itself doesn't display any messages, no matter what it does). If you have a full party, it goes on to the other part of the conditional branch instead, which should contain a message saying you have a full party. So you're right, and you're getting confused for some reason.
I'm not sure what your problem is here. "An error" is hardly useful information.@~Frozen Darkness~
Yeah I dunno what's up with the egg script, I had a party of 5 and went to get an egg from the daycare and there was an error when it was trying to generate it.