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 .
×

issues using "greater than" within a drop down

I want the skill level to decide what number to compare a check to. If I have the skill Rocklifting level 1 I ad my strength to a d20 and have to roll over 18. With Rocklifting level 2 I have to roll over 16... And I want to use a drop down to do this. But it's not working. This is my macro: ?{Skill level|Rocklifting 1,/r 1d20+@{Strength}>18|Rocklifting 2,/r 1d20+@{Strength}>16|Rocklifting 3,/r 1d20+@{Strength}>14} And this is my result in chat: rolling 1d20+2>18 ( 19 ) +2 = 21 I want it to tell me if it is a success or not...
1635449326
The Aaron
Roll20 Production Team
API Scripter
Try this: ?{Skill level|Rocklifting 1,/r {1d20+@{Strength}}>18|Rocklifting 2,/r {1d20+@{Strength}}>16|Rocklifting 3,/r {1d20+@{Strength}}>14}
The Aaron said: Try this: ?{Skill level|Rocklifting 1,/r {1d20+@{Strength}}>18|Rocklifting 2,/r {1d20+@{Strength}}>16|Rocklifting 3,/r {1d20+@{Strength}}>14} I did, but it just ask me for an input value instead of the drop down. It is also filled with "Rocklifting 1,/r {1d20+2" and I get this in chat: Jocke (GM):Rocklifting 1,/r {1d20+2>18|Rocklifting 2,/r {1d20+2}>16|Rocklifting 3,/r {1d20+2}>14}
1635454589
The Aaron
Roll20 Production Team
API Scripter
Hmm. Ah. You'll have to put the last } in as [ to prevent that.  ?{Skill level|Rocklifting 1,/r {1d20+@{Strength}[>18|Rocklifting 2,/r {1d20+@{Strength}[>16|Rocklifting 3,/r {1d20+@{Strength}[>14}
1635463509

Edited 1635463602
Oosh
Sheet Author
API Scripter
Whoops, Aaron has the wrong escaped character... as he said, you want an escaped } in there, which is } or } ... not [  :) ?{Skill level|Rocklifting 1,/r {1d20+@{Strength}}>18|Rocklifting 2,/r {1d20+@{Strength}}Rocklifting 3,/r {1d20+@{Strength}}>14}
1635475991
The Aaron
Roll20 Production Team
API Scripter
Ah!  Thanks!  That's what I get for trying to do it on my phone during a meeting. =D
1635483380
Oosh
Sheet Author
API Scripter
Further proof that meetings are silly and - if one must really, really be held - should never have more than one person present.
Thanks to both of you! It finally works :-D