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

Show token actions for custom parameter in character sheet

Hello everyone, I just recently began to learn the features of custom character sheets. So far, I've made a custom initiative based on the d6 die, which in the HTML shows up as: Init <input type="text" name="Init""/> <button type='roll' value='/roll @{Init}d6 &{tracker}' name 'Init'>Init</button> Tell me, is it possible to display this button at the top of the screen when a token is selected, as is done with a macro with the "Show as Token Action" parameter? What to add to HTML for such display?
I tried something similar once, but didn't find a solution
1688308292
GiGs
Pro
Sheet Author
API Scripter
There is a way to set abilities as token actions, but once you do, there's no way to disable them. they are always on for a token linked to a character. So, its generally not a good idea to use that function - it takes choice away from the players. I can't remember what the setting is, as I've never used it, but it'll be listed in the wiki.
1688308423

Edited 1688308686
Andreas J.
Forum Champion
Sheet Author
Translator
You can hardcode token actions to a character sheet: <a href="https://wiki.roll20.net/Button#Token_Action" rel="nofollow">https://wiki.roll20.net/Button#Token_Action</a> It's not usually done as you need to edit the sheet to remove the actions from tokens if you don't want them, but for a custom game it probably makes sense if you only do it for init &amp; maybe at most a few more that are player-centric. Hardcoding GM-only rolls at least doesn't make sense as they would clutter up token actions for players too.
Thx. Solved through the problem:&nbsp;class="tokenaction"