Hi everyone, I’m trying to figure out whether the new D&D 2024 character sheet supports modifying sheet resources through the Roll20 Mods/API, or whether those resources are effectively read-only/generated from the sheet’s internal state. I’m building a custom API script for single-target attacks, saving throw spells, healing, range checking, FX, and resource tracking. Most of that is working well. The issue I’m running into is with limited-use resources on the D&D 2024 sheet, specifically Paladin Lay on Hands . Using a sheet-inspection helper script, I found that the visible Lay on Hands resource appears to live inside the character’s store object here: store.integrants.integrants.XbjS1iInfNvU21tGf98Pt.value The max value appears to be here: store.integrants.integrants.XbjS1iInfNvU21tGf98Pt.maxValueFormula.flatValue The same object has fields identifying it as Lay on Hands, and it appears to include recovery data such as Long Rest recovery. My API script can successfully read the resource. For example, it reads: available: 10
max: 15 The script can also heal the target token correctly, calculate the amount spent correctly, and display the expected remaining value in chat. For example, after spending 1 point, it displays something like: 9 / 15 left However, the actual visible resource on the D&D 2024 character sheet does not change. It still shows the original value on the sheet, and later API reads may show the value has reverted or been rebuilt from the sheet’s internal state. I also tested directly modifying the store object path and writing it back using API methods such as: attr.set({ current: rootObject }); and: attr.setWithWorker({ current: rootObject }); The script does not error, but the visible 2024 sheet resource does not update. So my questions are: Are D&D 2024 sheet resources inside the store.integrants.integrants structure intended to be writable from the Mods/API sandbox? If they are writable, what is the correct supported method for changing a resource value so that the visible sheet updates? Is there a different flat attribute or sheetworker-facing attribute that should be modified instead of the store object? Are resources like Lay on Hands, Rage, Channel Divinity, Bardic Inspiration, etc. exposed to the API in any supported way? If the store object is generated/read-only/internal, is there currently any recommended API-compatible method to deduct and restore D&D 2024 sheet resources? My goal is to have API macros deduct from the same resource pools that the sheet displays and restores on Long Rest, rather than creating duplicate custom API-only attributes. Any guidance from people who have worked with the D&D 2024 sheet structure would be appreciated.