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

Choice Macros and HTML

1693596112

Edited 1693596441
I've gotten this far in coding it, I have simple macros that work: &{template:default} {{name=Grit to beat: @{Grit} }}; {{Grit Roll=[[ 1d20 - ?{Modifier} ]] }} and it displays the Grit Value, and below the roll they make. Good enough for what I want. But that's a bunch of singular Macros, and combinig them has been a nightmare. I've gotten here: ?{Choose a Roll|   Might,/roll 1d20 - (?{Modifier}) |   Deft,/roll 1d20 - (?{Modifier}) |   Grit,/roll 1d20 - (?{Modifier}) } But I want to compare the results to either the players Might, Deft, or Grit Attributes, or at the very least Display it with the roll value like the first Macro. since the Drop down code thinks it's closing in a place it shoudn't, t he HTML change is rough,  and whenver I try to add in basicly anything else it breaks the Macro. Any advice would be appreciated.
1693601512

Edited 1693601811
GiGs
Pro
Sheet Author
API Scripter
Those rolls all look the same, so two things: You could have a query just to show the stat as you do above Always move everything out of a query that is duplicated So your first roll could be something like &{template:default} {{name=?{Choose a Roll| Might,Might to beat: @{Might} }} {{Might| Deft,Deft to beat: @{Deft} }} {{Deft| Grit,Grit to beat: @{Grit} }} {{Grit} Roll=[[ 1d20 - ?{Modifier} ]] }} If you want to choose Grit, Deft, and Might for player, then also choose that for the target, and perform some operation, that gets a lot more complicated if you are nesting them. But you might not need to nest them. What roll are you trying to do?
1693602109
GiGs
Pro
Sheet Author
API Scripter
Personally, I'd try to build the above roll to avoid HTML entities completely. Something like &{template:default} {{name=Ability Roll}} {{?{Choose a Roll| Might,Might=@{Might}| Deft,Deft=@{Deft}| Grit,Grit=@{Grit} } }} {{Roll=[[ 1d20 - ?{Modifier} ]] }} or &{template:default} {{?{Choose a Roll| Might,Might=@{Might}| Deft,Deft=@{Deft}| Grit,Grit=@{Grit} } }} {{Roll=[[ 1d20 - ?{Modifier} ]] }}