• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Egg Hatcher [v16, v17 and v18.1]

2
Posts
3
Years
  • Egg Hatcher [v16, v17 and v18.1]

    Authors: Kyu and ClaraDragon
    Compatible with: v16, v17, v18 and v19.1​

    Overview
    This script adds to the game an egg hatcher which allows the player to take alongside him up to 6 eggs without taking spaces from your team.
    Once available to the player it will ask if they want to send newly obtained eggs directly to the hatcher.
    It is fully plug and play and can be either given as an object or called via script.

    How to Install

    • Download the resource from here
    • Paste the contents of script.txt in a new script over Main
    • Copy the Graphics folder on the root of your project

    How to Use
    As an item:

    • Add the following line to Items PBS (change xxx to the id of the item):
    Code:
    XXX,EGGHATCHER,Egg Hatcher,Egg Hatchers,8,0,"An Egg Hatcher in which to keep up to 6 eggs until they hatch.",2,0,6

    • Then, add itemXXX.png to the Graphics/Icons folder.

    The functionality code is already implemented within this script. That includes item usage and egg storage after receiving them​


    External script call:
    Whether calling it from the menu or a random npc, just call the following method:
    Code:
    openHatcher

    In case of using this method to use the hatcher, you can use a global switch to make it available to the player,
    just change EGGHATCHER_SWITCH to the id of the switch you want to use.

    Credits
    Credits are required to everyone listed below when using this resource.
    • Kyu (Script)
    • ClaraDragon (Idea, graphics and testing)
    • Turner (Updated hatcher icon)
     
    Last edited:
    18
    Posts
    2
    Years
    • Seen Apr 10, 2024
    this is really useful, it's funny that no one thought about it for a long time xD
     
    Back
    Top