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 .
×

[API] Is thera any way to inline command or public feedback TokenMod ?

1784283500
Yui V.
Pro
Sheet Author
Hi, I was looking at ways to speed up some things, specifically in Cyberpunk Red Solo Mode quick combat. What I was trying to do is to make a macro that: 1- pastes the result of an attack roll into the chat "X shoots! [[result]]" 2- use that same result and put it as the token_name, so that its nametag shows the result. However, It doesn't seem like Token mod has any inline command (something like !token-mod /emas "npc" shoots! [[1d10+@{selected|bar1}]] --set name|$[[0]] ) nor any public feedback/non-silent feature ChatSetAttr has both however it cannot modify token attributes ! AFAIK The tokens I use for this have no attached character sheets anyway and I don't like having one trillion sheets for random mooks. Do you have any idea? Right now I just use a macro for the attack and then use a tokenmod macro to edit the nametag, but it takes time, and I'm doing this for a dozen rolls and tokens each time.
1784286571

Edited 1784287331
Andrew R.
Pro
Sheet Author
I suggest ScriptCards which can do all the things you require: attacks, public outputs, token modification, etc., 
1784393393
timmaugh
Pro
API Scripter
Or, if you already have the TokenMod command, you can put it in a metascript batch command and use the roll for both commands: !{{   ![[1d10+@{selected|bar1}]]   /emas "npc" shoots! $[[0]]   !token-mod --set name|$[[0]] }} (Requires the Metascript Toolbox to be installed.) Though... that seems like a strange TokenMod command... setting the name to the result of the die... roll...? But I trust you know what you want to do.