View Single Post
  #142    
Old September 21st, 2007, 10:29 PM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
Here's the latest update: I've managed to implement a mechanism for defining custom Pokemon. Here's a portion of the text file, pokemon.txt, for doing so:

Code:
# This text file describes each Pokemon in the game.  
# The file is divided into sections, and each section's title is the
# Pokemon's number enclosed by two square brackets like this:  [120]
#
# Each section can have any number of entries.  The entry's name and
# the entry's value are separated by an equal sign (=).
#
# Here are the possible entry types:
#
# Name - Name of the Pokemon.
# Kind - The kind of Pokemon.
# Pokedex - Description of the Pokemon as shown in the Pokedex.
# Color - Body color of the Pokemon.  One of Red, Blue, Yellow, Green,
#  Black, Brown, Purple, Gray, White, Pink.
# Type1 - Type 1 of the Pokemon.  Required.
# Type2 - Type 2 of the Pokemon.  If this is omitted, this Pokemon
#  has a single type.
# Height - Height in meters, rounded to the nearest tenth of a meter.
# Weight - Weight in kilograms, rounded to the nearest tenth of a kilogram.
# GenderRate - Gender rate of the Pokemon.  One of FemaleOneEighth, 
#  Female25Percent, Female50Percent, Female75Percent, 
#  AlwaysMale, AlwaysFemale, or Genderless.
# BaseStats - Base stats of the Pokemon for HP, Attack, Defense, Speed,
#  Special Attack, and Special Defense.
# Rareness - Catch rate.  A higher number means the species is easier
#  to catch.
# BaseEXP - Base experience.  A higher number means more experience
#  is gained when the species is defeated.
# Happiness - Starting happiness when caught.  Normally equal to 70.
# GrowthRate - Growth rate.  One of Fast, Medium, Slow, Parabolic, Erratic,
#  or Fluctuating.
# StepsToHatch - Number of steps required before egg hatches.  Should
#  be a multiple of 256.
# WildItemCommon - Item commonly found in this species in the wild.
# WildItemRare - Item rarely found in this species in the wild.
# Compatibility - Compatibility with other species for breeding purposes.
#  A comma-separated list of two numbers.  If either number is 15, this
#  species cannot breed.
# EffortPoints - Effort values for HP, Attack, Defense, Speed,
#  Special Attack, and Special Defense, earned when the species
#  is defeated.  From 0 through 3.
# Abilities - One or two abilities possible for this species.
# Moves - Third-generation moves learned by this species by gaining levels.
#  This is a comma-separated list consisting of pairs of move-level entries.
# Evolutions - Evolved forms of this species. 
#  This is a comma-separated list consisting of triples of entries, where
#  the first is the evolved form, the second is the evolution type, and the
#  third is data that depends on the evolution type.  Evolution types are:
#      Field 2's value         Field 3's value
#   Happiness               ---
#   HappinessDay         ---
#   HappinessNight      ---
#   Level                       Level
#   Trade                     ---
#   TradeItem              Item's internal name
#   Item                        Item's internal name
#   AttackGreater       Level
#   AtkDefEqual            Level
#   DefenseGreater     Level
#   Silcoon                    Level
#   Cascoon                  Level
#   Ninjask                    Level
#   Shedinja                   Level
#   Beauty                    Minimum Beauty factor
# EggMoves - Third-generation moves that the species can learn only as 
#  an egg.  This data is valid only if the species is in its lowest evolutionary form.
# Machines - A comma-separated list of third generation TMs and HMs 
#  that can be taught to this species.
#  TMs 01 through 50 have IDs of 1 through 50, and HMs 01 through 08 have
#  IDs of 51 through 58.
#
#  --- Image Files ---
#  There should be five different image files for new Pokemon (XXX is the
#  Pokemon's number):
#  Graphics/Battlers/XXX.png - Front of the Pokemon.
#  Graphics/Battlers/XXXs.png - Shiny front of the Pokemon.
#  Graphics/Battlers/XXXb.png - Back of the Pokemon.
#  Graphics/Battlers/XXXsb.png - Shiny back of the Pokemon.
#  Graphics/Icons/iconXXX.png - Icon of the Pokemon.  This is a two-frame animation.
[1]
Name=BULBASAUR
InternalName=BULBASAUR
Kind=SEED
Pokedex=BULBASAUR can be seen napping in bright sunlight. There is a seed on its back. By soaking up the sun's rays, the seed grows progressively larger. 
Type1=GRASS
Type2=POISON
BaseStats=45,49,49,45,65,65
Rareness=45
BaseEXP=64
Happiness=70
GrowthRate=Fluctuating
StepsToHatch=5120
Color=Green
Habitat=Grassland
EffortPoints=0,0,0,0,1,0
Abilities=OVERGROW
Compatibility=1,7
Height=0.7
Weight=6.9
GenderRate=FemaleOneEighth
Moves=1,TACKLE,4,GROWL,7,LEECHSEED,10,VINEWHIP,15,POISONPOWDER,15,SLEEPPOWDER,20,RAZORLEAF,25,SWEETSCENT,32,GROWTH,39,SYNTHESIS,46,SOLARBEAM
EggMoves=LIGHTSCREEN,SKULLBASH,SAFEGUARD,CHARM,PETALDANCE,MAGICALLEAF,GRASSWHISTLE,CURSE
Machines=6,9,10,11,17,19,21,22,27,32,36,42,43,44,45,51,54,55,56
Evolutions=IVYSAUR,Level,16
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)