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

Long Rest Macro

I recently saw an older forum post for a long-rest macro utilizing ChatSetAttr api script, but when I tried to implement it I noticed it wasn't actually resetting the hp and I didn't like the look of the output. I updated the macro to include the command to reset hp as well as changed the output template to npcaction vs. atk. Orig credit to Mark R. here&nbsp; <a href="https://app.roll20.net/forum/post/5338392/how-to-take-a-long-rest-w-slash-5e-ogl-by-roll20" rel="nofollow">https://app.roll20.net/forum/post/5338392/how-to-take-a-long-rest-w-slash-5e-ogl-by-roll20</a> .&nbsp; !longrest @{selected|character_name} !setattr --silent --sel --hp|@{selected|hp|max} !setattr --silent --sel --class_resource|@{selected|class_resource|max} !setattr --silent --sel --other_resource|@{selected|other_resource|max} &amp;{template:npcaction} {{name=@{selected|character_name}}} {{rname=Long Rest}} {{description=Reset HP, Spell Slots, @{selected|class_resource_name}, @{selected|other_resource_name}}} Per Mark's orig post, you can add the below if you're utilizing add'l resources. !setattr --silent --sel --repeating_resource_$0_resource_left|@{selected|repeating_resource_$0_resource_left|max} !setattr --silent --sel --repeating_resource_$0_resource_right|@{selected|repeating_resource_$0_resource_right|max} Add below to template:npcaction @{selected|repeating_resource_$0_resource_left_name} @{selected|repeating_resource_$0_resource_right_name}
1593120635
Magnar S.
Pro
API Scripter
As an alternative for Pro users, you can try this script that will handle long and short rests for you:&nbsp; <a href="https://github.com/magnars/roll20-scripts" rel="nofollow">https://github.com/magnars/roll20-scripts</a> &nbsp;:-) I am currently waiting for it to become available in the script dropdown, but pasting it into the scripts works for now.
Oh nice, thanks! I realized after posting this that the macro also didn't have the commands to reset spell slots so looking back, I don't really understand what the orig post was accomplishing (no disrespect). I was working on updating further so I could re-post as complete, but I'll check this out instead!