Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Editing/Modifying a Pokemon

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old June 13th, 2012 (04:59 PM).
BrakeNeck's Avatar
BrakeNeck BrakeNeck is offline
 
Join Date: Jun 2012
Location: Council Bluffs, Iowa
Age: 24
Gender: Male
Nature: Jolly
Posts: 47
Alright, so I am once again attempting something I am failing at.
I have tried this numerous ways, and I just cannot seem to get anything defined besides the Pokemon Species and Level. Now here is the exact event which I have been attempting to use, and the part which is failing.

Script:pbAddPokemonSilent(
: BSpecies::EEVEE,5) This Works
Script:poke.setGender(2) Trying to make it a female.
Script:poke.makenotshiny Trying to make sure it cannot be shiny
Script:poke.name="Insert name" Trying to name her.
Script:poke.setNature(PBNatures::QUIRKY) Trying to assign a quickry nature.

I am not sure what I am doing wrong. I have tried running these as one simultaneous event also, and it does not seem to function. I have also tried running the functions under these lines.

Script:pbAddPOkemonSilent(
BSpecies:EEVEE,5,
PBGender:Male,
PBName:"Fakemon",
PBNatures:Derp,
poke.MakeNotShiny)

I searched on Poke Essentials, and I searched these forums for this solution, If it is posted I obviously did not define my issue correctly. Either way, if someone could just let me know if this is a simple error, or something complex..And possibly help me fix this, that would be amazing. get back to me at your soonest convenience.
__________________
Completed Challenges
The Random Pokemon Challenge-Fire Red


Current Challenges
Ultimate Monotype-Fire
Combined Pokemon Solo Challenge Thread-Arcanine
Reply With Quote
  #2    
Old June 13th, 2012 (05:32 PM).
desbrina's Avatar
desbrina desbrina is offline
Lightning Yellow Creator
 
Join Date: Feb 2011
Location: UK
Age: 26
Gender: Female
Nature: Quiet
Posts: 545
in a script you'd do
poke=PokeBattle_Pokemon.new(PBSpecies::MAGIKARP,10,$Trainer)
poke.setGender(2)
pbAddPokemon(poke)

Its explained on this page
http://pokemonessentials.wikia.com/wiki/Manipulating_Pok%C3%A9mon
__________________
Creator of


A Pokemon Yellow remake, using HGSS Tiles, and the ability to obtain all Kanto Pokemon as well as their previous/later evolutions.

Reply With Quote
  #3    
Old June 13th, 2012 (05:52 PM).
BrakeNeck's Avatar
BrakeNeck BrakeNeck is offline
 
Join Date: Jun 2012
Location: Council Bluffs, Iowa
Age: 24
Gender: Male
Nature: Jolly
Posts: 47
Quote originally posted by desbrina:
in a script you'd do
poke=PokeBattle_Pokemon.new(PBSpecies::MAGIKARP,10,$Trainer)
poke.setGender(2)
pbAddPokemon(poke)

Its explained on this page
http://pokemonessentials.wikia.com/wiki/Manipulating_Pok%C3%A9mon
I had actually seen the post, I just did not quite understand how to introduce that script. Thank you very much.

However, it still does not allow me to set a Nature, is this something that is not easily define? Or is it i now done using Numerals instead of the actual name? Just did a quick search and it bore no results. If you do not know off the top of your head I'll do a comprehensive search.
__________________
Completed Challenges
The Random Pokemon Challenge-Fire Red


Current Challenges
Ultimate Monotype-Fire
Combined Pokemon Solo Challenge Thread-Arcanine
Reply With Quote
  #4    
Old June 14th, 2012 (03:26 AM).
Maruno's Avatar
Maruno Maruno is online now
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 3,970
Code:
poke=PokeBattle_Pokemon.new(PBSpecies::EEVEE,5,$Trainer)
poke.setGender(1)
poke.makeNotShiny
poke.name="Leeloo"
poke.setNature(PBNatures::QUIRKY)
pbAddPokemonSilent(poke)
That's exactly what you would need. Note that "makeNotShiny" is in camelCase, and the female gender is the number 1 (0 is male). You can still use the nature's name as shown.

Now, all of this must be in the same single "Script" event command for it to work. That's because the variable "poke" will be erased at the end of each "Script" event command, even if there's another immediately after it (and you don't want it to be erased until you've used it).

Remember that pbAddPokemonSilent won't show any messages, so you'll need to include some to say Eevee has been obtained.
__________________
Reply With Quote
  #5    
Old June 14th, 2012 (05:03 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,405
Quote originally posted by Maruno:
Remember that pbAddPokemonSilent won't show any messages, so you'll need to include some to say Eevee has been obtained.
Or use pbAddPokemon instead.
__________________
Reply With Quote
  #6    
Old June 14th, 2012 (05:17 AM).
Maruno's Avatar
Maruno Maruno is online now
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 3,970
Quote originally posted by FL .:
Or use pbAddPokemon instead.
No, that lets the player nickname the Pokémon. BrakeNeck doesn't want that.
__________________
Reply With Quote
  #7    
Old June 14th, 2012 (06:42 AM).
BrakeNeck's Avatar
BrakeNeck BrakeNeck is offline
 
Join Date: Jun 2012
Location: Council Bluffs, Iowa
Age: 24
Gender: Male
Nature: Jolly
Posts: 47
Quote originally posted by Maruno:
Code:
poke=PokeBattle_Pokemon.new(PBSpecies::EEVEE,5,$Trainer)
poke.setGender(1)
poke.makeNotShiny
poke.name="Leeloo"
poke.setNature(PBNatures::QUIRKY)
pbAddPokemonSilent(poke)
That's exactly what you would need. Note that "makeNotShiny" is in camelCase, and the female gender is the number 1 (0 is male). You can still use the nature's name as shown.

Now, all of this must be in the same single "Script" event command for it to work. That's because the variable "poke" will be erased at the end of each "Script" event command, even if there's another immediately after it (and you don't want it to be erased until you've used it).

Remember that pbAddPokemonSilent won't show any messages, so you'll need to include some to say Eevee has been obtained.

This all worked Beautifully, not sure if I was typing something wrong, or if defining Eevee without a gender(on Accident), THEN setting a nature was messing it up; but it works now.

Either way, it functions now; so I am excited. Thank you for the feedback guys. This issue is resolved.
__________________
Completed Challenges
The Random Pokemon Challenge-Fire Red


Current Challenges
Ultimate Monotype-Fire
Combined Pokemon Solo Challenge Thread-Arcanine
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 11:54 AM.