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] [D&D5e by Roll20] need to insert line breaks into an attribute

1661050939

Edited 1661050991
I'm trying to use ChatSetAttr v1.10 to quickly update a starship statblock using the D&D 5e by Roll20 character sheet. Getting my google sheet formula to output the command for me to copy/paste is working, but I have run into a formatting snag. My ships have damage thresholds that must be overcome in order to disable a system (like hyperdrive, engines, power plant etc.) I display these on the sheet using repeating_npctrait_$2. I need it to look like this: System Thresholds. 40 Life Support 40 Sensors 40 RCS Thrusters 40 Engines 40 HyperDrive 70 Weapons 30 Power Plant 40 Comms But when I enter !setattr --name Test Ship <other attributes, which all work fine> --repeating_npctrait_$2_description|40 Life Support 40 Sensors 40 RCS Thrusters 40 Engines 40 HyperDrive 70 Weapons 30 Power Plant 40 Comms I obviously get: System Thresholds. 40 Life Support 40 Sensors 40 RCS Thrusters 40 Engines 40 HyperDrive 70 Weapons 30 Power Plant 40 Comms Is there any way for me to force ChatSetAttr to put line breaks inside  repeating_npctrait_$2_description without breaking the syntax? My weak google skills turned up something about \n as a planned solution to this, but that was four years ago and it doesn't seem to work when I try it. Any other form of line break I can find just ends the command and dumps what's left into the chat. I know I'm going to need to do this for a few other attributes as well, so just formatting it differently isn't an option. I appreciate any assistance.
1661063925
vÍnce
Pro
Sheet Author
Try adding %NEWLINE% !setattr --name Test Ship --repeating_npctrait_$2_description|40%NEWLINE%Life Support 40%NEWLINE%Sensors 40%NEWLINE%RCS Thrusters 40%NEWLINE%Engines 40%NEWLINE%HyperDrive 70%NEWLINE%Weapons 30%NEWLINE%Power Plant 40%NEWLINE%Comms
vÍnce said: Try adding %NEWLINE% !setattr --name Test Ship --repeating_npctrait_$2_description|40%NEWLINE%Life Support 40%NEWLINE%Sensors 40%NEWLINE%RCS Thrusters 40%NEWLINE%Engines 40%NEWLINE%HyperDrive 70%NEWLINE%Weapons 30%NEWLINE%Power Plant 40%NEWLINE%Comms This appears to work! Thanks for your assistance!