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

TokenAction creator for 5e OGL sheet version 2.7

1572437323

Edited 1572518603
This post is in response to the 'Old Script' forum post regarding an API script for Token Actions for 5e OGL sheet. Old Script: &nbsp; <a href="https://app.roll20.net/forum/post/5608775/script-update-tokenaction-creator-for-5e-ogl-sheet-version-2-dot-0/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/5608775/script-update-tokenaction-creator-for-5e-ogl-sheet-version-2-dot-0/?pagenum=1</a> New Script:&nbsp; <a href="https://raw.githubusercontent.com/GarradM/TokenAction5eNPC/master/TokenActionImprovedWithTraitAndReactions.js" rel="nofollow">https://raw.githubusercontent.com/GarradM/TokenAction5eNPC/master/TokenActionImprovedWithTraitAndReactions.js</a> Commands: !ta - this command is used to create token actions for the selected tokens. !deleteta - this command can be used to DELETE all token actions for the selected tokens. Due to time constraints, I purchased a module full of over 200+ new monsters/NPC's. To my surprise, none of which came with any Token Abilities as seen below: So I went searching and came across the awesome script (Old Script) that generated Token Abilities for me, but having used the 5e Monster Template, it still left me with a lot of work to do.&nbsp; I have updated the script to generate the same, and more Token Abilities such as NPC Traits, 'Action:' at the start of the Token Action buttons, 'Reaction:' button, 'Stats' button, and 'DR/Immunities' button to be more consistent with the 5e Monster Template I have been using.&nbsp; Results of running the '!ta' command below: Then, with very little modifying (Replace 'Trait1' or 'Trait2' with Trait Names copied from the Character Sheet, same for Reactions) the Token Actions are done (see below). I hope this script helps, having come from using the 5e Monster Template, I know I would and do love this.&nbsp; Obviously this script could be improved to generate the Traits and Reactions automatically, which I hope someone does and replies back to this post improving upon the script yet again.
1572438792
GiGs
Pro
Sheet Author
API Scripter
The link to your script doesnt work for me.
1572442802
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I use that (excellent) script, and wound up commenting out some of the categories I didn't want. In general I only want NPC actions and PC attacks. I should sit down and make a version that accepts arguments to allow users to choose which features they want to make token action buttons for. I use GiGs' Universal Chat Menus for anything more detailed. Scott C's Menu Maker is also very good.
1572469103

Edited 1572518662
Thanks for the replies guys hope the link works now. Kieth, that would be awesome! :) Just for reference, this is the 5e Monster Template I was using: To produce token abilities such as:
Unfortunately the link still does not work, i get a '404' error when trying to access it...
1572491910
GiGs
Pro
Sheet Author
API Scripter
I'm a bit puzzled why you'd make it private if you want to share it.
1572519388

Edited 1572559321
Sorry William M. and GiGs, I'm new to the Github/Roll20 Forum scene and made it private because I only wanted to share it on this thread. I have made it public so it should definitely work now. :) While I'm here, does anyone know of a script to alter purchased Roll20 tokens bars? As seen below: I want to make them like this, preferably with a command done with a script to change to the following: Where Bar1 = npc_ac Where Bar 2 = passive_wisdom and Bar 3 = hp To be clear, I want to change the purchased module Roll20 token bars (Seen on the Baphomet token) to my preferred style of token (Duke Thalamra Vanthampur). Thanks again for the replies. :)
1572519929
GiGs
Pro
Sheet Author
API Scripter
There is a way to make things private, but share only with specific people - use&nbsp; <a href="https://gist.github.com/" rel="nofollow">https://gist.github.com/</a> &nbsp; Regarding your tokenbar question, TokenMod should be able to handle that. That said, there's a good reason why monsters dont have their HP linked to a bar. Lets say the pcs are facing 6 orcs. You copy out the token 6 times. Now, you mark an injury on one of them. The HPs of all 6 will drop. That's not what you want. This is because tokens are linked to the character. The reason those tokens have bar 3 showing the hp total, but not linked to the character sheet, is so you can use many tokens of that creature, and they'll all take injury separately.
Cool GiGs, thanks for the link! Yeah I specifically haven't linked hp to a bar for that very reason ;) was kind of hoping the script I'm chasing would recognise the NPC's hp somehow and populate both squares of bar3 without tracking the hp specifically as shown above for npc_ac and passive_wisdom.
1572526813
GiGs
Pro
Sheet Author
API Scripter
Are the tokens you have not populated with the correct HP? TokenMod can fill the token's value and resave the token as the default.&nbsp;
Ok GiGs I'll look more into TokenMod. I updated my previous post to be more clear as to what I want to achieve: "I want to change the purchased module Roll20 token bars (Seen on the Baphomet token) to my preferred style of token (Duke Thalamra Vanthampur)."
Yeah tokenmod is definitely what you want for that