• 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.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Resource icon

Resource Level Caps Ex 2.3

Hello, thanks for making this.

Ruby:
Expand Collapse Copy
PLAYER_ONLY = true
Doesn't appear to do anything. It actively changes the levels of other trainer's Pokémon.
 
Whats this error from? It happens in like every battle since I installed the plugin
leJRZLx.png
 
G4q3pCU.png

sorry i get this error whenever doing double battle and the pokemon is fainted/switched
 
Hello, im getting an error message after deafeating a pokemon right when i should get exp.
lvl cap is set to 15 and works with exp candies.

the error says :
Exception: NameError
Message: undefined local variable or method `prefix' for #<Battle>

Backtrace:
[Level Caps EX] 001_Main.rb:126:in `pbGainExpOne'
Battle_ExpAndMoveLearning:39:in `block (2 levels) in pbGainExp'
Battle:411:in `block in eachInTeam'
Battle:411:in `each'
Battle:411:in `each_with_index'
Battle:411:in `eachInTeam'
Battle_ExpAndMoveLearning:35:in `block in pbGainExp'
Battle_ExpAndMoveLearning:13:in `each'
Battle_ExpAndMoveLearning:13:in `pbGainExp'
Battler_UseMove:514:in `pbUseMove'

any idea why this happen? Also the game doestn crash after that, i just dont get any exp.
 
Hello, im getting an error message after deafeating a pokemon right when i should get exp.
lvl cap is set to 15 and works with exp candies.

the error says :
Exception: NameError
Message: undefined local variable or method `prefix' for #<Battle>

Backtrace:
[Level Caps EX] 001_Main.rb:126:in `pbGainExpOne'
Battle_ExpAndMoveLearning:39:in `block (2 levels) in pbGainExp'
Battle:411:in `block in eachInTeam'
Battle:411:in `each'
Battle:411:in `each_with_index'
Battle:411:in `eachInTeam'
Battle_ExpAndMoveLearning:35:in `block in pbGainExp'
Battle_ExpAndMoveLearning:13:in `each'
Battle_ExpAndMoveLearning:13:in `pbGainExp'
Battler_UseMove:514:in `pbUseMove'

any idea why this happen? Also the game doestn crash after that, i just dont get any exp.
Look for the line if over_level_cap in 001_Main.rb

And below that there should be a pbMessage call. Just remove the prefix argument from there

Actually, change it to pbDisplayPaused(_INTL(message, pkmn.name, expGained)). That was an error on my end.

Forgot to remove it 😅
 
Look for the line if over_level_cap in 001_Main.rb

And below that there should be a pbMessage call. Just remove the prefix argument from there

Actually, change it to pbDisplayPaused(_INTL(message, pkmn.name, expGained)). That was an error on my end.

Forgot to remove it 😅
Worked like a charm :D Thank you very much!
 
Hey there, I apologize if this is a dumb question, I am very new to Essentials and scripting in general. How do I make it so the level cap increases after a gym leader defeat? I'm just a bit confused on how to adjust variables in general. I'm guessing I just have to put a line to change the variable in the gym leader event or something?

Any help would be appreciated, and again I apologize for how new I am.
 
Hello! Your plugin seemed to work perfectly at the beginning, but after a while it started changing levels of the Pokémon in the "encounters" file in the PBS folder, and it shows me this error while compiling. Changing the levels manually solves the problem, but only for a moment, as it changes again.

Screenshot-2024-08-16-233728.png
This is still an issue btw with the latest version. Would be helpful if there is a fix for this and not just ignored.
 
Had to remove this plugin, due to it messing with levels on wild encounters and trainer levels somehow. Game won't launch without an error unless the levels in the PBS somehow are below the level cap. Thats not workable. Hopefully you take the time to look into this.
 
Had to remove this plugin, due to it messing with levels on wild encounters and trainer levels somehow. Game won't launch without an error unless the levels in the PBS somehow are below the level cap. Thats not workable. Hopefully you take the time to look into this.
You can catch more flies with honey than with vinegar. As a plugin maker myself, I wouldn't respond nicely to the negative tone your two replies had. Maybe it wasn't your intention, but just providing some feedback anyway.
 
This is still an issue btw with the latest version. Would be helpful if there is a fix for this and not just ignored.
Read the update history, i tried already to fix it but the plugin had more bugs after that patch so i did a rollback, i ignore nothing, i just patch bugs if im currently able to, i uploaded the plugin in the beginning with 0 coding experience (i bought it from Goli) from time to time i realized i need to learn ruby to provide updates.

I dont ignore bug reports im just currently not able to fix this specific problem without breaking the whole plugin, keep in mind you can always look in the code and post me a fix if im to slow

Thanks
 
Hey there, I apologize if this is a dumb question, I am very new to Essentials and scripting in general. How do I make it so the level cap increases after a gym leader defeat? I'm just a bit confused on how to adjust variables in general. I'm guessing I just have to put a line to change the variable in the gym leader event or something?

Any help would be appreciated, and again I apologize for how new I am.
Just do the same with a higher number and put it in the gym leader script 🙂
 
Okay, couple of notes, as of the last version, readding PLAYER_ONLY = true did fix the issue with the levels changing for me and the error that popped up, so don't know what you had to remove? Also the gained experience message is missing expGain in the script, readded that and recompiled, it worked at least with Hard Level Cap.
 
Hi NoNoNever, thanks for the Plugin. It is something I was waiting for someone to create. :)

While installing and getting it to work, there are a few things I noticed. I thought they might be of interesst to you:

1. There are some comments in "level_caps_ex_compatibility.rb" that are in german. Eigentlich kein Problem, aber für die internationalen Nutzer ist Englisch bestimmt angenehmer. : D
2. I did not get the LevelCaps to work or the Debug-Messages about the Cap-changes to show up in the console, until I also changed "LEVEL_CAP_VARIABLE" in "level_caps_ex_compatibility.rb" to 51 (my Variable of choice for the Level-Cap). Would be nice, if you added the info to adjust this value here as well in the setup-guide.
3. After defeating a Pokémon, my team seems to get the correct amount of EXP, but it is always displayed that they got "{2}" Exp. Points. - Most likely some minor-error in the line 122-126 of "001_Main.rb"

Thanks again for your wokr and I am looking forward to using this Plugin. :)
 
Hi NoNoNever, thanks for the Plugin. It is something I was waiting for someone to create. :)

While installing and getting it to work, there are a few things I noticed. I thought they might be of interesst to you:

1. There are some comments in "level_caps_ex_compatibility.rb" that are in german. Eigentlich kein Problem, aber für die internationalen Nutzer ist Englisch bestimmt angenehmer. : D
2. I did not get the LevelCaps to work or the Debug-Messages about the Cap-changes to show up in the console, until I also changed "LEVEL_CAP_VARIABLE" in "level_caps_ex_compatibility.rb" to 51 (my Variable of choice for the Level-Cap). Would be nice, if you added the info to adjust this value here as well in the setup-guide.
3. After defeating a Pokémon, my team seems to get the correct amount of EXP, but it is always displayed that they got "{2}" Exp. Points. - Most likely some minor-error in the line 122-126 of "001_Main.rb"

Thanks again for your wokr and I am looking forward to using this Plugin. :)
Thy for the feedback, i did a big plugin rollback so i need to fix old upcoming bugs

Im currently not at home (vacation)
 
I made a "CapCandy" Item work with this script. I do not know if there is a better way, but here is how I did it:
  • Add the following to the "items.txt"-PBS-file
  • Ruby:
    Expand Collapse Copy
    [CAPCANDY]
    Name = Cap Candy
    NamePlural = Cap Candies
    Pocket = 8
    Price = 100000
    BPPrice = 200
    FieldUse = OnPokemon
    Flags = KeyItem
    Description = A special candy. It raises the level of a single Pokémon to the level cap.
    #-------------------------------
  • In the Script under "Item_Effects" insert into lines 950 to 981:
  • Code:
    Expand Collapse Copy
    # Cap-Candy-Effect
    ItemHandlers::UseOnPokemonMaximum.add(:CAPCANDY, proc { |item, pkmn|
      next $game_variables[51] - pkmn.level
    })
    
    ItemHandlers::UseOnPokemon.add(:CAPCANDY, proc { |item, qty, pkmn, scene|
      if pkmn.shadowPokemon?
        scene.pbDisplay(_INTL("It won't have any effect."))
        next false
      end
      if pkmn.level >= GameData::GrowthRate.max_level
        new_species = pkmn.check_evolution_on_level_up
        if !Settings::RARE_CANDY_USABLE_AT_MAX_LEVEL || !new_species
          scene.pbDisplay(_INTL("It won't have any effect."))
          next false
        end
        # Check for evolution
        pbFadeOutInWithMusic do
          evo = PokemonEvolutionScene.new
          evo.pbStartScreen(pkmn, new_species)
          evo.pbEvolution
          evo.pbEndScreen
          scene.pbRefresh if scene.is_a?(PokemonPartyScreen)
        end
        next true
      end
      # Level up
      pbSEPlay("Pkmn level up")
      pbChangeLevel(pkmn, $game_variables[51], scene)
      scene.pbHardRefresh
      next true
    })
  • Note that "51" is the index of my LEVEL_CAP_VARIABLE
 
Hey so version 1.3.1 has a slight error causing the exp to not show outside of showing {2}, it is literally just missing the ', expGained' section on line 126 - contacted about this fix and leaving it here in case anyone has this issue until the update.
Ruby:
Expand Collapse Copy
    if showMessages
      message = _INTL("{1} got {2} Exp. Points!")
      message = _INTL("{1} got a boosted {2} Exp. Points!") if isOutsider
      message = _INTL("{1} got a reduced {2} Exp. Points!") if over_level_cap
      pbDisplayPaused(_INTL(message, pkmn.name, expGained))
 
Back
Top