A good way to go about a pet hatching system/framework

Hello, I’ve been looking into simulator development, and I recently started my own clicker simulator type game but after I had finished with the basic clicking and currency handling, the next step I thought was to make a pet hatching system but the more I investigated it I realized it wasn’t as straight forward and there are so many ways of going about it.

So, I wanted to ask the developers who are experienced with this sort of system how they scripted it in an expandable and organized way.

I have been scripting for a while now so I hopefully should be able to understand any run-throughs or explanations given

Thanks, have a good one