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 .
×

Shaped Sheet Spell Slots

In one of my campaigns I have a divination wizard who just got expert divination. Does anyone know if via API or MACRO there is a way to allow him to recharge lower level spell slots without having to open his sheet?
1582415669
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The Shaped Script has !longrest and !shortrest commands. Are they not doing what you need?
those recover all slots the expert divination only recovers a singe slot per usage. It reads: Expert Divination Beginning at 6th level, casting divination spells comes so easily to you that it expends only a fraction o f your spellcasting efforts. When you cast a divination spell o f 2nd level or higher using a spell slot, you regain one expended spell slot. The slot you regain must be of a level lower than the spell you cast and can’t be higher than 5th level. Thus we need something that they can just recover a single specific slot.
1582419953

Edited 1582421152
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
ChatSetAttr is the script that can do that. It's available in the One Click install. Here's a macro that should do the trick. It reports the number of spell slots total and used at each level and gives the user the option to recover one of the chosen level: &{template:5e-shaped} {{title=Expert Divination}} {{text=Beginning at 6th level, casting Divination Spells comes so easily to you that it expends only a fraction of your Spellcasting efforts. When you cast a Divination spell of 2nd Level or higher using a spell slot, you regain one expended spell slot. The slot you regain must be of a level lower than the spell you cast and can’t be higher than 5th Level.}} {{text_big= **Spell Slots Total/Used** **Level 1** @{selected|spell_level_1_slots}/@{selected|spell_level_2_slots_expended} — [recover](!setattr --sel --mod --spell_level_1_slots_expended|-1) **Level 2** @{selected|spell_level_2_slots}/@{selected|spell_level_2_slots_expended} — [recover](!setattr --sel --mod --spell_level_2_slots_expended|-1) **Level 3** @{selected|spell_level_3_slots}/@{selected|spell_level_3_slots_expended} — [recover](!setattr --sel --mod --spell_level_3_slots_expended|-1) **Level 4** @{selected|spell_level_4_slots}/@{selected|spell_level_4_slots_expended} — [recover](!setattr --sel --mod --spell_level_4_slots_expended|-1) **Level 5** @{selected|spell_level_5_slots}/@{selected|spell_level_5_slots_expended} — [recover](!setattr --sel --mod --spell_level_5_slots_expended|-1)}} And the chat menu that results: Replace "selected" with the character name if you want the macro to be available with the token selected. Edited to correct the direction of recovery. It was expending instead.
thanks