The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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 October 9th, 2012, 12:45 PM
julixl's Avatar
julixl
Female Master
 
Join Date: Dec 2011
Gender: Female
Nature: Timid
as the title says, I need to find out how to trade shiny pokemon.
and instead of trading according to the species, trade according to the type.
And I think this is the correct forum to put this.
I DON'T WANT TO BE SHUT DOWN AGAIN BY THOSE MODERATORS!
Oh! and I didn't understand the ''trading pokemon'' page in the pkmn essentials wiki...
__________________
I support:
Pokemon Aqua blue version



''Someone told me long ago I was strange, but then I realized
I'm not strange, YOU are common''
Reply With Quote
  #2    
Old October 9th, 2012, 02:43 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
I have attached a screenshot of part of an example trading event which will be in the next Essentials. It shows how to predefine a Pokémon (referred to as "p"), modify it and then trade for it. Copy it and you won't go far wrong. This example sets several properties of the Pokémon, and setting its shininess is no different - just use p.makeShiny.

The second screenshot I have attached shows how to require that the player's Pokémon (which they are trading away) have a particular type rather than be of a particular species. In this example, it needs to be a Water Pokémon.
Attached Thumbnails
adv trading.png‎   adv trading 2.png‎  
__________________
Reply With Quote
  #3    
Old October 10th, 2012, 06:07 AM
julixl's Avatar
julixl
Female Master
 
Join Date: Dec 2011
Gender: Female
Nature: Timid
I understand better, but some errors show up:

Trading shiny Sandslash:
Error de Script Interpreter en la línea 276 de tipo 'RuntimeError'.

Script error within event 6, map 11 (Mini town):

Exception: NoMethodError

Message: (eval)in `pbExecuteScript'undefined method `MakeShiny' for #<PokeBattle_Pokemon:0x3928f80>

***Full script:

p=PokeBattle_Pokemon.new(PBSpecies::
SANDSLASH,
pbGetPokemon(1).level,$trainer)
p.MakeShiny
p.setNature(PBNatures::ADAMANT)

pbStartTrade(pbGet(1),p,"Doris","Ayana",1)


Interpreter:243:in `pbExecuteScript'

Interpreter:1599:in `eval'

Interpreter:243:in `pbExecuteScript'

Interpreter:1599:in `command_355'

Interpreter:494:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Scene_Map:103:in `update'

Scene_Map:101:in `loop'

Particular type:
Error de Script Interpreter en la línea 276 de tipo 'RuntimeError'.

Script error within event 6, map 11 (Mini town):

Exception: ArgumentError

Message: (eval)in `type'wrong number of arguments(1 for 0)

***Full script:

pbChoosePokemon(1,2,
proc {|poke|
!poke.egg? and
(poke.type 1==PBTypes:OUND or
poke.type 2==PBTypes:OUND)
})


Interpreter:243:in `pbExecuteScript'

(eval)in `pbExecuteScript'

(eval)in `call'

PokemonParty:1261:in `pbChooseAblePokemon'

PokemonParty:1260:in `each'

PokemonParty:1260:in `pbChooseAblePokemon'

PokemonUtilities:1806:in `pbChoosePokemon'

PokemonUtilities:1802:in `pbFadeOutIn'

PokemonUtilities:1802:in `pbChoosePokemon'

(eval)in `pbExecuteScript'

What should I do?
__________________
I support:
Pokemon Aqua blue version



''Someone told me long ago I was strange, but then I realized
I'm not strange, YOU are common''

Last edited by julixl; October 10th, 2012 at 08:38 AM.
Reply With Quote
  #4    
Old October 10th, 2012, 09:02 AM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Quote:
Originally Posted by Maruno View Post
...setting its shininess is no different - just use p.makeShiny.
Quote:
Originally Posted by julixl View Post
Code:
p=PokeBattle_Pokemon.new(PBSpecies::
SANDSLASH,
  pbGetPokemon(1).level,$trainer)
p.MakeShiny
p.setNature(PBNatures::ADAMANT)

pbStartTrade(pbGet(1),p,"Doris","Ayana",1)
You should use exactly what I said. I didn't capitalise the m in p.makeShiny, so neither should you. Yes, it's important.

The same goes for $Trainer. Capital T.


Quote:
Originally Posted by julixl View Post
[/code]pbChoosePokemon(1,2,
proc {|poke|
!poke.egg? and
(poke.type 1==PBTypes:OUND or
poke.type 2==PBTypes:OUND)
})[/code]
Again, use what I said. There should be no spaces in the red part.
__________________
Reply With Quote
  #5    
Old October 11th, 2012, 04:52 AM
julixl's Avatar
julixl
Female Master
 
Join Date: Dec 2011
Gender: Female
Nature: Timid
yep. It worked.
and other question. How can I change the animtion of shiny pokemon? I've modified the ''Commonhiny'' Animation, but it didn't worked...
Sorry for being a troublemaker...
PD: I've run the editor and it didn't work...
__________________
I support:
Pokemon Aqua blue version



''Someone told me long ago I was strange, but then I realized
I'm not strange, YOU are common''

Last edited by julixl; October 11th, 2012 at 05:09 PM.
Reply With Quote
  #6    
Old October 29th, 2012, 01:28 PM
julixl's Avatar
julixl
Female Master
 
Join Date: Dec 2011
Gender: Female
Nature: Timid
looks like you haven´t response in a long time...
Can you please help me a little?
How can you change the sound when you CATCH pokémon?
not when you win, just when you catch them.
THX!
__________________
I support:
Pokemon Aqua blue version



''Someone told me long ago I was strange, but then I realized
I'm not strange, YOU are common''
Reply With Quote
  #7    
Old November 7th, 2012, 05:17 AM
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Quote:
Originally Posted by julixl View Post
looks like you haven´t response in a long time...
Can you please help me a little?
How can you change the sound when you CATCH pokémon?
not when you win, just when you catch them.
THX!
Use Crtl+Shift+F on scripts with the SE name, this case "Jingle - HMTM".
__________________
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 11:24 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.