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

Assign Information to Dots

Heylo and thank you for the help.  I am seeking to assign either a note or a dialogue box when a dot is applied to a token.  For example one of my players has Bless, I use the yellow dot added to a players token to signify that they have this buff. I am trying to find a way to automatically add the info that yellow dot is equal to. Either through macros or an API. Thank you again Cheers
1698931780

Edited 1698931795
How are you adding the Yellow status marker? If you use TokenMod, you could add the Yellow status marker and also add a Tooltip at the same time: !token-mod --set show_tooltip|on statusmarkers|yellow tooltip|"?{What information do you want to add to the tooltip?|Information that goes with the Yellow status marker}" Or you could make it a toggle: !token-mod --flip show_tooltip --set statusmarkers|!yellow tooltip|"?{What information do you want to add to the tooltip?|Information that goes with the Yellow status marker}"
Awesome Jaren, thank you for the information.  I have Tokenmod but am not very well versed in its use. I was just clicking and assigning the dot to the tokens then placing the buffs/debuffs on the Turn Order tracker. 
1698933140

Edited 1698933169
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Colormage! If the conditions you are adding are standardized (specific condition for specific dot), you could look at the Condefinition script. Among other things, it can interpret and report on the token markers on a character and display those notes to you or you and your players.
Hey Keithcurtis, thanks a lot for the reply!    I am running Pathfinder and using the community sheet.  I am using Statusinfo for the symbols (debuffs) but I am looking to set up a way that when I assign a color dot to a token it gives an option (drop down box) as to what buff that player is getting. Your Condefinition probably relates to this but I am a bit lost.
1698939848
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Ah, I should have asked. A lot of the automation is pretty tied to the 5e sheet. The condition reporting should still work, but the roll template monitoring  would be lost. I have not tested it on that sheet, so I can't safely recommend it.
This is great!  Definitely going to use this. Jarren said: How are you adding the Yellow status marker? If you use TokenMod, you could add the Yellow status marker and also add a Tooltip at the same time: !token-mod --set show_tooltip|on statusmarkers|yellow tooltip|"?{What information do you want to add to the tooltip?|Information that goes with the Yellow status marker}" Or you could make it a toggle: !token-mod --flip show_tooltip --set statusmarkers|!yellow tooltip|"?{What information do you want to add to the tooltip?|Information that goes with the Yellow status marker}"
Apologies, I am still not sure where the Token-mod info goes. Jarren sent me a private reply as well.   I am using the Pathfinder Community sheet. It allows on the final tab of the sheet to place macros linked to the token or just be on the screen as a radio button at all times. What I need to figure out is from your original reply on the forum about the yellow dot etc. How would I go about creating that.  So let's say I want the yellow dot to = Bless     the info section would read +1 to AC, Saving throws and Attack.  How would that go?   I am sure the instructions for Tokenmod explain it but I wasn't following the --help section Thanks 
Is this your first time using a Mod script?   Have you installed TokenMod? (That happens outside of the game, on the Mod (API) Scripts page .) Once TokenMod is installed, you can select a token and paste the command I showed above into chat and it should work to add a Yellow Dot status marker and a tooltip to the token. (The tooltip will then show up when you hover your mouse over the token.) You can't change the name of the Yellow Dot to be bless. But you can use the other standard Status Markers, such as 'angel-outfit' to represent specific statuses if you prefer. Here's what the command would look like if you paste it into the chat window to add the 'Angel Outfit' status marker and your text to the Tooltip: !token-mod --set show_tooltip|on statusmarkers|angel-outfit tooltip|"+1 to AC, Saving throws and Attack" If you select a token and put that into the chat window, then the token will get the 'Angel Outfit' status marker and the tooltip will get that text. If that works and you want to turn it into a macro, then go to your Collections tab on the right sidebar, click on '+ Add' macro button, and paste that into the main window, and then give the macro a name such as 'Bless'. Then click on the 'Show as Token Action' button and save the macro.  Then click on a token and you should see the 'Bless' Token Action show up, and if you click on it, then  the token will get the 'Angel Outfit' status marker and the tooltip will get that text.
No not my first time, just have never used the Tokenmod API beyond installing it.  What I didn't follow was where to put the script info but I follow now, it goes in chat.  Thanks for your help Jarren
1698969176

Edited 1698969207
Andrew R.
Pro
Sheet Author
Just a suggestion, but  I put all these status effect uses of token-mod into Abilities of a Macro Mule and then set them to show along the bottom of the screen ready to use.  I have them for every 13th Age condition, and it makes consistent token marking easy. 
Colormage said: No not my first time, just have never used the Tokenmod API beyond installing it.  What I didn't follow was where to put the script info but I follow now, it goes in chat.  Thanks for your help Jarren Ah, that makes sense. I'm glad you've got it going. :) In addition to what I said above about using other default status markers, you can also use custom status markers ( here's an example of what I use ). And if you end up having a lot of status markers to adjust, you may want to change to a Chat Menu instead of individual macros for each status. You can see my previous Chat Menu in the same thread here . It would be pretty easy to add the token Tooltip toggle portion to those commands. My current status marker chat menu is very similar, but uses the same custom status marker images instead of text. When each image is hovered over by the mouse, the tooltip shows the name of the status as well.  But this approach is honestly ridiculous for the amount of work to set up. :) 
Andrew R. said: Just a suggestion, but  I put all these status effect uses of token-mod into Abilities of a Macro Mule and then set them to show along the bottom of the screen ready to use.  I have them for every 13th Age condition, and it makes consistent token marking easy.  Thanks for the reply Andrew.  That is a clever idea. 
Jarren said: Colormage said: No not my first time, just have never used the Tokenmod API beyond installing it.  What I didn't follow was where to put the script info but I follow now, it goes in chat.  Thanks for your help Jarren Ah, that makes sense. I'm glad you've got it going. :) In addition to what I said above about using other default status markers, you can also use custom status markers ( here's an example of what I use ). And if you end up having a lot of status markers to adjust, you may want to change to a Chat Menu instead of individual macros for each status. You can see my previous Chat Menu in the same thread here . It would be pretty easy to add the token Tooltip toggle portion to those commands. My current status marker chat menu is very similar, but uses the same custom status marker images instead of text. When each image is hovered over by the mouse, the tooltip shows the name of the status as well.  But this approach is honestly ridiculous for the amount of work to set up. :)     This didn't work sadly, I posted the script in chat and it vanished but the angel icon didn't change, the buff info didn't display when it was assigned to a token. I am not sure why that is.  Thanks for your help all
1699117893
timmaugh
Forum Champion
API Scripter
Double check that you don't have a soft-crash of your sandbox by rebooting it from the main tab of the Mod screen. The command Jarren shared should see a status marker named "angel-outfit" being added to the selected token, and it should see the explanatory text added to the tooltip (which you would obviously only see if you hovered over the token). If you're not seeing the status marker change, it's probably either that you have a crashed sandbox, no status marker named "angel-outfit" (and seeing as "angel-outfit" is one of the default markers, I find that highly unlikely), or another script potentially interfering (again, unlikely). If a reboot of your sandbox doesn't fix it, post back with the scripts you have installed, the actual command line you're running, and a screenshot of your game at the time the command is entered into chat. That might help us zero-in on what is going wrong.
Will do.  Thank you for the help.