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: dorpond, trevor, Azhrei

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: 7132
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
RPTools Team
Posts: 9031
Joined: Tue Nov 10, 2009 6:11 pm
Location: California

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: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

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”