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
(I made Mega Evolution Page. Images are needed still...)
Tag: Visual edit
 
(Now I modified it with Essentials V 17.x)
Tag: Visual edit
Line 1: Line 1:
'''Mega Evolution''' is a system introduced in Pokémon X and Y to enhance some Pokémon by temporarily boosting their stats and other features during battle. In Essentials, these changes are treated as a specialised kind of [[https://essentialsdocs.wikia.com/wiki/Multiple forms|form change.]]
+
'''Mega Evolution''' is a system introduced in Pokémon X and Y to enhance some Pokémon by temporarily boosting their stats and other features during battle. In Essentials, these changes are treated as a kind of form change.
   
 
== How Mega Evolution works ==
 
== How Mega Evolution works ==
Mega Evolution can occur when the player possesses a Mega Ring, and when a Pokémon is holding a particular item. If these conditions are met, then the option to Mega Evolve that Pokémon will appear in the Fight menu when choosing a move for that Pokémon to use. Only one Pokémon per trainer can Mega Evolve in a given battle.
+
Mega Evolution can occur when the player possesses a Mega Ring, and when a particular Pokémon is holding a particular item. If these conditions are met, then the option to Mega Evolve that Pokémon will appear in the Fight menu when choosing a move for that Pokémon to use. Only one Pokémon per trainer can Mega Evolve in a given battle.
   
The Mega Evolution is an extra part of a battle round, and a Pokémon can both Mega Evolve and use a move in the same round. The Pokémon remains Mega Evolved until the end of the current battle, regardless of whether it switches out or faints. Its held item (the Mega Stone) is not consumed by this process.
+
The Mega Evolution is an extra part of a battle round, and a Pokémon can both Mega Evolve ''and'' use a move in the same round. The Pokémon remains Mega Evolved until the end of the current battle, regardless of whether it switches out or faints. Its held item (the Mega Stone) is not consumed by this process, and in fact, a Pokémon cannot drop or otherwise lose its Mega Stone by any means.
   
 
== Defining a Mega Evolution ==
== Mega Ring (Depending on the version) ==
 
  +
There are three parts to this: defining a Mega form, defining a Mega Ring (and giving it to the player), and defining one or more Mega Stones.
n Essentials v15 and below, the Mega Ring is not an item. It is a switch, like the Pokédex and Pokégear are. To give the player a Mega Ring, use the following code:
 
$PokemonGlobal.megaRing=true
 
You can set this to false to take it away from them.
 
   
 
=== Mega form ===
You may also want to give the player a key item which represents the Mega Ring at the same time. However, bear in mind that this item will do nothing by itself.
 
  +
: ''Main article: Forms''
  +
A Mega Evolution behaves in Essentials as a form change. The Mega forms of Pokémon are therefore defined in the PBS file "pokemonforms.txt" like any other form.
   
  +
There are four properties of a form that are exclusively used for Mega forms. These are:
<nowiki>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</nowiki>
 
  +
* <code>MegaStone</code> - The Mega Stone item that needs to be held by a Pokémon for it to transform into this Mega form.
  +
* <code>UnmegaForm</code> - The form that this Mega form will revert to after battle. Default is 0.
  +
* <code>MegaMove</code> - An alternative to Mega Stones, this is a move that needs to be known by a Pokémon to allow its transformation into this Mega form. Typically used only for Rayquaza.
  +
* <code>MegaMessage</code> - A number that defines the message shown during Mega Evolution. Again, typically used only for Rayquaza.
  +
Of these four properties, you will typically only use the first one.
   
  +
The <code>FormName</code> property should be "Mega Venusaur" (or similar).
In Essentials v16+, the Mega Ring is an item. Although it is not in Essentials you can add it (Or a varient) by adding the following lines to the text document "Items" in the PBS folder. Give the player the item and you will be able to mega evolve your pokemon
 
596,MEGARING,Mega Ring,Mega Rings,8,0,"(What ever description you want)",0,0,6
 
   
  +
=== Mega Ring ===
597,MEGABRACELET,Mega Bracelet,Mega Bracelets,8,0,"(What ever description you want)",0,0,6
 
  +
A Mega Ring is the counterpart to Mega Stones held by Pokémon. The Mega Ring is an item in the player's Bag.
   
  +
In the script section '''Settings''' is an array called <code>MEGARINGS</code>. Items listed in this array are Mega Rings. The player can use any of them for Mega Evolution. Otherwise, they are normal items with no effect (like Key Cards).
598,MEGACUFF,Mega Cuff,Mega Cuffs,8,0,"(What ever description you want)",0,0,6
 
   
  +
=== Mega Stones ===
599,MEGACHARM,Mega Charm,Mega Charms,8,0,"(What ever description you want)",0,0,6
 
  +
: ''Main article: Defining an item''
If you want to make your own mega item, you will follow the same process you would to create a new item, just change the name to "Mega Necklace", "Mega Glove", etc. Next, you'll need to go to "PokeBattle_Battle". Lines 650-657 define the variants of the Mega Ring. Line 652 will read:
 
 
A Mega Stone is an item to be held by a Pokémon. It has no effect of its own.
{| class="article-table"
 
!if pbBelongsToPlayer?(battlerIndex)<br>
 
      rings=[:MEGARING,:MEGABRACELET,:MEGACUFF,:MEGACHARM,]
 
|}
 
Simply add on the name of your desired Mega Item, create an event in which an NPC gives you the item, make sure you have a Pokemon that can mega evolve, and their mega stone (which has to be held by said Pokemon), and you're ready to mega evolve your Pokemon with your new item.
 
   
  +
A Mega Stone should be defined with a "special item" value of 12. This (currently) has the only effect of making Fling's base power 80 when it throws a Mega Stone (this is possible if the Mega Stone does not match the species of the Pokémon holding it).
== Mega Stones ==
 
A Mega Stone is an item to be held by a Pokémon. It has no effect of its own, although the form of the Pokémon holding it can depend on it being held.
 
   
  +
A Mega Move (e.g. Dragon Ascent for Rayquaza) is no different to any other move. Nothing special needs to be defined or written for it.
Mega Stones should be unlosable if they could cause the holder to Mega Evolve. That is, the holder should not be able to lose their held Mega Stone via Knock Off, Switcheroo or by any other means. Search the scripts for the name of a Mega Stone which has already been implemented in Essentials (e.g. <code>VENUSAURITE</code>) and copy how it works for any new Mega Stones you want to implement.
 
  +
  +
== Mega Evolution animation ==
  +
When a Pokémon Mega Evolves, a few messages are shown stating what happens. Two Common animations are also shown: one called "MegaEvolution" which plays first, and one called "MegaEvolution2" which plays immediately after the first. The Pokémon's sprite changes from its normal form to its Mega form between these two animations, so each animation should only show half of the whole Mega Evolution visual effect.
   
 
== Preventing Mega Evolution ==
 
== Preventing Mega Evolution ==
In the script section '''Settings''', the value <code>NO_MEGA_EVOLUTION</code> is defined (34 by default). If the Global Switch of this number is on, then no Pokémon is able to Mega Evolve, not even if they otherwise could. This applies to both the player and enemy trainers alike.
+
In the script section '''Settings''', the value <code>NO_MEGA_EVOLUTION</code> is defined (34 by default). If the Game Switch of this number is on, then no Pokémon is able to Mega Evolve, not even if they otherwise could. This applies to both the player and foe trainers alike.
 
== Performing a Mega Evolution ==
 
Choosing to Mega Evolve a Pokémon is done at the same time as choosing a move for it to use. Any computer-controlled trainers will always try to Mega Evolve their Pokémon.
 
 
There are several examples in Essentials of how to define a Mega Evolution for a species. The following code is found at the bottom of the script section '''PokemonMultipleForms''':
 
MultipleForms.register(:VENUSAUR,{
 
"getMegaForm"=>proc{|pokemon|
 
next 1 if isConst?(pokemon.item,PBItems,:VENUSAURITE)
 
next
 
},
 
"getUnmegaForm"=>proc{|pokemon|
 
next 0
 
},
 
"getMegaName"=>proc{|pokemon|
 
next _INTL("Mega Venusaur") if pokemon.form==1
 
next
 
},
 
"getBaseStats"=>proc{|pokemon|
 
next [80,100,123,80,122,120] if pokemon.form==1
 
next
 
},
 
"ability"=>proc{|pokemon|
 
next getID(PBAbilities,:THICKFAT) if pokemon.form==1
 
next
 
},
 
"height"=>proc{|pokemon|
 
next 24 if pokemon.form==1
 
next
 
},
 
"weight"=>proc{|pokemon|
 
next 1555 if pokemon.form==1
 
next
 
},
 
"onSetForm"=>proc{|pokemon,form|
 
pbSeenForm(pokemon)
 
}
 
})
 
The first three procedures (<code>"getMegaForm"</code>, <code>"getUnmegaForm"</code> and <code>"getMegaName"</code>) are unique to Mega Evolution.
 
* <code>"getMegaForm"</code> decides which form is the Mega form for that species. If this produces a number, it can Mega Evolve. If it simply does "next", or if this procedure doesn't exist for a species, it cannot.
 
* <code>"getUnmegaForm"</code> is the opposite of the first procedure, and produces the base form to revert any Mega Evolved Pokémon back to.
 
* <code>"getMegaName"</code> produces the name of the Mega Evolution. If this procedure simply does "next" or it doesn't exist, then the name will simply be "Mega" followed by the species name.
 
The rest of the procedures are normal form differences, as can be used by any Pokémon with multiple forms. There is nothing special about these - the only special part is deciding whether a species can Mega Evolve, and if so, into which form.
 
 
There is also an example in Essentials of how to define a species with multiple Mega Evolutions (Charizard).
 
 
== What is seen in battle ==
 
When a Pokémon Mega Evolves, a few messages are shown stating what happens. A Common animation called "MegaEvolution" is also shown.
 
 
== Setting up an enemy trainer for Mega Evolution ==
 
: ''Main article: [[https://essentialsdocs.wikia.com/wiki/Defining a trainer|Defining a trainer]]''
 
The only thing enemy trainers need to perform a Mega Evolution is for one of their Pokémon to be holding a Mega Stone. They do not need a Mega Ring. As mentioned above, the AI will always make an enemy trainer's Pokémon Mega Evolve if it possibly can. Enemy trainers are still limited to one Mega Evolution per battle, though.
 
   
 
== Setting up a foe trainer for Mega Evolution ==
Giving an enemy trainer's Pokémon a Mega Stone to hold is the same thing as giving it any other item to hold.
 
  +
: ''Main article: Defining a trainer''
  +
NPC trainers are assumed to have a Mega Ring. They do not need to be given one specially. By default, this will be called "Mega Ring", although you can add code to customise the name of Mega Ring items for particular trainers. <code>def pbGetMegaRingName</code> in the script section '''PokeBattle_Battle''' contains an example of such code, which causes Bug Catchers to possess Mega Nets.
   
  +
The only thing you need to do is to ensure that NPC trainers' Pokémon are holding their Mega Stones (only for Pokémon that should Mega Evolve, of course).
== Sprites, icons and cries ==
 
: ''Main article: [[https://essentialsdocs.wikia.com/wiki/Multiple forms|Multiple forms]]''
 
Mega Evolutions are a kind of alternate form. Therefore their form-specific sprites, icons and cries are defined and named just like any other form-specific resource file.
 
   
  +
NPC trainers will always try to Mega Evolve their Pokémon. They are still limited to one Mega Evolution per battle, just as the player is.
== Tips ==
 
* You can expand on the number of species which can Mega Evolve.
 
** Be wary about letting Pokémon with multiple forms Mega Evolve. You may need to change some effects in order to make them work properly.
 

Revision as of 16:09, 2 September 2018

Mega Evolution is a system introduced in Pokémon X and Y to enhance some Pokémon by temporarily boosting their stats and other features during battle. In Essentials, these changes are treated as a kind of form change.

How Mega Evolution works

Mega Evolution can occur when the player possesses a Mega Ring, and when a particular Pokémon is holding a particular item. If these conditions are met, then the option to Mega Evolve that Pokémon will appear in the Fight menu when choosing a move for that Pokémon to use. Only one Pokémon per trainer can Mega Evolve in a given battle.

The Mega Evolution is an extra part of a battle round, and a Pokémon can both Mega Evolve and use a move in the same round. The Pokémon remains Mega Evolved until the end of the current battle, regardless of whether it switches out or faints. Its held item (the Mega Stone) is not consumed by this process, and in fact, a Pokémon cannot drop or otherwise lose its Mega Stone by any means.

Defining a Mega Evolution

There are three parts to this: defining a Mega form, defining a Mega Ring (and giving it to the player), and defining one or more Mega Stones.

Mega form

Main article: Forms

A Mega Evolution behaves in Essentials as a form change. The Mega forms of Pokémon are therefore defined in the PBS file "pokemonforms.txt" like any other form.

There are four properties of a form that are exclusively used for Mega forms. These are:

  • MegaStone - The Mega Stone item that needs to be held by a Pokémon for it to transform into this Mega form.
  • UnmegaForm - The form that this Mega form will revert to after battle. Default is 0.
  • MegaMove - An alternative to Mega Stones, this is a move that needs to be known by a Pokémon to allow its transformation into this Mega form. Typically used only for Rayquaza.
  • MegaMessage - A number that defines the message shown during Mega Evolution. Again, typically used only for Rayquaza.

Of these four properties, you will typically only use the first one.

The FormName property should be "Mega Venusaur" (or similar).

Mega Ring

A Mega Ring is the counterpart to Mega Stones held by Pokémon. The Mega Ring is an item in the player's Bag.

In the script section Settings is an array called MEGARINGS. Items listed in this array are Mega Rings. The player can use any of them for Mega Evolution. Otherwise, they are normal items with no effect (like Key Cards).

Mega Stones

Main article: Defining an item

A Mega Stone is an item to be held by a Pokémon. It has no effect of its own.

A Mega Stone should be defined with a "special item" value of 12. This (currently) has the only effect of making Fling's base power 80 when it throws a Mega Stone (this is possible if the Mega Stone does not match the species of the Pokémon holding it).

A Mega Move (e.g. Dragon Ascent for Rayquaza) is no different to any other move. Nothing special needs to be defined or written for it.

Mega Evolution animation

When a Pokémon Mega Evolves, a few messages are shown stating what happens. Two Common animations are also shown: one called "MegaEvolution" which plays first, and one called "MegaEvolution2" which plays immediately after the first. The Pokémon's sprite changes from its normal form to its Mega form between these two animations, so each animation should only show half of the whole Mega Evolution visual effect.

Preventing Mega Evolution

In the script section Settings, the value NO_MEGA_EVOLUTION is defined (34 by default). If the Game Switch of this number is on, then no Pokémon is able to Mega Evolve, not even if they otherwise could. This applies to both the player and foe trainers alike.

Setting up a foe trainer for Mega Evolution

Main article: Defining a trainer

NPC trainers are assumed to have a Mega Ring. They do not need to be given one specially. By default, this will be called "Mega Ring", although you can add code to customise the name of Mega Ring items for particular trainers. def pbGetMegaRingName in the script section PokeBattle_Battle contains an example of such code, which causes Bug Catchers to possess Mega Nets.

The only thing you need to do is to ensure that NPC trainers' Pokémon are holding their Mega Stones (only for Pokémon that should Mega Evolve, of course).

NPC trainers will always try to Mega Evolve their Pokémon. They are still limited to one Mega Evolution per battle, just as the player is.