• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
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:
Expand Collapse Copy
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:
Expand Collapse Copy
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,802
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from DerxwnaKapsyla

Back
Top