• 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.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Resource icon

v21.1 Switch and Variable Usage Report 1.0

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
Also compatible with
  1. v20.1
Have you ever used a switch or variable in many events in your game, so you can't keep track which ones are checking or using it? What if you need to reorganize your switch or variables and have to redo that setup in your events?

Now, you can run a report that tells you which events check or set a switch or variable.

Report Structure
When you run the report, it will tell you the following information:
  • The map ID and name the event(s) is found in
  • The event ID, name, and x, y coordinates
  • The page the switch/variable is being checked/used in
  • Whether it's being checked in the page's Conditions section, or checked/used in the Event Commands.
  • The type of command that's using it (Script command, Control Switch/Variable command, Conditional Branch) and, if applicable, what style of code is checking/setting it ($game_switches, pbGet, pbSet)
Examples:
Code:
Expand Collapse Copy
==============================
==== Switch 1 Event Usage ====
==============================

Map 3 - \PN's house
  Event 9 - Mom [7, 4]
    Page 2
      Conditions
        Switch 1
      Event Commands
        [Line 15] Control Switches command

Code:
Expand Collapse Copy
================================
==== Variable 3 Event Usage ====
================================

Map 2 - Lappet Town
  Event 29 - Icecream maker [19, 7]
    Page 1
      Event Commands
        [Line 29] Script command: $game_variables
        [Line 31] Script command: pbGet
  Event 67 - Size Checker [14, 11]
    Page 1
      Event Commands
        [Line 4] Script command: pbSet
  Event 87 - Icecream maker [19, 8]
    Page 1
      Event Commands
        [Line 11] Script command: $game_variables
        [Line 13] Script command: pbGet
  Event 91 - TR Shards [14, 8]
    Page 1
      Event Commands
        [Line 46] Script command: pbSet
        [Line 53] Script command: pbGet

Setup
Simply install the plugin, and you're all set.

How to use
1) Open the Field Options menu in the Debug menu.
2) Choose either the Switch Usage Report or Variable Usage Report option.
3) Choose which Switch or Variable you want to search events for.
4) Choose whether you want the report to print to the console, or to a file that will be saved to your project's main folder.
5) You're done! Review the report to see where your switch or variable is being used.

Future
  • No future plans
Credits
wrigty12
Author
wrigty12
Downloads
71
Views
429
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from wrigty12

Back
Top