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

Anyone played around with something like this?

1483277797
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Enter API* command (*will be limited to this sheet)<br> <input type="text" name="attr_sheetworker_API" value="" placeholder="![sheetworker API] [stuff]" /> <script type="text/worker"> var sheetworkerAPI = sheetworkerAPI || (function(){ 'use strict'; var on_msg = function (msg) { if ("!" !== msg.charAt(0)) { return; } /* treat just like API only its bound to the limits of this sheet and sheetworker fucntions */ }; return { on_msg: on_msg }; }()); on("change:sheetworker_API", function () { getAttrs(["sheetworker_API"], function (v) { sheetworkerAPI.on_msg(v.sheetworker_API); setAttrs({sheetworker_API: ""}); }); }); </script>
1483278514
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Would give you command functionality local to the sheet with the same syntax as API. This way you add powerful fucntions without UI. Example: !allCoinstoGP (Sheetworker API knows the sheet... and exchange ratio... and can simpify coinage for you.) !increaseXP 2334 (Does the math of adding 2,334 XP to current XP total for you.) Let's folks create custom "sheetworker API" for the sheet. Sort of an "API light." I plan to build a "!vince" function in all my sheets (details of this function not to be shared at this time.)
1483314975
vÍnce
Pro
Sheet Author
Can't wait.