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

Token Action Maker for Dune

I am wondering if anyone would be able to point me in the right direction re: making a token action maker script for the Dune- Adventures in the Imperium similar to this script for 5e/PF2e: <a href="https://app.roll20.net/forum/post/8458497/script-token-action-maker-v-dot-0-2-dot-7/?pageforid=8458497" rel="nofollow">https://app.roll20.net/forum/post/8458497/script-token-action-maker-v-dot-0-2-dot-7/?pageforid=8458497</a> The Dune sheet is comparatively simple, with only 5 skills to choose from and relatively few other components that would need to be expressed (talents, assets, traits and complications), all of which are built in as roll-able from the base character sheet. I have never written an API script and so I am pretty much in the dark. Thanks in advance for any help!
1691011126
Gauss
Forum Champion
Hi Richard,&nbsp; If there are only a few skills and other components you might want to go a non-API script route. Use a Macro Mule that accesses any character via select.&nbsp; Additionally, the TAM macros are actually something of a nightmare as they rely heavily on HTML substitution. You might want to consider a Chat Menu option instead.&nbsp;
1691016518

Edited 1691016733
Rich McNutt
KS Backer
Any links to how I might do that? I googled a bit, but didn't find any thing that seemed to be step by step.
1691016795

Edited 1691016813
Gauss
Forum Champion
Sorry about that, I forgot to include them.&nbsp; Chat Menus Templates Macro Mule How to use Select with Macros In short, you will want to make a macro mule with a bunch of Ability macros. Then make macros with Chat Menus inside of a (usually default) template.&nbsp; The Chat menu buttons call the various macros when pressed.&nbsp; If you need help constructing them let me know.
Thank you for the links. I actually was playing around with something like that, but the problem I ran into is that the attribute it selects on the characters sheet, does not translate well into the actual roll. It is the 2d20 system, so the roll is quite complicated. When you select a skill on the character sheet, it takes you through multiple drop down queries as you select a drive, number of dice and if a focus or not. For example, when I roll a skill from the char sheet and generate the macro by pressing the up key in the chat box if gives me: @{House Guard|whisper}&amp;{template:dune}{{title=^{Battle}}}{{character=@{House Guard|character_name}}}{{drive=?{@{House Guard|tkey_r_drive}|@{House Guard|tkey_r_duty},@{House Guard|duty}[duty] | @{House Guard|tkey_r_faith},@{House Guard|faith}[faith] | @{House Guard|tkey_r_justice},@{House Guard|justice}[justice] | @{House Guard|tkey_r_power},@{House Guard|power}[power] | @{House Guard|tkey_r_truth},@{House Guard|truth}[truth]}}}{{skill=[[@{House Guard|battle}]]}}{{rolls=[[?{@{House Guard|tkey_r_dice}|2|1|2|3|4|5|6}]]}}{{focus=[[?{@{House Guard|tkey_r_focus}|@{House Guard|tkey_r_no},0|@{House Guard|tkey_r_yes},1}]]}}{{target=[[@{House Guard|battle} + ?{@{House Guard|tkey_r_drive}|@{House Guard|tkey_r_duty},@{House Guard|duty}[duty] | @{House Guard|tkey_r_faith},@{House Guard|faith}[faith] | @{House Guard|tkey_r_justice},@{House Guard|justice}[justice] | @{House Guard|tkey_r_power},@{House Guard|power}[power] | @{House Guard|tkey_r_truth},@{House Guard|truth}[truth]}}]]}}{{focuses=@{House Guard|battle_focuses}}}{{roll_1=[[1d20]]}}{{roll_2=[[1d20]]}}{{roll_3=[[1d20]]}}{{roll_4=[[1d20]]}}{{roll_5=[[1d20]]}}{{roll_6=[[1d20]]}} So, for this idea to work, I need the selected token to roll as if I pressed the button on the sheet. As is, if I do @{selected|Battle}, it just puts the character's static Battle value in the chat window, instead of rolling as if the button on the sheet was pressed. Any thoughts on how to make this work?
1691019267

Edited 1691020650
Gauss
Forum Champion
In the above skill you rolled r eplace all the "House Guard" with "selected" and it should work fine.&nbsp; However, I can do some digging to find the actual call of the buttons if you wish. Edit: did the digging:&nbsp; 1) Drag any button to the bottom of the character sheet 2) click the button on your macro bar 3) click the Chat tab text box and hit the up arrow, copy the command.&nbsp; 4) replace the name with "selected" This gives me: %{selected|battle} %{selected|communicate} %{selected|discipline} %{selected|move} %{selected|understand} Use those in your Ability macros then call the Ability macros in the Chat Menu.&nbsp; Edit 2:&nbsp; Here is an example template I whipped up for this purpose.&nbsp; This is on the MacroMule character. Ability macro name: Chat-Menu Output: &amp;{template:default} {{name=Skills}} {{=[Battle](~MacroMule|battle) [Communicate](~MacroMule|communicate) [Discipline](~MacroMule|discipline) [Move](~MacroMule|move) [Understand](~MacroMule|understand)}} The Ability macros are on the MacroMule character. Example:&nbsp; Ability macro name: Battle Output: %{selected|battle} Then I connect a Collection tab macro to the Ability macro like this:&nbsp; Collection tab macro name: ChatMenu Output:&nbsp;%{MacroMule|Chat-Menu} I then assign the Collection tab macro to the players, and give it to them as a Token Action.
That worked perfectly!! Thanks so much!!