• 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 Riru's Upgraded Level Display! v21.1

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
Also compatible with
  1. v21.1
First, look for the "006_Battle_Scene_Objects.rb" file in the "011_Battle/004_Scene" folder (If you're working with your scripts in a folder that is, otherwise just look for "Battle_Scene_Objects" in the script editor).
Then, find "def draw_level", and replace the whole method (from "def draw_level" to "end") with this script:

Ruby:
Expand Collapse Copy
# Riru's Upgraded Level Display
LEVEL_BASE_COLOR              = Color.new(255, 255, 255)
LEVEL_SHADOW_COLOR            = Color.new(0, 0, 0)
#Change these to whatever they are on your Switch/Variable list in RPG Maker XP.
UpgradedLvDisplaySwitchID = 129
UpgradedLvDisplayVarID    = 231

  def draw_level
    # "Lv" graphic
    pbDrawTextPositions(self.bitmap, [["Lv.", @spriteBaseX + 136, 11, :left, LEVEL_BASE_COLOR, LEVEL_SHADOW_COLOR]])
    # Level number
    if $game_switches[UpgradedLvDisplaySwitchID] && @battler.opposes?
        pbDrawTextPositions(self.bitmap, [[$game_variables[UpgradedLvDisplayVarID], @spriteBaseX + 168, 11, :left,
        LEVEL_BASE_COLOR, LEVEL_SHADOW_COLOR]])
    else
        pbDrawTextPositions(self.bitmap, [[@battler.level.to_s, @spriteBaseX + 168, 11, :left, LEVEL_BASE_COLOR, LEVEL_SHADOW_COLOR]])
    end
  end
Do take note that you have to replace the switch and variable ID to your own, as these are the IDs used in a project the script was made originally for.
Now, to utilize this script, turn the switch on before any fight (wild battle or not) and after that open the script function of RPG Maker XP, type in "$game_variables[(your id for the variable)] = "(what you want)"".
After a battle, turn the switch off.
Also, be mindful that everything that anything you want to be displayed as a level HAS to be in " ", as otherwise the script won't work.
This also applies to numbers.
Also, be mindful that it was made for v21.1, so I do not know if it does work for previous versions, and I don't plan on finding out, as I don't work on them as of right now.
That's it!
Have fun toying with this!
Credits
Riru (Although not needed, it is appreciated)
Author
Asforcia
Views
980
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Asforcia

Back
Top