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

Is it possible to create dynamic automation?

Hello all,      I'm looking to convert my gsheets/GAS system (currently being rebuilt in HTML/Django) to the VTT scene, but I'm not entirely sure of the limitations. With all the tools available here is it possible to create a character sheet that dynamically interacts with other character sheets?   An example for clarity: PC 1: John | Str 10 | Base Dmg 10 PC 2/NPC: Doe | Str 12 | Base Dmg 10 John targets Doe (preferably on the character sheet or by clicking token) Doe targets John (same way) John does 8 dmg (the difference of Str between character and target auto-calculated) Doe does 12 dmg (same) Maybe the question should instead be if it's possible to reference the character sheets between two units, calculate the difference between stats, then set or update the character sheet values with the calculated values.
1622804065
GiGs
Pro
Sheet Author
API Scripter
You'll want to read the Building Character Sheets page on the wiki, which details all the limitations on roll20. In short, you cant use javascript in a character sheet (with the exception of sheet workers) - there's no DOM access, and no ability to dynamically manipulate one sheet from another. The only way to do what you want is through a custom API script, and you wont want a sheet based on that because only GMs who are Pro subscribers can use it. By the way, you don't seem to have a pro subscription. You'll need that to build and properly test sheets on roll20.
GiGs said: The only way to do what you want is through a custom API script, and you wont want a sheet based on that because only GMs who are Pro subscribers can use it. By the way, you don't seem to have a pro subscription. You'll need that to build and properly test sheets on roll20. Thank you, I wanted to make sure that what I wanted to do was possible before subscribing. If I'm understanding what you are saying, what I'm looking to do is possible through custom API script so long as I'm a GM pro subscriber?  I'll continue reading the "Building Character Sheets" resource.
1622845338
GiGs
Pro
Sheet Author
API Scripter
Yes, what you're asking for is possible to set up as a  Pro subscriber. Depending on how clever you want to get, it may require a custom script solution which can be tricky, but from your example, you might be able to use an existing script (ChatSetAttr) which would be very easy. Bear in mind though, if you plan to share a sheet using Pro features, it cant be used by very many groups. If you're just making the sheet for your own use, that's not a concern.
Thank you, I appreciate your time and quick response!