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 variables in chat

So if I have a macro called #d6 that does /roll 1d6+, I can specify a variable by typing #d6 X, where X is the variable. What I want is the same style of inputting a variable after the macro is specified, however, the macro is not a standard roll macro: it takes a selected character's Strength stat, multiplies it by variable X (in percentage), divides by 100 (since it's a percentage), rounds the resulting number to the nearest whole integer, and then rolls a table called "damage" that number of times. I have tried doing this and have so far been unsuccessful, does anyone know how or is it not possible?
So, [[(round((@{Strength}*?{Variable?|0})/100))]]#Table Or something like that?
SFX said: So, [[(round((@{Strength}*?{Variable?|0})/100))]]#Table Or something like that? Oh nice thank you very much! I was unaware you could request input in a text box, new to the platform so yeah. Thanks!