- Pokémon Essentials Version
- v21.1 ✅
Instruction 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:- Set the Game Variable for the Level Cap:
- Assign the game variable that will control the maximum level a Pokémon can reach.
- Example:
Ruby:LEVEL_CAP_VARIABLE = 31 # Variable 31 will control the level cap
- 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:
LEVEL_CAP_MODE_VARIABLE = 32 # Variable 32 controls the level cap mode
- Define the variable that determines the behavior when a Pokémon reaches the level cap. The three modes are:
- Set the Default Mode for the Level Cap:
- Choose the default behavior for the level cap system when the game starts.
- Example:
-
Ruby:
DEFAULT_LEVEL_CAP_MODE = 1 # Default mode is the Hard Cap
- 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:LOG_LEVEL_CAP_CHANGES = true # Enable logging of level cap changes
- 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 31:
Ruby:LEVEL_CAP_VARIABLE = 31
- 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 31:
- Access the Game’s Variable Editor:
- In the game’s editor, open the Variable Editor.
- Look for the variable with ID 31, which controls the level cap.
- Change the Level Cap Value:
- Modify the value of variable 31 from 15 to 20. This will change the level cap in the game from level 15 to level 20.
- Save the Changes:
- Save your modifications and ensure that the level cap is now set to 20 in-game.
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.
Extra feature: Prevents the use of special candies to level up Pokémon beyond the set level cap.
- Credits
- Golisopod User, Nononever