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

Linking a macro to a token bauble

Is it possible to link a macro to a token 1st bubble? For example I want to make a token macro where I can roll the health of an enemy when put on the table. I did this with /gmroll @{selected|npc_hpformula} and then show it as a token action so I just have to click it. And now I want the result of that roll shown in the first bubble of that token. So I dont have to manually input every number. Thanks in advance!
That can be done using API scripts as a pro user but the macro system can not set token/character attributes itself.
1589773466
Oosh
Sheet Author
API Scripter
As Axecleft says, API is the only way to write values without manual input. If you want to avoid slowing down play, roll a bunch of the mooks before the session and lump them up on the GM layer somewhere, or on a token page. Then just copy-paste how many you need during the session. Just remember not to have bar1 linked to the NPC sheet HP, or it'll change all the tokens to match the most recent one you edited.
Ok thanks for the answer!