Notices
For all updates, view the main page.

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 10:47 PM.