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

[Request] Chest script

1443356213
Scaby79
Sheet Author
API Scripter
Hi there, some time ago Stephen had the idea of script to interact with objects that can have more than one state, like chests: open, closed, broken...   (see this post) . Is someone working on that project? Or (if not) does someone have a script, where you can simply toggle the image of a token, like the doors or torches in Stephens DungeonDraw or DungeonMapper? Or similar to the bump-script from Aaron, just with two different images? Thx in advance!
AreaMapper has chests (and other similar objects) as 2 states with additional features like being locked and trapped. You can also use your own images. You have to use them within the context of an area, so it's not as simple as just plopping a chest anywhere you want without going through other motions. 
I would think a rollable table would work well for this. You can assign the graphics you want for chests (locked, unlocked, broken, etc) to different results and then pick the one you want, easily replacing the graphic.
1443446508
Scaby79
Sheet Author
API Scripter
Thy!
1443446858
Scaby79
Sheet Author
API Scripter
Is there a chat macro for token rolling from the table? Like the  1t[table-name] for text chat result rolling? Or is ist somehow possible to change the side of a multisided token via macro or API-script?
1443447895
The Aaron
Pro
API Scripter
Changing the side doesn't work from the API currently.  Hopefully that will get resolved in the Power User fixes that the Devs have mentioned are coming.
1443469225
Scaby79
Sheet Author
API Scripter
Ah well, then I'm looking forward to that! :D