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

[Script] AOE Template Generator for Starfinder (Using HUD Roll Template)

I've updated my AOE template generator for use in Starfinder. The script utilizes the SF HUD sheet template, so if you're using it for a game with a different sheet, modify the sendChat section. This script allows players to create their own AOE templates, which are assigned to them, and which appear at their selected token (since it's assigned, they can move it as they please). It only works if the player tab is on the page with the selected token. It uses only those templates found on page 269 of the Starfinder CRB, though it could be extended with little effort. When you add the script, you'll need to add avatars to the TemplateShapes rollable table (table is created when the script first runs). You can find compatible shapes at the imgur link below.&nbsp; You'll also want a macro shared with all players. Call it something appropriate. The body should read: !ShapemakerMacro Enjoy. Link to Gist:&nbsp; <a href="https://gist.github.com/Bastlifa/fb5a94fa498a23cc8c8da02cbfa8ff55" rel="nofollow">https://gist.github.com/Bastlifa/fb5a94fa498a23cc8c8da02cbfa8ff55</a> Link to imgur album for shapes:&nbsp; <a href="https://imgur.com/a/vekJIAg" rel="nofollow">https://imgur.com/a/vekJIAg</a> An image of the script in action:
I should also mention that utilizing the attacher function from the sheet, you can bypass the macro altogether, and just attach the appropriate commands (seen in script, or on mouseover for the shape images). I believe the attacher needs a new line before commands are entered, though I may be wrong.
1530825168

Edited 1530825823
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Nice work Bast. And, yes, the attacher field does require a new line before using API commands. EDIT: You could actually make use of some of the HUD template's other fields to make the output even cleaner: &amp;{template:sf_generic} {{buttons0=Select PC token and Click}} {{buttons1=Radii: Radii depictions here}} {{buttons2=Cones: Cone depictions here}} ... {{buttons9=Whatever other shapes you want:}} Wasn't sure which template you were using there, but those buttons fields are available in all of them. Of course, if you want the template that is output to be confined to a certain size, then you could just use a single buttons# field.