Hard to say if Karate King's script really does the same thing.. You probably re-loaded the rom when you had saved those changes, right? In case you don't get it working that way, try putting this script for any person event you like so you can re-run it easily everytime you make changes.Rookie mistake :/ Thanks!
Anyway, that has brought to light another issue. The egg giving replaces the 6th pokemon in your party, if you have a full party.
I didn't think I would need anything extra, as you would have thought that the egg could only be given if you had room. I added a check code to look at the number of pokemon in your party. If you have 6, it jumps past the egg giving bit. However, it doesn't seem to work. I double checked with the Karate King's code, and that also contains the same verification: 1C 01 06 06....
Why is it not skipping ahead. The PKSV scripts make sense and all seem to link together?
![]()
If BLK files contain the hex code of the in-game maps, you can just write maps with CrystalMap and then copy paste the hex code of the maps you make to new BLK files. Then just replace the original BLK files with those you make.I've stumbled upon the source code for Pokemon Crystal, and since I know some Assembly I thought I could make a neat small modification or addons to the game as programming practice.
I've changed scripts, moved around a few options for trainers, pretty much everything that can be done by just editing the code. But unfortunately I can't seem to figure out how to add new maps.
I'm fairly sure the maps are contained in the BLK files from the source code, although I have no clue how to edit them. The information online is incredibly scarse, I found a few people telling me to use Crystalmap, but I don't see how that can work with the source code, since it edits an already existing ROM.
If anyone has any idea on how to do this, or has a good resource to look at I would really appreciate it. I've tried for two days but I can't seem to figure it out by myself.