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

How do I set this macro with this display output to whisper GM or player

1664143493
Zym
Sheet Author
&{template:npcaction}{{rname=Rollin'}}{{description= Rollin' ?{Amount?|1}?{Type|D20|DF|D4|D6|D8|D12|D100} and scoring a [[ ?{Amount?}?{Type} ]] }} /w ?{Whisper|gm|name2|name3|name4|name5}
1664146254
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Zym! Try: /w "?{Whisper|gm|name2|name3|name4|name5}"  &{template:npcaction}{{rname=Rollin'}}{{description= Rollin' ?{Amount?|1}?{Type|D20|DF|D4|D6|D8|D12|D100} and scoring a [[ ?{Amount?}?{Type} ]] }} The quotes around the whisper part are to account for spaces in names. Other wise "/w Bob Johnson" will think you want to whisper "Johnson" to a character named Bob.
1664147709

Edited 1664147715
Zym
Sheet Author
Thanks I will try that out.      Do I set the whisper to the character name or the player name? 
1664148548
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Either one should work.
1664201657
Zym
Sheet Author
Great ! :-) How do I set the "public" roll into that macro?
1664203728
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Little more involved, since now we have to choose whether or not to use "/w". So we put it into the query. Try: ?{Whisper or public|gm,/w gm|name 2,/w "name2"|name 3,/w "name3"|name 4,/w "name4"|name 5,/w "name5"|Public,} &{template:npcaction}{{rname=Rollin'}}{{description= Rollin' ?{Amount?|1}?{Type|D20|DF|D4|D6|D8|D12|D100} and scoring a [[ ?{Amount?}?{Type} ]] }}
1664204204
Zym
Sheet Author
Thank you Mr. Curtis. I will try that out. 
1664205048
Zym
Sheet Author
Thanks a lot . How do I add a modifier to finish it off ? ?{Public roll or whisper roll?|Public|GM,/w gm|Alejandro Donheart,/w "Alejandro Donheart"|Lillia Aesys,/w "Lillia Aesys"|Kalina,/w "Kalina"|Tulwar,/w "Tulwar",} &{template:npcaction}{{rname=Rollin'}}{{description= Rollin' ?{Amount?|1}?{Type|D20|DF|D4|D6|D8|D12|D100} and scoring a [[ ?{Amount?}?{Type} ]] }}
1664207133

Edited 1664207229
Zym said: Thanks a lot . How do I add a modifier to finish it off ? If you want just a straight modifier that can be typed in, this should work. I've also seperated out the queries to make it easier to read. !?{Public roll or whisper roll?|Public, |GM,/w gm |Alejandro Donheart,/w "Alejandro Donheart" |Lillia Aesys,/w "Lillia Aesys" |Kalina,/w "Kalina" |Tulwar,/w "Tulwar" } !?{Amount?|1} !?{Type|D20|DF|D4|D6|D8|D12|D100} !? {Modifier|0} ?{Public roll or whisper roll?} &{template:npcaction} {{rname=Rollin'}} {{description=Rollin' ?{Amount?|1}?{Type} + ?{Modifier} and scoring a [[ ?{Amount?}?{Type} + ?{Modifier}]]}}
1664207538
Zym
Sheet Author
Thank you Jarren. Simple stuff but I need to learn this then I can mix and match script to create even more tools.