- "description": "# Rest and Recovery\rA Roll20 API script to handle recovery on the resource attributes on the D&D 5th Edition by Roll20 sheet.\rTo use this script, resources must include a code in their name, separated from the name by a plus sign. You can include standard dice expressions as well. '1d6' is used in all examples, but you can do 2d6+3, 3d20, etc. Here are examples of the commands given and the codes that are affected.\r\r## !r-short\r*Used for Short Rest*\r\r**+SR** This resource will return to its maximumm value\r\r**+SR1d6** This resource will add 1d6 to the resource up to its maximum value\r\r\r## !r-long\r*Used for Long Rest*\r\r**+LR** This resource will return to its maximumm value\r\r**+LR1d6** This resource will add 1d6 to the resource up to its maximum value\r\r\r## !r-charges\r*used for restoring charges that are user-controlled, such as 'at dawn' or 'under a full moon'.\r\r**+1d6**\r\r\r## !r-ammo\rno code is used here. The script looks for common ammo types: Crossbow bolts, Arrows, Bullets, etc. It rolls 1d2 for each piece of ammo expended. If the result is a '2', the ammo is recovered. The max and current values are adjusted to reflect the new total.\r\r## !r-help\rThis will display the basic help syntax in chat.\r\r## !r-list\rThis will list every resource that can be recovered without using a code. The script will recognize by name almost every recoverable class resource from an official sourcebook with the exception of ties such as Ravnica or Acquisitions, Inc.\r\r\r### Short Rest Class Resources\rSpell Slots, Warlock Spell Slots, Spell Points, Channel Divinity, Wild Shapes, Second Wind, Action Surge, Superiority Dice, Ki, Ki Points, Visions of the Past, Enthralling Performance, Words of Terror, Unbreakable Majesty, Spirit Totem, Indomitable, Arcane Shot, Detect Portal, Ethereal Step, Magic-Users Nemesis, Favored by the Gods, Wind Soul, Blade Song, Arcane Abeyance, Illusory Step, Shapechanger\r\r### Long Rest Class Resources\rRages, Lay on Hands, Sorcery Points, Flash of Genius, Divine Intervention, Eyes of the Grave, Warding Flare, Wrath of the Storm, Cleansing Touch, War Priest Attack, Sentinel at Deaths Door, Embodiment of the Law, Universal Speech, Mantle of Majesty, Infectious Inspiration, Shadow Lore, Balm of the Summer Court, Natural Recovery, Fungal Infestation, Hidden Paths, Walker in Dreams, Faithful Summons, Fighting Spirit, Warding Maneuver, Strength before Death, Unwavering Mark, Wholeness of Body, Glorious Defense, Undying Sentinel, Invincible Conqueror, Holy Nimbus, Living Legend, Emissary of Redemption, Elder Champion, Avenging Angel, Dread Lord, Hunters Sense, Unerring Eye, Spell Thief, Strength of the Grave, Tides of Chaos, Unearthly Recovery, Mystic Arcanum-6th, Mystic Arcanum-7th, Mystic Arcanum-8th, Mystic Arcanum-9th, Eldritch Master, Chronal Shift, Momentary Stasis, Benign Transposition, Instinctive Charm, Power Surge, Violent Attraction, Event Horizon\r\r### Ammo Types\rCrossbow bolts, Arrows, Bullets, Sling Bullets, Needles, Darts\r\r\r**Bardic Inspiration** needs a +SR or +LR code, since the recovery rate changes at fifth level", "authors": "Keith Curtis",
0 commit comments