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+

February 22 (9 years ago)
Hello, i only make little modification so it will work with new 5e Shaped sheet by Kryx. All the credits for this script belong to Kevin, who made this script for the OGL sheet by Roll20.

Original script for the OGL sheet : https://app.roll20.net/forum/post/2983341/script-tokenaction-creator-v0-dot-1-4-for-the-5th-edition-ogl-sheet-v1-dot-4

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 : https://gist.github.com/capekfilip/0e9d4a72cf1078ef4f0a
February 22 (9 years ago)
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.  I hope to finish it sometime this week.
My thanks to you sir.
February 22 (9 years ago)
@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)
February 23 (9 years ago)
@ 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!
February 23 (9 years ago)
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.
February 23 (9 years ago)
@Kevin,

You mean in a script you have for the 5e Shaped that Kryx is currently working on?
February 23 (9 years ago)

Edited February 23 (9 years ago)
I fix the old roll query macro with dropdown menu, but it need to change the sheet .html file.
Than i found here about 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)}}
February 23 (9 years ago)
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)}}
February 23 (9 years ago)
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.
February 23 (9 years ago)
Yeah I noticed that as well Kevin. If I ask everyone to do save roll it gets a mess pretty quickly :D
February 23 (9 years ago)
If you use the macro i post, it will whisper you the buttons. So everyone see only their own.
February 23 (9 years ago)
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.
February 23 (9 years ago)
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.
February 23 (9 years ago)
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.
February 23 (9 years ago)
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.