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 .
×
This post has been closed. You can still view previous posts, but you can't post any new replies.

Macros including a variable, prompt for user input

I've been playing around with the macro system and trying it similar how I use to use another VTT. when I use a macro such a /roll 1d20+ it would work find with a macro titled #d20, and I could add a modifier when using it from the chat window. However putting such a macro in the macro bar results in a syntax error because it is not receiving any input. I'd suggest maybe adding a simple popup window of some type so that if somebody executes such a macro from the bar, they can add the modifier and continue. This might it simple for a GM to add a macro like: /roll 1d20+ Perception Check Then when a player clicked it, they would just type their modifier. Just a thought!
I had this problem with this as well at first-- I got around it when I realized the prompt demands a space between the macro and the added number in the input line (not in the macro script). Try it out-- it works for me.
yes, I can get past the syntax error when executing it from the chat window of course. But I don't see a way to click the macro in macro bar, prompt the user for the missing variable, and then execute. Unless I'm mistaken and doing something wrong.
1359061835
Gauss
Forum Champion
Garrin, you are correct, macro buttons are 'as is'. If a person wishes to add something to a macro they need to use the chat window. - Gauss