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

Can You use Use a Roll Query Value From a Button?

1775137887

Edited 1775138010
This is related to my questions at: <a href="https://app.roll20.net/forum/post/12709983/macro-why-is-this-right-justified" rel="nofollow">https://app.roll20.net/forum/post/12709983/macro-why-is-this-right-justified</a> &nbsp;and <a href="https://app.roll20.net/forum/post/12712737/template-general-how-do-i-separate-left-and-right-columns" rel="nofollow">https://app.roll20.net/forum/post/12712737/template-general-how-do-i-separate-left-and-right-columns</a> So I've figured out how to plop an image in there (thanaks Vince and Keith) but now I want to have a user input when they click a button. In this reduced size chat result, I want to do this with the Rotate button (image is just for testing, nothing to do with D&amp;D): So the current syntax in my macro for that rotate button is: &nbsp;[Rotate to 0°](!token-mod&nbsp; --set rotation|360) or&nbsp; &nbsp;[Rotate to 0°](!token-mod&nbsp; --set rotation|0) Both of which set the gnome figure to straight up and down like the other character tokens. Looking at information on the Roll Query, I hoped to have a user enter an angle to be used when one clicks the button. I tried:&nbsp; [Rotate](!token-mod&nbsp; --set rotation|?{Enter Angle or leave blank for 0°|0}) but that does not quite work. The Roll query executes as soon as I open the macro (here I put in 270): So it saves the value for when I do press the button and rotates the token to the 270 degrees: Is using a roll query the correct thing to do here? I'd eventually like to expand this so that I can control what players are entering for coins into the AD&amp;D 1 e character sheet. Thanks,&nbsp; -- Tim
You just need to use an HTML replacement so that the query doesn't process until the button is clicked: [Rotate](!token-mod&nbsp; --set rotation|&amp;quest;{Enter Angle or leave blank for 0°|0})
Jarren said: You just need to use an HTML replacement so that the query doesn't process until the button is clicked: [Rotate](!token-mod&nbsp; --set rotation|&amp;quest;{Enter Angle or leave blank for 0°|0}) Thou art blessed amongst humanity, thank you!