Token property with multiline default

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: Azhrei, dorpond, trevor

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
User avatar
Cave Troll
Posts: 35
Joined: Thu Oct 31, 2019 3:45 am

Token property with multiline default

Post by Purzelkater »


as you know on the "Campaign Properites", tab "Token Properties" we can set default values for properties like "strength:1".
My question is, can we set multline default values too?

Example: I have a list of skills a token can have I would like to store into one token property. If I open the token (doubleclick and swith to tab "Properties") then there a value like

Code: Select all

Skills     Brawl,1
Right now I have an "empty" property "Skills" (without default value) and have to add the skill list manually after I have added the token to the map.
Now I would like to add this list as default value on the campaign settings.

Is this possible?

Kind regards,

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

Re: Token property with multiline default

Post by aliasmask »

JSON objects can store multiple values.

Code: Select all

[H: setProperty("Skills",json.set("{}","Athletics",2,"Brawl",1,"Hide",0))]
Which would show in the property as

Code: Select all

Skills: {"Athletics":2,"Brawl":1,"Hide":0}

Post Reply

Return to “MapTool”