• Having trouble receiving email verification when signing up? Contact an administrator via our Discord server!
  • Consider joining our Discord server if you haven't already! Discord is a free voice and text chat platform that's more or less a combination of Skype and Teamspeak. Using Discord, you can chat with other Relic Castle members in real-time! Wowza! Click here for the details!
Resource icon

Variable Tracker

Pokémon Essentials Version
v17.2 ✅
Debugging code can be pretty annoying, especially when you don't know the value of a certain variable. That's where this script comes in. It tracks whichever variables you want by displaying their value at the right side of the screen. You can specify the size of the extra window, as well as how many lines a variable may use up to show the value.


In a new script section above Main, add the following script:


To track the value of a variable, use VariableTracker.track(name, code)
  • name: This is the display name of the variable and can be literally anything as long as it's a string.
  • code: This can either be a String or a Proc. If it's a String, it will evaluate the string and display the return value. If it's a Proc, it will call the proc (without any arguments) and display the return value. It automatically calls .inspect on whatever it's about to display.
You can call this method at any time.

To stop tracking a variable, use VariableTracker.stop_tracking(name). This will stop tracking the variable (so that it won't display it anymore).

When this script tries to display a value but it returns an error, it will print out --- instead.
  • Marin
First release
Last update
0.00 star(s) 0 ratings

More resources from Marin