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

Formatting a drop down macro

December 18 (7 years ago)
As roll20 does not have something on the character sheet to accommodate "Reliable Talent" for a 5e rogue, I am trying to create a macro that can be used instead. I have the actual "mechanics" of the macro working but really I just want the macro to format correctly (like any other kind of skill check, etc.).

The macro as it exists now is:

/r {1d20, 0d1+10}k1 + [[ ?{Skill Check|Initiative, @{initiative_bonus}|Acrobatics, @{acrobatics_bonus}|Animal Handling, @{animal_handling_bonus}|Arcana, @{arcana_bonus}|Athletics, @{athletics_bonus}|Deception, @{deception_bonus}|History, @{history_bonus}|Insight, @{insight_bonus}|Intimidation, @{intimidation_bonus}|Investigation, @{investigation_bonus}|Medicine, @{medicine_bonus}|Nature, @{nature_bonus}|Perception, @{perception_bonus}|Performance, @{performance_bonus}|Religion, @{religion_bonus}|Sleight of Hand, @{sleight_of_hand_bonus}|Stealth, @{stealth_bonus}|Survival, @{survival_bonus}}]]

It prompts a drop-down menu for the skill check, rolls, picks the highest of the "d20" and "10" and then adds the appropriate modifier for whichever skill you picked. The problem is it currently appears in the chat history as (using acrobatics as an example):

rolling {1d20, 0d1+10}k1 + 8
{( 7 ) + ()+10}+8
= 18

When I want it to output:

         18           
 Acrobatics (8) 

Is there a way to format the macro so it appears like any other skill check?

December 18 (7 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep, you want roll templates.

Some of this info is out of date after the v2.0 update, but this should get you on the right track:https://wiki.roll20.net/D%26D_5e_OGL_Roll_Templates
December 18 (7 years ago)

Edited December 18 (7 years ago)
I found that but I can't figure out how to implement it into the above code. For example, once you get the standard code for a skill check:

@{Character|wtype}&{template:simple} {{rname=^{acrobatics-u}}} {{mod=@{Character|acrobatics_bonus}}} {{r1=[[@{Character|d20}+@{Character|acrobatics_bonus}@{Character|pbd_safe}]]}} @{Character|rtype}+@{Character|acrobatics_bonus}@{Character|pbd_safe}]]}} @{Character|global_skill_mod} @{Character|charname_output}

I would have thought that you could have just created a drop-down menu for each skill check and replace the "d20" in the standard skill check for "{d20, 0d1+10}kh1".

Something like:

[[ ?{Skill Check|Acrobatics, {@{Character|wtype}&{template:simple} {{rname=^{acrobatics-u}}} {{mod=@{Character|acrobatics_bonus}}} {{r1=[[@{Character|{d20, 0d1+10}kh1}+@{Character|acrobatics_bonus}@{Character|pbd_safe}]]}} @{Character|rtype}+@{Character|acrobatics_bonus}@{Character|pbd_safe}]]}} @{Character|global_skill_mod} @{Character|charname_output}|Animal Handling, . . . ]]

But the skill check itself has a problem using "{d20, 0d1+10}kh1" for the "d20" and the drop down has a problem using the standard skill check.

I could also attempt replacing the "d20" in the standard skill check formatting with the originally posted code ("{{1d20, 0d1+10}k1 + [[ ?{Skill Check|Initiative, . . . ]]}") in the standard skill check but I would not think that it would work ... and then, in addition, you would need to change "{{rname=^{acrobatics-u}}" to something else, potentially to "{{rname=^{skill_check-u}}" to avoid further complication but that wouldn't be ideal.
December 19 (7 years ago)
Old School Fool
Sheet Author
You could just put a 10 in the global skill mod

it still shows the original roll for both rolls and the + 10 can be a reminder for reliable talent

December 19 (7 years ago)

Edited December 19 (7 years ago)
Old School Fool
Sheet Author
and to accomplish your one click skill check,
check this out
https://app.roll20.net/forum/post/2918869/5th-edit...
Basically using a chat box to list a button for each skill
you can whisper it to yourself so none else sees it.
and by placing the 10 in the global skill bonus all your skill checks will come out like the earlier post.
what the chat output looks like
Save one of the following as an Ability macro on the Attributes & Abilities tab of a Character:
/w "@{character_name}" &{template:default} {{Strength=
[Athletics](~Athletics)}} {{Dexterity=
[Acrobatics](~Acrobatics)
[Sleight of Hand](~Sleight_of_Hand)
[Stealth](~Stealth)}} {{Intelligence=
[Arcana](~Arcana)
[History](~History)
[Investigation](~Investigation)
[Nature](~Nature)
[Religion](~Religion)}} {{Wisdom=
[Animal Handling](~Animal_Handling)
[Insight](~Insight)
[Medicine](~Medicine)
[Perception](~Perception)
[Survival](~Survival)}} {{Charisma=
[Deception](~Deception)
[Intimidation](~Intimidation)
[Performance](~Performance)
[Persuasion](~Persuasion)}}