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

Helping out with macro

Hi, Here is the macro: &{template:default} {{name=@{Selected|Name} Skillcheck}} {{Sikerek=[[{(?{Attributes|Strength,@{Selected|Strength}|Dexterity,@{Selected|Dexterity}}+?{Abilities|Alertness,@{Selected|Alertness}|Athletics,@{Selected|Athletics}})d10!}>6f1]]}} {{Attrib = ?{Attributes}}} {{Ability = ?{Abilities}}} Is there a way to write out the text too what was choosen from the dropdown query somehow? Like if I choose Strength and in the 2nd line somehow write out both Strength and 2?  Thanks for the help!
1697545726
timmaugh
Forum Champion
API Scripter
Out of the box Roll20 syntax? No. If scripts are available (I see the Plus beside your name, but if the owner of the game is a Pro subscriber scripts would be available) this is rather elementary to do with the MetaScriptToolbox.
I tried with  {{?{Attrib|Strength,Strength|Dexterity,Dexterity} = {{@{Selected|?{Attrib}}}  but it seems the  @{Selected|?{Attrib} part goes before -even if it is written later- then the query so i can't fill up the variable before. I'm the game owner, so i have to get Pro if i wanna solve this somehow with script? Ty!
Not exactly what you want but what about descriptive tags to label your rolls? &{template:default} {{name=Skillcheck for **@{selected|Name}**}} {{Success=}} {{Attribute=?{1/2 - select attribute|Strength,[[@{selected|Strength}[STRENGTH]]]|Dexterity,[[@{selected|Dexterity}[DEXTERITY]]]}}} {{Ability=?{2/2 - select ability|Alertness,[[@{selected|Alertness}[ALERTNESS]]]|Athletics,[[@{selected|Athletics}[ATHLETICS]]]}}} {{Success=[[{(?{Attributes}+?{Abilities})d10!}>6f1[ROLL]]]}}
Tbh maybe it's the best available solution without scripts.  &{template:default} {{name=Skillcheck for **@{selected|Name}**}} {{Success=}} {{Attribute=?{Attribute|Strength,[[@{selected|Strength}[STRENGTH]]]|Dexterity,[[@{selected|Dexterity}[DEXTERITY]]]}}} {{Ability=?{Ability|Alertness,[[@{selected|Alertness}[ALERTNESS]]]|Athletics,[[@{selected|Athletics}[ATHLETICS]]]}}} {{Success=[[{(?{Attribute}+?{Ability})d10!}>6f1]]}} I modified like this and it works.  Yeah it only shows if i moveover with the mouse but still at least i can see what stat was choosen by the player. Thanks a lot! :)