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

ChatSetAttr, Transmogrification, and NPC General Options

1715359357

Edited 1715359539
Deleted an earlier post about losing ability to whisper on/off. After some experimentation I've confirmed ChatSetAttr fails to update an NPC sheet's General Options if the sheet is transmog'ed from another game. I'm interested in toggling whisper to gm on/off: !setattr --sel --silent --wtype|'/w gm ' !setattr --sel --silent --wtype|'' It only works if I drop in a new NPC sheet from the compendium. This is undesirable because over the years I've built a library game full of a few hundred NPC sheets from the compendium, added token actions, modified with custom art, or similar. The goal is efficiency. I make new games and I can quickly pull those NPCs sheets from the library game rather than repeat the process of pulling new sheets from the compendium, adding token actions, etc.  If this is a known issue then I'm stuck if I want to continue using the whisper option.
1715361306
timmaugh
Forum Champion
API Scripter
If you double click the token, then click "Open Character Sheet," does the sheet open? If you put text in the @{wtype} attribute manually, make sure the token is selected, and then run: @{selected|wtype} ...does the text you input report to the chat? After doing these things, if you run the command: !setattr --sel --silent --wtype|'/w gm ' ...does the attribute update? If it's still not working, make sure you get a proper return from running this command: @{selected|character_id} If the character's ID reports to chat, copy it and substitute it into the line, below: !setattr --charid ***CHARACTER ID HERE*** --silent --wtype|'/w gm ' If that works, then there is something different about the connection between token and character sheet after having transmogged... but you might still be able to agnosticize your line to be: !setattr --charid @{selected|character_id} --silent --wtype|'/w gm ' If none of that works, report back with your findings and we can figure out the next steps to try.
1715361878
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Also, if you are unfamiliar working with Roll20 ids, that hyphen at the beginning is part of it.
1715362851

Edited 1715363123
If you double click the token, then click "Open Character Sheet," does the sheet open? If you put text in the @{wtype} attribute manually, make sure the token is selected, and then run: ...does the text you input report to the chat? After doing these things, if you run the command: ...does the attribute update? @{selected|wtype} !setattr --sel --silent --wtype|'/w gm ' Imported another sheet. Double click on token and open character sheet from there. General Option is set to Never Whisper Rolls. In wtype it is /w gm. I run an action and it is public. I use ChatSetAttr to toggle back and forth and can see wtype change from /w gm to blank. But when I run the action each time it remains public.  If it's still not working, make sure you get a proper return from running this command: @{selected|character_id} If the character's ID reports to chat, copy it and substitute it into the line, below: !setattr --charid ***CHARACTER ID HERE*** --silent --wtype|'/w gm ' !setattr --charid -M_HhfJPnyrrV3DvsdO1 --silent --wtype|'/w gm ' Didn't work.   If that works, then there is something different about the connection between token and character sheet after having transmogged... but you might still be able to agnosticize your line to be: !setattr --charid @{selected|character_id} --silent --wtype|'/w gm ' If none of that works, report back with your findings and we can figure out the next steps to try. Tried this too but unfortunately same result: a public roll. I want to note in the past I set the library game's default setting to various whisper values and applied default settings but no resulting change in the General Options of the sampled sheets. Then did the same with the new game's settings and applied to imported tokens.
1715364839
timmaugh
Forum Champion
API Scripter
Johnny Smith said: !setattr --charid -M_HhfJPnyrrV3DvsdO1 --silent --wtype|'/w gm ' Didn't work. Just to be clear, "success" for all of these intermediate steps is not that they produce a whispered output, but that they do the thing they should do, themselves . The above ChatSetAttr line should only fill the wtype attribute to contain the text "/w gm ". It seems that like is working because elsewhere you say: I use ChatSetAttr to toggle back and forth and can see wtype change from /w gm to blank.  So the CSA command is doing what it should, but there's another setting that isn't working for the transmogged sheets (a "Never Whisper Rolls" setting). So that we can investigate further, what sheet are you using? (Please be specific as to the name, including a screenshot if necessary.) Also, when you say: General Option is set to Never Whisper Rolls. ...where are you setting this? On the individual character sheet, or in a Game Setting? (If it's a game setting, CSA will not be able to change that. In fact, having the game set to "Never Whisper Rolls" might preclude the ability to later whisper, exactly like you're seeing.) Finally, what is the command you are trying that is turning out to be a public roll? If you don't know the actual text, you can click the button from the sheet, then hit the up arrow to see what was processed through chat. Copy all of that and paste it, here. If the command line references the characters @{wtype} attribute, and if the character's @{wtype} attribute currently has the text "/w gm " in it, then that text should make it to the chat, full stop.
1715367617

Edited 1715368155
Sorry let me clarify. An NPC sheet has one of three values for Whisper Rolls to GM. It is set in Default Sheet Settings (and can be updated in game) OR set individually in the sheet.  Default game setting: NPC sheet General Options: In an individual sheet's Attributes and Abilities,  wtype field those values can be toggled to one of the three values above: My experience has been (and going through your diagnostic steps) that if a sheet is freshly pulled from the compendium, I can use CSA to toggle whisper on/off and watch it do so in the wtype field AND the sheet's General Options.  If I transmog a sheet from my library game and use CSA to toggle, wtype updates but General Options does not. Chat output is tied to what's in General Options. I've experimented with changing the Default game settings and updating all tokens to get around this limiting behavior but that's not working either. For commands, typically it's an attack roll or trait (via Token Action Maker). Here's an example sheet imported from my library game:  %{Archmage|repeating_npcaction_-MZHhfYj6KrIN8U3FStA_npc_action} This is from an NPC sheet imported from the compendium after making token actions for it (renamed previous archmage to "_old"): %{Archmage|repeating_npcaction_-NxYr1BeKCuowYIKgg-q_npc_action} I experience the same behavior. I can toggle whispering for the sheet imported from compendium but not for the sheet imported from my library game via transmogrifier.
1715369080
timmaugh
Forum Champion
API Scripter
OK, that does help to clarify things. That is sounding like a sheet/Roll20 thing, so let me see if I can direct eyes at this thread. Just to be perfectly clear, though... this looks like the 5E by Roll20 sheet... but can you confirm that?
1715369959

Edited 1715369991
Yessir! (or ma'am)
1715370320
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Johnny Smith! I cannot duplicate. The drop down in General Options toggles for me with  !setattr --sel --silent --wtype|'/w gm ' and !setattr --sel --silent --wtype|'' as expected. This is on both PC and NPC sheets, freshly transmogrified. Is it possible you have duplicate characters in your game? An identically named sheet can cause unexpected results. Check your in-game archive.
No, Keith, not in this case. The new game has only one NPC sheet (a "Commoner") and experimenting with that sheet is when I noticed the issue. I later tested with two Archmage sheets (one from my library and the other from the compendium) with the results above. I did rename the first archmage sheet before continuing testing.
Tested a few different NPC sheets from my library game. Any sheets from my library game will not update the NPC General Options whisper via CSA. Also created a new game, imported an NPC from the compendium and then transmogrified that character to my new game. Its whisper mode updates just fine. Sounds like I need to submit a ticket and see if there's any fix for the library game's sheets. 
1715444215
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If you open the library game directly (and install CSA there), can you affect the resident characters? I.e. could it be an issue with the library game itself, and not the Transmogrifier?
1715461334

Edited 1715507758
No I can't. It's the library game itself that seems to be the problem. Characters that come from it cannot have their whisper mode toggled via CSA. This is a problem for me since this game has hundreds of NPC sheets I've updated over the years.
1715479972
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Can the whisper setting be enforced in the library campaign through the normal means (set campaign setting out-of-game, Apply Default Settings in-game)?
I tried that approach too and the sheets in the library game are unchanged. Seems the only way to update whisper is to do it manually.
1715519858
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Just checking to make sure: When applying defaults in-game, did you wait for the progress bar to finish? It is thin and easy to miss.
1715529305

Edited 1715529344
Gauss
Forum Champion
Hi Johnny Smith,  Are you using the D&D 5e by Roll20 character sheet?  If so, is your advantage/disadvantage set to toggle on the NPC sheets?
keithcurtis said: Just checking to make sure: When applying defaults in-game, did you wait for the progress bar to finish? It is thin and easy to miss. Yes, progress bar was completed.
Gauss said: Hi Johnny Smith,  Are you using the D&D 5e by Roll20 character sheet?  If so, is your advantage/disadvantage set to toggle on the NPC sheets? Yep, the 5E sheet and advantage set to always roll.
1715614498
Gauss
Forum Champion
Johnny Smith said: Gauss said: Hi Johnny Smith,  Are you using the D&D 5e by Roll20 character sheet?  If so, is your advantage/disadvantage set to toggle on the NPC sheets? Yep, the 5E sheet and advantage set to always roll. So Advantage was not set to Toggle? In that case that eliminates that bug.