sanguine1038

Clueless Enby
Veteran
Joined
May 29, 2022
Messages
64
Reaction score
27
First Language
English
Primarily Uses
RMMV
hey i was wondering if theres anyway to find common events through some kind of event searcher or plugin to see if it's unused. i have a project that i know has unused common events although im not sure specifically which ones or how many.

am i gonna have to search through each event to see or is there an easier way?
 

Kaszdev

Veteran
Veteran
Joined
Sep 29, 2022
Messages
35
Reaction score
9
First Language
Spanish
Primarily Uses
RMMZ
hey i was wondering if theres anyway to find common events through some kind of event searcher or plugin to see if it's unused. i have a project that i know has unused common events although im not sure specifically which ones or how many.

am i gonna have to search through each event to see or is there an easier way?
Atleast in MZ you can use ctrl+f to search anything, I don't know if in mv it's the same.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
5,432
Reaction score
5,119
First Language
English
Primarily Uses
RMMZ
There is a way, but it's a bit complex. You'd need to open the data files in a text editor and do a search for the "call common event" code in a command parameter object. The good thing is they use a specific format so it's not *hard* to search for them as long as you know what the codes are.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
6,293
Reaction score
4,246
First Language
English
Primarily Uses
RMMV
Atleast in MZ you can use ctrl+f to search anything
When I boot up MZ and press Ctrl+F, nothing happens.

If I click on the Event Searcher tool, it only searches map events like in MV, it doesn't do anything to help you find where you called a common event.

Can you explain how you're using this to find references to common events? Which screen?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
37,343
Reaction score
10,196
First Language
German
Primarily Uses
RMMV
It depends on what the common event does.

in case of autorun/parallel process those are always activated by a specific switch, so you can use the build-in searcher to find if those switches are used in events. It won't work if the switches are used by javascript, but that would be a rather strange construct that is unlikely to exist as a plugin has better methods for handling things than controlling CEs.

in case of a called common event there is Trihan's solution above - which is anything but easy to handle as you need to know how the data is stored.

In case of attached common events (attached to skills that is) you can either go through the database skill by skill, or you can do the equivalent of the text search described above for the skill database.
But in that case the codes for attached common events are different than the ones for called common events...
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
5,432
Reaction score
5,119
First Language
English
Primarily Uses
RMMZ
I've actually been considering writing an app that searches data files for things like this.
 

Kaszdev

Veteran
Veteran
Joined
Sep 29, 2022
Messages
35
Reaction score
9
First Language
Spanish
Primarily Uses
RMMZ
When I boot up MZ and press Ctrl+F, nothing happens.

If I click on the Event Searcher tool, it only searches map events like in MV, it doesn't do anything to help you find where you called a common event.

Can you explain how you're using this to find references to common events? Which screen?
I missunderstood the question, I thought he wanted some shortcut to search trought common events in the editor.
 

Vis_Mage

Wisp Charmer
Veteran
Joined
Jul 28, 2013
Messages
775
Reaction score
278
First Language
English
Primarily Uses
RMMV
There's a pretty handy plugin that can help out with this, Shaz's Cross Reference Tool.

This plugin adds an option to your title screen, that allows you to see exactly where each Switch, Variable, Actor, Class, Skill, Item, Weapon, Armor, Animation, Enemy, Troop, State, and Common Event is referenced all throughout your game. It's incredibly helpful.

The only thing to keep in mind is that it won't detect any of these that are either referenced by a plugin itself, or if it's referenced in a plugin command/script call.
 

Latest Threads

Latest Profile Posts

ScreenShot_12_7_2022_8_57_56.png
part of the common event help menu I'm working on. I used Yanfly's Common Event Menu to set it up and here's a screen of once you've selected one of the options. This one explains the 6 different battle commands.
KDS
Hey guys! Iam currently updating my free digital art shop , let me know if you need anything done :) https://forums.rpgmakerweb.com/index.php?threads/kds-free-open-digital-art-shop.17097/
Hello! I’d like to ask where is a good place to start logging about my game dev progress as production of my game goes forth
In one of our campus classrooms was a bag full of stuff people forgot there... my bag. That I forgot there xD
You know your room is too tiny for how much stuff you have when it gives you literal insomnia. I just cleared a bunch of stuff out and man it feels good!

Forum statistics

Threads
127,099
Messages
1,183,967
Members
167,028
Latest member
Edujandro
Top