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

Mod that Handles Token Markers (only)

I'm looking for a utility to make applying and removing token markers a better experience.  Primarily I'm looking for something that will show available markers (with it's name) in a chat menu, with a button to toggle the marker for the selected token. I like a lot of what Combat Master does related to status markers (including their use for conditions, with countdowns, etc.) but I don't need (or want) all the other things that come with that script. I can create a basic chat menu myself which I think will get the job done.  But I was hoping that someone had developed a more elegant (and potentially more powerful) solution. This is for D&D 5e games, so if anything has been written to handle the various 5e conditions with custom token markers that would likely do what I need. Thanks in advance for your advice/solutions!
I think Condefinition might be just what you are looking for. It might be a little more  than you're looking for, but if you're just looking to toggle status markers it can do that. If a text appears in chat that matches a status, then the GM will get a button to be able to toggle that status for a token. Or the GM can use !condef-all to list all available statuses that are listed in the script.
1688148288

Edited 1688148336
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Take a look at Condefinition . It might do more than you want, too, but it presents you with a menu of markers to assign, based on cues in the roll template. Ex. if "Make a Constitution Saving throw or become paralyzed" appears in the text, it will offer you a button to assign the Paralyzed marker. It will also present you with a button to allow the selected token to roll the appropriate saving throw. Finally, the buttons presented will also allow you to send the condition definition to the chat, either as a gm whisper, or publicly. Edit: Sniped by Jarren. :)
Thanks for the quick reply.  I've installed Condefinition but it doesn't seem to be working for me.  I was pleased to see that the menu with all conditions appears.  However I couldn't get the custom token markers I have installed to be included.  Putting in  Poisoned;;243682 for example, didn't register.  I still get an empty symbol in the menu. Additionally, I tested the other functionality by rolling a dire wolf attack and it didn't pick up the saving throw for the Prone condition. I'll keep messing around with it, but at this point I'll probably just write my own chat menu to better handle the simple task of toggling token markers from a better menu than the radial menu that Roll20 delivers.
1688254825
Andrew R.
Pro
Sheet Author
I just have a TokenMod macro per 13th Age condition and have a row of buttons along the bottom of my screen. I simply select tokens and click the button. This has served me well since 2015. 
1688255491
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Scott P. said: Thanks for the quick reply.  I've installed Condefinition but it doesn't seem to be working for me.  I was pleased to see that the menu with all conditions appears.  However I couldn't get the custom token markers I have installed to be included.  Putting in  Poisoned;;243682 for example, didn't register.  I still get an empty symbol in the menu. Additionally, I tested the other functionality by rolling a dire wolf attack and it didn't pick up the saving throw for the Prone condition. I'll keep messing around with it, but at this point I'll probably just write my own chat menu to better handle the simple task of toggling token markers from a better menu than the radial menu that Roll20 delivers. Did you install libtokenmarkers? I should really go over the documentation on that post. The script evolved as the thread progressed.
1688262999

Edited 1688263031
Did you install libtokenmarkers? ::face-palm-emoji:: I read that requirement in the documentation, just *assumed* I already had it loaded as part of another script.  Oops.  I added it and now I see the custom token markers. However, the script still isn't working.  I tried using  Poisoned;;243682  or  Poisoned::243682  (the documentation wasn't clear to me as to whether the requirement for semicolons had been lifted or not).  In either case the token marker appears in the menu.  But when I hover over the button, only when I used semicolon does a command appear; when I use colons it doesn't.  But the command that is run with the semicolons (  !condef-toggle Poisoned;;243682 ) gets no response and no change when I have a token selected.  If I don't have a token selected, I get a message No token is selected. Click here to pick a target. And clicking on that button, selecting a target token DOES apply the condition. So I learned: You really do have to install libtokenmarkers if you're using custom markers (duh) You still have to replace the colons with semicolons in the token marker "address" The menu doesn't work (for me) when a token is selected The menu does work when a token is targeted. The other functionality still isn't working (I tested the Dire Wolf bite attack and a Ghoul claw attack and neither shows the buttons for saving throw). Thanks for your help, Keith.
1688270513
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I should have some time tomorrow to look into this. Another user reached out with an issue, as well.
1688424810
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I have gone over it and fixed a lot of code. I also got the Aaron's help on a token-mod issue that was preventing token markers from being assigned (still haven't figured out why this works in my own campaign but not in others. Probably a meta script somewhere). New code is  here . Changes: Tokenmarker IDs no longer needed. You can just use the name. The code "ships" with choices made for the standard set. Dependent Scripts: Token-Mod (Run !token-mod --config players-can-ids|true for maximum usefulness) LibTokenMarkers Recommended Scripts Group Check Apply Damage ( manual install ) It still could use some polish, but when it is done, I will create a new thread and add a redirect to the old.
Thanks for your work Keith, it's all working well for me. I had been using the autobuttons mod, and in documentation I think you said Condefinition isn't (yet) built to integrate autobuttons.  But does that mean installing condefinition will make autobuttons no longer work at all?  That seems like the case in my game.  In any case I'm going to try out the Apply Damage mod as you recommend. I assume you updated the old Condefinition post to include the updated code?
1688700753
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hmm. I run both in my campaign. They should run separately; what is not working? If you disable condefinitions, does autobuttons work? And yeah, the code link goes to the latest version. The link always points to the latest version in the repo.
Thanks for confirming so quickly that they should work together.  I just went to another campaign and have no problem getting autobuttons to run with condefinition, so it's just an issue with the one campaign and probably not related to Condefinition. I am getting an error in the console log Failed to load autoButtons No such file or directory @ rb_sysopen - /code/apiscripts/autoButtons/0.7.0/autoButtons.js I even deleted the script and reinstalled it, same error. I'll go through the standard debug steps (uninstall each mod, etc.) and see if I can figure out the issue.  If it persists I may post a question just related to autobuttons. Thanks again for your help.
1688707067

Edited 1688707084
Closing the loop: I figured out my autoButtons issue.  The autoButtons 1-click isn't working (it's noted about 4 months ago in the autoButtons forum post ).  Replacing it with the latest github version found there fixed the problem.
1688708392
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Excellent!
1688739946
The Aaron
Roll20 Production Team
API Scripter
I just sent a pull request to fix that 1-click issue.