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

Macro Help Skill check

Hey guys,
So I have been working on a Skills macro and I have it nearly finished my only problem is putting bonuses that I get from other players during a certain turn here is what I have so far
&{template:default} {{name=Skill Check }} {{?{Skill Name:Thievery, Thievery=[[1d20+@{Character|Training}+@{Character|Half-Level}+@{Character|Dex Mod}]]}}}

My problem is when I try to insert something like this into the calculations + ?{Other Bonuses|0} it will pull a drop-down of other skill checks which is not what I want I just want to be able to add like a +1 and have it automatically added into the final summation for the rolls any help/ideas would be awesome thanks
July 27 (10 years ago)

Edited July 27 (10 years ago)
Alicia
Sheet Author
I think you had a closing bracket in the wrong place and your prompt equation was set up wrong for a text prompt. Does this do what you want?

&{template:default} {{name=Skill Check }} {{?{Skill Name:Thievery|Thievery}=[[1d20+@{Character|Training}+@{Character|Half-Level}+@{Character|Dex Mod}+?{Other Bonuses|0}]] }}


July 27 (10 years ago)
Diana P
Pro
Sheet Author
I have not been able to get nested roll queries to work. 

I think this is related to this bug: https://app.roll20.net/forum/post/2220058/new-roll...

Best I can tell, the variable substitutions from the character sheets don't trigger the problem because the values get substituted in before the query happens.

July 27 (10 years ago)

Edited July 27 (10 years ago)
Do you have to have the whole equation set up as a text prompt? or can you do it so that the last half is the the input because when I run it now this is what it looks like. So that I can just select the skill because I have a giant macro with every single one looking like my first post equation.



I cut out a lot of the skill checks but this is what I am dealing with

&{template:default} {{name=Skill Check }} {{?{Skill Name:| Acrobatics, Acrobatics=[[1d20+@{Character|Training}+@{Character|Half-Level}+@{Character|Dex Mod}]]| Arcana, Arcane=[[1d20+@{Character|Half-Level}+@{Character|Int Mod} ]] | Athletics, Athletics=[[1d20+@{Character|Half-Level}+@{Character|Str Mod} ]]| Bluff, Bluff=[[1d20+@{Character|Training}+@{Character|Half-Level}+@{Character|Cha Mod} ]]| Diplomacy, Diplomacy=[[1d20+@{Character|Half-Level}+@{Character|Cha Mod} ]]| Thievery, Thievery=[[1d20+@{Character|Training}+@{Character|Half-Level}+@{Character|Dex Mod}]]}}}

like I said it runs fine I just don't know where to have a section for bonuses that other characters will give in a turn and I don't know the coding very well this I got from reading a ton of the forums and messing around with it so try to small words to help lol
July 27 (10 years ago)

Edited July 27 (10 years ago)
You can nest roll queries if you use HTML entities in place of nested closing braces, vertical bars and commas. For example,
?{Test| A , 1 | B , ?{B|2} | C , 3}

Word of caution: you'll need to save any macro that uses HTML entities as an Ability (rather than as a standard macro within the My Settings tab).
July 27 (10 years ago)

Edited July 27 (10 years ago)
Silvyre Thanks a ton that works beautifully and thanks Diana, and Alicia for your input also
July 27 (10 years ago)
Diana P
Pro
Sheet Author
Hm.  Maybe the vertical bar is interfering with mine.  I'll have to try replacing that then.  Haven't had sufficient time to figure out exactly what was causing the breaks since I replaced the closing braces, sometimes they seem to work, but not always.  :\
July 27 (10 years ago)
Alicia
Sheet Author
Glad you got a solution.
I haven't played with the queries yet, but it's useful to know about the HTML substitutions. 
yea if either of you want to use this macro I'd be happy to post it I'm playing in 4e so I don't know what would need to be done to convert it to a different system
July 27 (10 years ago)
Wes
Pro
Sheet Author
On a side note the D&D 4e Character Sheet has It's own template now. More Information Here: Roll20 Wiki: D&D 4e Character Sheet, Roll Template

Image of Template Output:

Thanks Wes unfortunately our DM didnt import character sheets so everyone has to make their own macros 
July 27 (10 years ago)
Wes
Pro
Sheet Author
That is Unfortunate. Well let us know if you need anymore numbers beat into submission!
Will do and thanks again everyone this was my first post and I am ecstatic at the response I got 
July 28 (10 years ago)

Edited July 28 (10 years ago)
I need to amend my previous statement for the HTML coding it worked fine but when I saved and exited the game it converted into this statement {B|2} which is screwing up the rest of the coding any ideas on how to stop  from getting converted into {B|2} whenever I save the macro?
July 28 (10 years ago)
Diana P
Pro
Sheet Author
I definitely see the conversion issue with macros saved as General Macros (under the My Settings tab).

I have not seen it happen (yet) with macros saved as a character ability under the Attributes & Abilities tab on a character sheet.
Maybe try saving it there (and if you don't have a character sheet ask your GM to assign one to you just to keep the macros in?)?
July 28 (10 years ago)
I edited my above post with the [simplest] solution to this issue.

Word of caution: you'll need to save any macro that uses HTML entities as an Ability (rather than as a standard macro within the My Settings tab).
thanks Ill ask
Do you need a character sheet to save the macro as an ability
July 28 (10 years ago)
Diana P
Pro
Sheet Author
You have to have a character sheet as added by the GM under the Journal tab.  (the same place the handouts are kept.)  You will have to have permissions to edit that character sheet to be able to save information on it.  It does not need to be linked to tokens or anything else.

You do not have to have a Character Sheet Template (as added by the GM on the campaigns Settings page).
July 28 (10 years ago)
You do not need a Character Sheet to access the Abilities & Attributes tab of a Character. However, it is necessary that a GM add and assign you a Character.
July 28 (10 years ago)

Edited July 28 (10 years ago)
K he put in my token and that fixed it :-D yay! you two are awesome sauce 
July 28 (10 years ago)
That's awesome! Why didn't I know of that new dropdown menu? >.<

Off-topic, but where can I find the change list if there are any other macro changes?
July 28 (10 years ago)
Diana P
Pro
Sheet Author
It's listed in the updates posted in the General On-Topic forum.
Ie: https://app.roll20.net/forum/post/2217049/new-upda...

It was also listed in a post in the Pro forum when it went on the development server for testing.

Though I notice it doesn't seem to be updated in the Wiki yet. 

I generally watch for Riley's posts to see what gets changed. :)

Wes said:

On a side note the D&D 4e Character Sheet has It's own template now. More Information Here: Roll20 Wiki: D&D 4e Character Sheet, Roll Template

Wes, would you mind terribly if I used your wiki formatting for that of the 5e Shaped roll template wiki section? I am in process of working on it and your organization is exactly what is needed to convey such information to users. I wanted to ask permission before just outright copying with minor edits.

H
July 28 (10 years ago)
Wes
Pro
Sheet Author

HLazar said:

Wes said:

On a side note the D&D 4e Character Sheet has It's own template now. More Information Here: Roll20 Wiki: D&D 4e Character Sheet, Roll Template

Wes, would you mind terribly if I used your wiki formatting for that of the 5e Shaped roll template wiki section? I am in process of working on it and your organization is exactly what is needed to convey such information to users. I wanted to ask permission before just outright copying with minor edits.

H

By all means please do, I'm glad you found it concise. The biggest thing about documenting templates in the wiki is making sure you get the <nowiki></nowiki> tags in there to prevent the wiki page from trying to make a template for the wiki.

Wes said:

By all means please do, I'm glad you found it concise. The biggest thing about documenting templates in the wiki is making sure you get the <nowiki></nowiki> tags in there to prevent the wiki page from trying to make a template for the wiki.
Great. Thanks for the tip.

H