• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Resource icon

Egg Incubation Script 2017-04-24

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:
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.
  • Like
Reactions: Ulithium_Dragon
Author
DerxwnaKapsyla
Views
1,649
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from DerxwnaKapsyla

Back
Top