- Pokémon Essentials Version
- v16.2 ➖
Another script made by Maralis; I didn't like how the default debug options for egg hatching worked, so this script makes it so all eggs hatch instantly instead of forcing you to walk an additional step after selecting the Force Hatch option.
In PField_DayCare, look for the line "Events.onStepTaken+=proc {|sender,e|", and then right above it paste the following:
This will run the Egg Hatching routine instantly for all eggs in your party. To bind this to some sort of NPC in the Overworld, create a new event, and in the events options, go to the "Script" Event Command, and put this in:
In PField_DayCare, look for the line "Events.onStepTaken+=proc {|sender,e|", and then right above it paste the following:
Code:
def pbHatchAll
for egg in $Trainer.party
if egg.egg?
egg.eggsteps=0
pbHatch(egg)
end
end
end
This will run the Egg Hatching routine instantly for all eggs in your party. To bind this to some sort of NPC in the Overworld, create a new event, and in the events options, go to the "Script" Event Command, and put this in:
Code:
pbHatchAll
- Credits
- Maralis made the code, but the original idea behind the code came from the Touhoumon series of games, featured in vanilla 1.812, so credit for inspiration is from HemoglobinA1C.