How do I search through all Macros for a keyword?

Talk about whatever topic you'd like, RPG related or not. (But please discuss things related to our software in the Tools section, below.)

Moderators: Azhrei, dorpond, trevor

Post Reply
Merudo
Giant
Posts: 228
Joined: Wed Jun 05, 2019 7:06 am

How do I search through all Macros for a keyword?

Post by Merudo »

I'm trying to find all references in a project to a given word. How do I search through all macros for it?

Phergus
Deity
Posts: 7108
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: How do I search through all Macros for a keyword?

Post by Phergus »

Easy enough:
  • Save your campaign
  • Open the campaign file with a utility like 7-Zip
  • Pull out the campaign.xml file
  • Load campaign.xml file into a text editor like Notepad++
  • Do a search for your keyword.
  • The macro content will be within <command> </command> tags.
  • The name of the macro will be within <label> </label> tags.

User avatar
aliasmask
Deity
Posts: 8579
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: How do I search through all Macros for a keyword?

Post by aliasmask »

If you want to search just a lib token, you can use my rpedit drop-in to export all the macros and use something like notepad++ to do a search.

User avatar
Full Bleed
Demigod
Posts: 4444
Joined: Sun Feb 25, 2007 11:53 am
Location: MD
Contact:

Re: How do I search through all Macros for a keyword?

Post by Full Bleed »

aliasmask wrote:
Sun Jun 09, 2019 8:38 pm
If you want to search just a lib token, you can use my rpedit drop-in to export all the macros and use something like notepad++ to do a search.
IMO, this tool is essential. If you don't have it installed in your campaign, make haste.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

Post Reply

Return to “General Discussion”