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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Can you build a dynamic Drop Down on a Character sheet from data in Session State

1547316104
Victor B.
Pro
Sheet Author
API Scripter
Here's a challenge for some of you. API has stored data in state.  Can that data be accessed to build a dynamic drop down on the character sheet.  
1547319309
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Short anser is no, the API state and the character sheet have no direct interaction. Additionally you can't make a dynamic drop down on a character sheet. The slightly longer answer is that you can make a pseudo drop down that can dynamically react to repeating items being added, although it's a PITA. Using this, you could create a repeating section on the sheet that your api script would dynamically add/remove items to in order to create a dynamic pseudo select.
1547319559
Victor B.
Pro
Sheet Author
API Scripter
That's what I figured.  What I've done is sent session state (a vehicle target list) to chat and let them select vehicle off that.  Was hoping for a bit more elegant way.  Thanks Scott.