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

Reminder notes when triggering macros

Hello, I've been using a save throw calculation macro where you pass your attribute as a parameter to calculate. The reason is to save space on the macro Bar.
My question is, is there any way to trigger a chat event, popup or something that can tell me my attributes just after I trigger the button and before passing the numbers? I tried using some chat commands inside it but it will only trigger before the calculations.
June 29 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
You could preface with something like this:
!?{This is a macro that does things with stuff}
/em things with stuff
That will result in a pop up with information before the macro is evaluated.

You might rather use Roll Queries to get information into the macro:
#mySaveMacro ?{which stat? STR,DEX,CON|DEX}
that will prompt and pass the result to the macro.

If you give an example of your macro, we can probably give you a more tailor made solution.

See Roll Queries in the wiki for more info: https://wiki.roll20.net/Dice_Reference#Roll_Querie..
It sounds like you want to list your Attributes within the Roll Query as you're prompted to enter a value so you can see what your options are.

[[ 1d20 + ?{Str:@{MySTR} ♦ Dex:@{MyDex} ♦ Con:@{MyCon} ♦ Int:@{MylInt} ♦ Wis:@{MyWis} ♦ Chr:@{MyChr} |0} ]]

Will look like this when you're prompted: (the Diamonds are created by holding down the ALT key and tapping "4" on your keypad)

Wow, thats is what I wanted, thaks guys!!
June 30 (10 years ago)
vÍnce
Pro
Sheet Author

Mark G. said:

It sounds like you want to list your Attributes within the Roll Query as you're prompted to enter a value so you can see what your options are.

[[ 1d20 + ?{Str:@{MySTR} ♦ Dex:@{MyDex} ♦ Con:@{MyCon} ♦ Int:@{MylInt} ♦ Wis:@{MyWis} ♦ Chr:@{MyChr} |0} ]]
Will look like this when you're prompted: (the Diamonds are created by holding down the ALT key and tapping "4" on your keypad)


Nice Mark. Thanks for sharing. I find something new to add to my game everyday.