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

Concentration API Question

1659637553

Edited 1659638074
Hey all, playing around with the Concentration API. I don't use the standard status marker set (I use one of Keith's), and the configuration of this API seems to be looking at the standard set. Does anyone know if there is a way to tell the config which icon to use for concentration? I'm not a "code guy," but it looks like it's hard-coded, so presumably I would have to: Delete the script I added from mod library Create a new script Copy in all of the script code, but replace the hard-coded list of markers with a hard-coded list matching the names of my markers. Or, at least the one name of the marker I want to use. Sound about right? Thanks!
Well, I tried the above, and so far no love. I was able to get the configuration menu to show my re-hard-coded set of status markers (using just the colors plus "Concentrating"), but when I execute the macro it doesn't apply any status marker, so it's not finding the right one. I'm not sure if it's because it's expecting a certain number of values, or whether perhaps the name I entered isn't matching up with a filename or something somewhere... Advice welcome. :)
1659638591
David M.
Pro
API Scripter
Note that for custom statusmarkers to be recognized by the api, both the name and number of the marker must be used. Example: "Concentrating::12345" (note the double colon). The easiest way to find these name/number pairs is to open up your token-mod help handout and scroll to the status marker section. They will all be listed in there.
<a href="https://app.roll20.net/forum/post/10058621/concentration-script-with-custom-marker-issue" rel="nofollow">https://app.roll20.net/forum/post/10058621/concentration-script-with-custom-marker-issue</a> <a href="https://app.roll20.net/forum/post/8590064/concentration-and-new-token-markers" rel="nofollow">https://app.roll20.net/forum/post/8590064/concentration-and-new-token-markers</a> <a href="https://app.roll20.net/forum/post/9114783/script-errors-from-concentration-script/?pageforid=9116511#post-9116511" rel="nofollow">https://app.roll20.net/forum/post/9114783/script-errors-from-concentration-script/?pageforid=9116511#post-9116511</a> <a href="https://app.roll20.net/forum/post/8538146/concentration-and-the-new-token-markers/?pageforid=8538353#post-8538353" rel="nofollow">https://app.roll20.net/forum/post/8538146/concentration-and-the-new-token-markers/?pageforid=8538353#post-8538353</a> I'm guessing you need to add the custom status marker identifier numbers or something. Or you can use the alternate Concentration scriptlet in the 3rd link I have there.
Yeesh, I need to work on my search skills, sorry. David, I expect what you wrote was the key, but if that doesn't work I'll go through the links Jarren provided. Thanks guys!&nbsp;
Worked like a charm, thanks again guys!&nbsp;