• 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.
  • 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

v21.1 Level Caps Ex 2.3.2

This resource pertains to version 21.1 of Pokémon Essentials.
Yeah, forgot the _ in uploads so its pointed to the old version.... link and file is the right now............................
*Critical Bug *: Fixed Pokemon exceeding level cap when using multiple EXP Candies at once
- Issue: Using multiple EXP Candies (XL, L, M, S, XS) simultaneously allowed Pokemon to level beyond the cap in hard cap mode
### Fixed
- Critical Bug: Fixed Pokemon still gaining experience in all modes (Hard Cap, Soft Cap, and Obedience) when at or above the level cap
- Root cause: The pbGainExpOne method override was not being properly applied, causing the core game method to be used instead

Added alias declaration before method definition to ensure proper override
- Added comprehensive debug logging to track level cap checks and EXP gain blocking
- Mode 1 (Hard Cap): Pokemon at/above level cap now correctly receive no EXP
- Mode 2 (Soft Cap): Pokemon at/above level cap now correctly receive reduced EXP (10%)
- Mode 3 (Obedience): Level cap checks now work properly for disobedience calculations
### Changed
- Enhanced debug output for troubleshooting level cap issues
- Now logs when pbGainExpOne is called with Pokemon name and level
- Displays current level cap mode, level cap value, and game variable states
- Shows explicit message when EXP gain is blocked due to hard cap
### Technical Details
- Modified 001_Main.rb:
- Added alias __level_caps_pbGainExpOne pbGainExpOne before method definition (line 81)
- Added debug logging at method entry (lines 87-91)
- Added explicit blocking message for hard cap (line 95)
- Maintained all existing level cap logic (hard cap, soft cap, level limiting)
- Modified 002_Additions.rb:
- Added debug logging to hard_cap? method to track when it's called and what it returns
### Notes
  • Important: Game must be completely restarted for changes to take effect
  • Debug logs can be viewed in the console window during gameplay
  • If debug logs don't appear, verify the game was restarted properly
Fixed: Pokémon now reliably learn all level-up moves after each individual level increment when using Rare Candies (including multi-use).
- Evolution checks run after each increment; evolutions trigger as expected.
- Prevents leveling beyond the set level cap with multiple candies
Fixed bypass with multiple candies
Fixed a bug in mode 3
LEVEL_CAP_BYPASS_SWITCH = 61 # Switch to bypass level caps for trainers
Fixed the switch bug in battles
Fixed the cap bug in Mode 1 and 2
# Level Caps EX Plugin - v2.0 Update

## Update Announcement

Excited to announce the release of Level Caps EX v2.0, addressing several important issues and improving overall functionality. This update focuses on stability and ensuring the level cap system works as intended in all gameplay scenarios.

### What's Fixed

- PBS Compilation Error Fixed: The plugin no longer interferes with wild encounter data compilation, allowing you to set encounters with levels higher than the current level cap.

- Battle System Improvements:
- Fixed an issue where enemy trainers would attempt to send out already defeated Pokémon, causing infinite battle loops
- Resolved inappropriate switch prompts when the player only has one Pokémon
- Improved AI decision-making for more natural trainer battles

- Experience Item Restrictions:
- Closed a loophole that allowed players to bypass level caps using EXP Candies
- Added intelligent checking that prevents EXP Candies from pushing Pokémon over the level cap
- Improved feedback messages when attempting to use items that would exceed the level cap

### Technical Details

The update includes enhanced validation of Pokémon selection during battles and a more robust implementation of the level cap check for experience items. The PBS compilation fix uses a clever stack trace detection method to ensure maximum compatibility with various Essentials versions without modifying core compiler code.

### Installation Instructions

1. For New Users: Download the complete package and place it in your Plugins folder.

2. For Existing Users: Replace your current Level Caps EX files with the updated versions. No save file changes are required.

### Configuration Reminder

Remember that level caps are controlled by:
  • Game Variable #40 (or your custom setting): Controls the actual level cap value
  • Game Variable #41 (or your custom setting): Controls the cap behavior mode (Hard/EXP/Obedience)

### Acknowledgments

Thank you to everyone who reported issues and provided feedback. Your input has been invaluable in improving this plugin.

---

As always, if you encounter any issues or have suggestions for future improvements, please let us know!
removed the lost prefix argument
Back
Top