- 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:
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:
3. Set the Default Mode for the Level Cap:
- Choose the default behavior for the level cap system when the game starts.
- Example:
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:
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:
#### 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
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.
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:
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:
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:
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:
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:
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:
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