• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Resource icon

v21.1 Pokemon Level Cap Using Base Stats 2023-10-09

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
I spent about two weeks figuring out how the code works so I could make this change, since I didn't find it anywhere I looked.

This is originally based on another's work, found here. Follow the instructions there, and you'll have no problems. It's the Battle_ExpAndMoveLearning tab that you want to place this in. The number signs(hashtags) at the beginning and the end make it easier to find this for later editing or removal. It also makes it easier to figure out what is an edit and what is an original part of the code.

This code will make it so that a Pokemon's Level Cap equals their Base Stat Total, divided by a number; 6 in this example, meaning that Pseudo Legendaries (600 Base Stat Total) can reach Level 100. You can use any number, it doesn't have to be 6.

I intend to figure some more things out, get it to differentiate between evolution stages and types, but I haven't figured that out yet. If you figure it out before me; PLEASE POST IT! JUST THIS TOOK SEVERAL WEEKS TO FIGURE OUT ON MY OWN! Thank you.

#######################################################
# SuperSimple Level Cap System by Clara (edited by Siggmundur). Credits not needed but are appreciated.
#######################################################
#==================CONFIGURATION=======================
levelCapExp = 1 #the exp gained if the levelcap is active change it if you
#want to make the pokemon gain some exp, recomended less than 100

levelCap=(pkmn.species_data.base_stats.values.sum/6)

#======================================================
if defined?(pkmn) #check if the pkmn variable exist, for v18 and v19 compatibility
thispoke = pkmn
end
exp=levelCapExp if (thispoke.level >= levelCap) && exp>levelCapExp
#####################################################
Credits
ClaraDragon for the base.

Siggmundur for the edit.
Author
Siggmundur
Views
1,677
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top