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

Query Value for ChatSetAttr

So I am going to be running a Gestalt game using the Shaped 5e sheet but had some issues with the proficiency bonus as gestalt levelling is weird, I found a solution to this by using ChatSetAttr by running a macro like this !setattr --name Vrin --level|3 !setattr --name Vrin --pb|2 !setattr --name Vrin --pb_display|2 I can make the sheet think the character is level 3 and the PB is 2, what I am trying to figure out is if I can set this up so when I run the macro I can have it query for the desired level and pb rather than having to manually change it each time, any help on this would be apricated. Additionally anyone know how to make a sheet check itself for updates as right now when I run my macro I need to deselect and reselected something in every section of the sheet to make it check for the updated value.
If you want to prompt for input, you can use roll queries for this and also ChatSetAttr can handle multiple changes in a single line: !setattr --sel --level|?{Level?} --pb|?{PB?} --pb_display|?{PB?} That does assume that you want pb and pb_display to be the same value. As for the sheet, I'm not familiar with the Shaped 5e sheet but I think by default ChatSetAttr sets attributes with sheet workers when possible. You can confirm that setting with !setattr-config to see if useWorkers is ON, which it should be.
Joshua N. said: If you want to prompt for input, you can use roll queries for this and also ChatSetAttr can handle multiple changes in a single line: !setattr --sel --level|?{Level?} --pb|?{PB?} --pb_display|?{PB?} That does assume that you want pb and pb_display to be the same value. As for the sheet, I'm not familiar with the Shaped 5e sheet but I think by default ChatSetAttr sets attributes with sheet workers when possible. You can confirm that setting with !setattr-config to see if useWorkers is ON, which it should be. Hey, thanks for the help, got my macro working perfectly now and putting it into one line has made it a lot easier for setting up. useWorkers is on so not sure what's causing the issue, been trying to look through the sheets documentation but came up with nothing, might just be something I have to live with.