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

Multi-line commands, multi-input popups and local variables

A couple of things to make writing and using macros more user-friendly: Allow command strings to stretch over multiple lines - this would enable formatting them to look cleaner. The standard for doing so in most programming languages is the character "\" at the end of a line. When a macro requires multiple user-inputs, e.g. attack bonus and damage bonus, we currently get one popup per input, requiring multiple clicks even when the default values are sufficient. I feel that having a single popup with input boxes for each parameter would be more user-friendly. Add local string-variables to macros. This could e.g. be used to work out damage only once and use it for multiple attacks made within the macro. Syntax could e.g. be something like "\var dam=2d6+5+?{DB|0}" for definition and "AC [[1d20+10]], Damage [[${dam}]]" or similar, which would result in string-substitution to "AC [[1d20+10]], Damage [[2d6+5+?{DB|0}]]"
Thanks for the suggestion! After 30 days, Suggestions and Ideas with fewer than 10 votes are closed and the votes are refunded to promote freshness. Your suggestion didn't build the right momentum this time, but feel free to submit it again! We find that the best suggestions describe the problem you are having, and the solution you want. You can learn more about the process of making suggestions on the Roll20 Wiki! More details can be found here .