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

[Script] Resting in Style

I'm not sure I can argue it any better than I already have.  It's a question of whether or not the DM should have the flexibility to decide when and how exhaustion is reduced or increased.  The toggle would allow DMs who don't want the script making the decision for them to have it turned off allowing them the flexibility to make the decision rather than having the script do it. The jungles of Chult are not the only situation where this comes into play.  What if the characters are under a curse?  What if they are on a plane of existence where they can take a long rest to regain spell slots and other resources but remain exhausted?  What if the DM has created a world where you need a specific plant, or a specific location or something else before you can reduce exhaustion levels?  A script that is otherwise very useful can therefore create a problem because it makes a decision for the DM that the DM doesn't want decided for him/her and thereby reduces opportunities for creativity and role-play. But, perhaps the better argument is: the script, as written, breaks the rules of D&D 5e because nowhere do the rules say that exhaustion is automatically reduced in all circumstances by taking a long rest. In fact, the rules specifically state: "Finishing a long rest reduces a creature's exhaustion level by l, provided that the creature has also ingested some food and drink ." (Emphasis mine, quoted from PHB p. 291).  I cannot find any location in either the PHB or the DMG where it says that exhaustion level is ALWAYS reduced by 1 by a long rest - it's always conditional on getting food and drink as well as "rest" (since elves don't need to sleep, they still benefit from long rests by meditating, not sleeping, but they still need food&drink).  And, under that circumstance, perhaps you shouldn't adjust exhaustion level at all since there's no way the script can know if the characters ingested some food and drink. So, if the DM isn't bothering with food&drink rules, then he can leave the switch toggled ON, but if he is bothering with the food/drink rules, then he can turn the switch OFF and make the decision at each long rest as to whether or not the characters satisfied the requirements to reduce exhaustion and adjust it manually.
1597163979
Magnar S.
Pro
API Scripter
So, if the DM isn't bothering with food&drink rules, then he can leave the switch toggled ON, but if he is bothering with the food/drink rules, then he can turn the switch OFF and make the decision at each long rest as to whether or not the characters satisfied the requirements to reduce exhaustion and adjust it manually. That's a fair point. I'll take a look at it. Cheers!
On another note, I may have found a bug in the script, I'm not sure.  I don't know what happened.  One of my players (and only one of 6) encountered the following message on a long rest: The thing is, he has hit dice listed on his sheet, there is a current value, there is a max value... I'm not sure what what is missing.  The only thing I note that is different with his character from all the others is that he's a multiclass - he's a wizard 4/monk 1.  He's the only multiclass in the group so I'm reasonably sure that's the issue but I don't know what the script is looking for and not finding.
Okay even if I sound hella dumb, I will risk it, the description says "select your character". I tried having the Character sheet open, selecting the token for the character, doing both. Then I did it all over again while being a player with the one character I have editing rights over. Nothing. Both !long-rest or !short-rest only disappear after pressing enter in chat. The character hp stays the same and so on. I believe I am failing at character selection, or might have forgotten something I need to do in order for the command to work ^-^", the only other scrip i have running is the 5th edition Ogl scrip by roll20.
Jonas/Jiro said: Okay even if I sound hella dumb, I will risk it, the description says "select your character". I tried having the Character sheet open, selecting the token for the character, doing both. Then I did it all over again while being a player with the one character I have editing rights over. Nothing. Both !long-rest or !short-rest only disappear after pressing enter in chat. The character hp stays the same and so on. I believe I am failing at character selection, or might have forgotten something I need to do in order for the command to work ^-^", the only other scrip i have running is the 5th edition Ogl scrip by roll20. When that happens to me, it's usually because the API sandbox crashed.  Try this: start up the game, select the token, run the !long-rest command.  Then open up another browser window or tab, and go to the page where you load in the scripts.  There may be error messages there saying something about scripts have stopped running due to an error.  If you see errors there, that's probably why you see nothing in the game.  The messages that are displayed may help you figure out what's going on. If you don't see any errors there, then I haven't a clue why it doesn't work for you.  The script works, generally, although it's a bit buggy especially with multiclass characters.
1600956810
Magnar S.
Pro
API Scripter
Hi Jonas! Jonas/Jiro said: Okay even if I sound hella dumb, I will risk it, the description says "select your character". I tried having the Character sheet open, selecting the token for the character, doing both. Then I did it all over again while being a player with the one character I have editing rights over. Nothing. Both !long-rest or !short-rest only disappear after pressing enter in chat. The character hp stays the same and so on. I believe I am failing at character selection, or might have forgotten something I need to do in order for the command to work ^-^", the only other scrip i have running is the 5th edition Ogl scrip by roll20. I wouldn't call it hella dumb. I made some assumptions, and you know what they say about that. Sorry for not making this clearer. By "selecting your character", I mean having a token on the map and clicking on that so that it is selected there. Much like you have to do in order to roll for initiative into the turn order tracker. Does that make sense? If so, I'll try to improve the language of the docs and messages in game to make it clearer.
1600956924
Magnar S.
Pro
API Scripter
Saul J. said: If you don't see any errors there, then I haven't a clue why it doesn't work for you.  The script works, generally, although it's a bit buggy especially with multiclass characters. Thanks, Saul. I think you gave Jonas a better answer than me.  Would you mind letting me know how it is buggy? I've been blissfully ignorant about this, which is why nothing has happened. :)
Magnar S. said: Saul J. said: If you don't see any errors there, then I haven't a clue why it doesn't work for you.  The script works, generally, although it's a bit buggy especially with multiclass characters. Thanks, Saul. I think you gave Jonas a better answer than me.  Would you mind letting me know how it is buggy? I've been blissfully ignorant about this, which is why nothing has happened. :) Well, take a look at my post a few posts up.  I posted an image of an error message that one of my players sees every time he does a rest.  He's a multiclass and the problem usually only happens for him. Another of my players *sometimes* sees that error and when I look at his sheet, his current HP value has mysteriously disappeared.  It was there before he did the !short-rest.  I think it only happens for him on short rest whereas the other player sees it on both rests.  The multiclass character sees the error even though current hit points, maximum hit points, hit dice, etc. are all there.  That is to say, I see no missing values on the sheet. Those are the two big issues I've seen. Thanks.
Hey Magnar, first off just wanted to say thank you for this script! It's really awesome and is very useful to have! Just had a quick question about functionality though. Is it possible to add in an option so that results sent to the chat are whispered to the GM instead of posted publicly? Or is there anyway to set that up with the current iteration?
Hey Magnar! Quick suggestion: it would be nice that instead of saying that we should think about using Hit Dice when we do the !short-rest, it actually ask us if we want to do it and automatically rolls and change the hp value accordingly. It could be one die at a time with a text prompt asking "Use another?" or something. If it should already do that, well I completely missed it and I have no clue how to toggle that haha!
1602697177
GiGs
Pro
Sheet Author
API Scripter
JPBEG said: Quick suggestion: it would be nice that instead of saying that we should think about using Hit Dice when we do the !short-rest, it actually ask us if we want to do it and automatically rolls and change the hp value accordingly. It could be one die at a time with a text prompt asking "Use another?" or something. Scripts cant prompt you with popup queries the way character sheets or chat buttons can. Its a limitation of roll20 - Magnus cant do anything about that.
1602704526
Magnar S.
Pro
API Scripter
GiGs is right, unfortunately. However, while It's not exactly what you ask for, JPBEG, I have a script that will notice hitdice being rolled, and then update your hitpoints. You can find it here:&nbsp; <a href="https://github.com/magnars/roll20-scripts/blob/master/5e-hitdice.js" rel="nofollow">https://github.com/magnars/roll20-scripts/blob/master/5e-hitdice.js</a> &nbsp; It's what we use in my game for this circumstance.
1603731763
Siveron
Pro
Marketplace Creator
When enabling this script I get an error in the API output console SyntaxError: Unexpected token ':' It only happens when I have this installed. Am I missing a prerequisite needed or something?
1603756193
Siveron
Pro
Marketplace Creator
well, I figure out the issue. I was trying to add them by copying from github and pasting into a new script. I did find it in the roll20 script library, once I added it from there everything is working properly.&nbsp;
Magnar S. &nbsp; the CharacterMancer adds a "Luck" resource for the "Lucky" feat. This API only resets if you rename the resource to "Lucky" or to "Luck [l]" Evan
Hi Magnar, first of all your Script is really awesome. But I think you missed Natural Recovery from the Circle of the Land Druid. Natural Recovery Starting at&nbsp; 2nd Level , you can regain some of your magical energy by sitting in meditation and communing with&nbsp; Nature . During a&nbsp; Short Rest , you choose expended&nbsp; Spell Slots &nbsp;to recover. The&nbsp; Spell Slots &nbsp;can have a combined level that is equal to or less than half your druid level (rounded up), and none of the slots can be 6th level or higher. You can’t use this feature again until you finish a&nbsp; Long Rest . For example, when you are a 4th-level druid, you can recover up to two levels worth of&nbsp; Spell Slots . You can recover either a 2nd-level slot or two 1st-level slots. Greetings Kregeth
Hi Magnar, I'm using this script in a 5E variant and adding in my own skills/resources - is there a way to get a resource to both 'consider' and 'regain' on a short rest?