Hey, so I've got this script and it's got a couple bugs. It works for the most part, but there are just some bugs I don't know how to work out on my own.
I'll tell you basically what I want my script to do. Basically, you pick one of your starter pokemon (This is the script for one of the 9 pokeballs in the lab) and once you pick your pokemon, you're asked to give it a nickname and the like. Then after you've got it, your rival randomly picks one of the 3 starters that is a superior type to your own. Then he walks off and leaves. Most of it works.
Here's the script
Now here's the list of bugs
1. Obviously it doesn't show a Cyndaquil, it shows a Dratini. I don't know what the pokemon numbers are in hex, otherwise it would show them correctly. Anyone got a list? I've got the normal pokemon list, but I don't know how to convert it to hex.
2. For some reason, when you say yes to giving a nickname, a tile is randomly changed to another tile on the map, a sound effect plays and the script continues. The nickname screen never shows. None of that was programmed, which is very odd.
3. This isn't really a bug, I just didn't know how. So, the rival picks randomly one of the 3 starters. How do I make the game know that this has happened? Should I use flags and just have like 9 of them and check if one of them is on? I don't know ... just someone say how the game does it and I'll do it that way.
4. Once the rival leaves, I don't know why, but it says "PLAYER recieved a ????????. PLAYER put the ???????? in the bag" Gary's theme never ends and that textbox won't leave. The cause of this, I don't know.
If you could just list the cause and the fix (Cause due to future reference, just giving me the fix doesn't help me learn :P) that would be great.
Also, while we're on the subject, there's another thing in my game. I have another event script that works basically fine. One thing though, I want the character used in the event to be nonexistent until the actual event is initiated, sort of like Oak in the beginning of FR/LG. Anyone know how to do this?
Oh, and in case it's needed, this is LeafGreen.
Thank you very much in advance!