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.

Query-able macros

1395793252

Edited 1395877105
Recently I was playing around with what automation is available at the free level of roll20, and found that having each skill check in 4e as a token action (as suggested on the wiki) leads to a lot of screen clutter. I then experimented with using roll queries to select macros from one accessor macro, but found that due to the order of operations of roll20 this was not possible. I asked if it was possible in the current system (app.roll20.net/forum/post/736208) and ended up rambling on and forming an idea of how this query-able macro/ability call could be implemented into the system. [[Rendelle F. explains this better below.]] (Before anyone says, yes, I know that this is possible with the API, and have even drafted a possible working script in TextEdit, but if the excuse for not implementing any new features is that you can do it in the API, then you end up with the Minecraft-esque problem of "why update it when user-provided modifications can?" You do for the same reason a common script repo is in the works for roll20 - accessibility and assurance of stability.) The concept is simple - instead of typing #macro, you would type ?# to declare the macro as query-able and then call the macro a normal, using roll query syntax for the query part of the macro: ?#?{skill}-check to chose between the various skill check macros I have, for example. This would also be possible with ?@ or ?% for abilities. The ? before the declarative character would prompt the parser to check for and run queries in the name of the macro/ability. Best of all, this would not effect previous macros/scripts/abilities as it doesn't change any current functionality! Another possibility would be to add drop-down-menu capability to the token action, but the above suggestion fits the current system thematically better and would be less change/work.
Ohhh, you mean that you would define macros, the normal way, with names like: perception-check dungeoneering-check stealth-check And then a macro with whatever name, say skill-check, that did this (except perhaps with different syntax): #?{Skill}-check Except instead of returning "#stealth-check" when you type in "stealth", it would run the stealth-check macro. (Sorry, it took me a while to understand the paragraph beginning with "the concept is simple".) That'd be useful, but I suspect that, as you pointed out, this being possible with the API is going to hinder them wanting to put it out for free.
1395876949

Edited 1395877130
^^^ That exactly. Sorry if I didn't explain it well xD I accidentally assumed erroneously that the reader would know my original macro set. And for the syntax, it's what you said plus a '?' in front - what you typed there currently (and would not be changed from) tries to expand the macro (does not find one "?{skill}-check") and then exexutes the query ?{skill}. Interesting note though, this behavior allows you to print out macro calls without calling them! (EDIT: which you noted. Oops.)
This is what I use in all my games for skill checks or saves. It is universal and uses no variables, so therefor, no maintenance ever, /em : ?{Save/Check Type?} Save/Check /r 1d20+?{Ability/Skill Modifier?} You can change the flavor text to what you like and then just add in your modifier and your done. I hope that is what you were looking for.
Yeah, I know there are ways to do this, one of which I'll end up doing. I just like automation, buttons, and outsourcing of numbers to the computer. I'll just consider this as a won't-happen-as-unneeded and do it a different way. Just another reason to get access to the API I guess. But this would have been cool.
I very much agree with CAD97. I think the drop down menu isn't bad idea at all... Then again with the new character sheets if I understand them correctly, rolling it directly from there wouldn't be too bad... Hm...
1397649821
Gauss
Forum Champion
Just a note, there is already a drop down menu for macros when you type # in the chat box.
The dropdown menu in the chatbox is pretty useless if you have a lot of characters and macros. It drops beneath the task bar and often stops auto updating after a few characters.