A modular script to easily implement egg parsing and egg generation to a Pokemon (RPG Maker, Pkmn Essentials) game.
https://pokemondb.net/pokebase/286561/what-is-an-egglocke
An "Egglocke" is a challenge variant for Pokemon games. This code makes it easier to implement by allowing you to to collect a wide number of eggs (or, more obviously, very easily randomly generate eggs), and share them with friends, and have them add them as eggs in their own game's PCs.
-
Navigate to the scripts section of RPG Maker XP and insert a new script above "Main".
-
Copy and paste the contents from "Egglocke.rb" into that script.
-
Create a folder named "Egglocke" in the main game directory (To be filled with egg data)
-
In the overworld, run the command
-
Kernel.initiateEgglocke
to begin the parsing/loading process.
-
An "egg" is stored in the following way:
-
Species,Nickname,Item,Ability #,Gender,Nature,IV 1, IV 2, IV 3, IV 4, IV 5, IV 6,Move1,Move2,Move3,Move4,-1,-1,
For example:
-
95,"Toph",71,0,Male,Naughty,31,31,31,31,31,31,694,694,303,303,-1,-1,
-
Would be an Onix named Toph, equipped with whatever item has an id of 71, etc.
-
-
We can add text files filled with eggs to our Egglocke folder
- Any text file is simply a line-separated list of eggs.
- Each egg in the list is added to a the player's PC when that Egglocke file is selected