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 certain parts of a roll template to GM?

1428094888
Kryx
Pro
Sheet Author
API Scripter
Hi, I'm trying to modify a sheet to allow certain parts of a roll template to be whispered to the GM. Based on the recent changes it looks like all text in variables is parsed. Example: "/me Goblin attacks with his Dogslicer (Scimitar)" used to emote, now it prints it out as it is written. I've tried inserting "/w gm 123" inside the roll's value at the end, beginning, etc, but it looks like the roll template eats all of it. However having a "/w GM " at the beginning of my template allows the template to whisper the gm the result. Is there any solution here, or must it be another button?
1428098481
Lithl
Pro
Sheet Author
API Scripter
Roll templates are all one message. You can't whisper one part of the template to one person and broadcast the rest to everyone. You could create a macro which uses several roll templates (or the same template multiple times), and whisper one or more of them: &{template:default} {{name=Example}} {{Attack=[[1d20+5]]}} /w gm &{template:default} {{Spell Save DC=15}} &{template:default} {{Damage=[[2d8+3]]}}
1428098854

Edited 1428098930
Kryx
Pro
Sheet Author
API Scripter
Brian said: You could create a macro which uses several roll templates (or the same template multiple times), and whisper one or more of them: &{template:default} {{name=Example}} {{Attack=[[1d20+5]]}} /w gm &{template:default} {{Spell Save DC=15}} &{template:default} {{Damage=[[2d8+3]]}} How about a roll in html? Splitting it up into hidden inputs didn't help. :( <input type="hidden" name="attr_npc_attack_roll_1" value="@{output_option} &{template:5eDefault} ***CODE****"> <input type="hidden" name="attr_npc_attack_roll_hidden_info_1" value="/w gm hello"> <button type="roll" class="sheet-roll" name="roll_npc_attack" value="@{npc_attack_roll_1} @{npc_attack_roll_hidden_info_1}">Attack</button>
1428395202
Kryx
Pro
Sheet Author
API Scripter
Had a breakthrough this morning - you can actually break line in the html and it will whisper after a template. Example: <button type="roll" class="sheet-roll" name="roll_npc_attack" value="@{npc_attack_roll_1} @{npc_attack_roll_hidden_info_1} /w gm helloooooo">Attack</button> :)
1428467976
Falcon
Pro
Sheet Author
Yep - I do it on my roll templates
1428468187
Falcon
Pro
Sheet Author
What would be awesome though is if you can ask the GM questions on a macro or roll template. For example: Roll Perception check (macro here) in the macro ask the /w gm ?{secret modifier} doesn't work - I tried it. You can't as a question to a GM in a macro being ran by another player. Too bad