• 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.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Resource icon

v21.1 Level Caps Ex 1.3

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
### Instructions for Setting Up the Level Cap System

This system allows you to configure a level cap for Pokémon, controlling their behavior when they reach or exceed this cap. Here’s how to set it up:

#### Configuration

1. Set the Game Variable for the Level Cap:
- Assign the game variable that will control the maximum level a Pokémon can reach.
- Example:
Code:
Expand Collapse Copy
LEVEL_CAP_VARIABLE = 40  # Variable 40 will control the level cap

2. Set the Game Variable for the Level Cap Mode:
- Define the variable that determines the behavior when a Pokémon reaches the level cap. The three modes are:
1. Hard Cap: The Pokémon cannot level up or gain experience past the level cap.
2. EXP Cap: The Pokémon will gain reduced experience after exceeding the cap.
3. Obedience Cap: The Pokémon will begin to disobey the player once it surpasses the cap.
- Example:
Code:
Expand Collapse Copy
LEVEL_CAP_MODE_VARIABLE = 41  # Variable 41 controls the level cap mode

3. Set the Default Mode for the Level Cap:
- Choose the default behavior for the level cap system when the game starts.
- Example:
Code:
Expand Collapse Copy
DEFAULT_LEVEL_CAP_MODE = 1  # Default mode is the Hard Cap

4. Enable Logging (Optional):
- If you want changes to the level cap or mode to be printed in the console for debugging or tracking, set this to true.
- Example:
Code:
Expand Collapse Copy
LOG_LEVEL_CAP_CHANGES = true  # Enable logging of level cap changes

5. Set the Level Cap to Affect Only Player's Pokémon (Optional):
- If you want the level cap to only affect the player's Pokémon, set this to true. If you want it to affect both the player's and the opponent's Pokémon, set this to false.
- Example:
Code:
Expand Collapse Copy
   PLAYER_ONLY = true  # Level cap affects only the player's Pokémon

#### Changing the Level Cap

To change the Level Cap from, for example, 15 to 20, follow these steps:

1. Identify the Variable for the Level Cap:
- In the script, the variable controlling the level cap is set by LEVEL_CAP_VARIABLE. In the provided example, the variable ID is set to 40:
Code:
Expand Collapse Copy
LEVEL_CAP_VARIABLE = 40

2. Access the Game’s Variable Editor:
- In the game’s editor, open the Variable Editor.
- Look for the variable with ID 40, which controls the level cap.

3. Change the Level Cap Value:
- Modify the value of variable 40 from 15 to 20. This will change the level cap in the game from level 15 to level 20.

4. Save the Changes:
- Save your modifications and ensure that the level cap is now set to 20 in-game.

Once this is done, the new level cap will take effect immediately.

#### Extra Feature

- Prevent the Use of Special Candies to Level Up Pokémon Beyond the Set Level Cap:
- The system includes logic to prevent Pokémon from leveling up beyond the set level cap when using items like Rare Candies and EXP Candies.

By setting these variables, you can customize how your game's level cap functions and how Pokémon will behave when they hit the cap.
Credits
Golisopod User, Nononever
  • level cap Config.png
    level cap Config.png
    147.3 KB · Views: 594
  • Screenshot 2024-02-16 231230.png
    Screenshot 2024-02-16 231230.png
    64.8 KB · Views: 585
  • console.png
    console.png
    10.5 KB · Views: 568
Author
NoNoNever
Downloads
1,407
Views
5,876
First release
Last update

Ratings

5.00 star(s) 3 ratings

More resources from NoNoNever

Latest updates

  1. Infinite Loop fix, undefined methode fix

    Should all be good now, if not let me know thx (link is the same)
  2. version number update

    version number update
  3. Did Some bug fixes, added better and celarer options in the config file

    #### Changes 1. Configuration File (000_Config.rb): - Added a new configuration option...
Back
Top