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

[PF] Ability command button results sent to GM only (i.e. /w gm)

I wanted to setup a token action for some of my NPCs that would generate ability command buttons for their special abilities. I have something like this setup. /w gm [Thing1](~selected|repeating_racial-trait_$0_roll) [Thing2](~selected|repeating_racial-trait_$1_roll) This works that the command buttons are displayed only to the GM, But when I click on either command button it displays the output to everyone.  I tried adding /w gm to various parts of the ability command button macro. I also think I could setup a chain of macros where I would have a macro that would /w gm the "selected|repeating_racial-trait_$0_roll" and then have another macro call those macros with ability command buttons. But that seems like it could be a lot of work. Is there an easier way to have the output of a command ability button only be sent to the GM? Thanks!
humannumber1 said: Is there an easier way to have the output of a command ability button only be sent to the GM? Unfortunately, no. However, you can emulate Ability Command Buttons quite easily with API Command Buttons . e.g. /w gm [Thing1](!
/w gm %{selected|repeating_racial-trait_$0_roll}) [Thing2](!
/w gm %{selected|repeating_racial-trait_$1_roll})
Just upgraded to pro after this post and ready to dive into the API. I'll check it out. Thanks!
Actually, using API Command Buttons in this way does not require access to the API. (They are still extremely useful for use with the API, however!) The API Command Buttons that I posted should function identically to your Ability Command Buttons, but the outputs will be whispered to the GM.
1466863044
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Human number, it looks like you're using the pathfinder sheet from the ability syntax above. You could just set these NPC's to whisper their results to the GM only.
Scott C. said: Human number, it looks like you're using the pathfinder sheet from the ability syntax above. You could just set these NPC's to whisper their results to the GM only. I do have the NPC Rolls are set to "Whisper GM", but I ran into I couldn't get the NPC rolls to work from the ability command buttons. When I try it gives me an error. Here is an example of an macro  /w gm [Thing1](~selected|repeating_racial-trait_$0_roll) And here it is when it's set to  /w gm [Thing1](~selected|repeating_racial-trait_$0_npc-roll) I could be doing something wrong when calling the NPC roll, but I also noticed that there are no NPC rolls for class features, just feats and racial abilities. So even if I could get NPC rolls missing, it seemed a better solution just to see if I could make an ability command button that output only to the GM and then I wouldn't be limited to what NPC rolls existed on the character sheet. I'm very open to seeing other ways of doing things, so if you have some other idea on how to accomplish this other then the API command buttons, then I'd love to hear about it! Thanks!
humannumber1 said: And here it is when it's set to  /w gm [Thing1](~selected|repeating_racial-trait_$0_npc-roll) Try this: %{selected|repeating_racial-trait_$0_-} Out of curiosity, why are the API Command Buttons not working out for you?
The API Command button works great, I was trying to make sure I understood Scott's post about setting NPC rolls to GMs whisper and if I did, the challenges I had run into. The macro text you posted above works as I would want, but I have no idea how it works. Care to share why that would work? :-) Lastly, in playing around with things more, I found that you can set all PC rolls to GM Whisper also. With that setting I can access all sheet rolls as GM only, Along with API Command buttons I can't imagine a scenario that I couldn't handle.
1466879971

Edited 1466880321
I just followed these steps to acquire the name of the Ability call corresponding to npc racial traits. Upon closer inspection, it appears that the roll buttons for npc racial traits are improperly named .
This is excellent stuff. thanks.
I moved this thread to the Character Sheet forum and tagged it; hopefully a sheet author will stumble across it. :)
1466887856
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I believe this is getting fixed in the next update, but until then, you can go into the NPC's char sheet and set PC whisper state to GM only, then use the default abity areas to input your features.
1467042664

Edited 1467042677
chris b.
Pro
Sheet Author
API Scripter
ugh there is an = missing between name and "attr_npc-roll" Luckily Phil hasn't merged yet so i was able to get the fix into the next build. so it should be live in a few days.