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 January 13th, 2013 (11:21 AM).
Quilva's Avatar
Quilva
What fun is there in making sense?
 
Join Date: Jan 2013
Location: Ljubljana
Age: 15
Gender: Other
Nature: Relaxed
Send a message via Skype™ to Quilva
i tried doing it myself but i can't seem to get it to work, i always get a error message.

i wrote this into PokemonEvolution script(replaced Custom1 with it)
Spoiler:
when 26 # Evolves when reaches a ceratin level in certain area
return poke if pokemon.level>=level && $game_map.map_id==level


and wrote this into pokemon.txt file
Spoiler:
Evolutions=SHEDINJA,Locationlevel,20&22,


Locationlevel is the name i gave the evolution in the Compiler and the problem is not with that, the problem is with the 20,22 part,comma at the end is for other evolutions

here is what the error says:
Spoiler:
---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError

Message: Field 20&22 is not a positive integer

File PBS/pokemon.txt, section 0, key Evolutions

Compiler:219:in `csvPosInt!'
Compiler:2428:in `pbCompilePokemonData'
Compiler:2407:in `each'
Compiler:2407:in `pbCompilePokemonData'
Compiler:2404:in `each'
Compiler:2404:in `pbCompilePokemonData'
Compiler:3947:in `pbCompileAllData'
Compiler:4071
__________________
Reply With Quote
  #2    
Old January 13th, 2013 (12:05 PM).
Leikaru
Back from the dead...
 
Join Date: Jan 2013
Location: Textville
Age: 16
Gender: Male
Nature: Bold
I think (I'm not 100%) you need to do the LocationLevel twice, for both areas, because 20&22 isn't a positive integer (a positive number), it's two numbers together.
__________________
Pokemon Y > Pokemon X

Don't agree? Sorry for spoiling your day.



Coming soon... a new game... after I've finished Pokemon Steel of course.

MONSTERRA
Reply With Quote
  #3    
Old January 13th, 2013 (12:21 PM).
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
"20&22" is not a number. "20" is a number, "22" is a number, but "&" isn't. That's your problem.

An evolution method can only have one custom value. In this case, either level or map number. You can't write both into pokemon.txt.

The solution is to copy the "Level" method, and in the code stick the phrase: && [22,23,24,25].include?($game_map.map_id). You define the level in pokemon.txt, and the map numbers in the array (square brackets) in that red bit of code. The slight drawback is that you can't use the same evolution method for evolving in different places (e.g. Ice Rock and Mossy Rock) - you'll need one method for Ice Rock evolutions and one for Mossy Rock evolutions.
__________________
Reply With Quote
  #4    
Old January 13th, 2013 (10:46 PM).
Quilva's Avatar
Quilva
What fun is there in making sense?
 
Join Date: Jan 2013
Location: Ljubljana
Age: 15
Gender: Other
Nature: Relaxed
Send a message via Skype™ to Quilva
thanks for the help,it works now. i keep the fact that an evolution can only have one custom value in mind next time
__________________
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 08:30 PM.