The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Scripts & Tutorials
Reload this Page Essentials Script Make wild Pokémon stronger on maps with higher ID numbers
Sign Up Rules/FAQ Daily Battle Blogs Mark Forums Read


Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #1    
Old December 29th, 2015 (7:33 AM). Edited December 29th, 2015 by roby_kof.
roby_kof's Avatar
roby_kof roby_kof is offline
 
Join Date: Dec 2015
Gender: Male
Posts: 10
Hello! i've edited an original essentials script with a simple equation that calculates the level of all the WILD pokemon found!

just remove this part in PField_EncounterModifiers:
Code:
Events.onWildPokemonCreate+=proc {|sender,e|
   pokemon=e[0]
   if $game_map.map_id==51
     pokemon.level=pbBalancedLevel($Trainer.party) - 4 + rand(5)   # For variety
     pokemon.calcStats
     pokemon.resetMoves
   end
}
and replace it with this:
Code:
#by roby_kof
Events.onWildPokemonCreate+=proc {|sender,e|
   pokemon=e[0]
   if $game_map.map_id>16
     pokemon.level=($game_map.map_id/7)+10+rand($game_map.map_id/7)  # For variety
     pokemon.calcStats
     pokemon.resetMoves
   end
}
you can edit the
Code:
$game_map.map_id>16
with any map ID you want the script to sart... you can also change the parameters in the equation if you need to!
My equation calculates levels which get higher and have a higher range with a rhythm similar to the original Pokémon games.
Levels are calculated using the map ID: the higher is the ID, the higher are the levels!
Reply With Quote

Relevant Advertising!

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 3:11 AM.


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.