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] TokenAction creator for the 5e Shaped sheet v2.1.1+

Hello, i only make little modification so it will work with new 5e Shaped sheet by&nbsp; Kryx . All the credits for this script belong to&nbsp; Kevin , who made this script for the OGL sheet by Roll20. Original script for the OGL sheet :&nbsp; <a href="https://app.roll20.net/forum/post/2983341/script-tokenaction-creator-v0-dot-1-4-for-the-5th-edition-ogl-sheet-v1-dot-4" rel="nofollow">https://app.roll20.net/forum/post/2983341/script-tokenaction-creator-v0-dot-1-4-for-the-5th-edition-ogl-sheet-v1-dot-4</a> This is a simple script that takes anything defined in the "Attacks" section on the 5e Shaped sheet for PC, or the Actions section for NPC and automatically makes a character ability macro, allowing it to be selected as a token action. Get the script here :&nbsp; <a href="https://gist.github.com/capekfilip/0e9d4a72cf1078ef4f0a" rel="nofollow">https://gist.github.com/capekfilip/0e9d4a72cf1078ef4f0a</a>
Thanks Filip, I am currently working on a script for the shaped sheet that will give users the ability to easily create token action ability macros for Initiative, Saves, Attacks, Spells for PC as well as Initiative, Saves, Actions, Reactions, Legendary Actions, and Lair Actions for NPC. Just working out how to make it simple to use, yet still have granular options for those that want a bit more specific control. &nbsp;I hope to finish it sometime this week.
My thanks to you sir.
@Kevin Nice to hear that. I tried to do roll query macros from old sheet importer to new one, so far i manage to do Saves macro working, but it ignores roll advantage setting of the new sheet. (needs a little change the code in sheet .html file)
@ Filip and Kevin, Thanks for working this out so far. Makes it at least a little faster. Would it be doable to do traits as well? Might sound strange but I like to not open up my sheets when playing. Shaves of a little delay ;) Thanks a bunch!
Sure, I have traits working. Filip, if you can pass me the save query I can see if it is possible to incorporate it into the script.
@Kevin, You mean in a script you have for the 5e Shaped that Kryx is currently working on?
1456232730

Edited 1456232782
I fix the old roll query macro with dropdown menu, but it need to change the sheet .html file. Than i found&nbsp; here about&nbsp; Command Buttons . Create token action macro with this: /w "@{character_name}" &{template:default} {{name=Saving Throws}} {{[Strength](~strength_saving_throw)[Dexterity](~dexterity_saving_throw)[Constitution](~constitution_saving_throw)[Intelligence](~intelligence_saving_throw)[Wisdom](~wisdom_saving_throw)[Charisma](~charisma_saving_throw)}}
You could make it use the regular save template by making this change: @{output_option} &{template:5e-shaped} {{saving_throw=1}} {{character_name=@{character_name}}} @{show_character_name} {{title=Saving Throws}} {{[Strength](~strength_saving_throw)[Dexterity](~dexterity_saving_throw)[Constitution](~constitution_saving_throw)[Intelligence](~intelligence_saving_throw)[Wisdom](~wisdom_saving_throw)[Charisma](~charisma_saving_throw)}}
I would have to see how the command buttons worked in actual play, but they seem like they will end up spamming chat a bit.
Yeah I noticed that as well Kevin. If I ask everyone to do save roll it gets a mess pretty quickly :D
If you use the macro i post, it will whisper you the buttons. So everyone see only their own.
1456248915
Kryx
Pro
Sheet Author
API Scripter
These are the type of things I'm looking to put into macros. The new chat buttons are so much easier to create and are actually accurate, but I have a preference for the old query ones. I'll explore adding these to the sheet so they can be referenced there and then this script could just reference those macros. If anyone wants to make an accurate query for saves (6 abilities + death) or checks (6 abilities + skills) please let me know. I can then make it for actions, attacks, and spells.
Yes i prefer old query rolls too. With a little tweak in your sheet i have saving throw one working (still the old ones, no global bonuses, etc.). I can give it a shot, but no promises.
1456249645
Kryx
Pro
Sheet Author
API Scripter
What tweak do you need? I'd want it working 100% the same as the sheet, but if you can get 90% then maybe I can finish it off.
I use the macro you have in macros.html without the @{roll_setting} i simple replace it with {roll2=...} and than fix the "roll_saving_throw_query_macro" value to match new roll template.