Fandom

Pokémon Essentials Wiki

Special NPCs

226pages on
this wiki
Add New Page
Talk2 Share

This article describes how to set up special NPCs. These include Move Tutors, Move Deleters, Move Relearners and Pokémon Nicknamers.

See also

Poké Center

  • For Poké Center nurses that heal Pokémon.

Poké Mart

  • For NPCs that sell items.

Day Care

  • For the Day Care Couple.

Move Tutor

The newer Pokémon games have one or more NPCs that can teach a certain move to some Pokémon. The simplest form of this NPC is as follows:

@>Conditional Branch: Script: pbMoveTutorChoose(PBMoves::SOFTBOILED)
  @>Text: Move learned.
  @>
 : Else
  @>Text: Move not learned.
  @>
 : Branch End
@>

You will also need to define which Pokémon can be taught which moves by a Move Tutor. To do so, open the PBS file "tm.txt" and insert the move followed by a list of Pokémon that are able to learn that move, e.g.

[SOFTBOILED]
CLEFFA,CLEFAIRY,CLEFABLE,HAPPINY,CHANSEY,BLISSEY,TOGEPI,TOGETIC,TOGEKISS,MEW

You can have a Move Tutor teach more than one move, by having the player first choose which move they want to teach. Some Move Tutors require a payment in order to teach a move.

See the article Learning moves for more information on how move-learning and the PBS file "tm.txt" work.

Move Deleter

The Move Deleter can make a Pokémon forget any moves a Pokémon knows, including HM moves. It cannot delete a move if it is the only one the Pokémon knows.

There is an example of a Move Deleter in the example maps. The general layout of the Move Deleter's event is as follows:

  1. Ask whether the player wants to delete a move.
  2. The player chooses a Pokémon in their party.
    • Make sure a Pokémon was chosen (i.e. the choice wasn't cancelled), and that it can forget a move (i.e. isn't an egg, Shadow Pokémon or only knows 1 move).
  3. Choose a move to delete.
  4. Ask if the player is sure.
  5. Delete the move.

Move Relearner

The Move Relearner is an alternate form of the Move Tutor. This NPC is able to teach any Pokémon any move that appears in its moveset (but only those which can be learned before the Pokémon's current level).

Move Relearners typically require payment, usually a Heart Scale, in order to make a Pokémon relearn a move.

There is an example of a Move Relearner in the example maps. The general layout of the Move Relearner's event is as follows:

  1. Check whether the player can afford the payment (a Heart Scale). It is not paid yet, though.
  2. Ask whether the player wants to make a Pokémon relearn a move.
  3. The player chooses a Pokémon in their party.
    • Make sure there is at least one move that Pokémon can relearn, and that it can relearn a move (i.e. isn't an egg or Shadow Pokémon).
  4. Choose a move to relearn.
  5. Relearn the move, and make the payment if successful.

Name Rater

The Name Rater (or Pokémon Nicknamer) allows the player to nickname (or remove the nickname of) any of their Pokémon. Only Pokémon that were originally owned by the player can have their nickname changed.

There is an example of a Name Rater in the example maps. The general layout of the Name Rater's event is as follows:

  1. Ask whether the player wants a Pokémon's name rated.
  2. The player chooses a Pokémon in their party.
    • Make sure a Pokémon was chosen (i.e. the choice wasn't cancelled), and that its name can be rated (i.e. isn't an egg or Shadow Pokémon).
  3. Check whether the Pokémon was originally owned by the player - if it wasn't, its nickname is "too good to change".
  4. Ask whether the player wants to rename the Pokémon.
  5. The player provides a new name.
    • If the new name is blank or the same as the Pokémon's species name, remove the nickname.
    • If the new name is a nickname, give it to the Pokémon.

Fossil reviver

The Fossil Reviver is an NPC, usually a scientist, who will take a fossil from the player and turn it into a Pokémon depending on the type of fossil.

There is an example of a Fossil Reviver in the example maps. It is a time-sensitive event, and will therefore have 3 event pages: the first is the introduction, the second is the result, and the third is the "intermediate" stage. Each page is outline below.

The Fossil Reviver uses a Global Variable, which stores the ID number of the species being revived. It also uses a Global Switch, which is ON while the reviving is taking place - this Switch is typically turned OFF in the door event leading to the Fossil Reviver's room (i.e. the player has to step outside and back in to get their Pokémon).

Page 1

This is the introduction page, where the Fossil Reviver asks for a fossil.

  1. Use the method pbChooseItemFromList to let the player choose a fossil to hand over.
    • The item's ID number is saved in the Global Variable used by the Fossil Reviver (or -1 if the choice was cancelled).
    • This method can be used even if the player has no fossils; in which case it won't show/say anything, and will store a result of 0.
  2. Delete 1 of the chosen item from the player's Bag.
  3. Convert the item's ID into a Pokémon species ID using the below code.
  4. Set the "revival in progress" Global Switch ON, and set the Fossil Reviver's Self Switch to go to the second page.
pbConvertItemToPokemon(9,[
   :HELIXFOSSIL, :OMANYTE,
   :DOMEFOSSIL,  :KABUTO,
   :OLDAMBER,    :AERODACTYL,
   :ROOTFOSSIL,  :LILEEP,
   :CLAWFOSSIL,  :ANORITH,
   :SKULLFOSSIL, :CRANIDOS,
   :ARMORFOSSIL, :SHIELDON,
   :COVERFOSSIL, :TIRTOUGA,
   :PLUMEFOSSIL, :ARCHEN])

The array lists pairs of a fossil and its corresponding species. The method looks through each of them, decides which of the items was provided, and replaces the item's ID in the Global Variable (9) with the corresponding species' ID.

Page 2

This is the result page, where the Fossil Reviver hands over the revived Pokémon. It depends on the event's Self Switch being ON (it doesn't matter which one, so long as you're consistent).

  1. Give the player a Pokémon whose species is stored in the Global Variable mentioned above, and whose level is 1.
  2. Set the Fossil Reviver's Self Switch OFF to go to the first page.

Page 3

This is the "intermediate" page, which simply tells the player that revival is in progress. It depends on the "revival in progress" Global Switch being ON.

Apricorn Converter (Kurt)

The Apricorn Converter is very similar to the Fossil Reviver in what it does. It takes an Apricorn from the player and turns it into a Poké Ball item depending on which Apricorn was provided.

The differences are:

  • The Apricorn Converter is a different kind of time-sensitive event, which waits for 24 hours before providing the resulting Poké Ball.
  • One item's ID (Apricorn) is turned into a different item's ID (Poké Ball), rather than into a species' ID.

Everything else behaves the same.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.