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

Need DND 5e Stresscounter rule script

Greetings, In my Curse of Strahd campaign I'm using the Stress rule as described in VRGtR: Charging headlong into terrifying situations is the stock in trade for adventurers. Among the Domains of Dread, though, periods of respite between harrowing experiences can be rare. Even the hardiest adventurers find themselves worn down over time, their performance suffering as they struggle to cope with the dread and despair. Various circumstances might cause a character stress. Stress can be tracked numerically as a Stress Score, increasing in trying situations and decreasing with care. At your discretion, a character’s Stress Score might increase by 1 when one of the following situations occurs: A tense, dramatic moment, especially one involving one of a character’s Seeds of Fear Every 24 hours the character goes without finishing a long rest Witnessing the death of a loved one A nightmare or darkest fear made real Shattering the character’s fundamental understanding of reality Witnessing a person transform into a horrid or unnatural creature When a character makes an attack roll, an ability check, or a saving throw, they must apply their current Stress Score as a penalty to the roll. Reducing Stress A character who spends an entire day relaxing or in otherwise calm circumstances reduces their Stress Score by 1 when they finish their next long rest. The   calm emotions   spell effect used to suppress the   charmed   and   frightened   conditions also suppresses the effects of one’s Stress Score for the spell’s duration. A   lesser restoration   spell reduces the target’s Stress Score by 1, and a   greater restoration   spell reduces a character’s Stress Score to 0. now My Players all have a resource counter called Stress on their 5e Charactersheet. I'm not a coder, but I imagine it should be possible to have the penalty to Attack, Ability Checks and Saving Throws applied automatically from that one entry. (instead of them having to use different global modifiers they need to change all the time) Thanks.
Are you using the 2014 sheet? I'd set up global modifiers for each, and set the value of those modifiers all to be the attribute of the stress counter, with a minus at the front. That way, whenever you change the stress counter, all those global modifiers change to go with it. On the sheet, the attribute assigned to the resource depends on the position on the list - the first two can be called as @{class_resource} and @{other_resource}.
Brilliant, thanks a lot. it does not calculate it though and simply puts out RESULT+-STRESS as a result. but it is more than good enough for our needs.
Alternatively, since the stress penalty applies to, as far as I can think of, all normal d20 rolls, you could make the change at the core die roll - you can find it globally in the game settings and you can change it individually per character on the sheet options tab. Change it to -0@{class_resource}+1d20 (if you have the stress in the first resource box), and it'll calculate the penalty in (and the 0 before the attribute call makes sure you don't get an error if the resource box has no value).