The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Pokémon Essentials
Reload this Page How to make pokemon evolve via level and location?
Sign Up Rules/FAQ Daily Battle Blogs Mark Forums Read


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 Quilva is offline
 
Join Date: Jan 2013
Location: Ljubljana
Gender: Other
Nature: Lonely
Posts: 1,240
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
__________________
Do you know why snow is white?
Snow is white because it'sforgotten what color it's supposed to be.
Reply With Quote

Relevant Advertising!

  #2    
Old January 13th, 2013 (12:05 PM).
Leikaru Leikaru is offline
Back from the dead...
 
Join Date: Jan 2013
Location: Textville
Age: 17
Gender: Male
Nature: Bold
Posts: 89
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 Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,133
"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 Quilva is offline
 
Join Date: Jan 2013
Location: Ljubljana
Gender: Other
Nature: Lonely
Posts: 1,240
thanks for the help,it works now. i keep the fact that an evolution can only have one custom value in mind next time
__________________
Do you know why snow is white?
Snow is white because it'sforgotten what color it's supposed to be.
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 GMT -8. The time now is 5:30 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2016 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 - 2016 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.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2016.