Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials

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 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). Edited October 10th, 2012 by julixl.
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''
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:
...setting its shininess is no different - just use p.makeShiny.
Quote originally posted by julixl:
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:
[/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). Edited October 11th, 2012 by julixl.
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''
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:
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 10:37 AM.