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

v21.1 Level Caps Ex 1.0.2

This resource pertains to version 21.1 of Pokémon Essentials.
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:

  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:
      Ruby:
      Expand Collapse Copy
      LEVEL_CAP_VARIABLE = 31  # Variable 31 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 = 32  # Variable 32 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:
    • Ruby:
      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
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 31:
      Ruby:
      Expand Collapse Copy
      LEVEL_CAP_VARIABLE = 31
  2. 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.
  3. 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.
  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.

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
  • 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
967
Views
4,055
First release
Last update

Ratings

5.00 star(s) 3 ratings

More resources from NoNoNever

Latest updates

  1. New link

    New link is up
  2. Fixed wrong instructions in Main

    Fixed wrong instructions in Main
  3. Fixed always says "Pokemon got {2} Exp. Points!"

    Fixed always says "Pokemon got {2} Exp. Points!"
Back
Top