- Pokémon Essentials Version
- v21.1 ✅
- Also compatible with
- 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:
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
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)
Code:
==============================
==== 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:
================================
==== 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