Change properties in config tab from within a macro.

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
Shadow Wizard
Giant
Posts: 182
Joined: Mon Apr 11, 2011 8:11 pm

Change properties in config tab from within a macro.

Post by Shadow Wizard »

I have to "lists" of token properties. Basic, and Monster.
I want to change the list of token properties, that is located in the config tab, from within a macro.
I have attached a phot in case I was not explaining what I want to change properly.
macro what I wanna change.png
macro what I wanna change.png (174.09 KiB) Viewed 177 times

User avatar
aliasmask
RPTools Team
Posts: 9023
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Change properties in config tab from within a macro.

Post by aliasmask »

I usually force the token type within my create token macro by doing this.

Code: Select all

[H: isPathfinder = startsWith(getPropertyType(),"Pathfinder 2")]

<!-- force token type -->
[H, if(! isPathfinder && ! isGM()): setPropertyType("Pathfinder 2")]
[H, if(! isPathfinder && isGM()): setPropertyType("Pathfinder 2_NPC")]

Shadow Wizard
Giant
Posts: 182
Joined: Mon Apr 11, 2011 8:11 pm

Re: Change properties in config tab from within a macro.

Post by Shadow Wizard »

Thank you, works wonderfully.

Post Reply

Return to “Macros”