Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Status Markers "counters"

I know that you can add a counter to any status marker, but is there a way to read back what status markers are affecting a token and what the "counter" is?
1658937945

Edited 1658946778
David M.
Pro
API Scripter
Possible with scriptcards !script {{ --#title|Status Markers --&statusmarkers| --:GET CURRENT STATUS MARKERS ON TOKEN| insert into array called markersArr --~|array;statusmarkers;markersArr;@{selected|token_id} --~thisMarker|array;getfirst;markersArr --?"X[&thisMarker]X" -eq"X"|SKIP --:LOOP| -->AppendStatusMarkerString|[&thisMarker] --~thisMarker|array;getnext;markersArr --?"X[&thisMarker]" -ne "XArrayError"|LOOP --:SKIP| --?"X[&statusmarkers]" -eq "X"|&statusmarkers;None --+Current Markers|[&statusmarkers] --X| End Macro --:AppendStatusMarkerString| accepts a marker string, will append to statusmarkers as comma-delimited list --?"X[&statusmarkers]" -eq "X"|[ --&statusmarkers|+[%1%] --]|[ --&statusmarkers|+, [%1%] --]| --<| }} EDIT - The above method might be overkill. Really more useful if you want to do something further with individual statusmarkers like adding conditionals. If you just want to print a list, then this shorter scriptcard will do: !script {{ --#title|Status Markers --~|array;statusmarkers;markersArr;@{selected|token_id} --~statusmarkers|array;stringify;markersArr --?"X[&statusmarkers]" -eq "X"|&statusmarkers;None --+Current Markers|[&statusmarkers] }}
1658938082
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If you just want to see it, Reporter can do that: !report --t|statusmarkers If you want to use the number in a formula, one of Timmaugh's meta scripts can probably handle that. The latest versions of Scriptcards is another possibility.
1659414469
Victor B.
Pro
Sheet Author
API Scripter
Not sure why they aren't saying this but status marker is another dead script for years.  Perhaps you can make it work with David's suggestions.  But otherwise upgrade to something else.  There's turn tracker and combat master.  Combat master has integrated former status marker into it.