Essentials Docs Wiki

The Essentials wiki has moved and is now at: Essentials Engine wiki

This wiki will no longer be updated.

READ MORE

Essentials Docs Wiki
Register
Maruno (talk | contribs)
mNo edit summary
Maruno (talk | contribs)
(Undo revision 692 by TheICTLiker4 (talk))
(One intermediate revision by one other user not shown)
(No difference)

Revision as of 19:04, 21 August 2019

For details on how Pokémon in the Day Care breed, see Breeding.
DayCare

Deposited Pokémon in the Day Care Center.

This page describes the Day Care Center, a place where the player can leave one or more Pokémon for a while to be trained.

The Day Care

Typically, there are two people who run the Day Care Center: one who lets the player deposit and withdraw their Pokémon, and one who gives the player any Pokémon eggs that appear there.

There can only be a maximum of 2 Pokémon in the Day Care at any one time.

Any Pokémon in the Day Care will gain 1 Exp point for each step the player takes.

If a deposited Pokémon levels up and would learn a new move, but it already knows 4 moves, then the first known move is forgotten, the rest bumped up, and the new move learned. Any move can be forgotten because of this, including HM moves.

Depositing and withdrawing Pokémon

DayCareEvent

The event for depositing and withdrawing Pokémon.

Depositing a Pokémon into the Day Care is simply a matter of choosing a Pokémon from the party when prompted. When the player withdraws a Pokémon, there is typically a fee that depends on how many levels the Pokémon has gained while in the Day Care.

To the right is a robust example of the event's contents for the Day Care person that will accept and return Pokémon. This event can also be found in the example maps. The best way to set up a Day Care person yourself is to simply copy this event, rather than spending time recreating it from scratch.

The scripts are limited to allowing a maximum of 2 deposited Pokémon, and this limit is also enforced by the event's commands. If you want to reduce this limit to just 1 deposited Pokémon at a time, all you need to do is edit the event's commands accordingly. However, if you want to increase this limit, you will need to make significant changes to the scripts in addition to editing the event's commands (not just to allow 3+ deposited Pokémon at a time, but also to ensure that the breeding mechanics work properly with all of them).

There can only be one Day Care Center, as the deposited Pokémon are only stored in one variable. To allow multiple separate Day Care Centers, you would need to edit the scripts, which again would be a major change.

Shadow Pokémon can be deposited in the Day Care, but they cannot breed.

Scripts

Deposited Pokémon are stored in the variable $PokemonGlobal.daycare[index][info], where "index" is either 0 or 1 (the first or second deposited Pokémon), and holds information as follows:

  • $PokemonGlobal.daycare[index][0] - The Pokémon
  • $PokemonGlobal.daycare[index][1] - The Pokémon's level when it was deposited (for comparison to calculate the fee for withdrawing)

The following table lists the scripts associated with the Day Care:

Script Description
pbDayCareDeposit(index) Takes the Pokémon in the specified position in the player's party and deposits it into the Day Care.
pbDayCareWithdraw(index) Takes the Pokémon out of the specified index in the Day Care array (0 or 1) and puts it in the player's party (if there is space).
pbDayCareChoose(_I("Which one will you take?"),1) Displays the list of deposited Pokémon (as seen in the screenshot above). The option chosen from this list (-1 for cancel, or 0 or 1 depending on which deposited Pokémon was chosen) is stored in Game Variable 1.
pbDayCareGetDeposited(index,1,2) Looks at the Pokémon in the specified index in the Day Care array (0 or 1). Stores that Pokémon's name in Game Variable 1, and the price for withdrawing it in Game Variable 2.
pbDayCareDeposited Returns the number of Pokémon that are currently in the Day Care.
pbDayCareGetLevelGain(index,1,2) Returns TRUE if there is a Pokémon in the specified index in the Day Care array (0 or 1), and FALSE if not. If there is a Pokémon, stores its name in Game Variable 1 and the number of levels it has gained in Game Variable 2.

If there are two deposited Pokémon and the first (index 0) is withdrawn, the other deposited Pokémon will remain in the second slot (index 1). If another Pokémon is then deposited, it will be placed in the first slot, despite being newer there than the already-deposited Pokémon.

Tips

  • Give the player a phone number for the Day Care Center. The Day Care can call the player when an egg becomes available, and the player can call the Day Care to receive an update on their deposited Pokémon.
    • Alternatively, create a Pokégear app that shows the details of the deposited Pokémon.
  • It is possible to remember more information about a deposited Pokémon than just its level when the player deposited it. Perhaps you can think of some interesting things to do, such as charge more for each new move learnt (remember the initial moveset and compare it to the current one when withdrawn).
  • You could change the way new moves are learned. Rather than a simple "forget the first and learn the new one", you could have the player specify a training style which prevents certain moves from being learned/forgotten (e.g. "aggressive" prefers damaging moves, "strategic" prefers status moves, etc.).
    • Alternatively, the player could be allowed to specify certain currently-known moves that shouldn't ever be forgotten, when they deposit a Pokémon.
  • Add a Move Tutor-like aspect to the Day Care. After a while, the Day Care could teach the deposited Pokémon a special move it wouldn't otherwise learn.
  • Have the Day Care do more to a Pokémon than just increase its Exp. How about modifying its IVs (to an extent/for a price) or its beauty?
  • Have more than one Day Care Center in your game. Each Day Care could be different in a variety of ways, from accepting only certain types of Pokémon to offering a fixed training regiment (i.e. you can't withdraw a Pokémon early, but once it has gained a certain amount of Exp/levels, it will not gain any more no matter how long it stays deposited). As implied above, there are many possibilities.