Is this possible? Batch updating RPTOK files

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
busterbluth
Cave Troll
Posts: 58
Joined: Sat Aug 17, 2019 3:49 pm

Is this possible? Batch updating RPTOK files

Post by busterbluth »

I've found a problem in a Maptool framework I'm building and I need to redefine a few properties. Is it possible to modify values in existing properties via macros in RPTOK files already saved? or do i have to bring the previously saved tokens onto a map, update them, and then save them all, overwriting their previous incarnation?

User avatar
aliasmask
RPTools Team
Posts: 9080
Joined: Tue Nov 10, 2009 6:11 pm
Location: California

Re: Is this possible? Batch updating RPTOK files

Post by aliasmask »

It's possible to edit the xml files in the zip tokens (just add .zip to see context file), but you'll need the know how to do that. It's easier to bring in to MapTool and run a macro that will edit them. If it's a token type change needed, that will affect all the tokens, but you need to resave them after that.

If you want to edit the properties beyond the property type, like the values within, running a macro vs all the selected tokens is pretty easy.

busterbluth
Cave Troll
Posts: 58
Joined: Sat Aug 17, 2019 3:49 pm

Re: Is this possible? Batch updating RPTOK files

Post by busterbluth »

There's no macro command or function that will Save an RPTOK, overwriting an existing file, is there?

EDIT

Scratch that ... I just figured out this is not needed. I can Select all the tokens that need to be re-saved, right-click, select 'Save ...', select 'No' at the prompt when asked if I want a dialog box for each selected token, and then hit the 'Save' button at the dialog box.

Just wanted to share this for posterity. I love being able to save these in a batch.

Post Reply

Return to “Macros”