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
(Created page with "This page provides a general overview of '''how moves work in the game'''. == Moves known by a Pokémon == Moves known by a Pokémon are stored in the array <code>pokemon.m...")
Tag: Visual edit
 
Maruno (talk | contribs)
mNo edit summary
Line 1: Line 1:
  +
{{for|how to define a move|Defining a move}}
  +
{{for|the effects of moves|Move effects}}
  +
{{for|what moves look like when they are used|Attack animations}}
  +
{{for|information about moves which can be used in the overworld|Using moves outside battle}}
 
This page provides a general overview of '''how moves work in the game'''.
 
This page provides a general overview of '''how moves work in the game'''.
   
 
== Moves known by a Pokémon ==
 
== Moves known by a Pokémon ==
Moves known by a Pokémon are stored in the array <code>pokemon.moves</code>. A Pokémon can only know a maximum of 4 moves at once (in fact, it will always know exactly 4 moves, blank ones being dummy moves). The first move is <code>pokemon.moves[0]</code>, the second is <code>pokemon.moves[1]</code>, and so forth. <code>pokemon.numMoves</code> is how many moves the Pokémon knows.
 
   
  +
Moves known by a Pokémon are stored in the array <code>pkmn.moves</code>. Each move is a "PBMove" object, and this array contains exactly 4 moves.
A move can be different to the same move known by another Pokémon in two ways:
 
* Its current PP can be different
 
* Its maximum PP can be different (due to PP Up items used on it)
 
Because of this, each move is an instance of the class "PBMove" rather than a stand-alone variable or set of variables. This class stores 3 numbers: the move's ID, the current PP and the number of PP Ups used on it.
 
   
  +
A move object contains the following information:
The maximum number of PP Ups that can be used on a move is limited only by the effects of the PP Up and PP Max items themselves, and not by a fundamental part of the move's scripts.
 
  +
  +
* ID number of the move (the same as the value <code>PBMoves::TACKLE</code>).
  +
* Current PP amount.
  +
* The number of PP Ups used on the move (a PP Max is the same as 3 PP Ups). Each one increases the total PP by 20% of the original total PP.
  +
 
A move ID of 0 means "no move". The first move is <code>pkmn.moves[0]</code>, the second is <code>pkmn.moves[1]</code>, and so forth. <code>pkmn.numMoves</code> is how many moves the Pokémon knows.
  +
 
The maximum number of PP Ups that can be used on a move is limited only by the effects of the PP Up and PP Max items themselves. There is no such limit in the move object's code.
   
 
== Tips ==
 
== Tips ==
  +
 
* You could let moves be "upgraded" by some means during the game, such as by increasing their base damage or the probability of their additional effects. The PP Up item is an existing feature which upgrades moves; you can just expand on that concept. Your upgrades don't have to be caused by items, of course.
 
* You could let moves be "upgraded" by some means during the game, such as by increasing their base damage or the probability of their additional effects. The PP Up item is an existing feature which upgrades moves; you can just expand on that concept. Your upgrades don't have to be caused by items, of course.

Revision as of 23:29, 1 January 2019

For how to define a move, see Defining a move.
For the effects of moves, see Move effects.
For what moves look like when they are used, see Attack animations.
For information about moves which can be used in the overworld, see Using moves outside battle.

This page provides a general overview of how moves work in the game.

Moves known by a Pokémon

Moves known by a Pokémon are stored in the array pkmn.moves. Each move is a "PBMove" object, and this array contains exactly 4 moves.

A move object contains the following information:

  • ID number of the move (the same as the value PBMoves::TACKLE).
  • Current PP amount.
  • The number of PP Ups used on the move (a PP Max is the same as 3 PP Ups). Each one increases the total PP by 20% of the original total PP.

A move ID of 0 means "no move". The first move is pkmn.moves[0], the second is pkmn.moves[1], and so forth. pkmn.numMoves is how many moves the Pokémon knows.

The maximum number of PP Ups that can be used on a move is limited only by the effects of the PP Up and PP Max items themselves. There is no such limit in the move object's code.

Tips

  • You could let moves be "upgraded" by some means during the game, such as by increasing their base damage or the probability of their additional effects. The PP Up item is an existing feature which upgrades moves; you can just expand on that concept. Your upgrades don't have to be caused by items, of course.