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

Help creating a macro

1647727010

Edited 1647727058
I'm looking to make a macro that I can use to automatically roll once, or maybe multiple times if that's even possible, from a list of tables, while also first letting me choose who can see the roll (i.e. GMroll, Public, then a list of (6) Player Characters).  I'm very new to using macros and have no javascript experience.  I've been able to follow some tutorials and i think the syntax would first start with {{?{To Who|GM|Public|PC1|PC2|PC3|PC4|PC5|PC6}}} and then I'm lost.  I know there are a lot of layers to this, but anyone who could help me get started then I think I could figure it out.  Any help would be appreciated.
1647739203
Andrew R.
Pro
Sheet Author
May I suggest, since you are a Pro subscriber, starting with the ScriptCards API script and writing a ScriptCards macro? I suspect it can make it much easier in the long run.&nbsp; <a href="https://wiki.roll20.net/ScriptCards" rel="nofollow">https://wiki.roll20.net/ScriptCards</a> I’m using it for everything complex in my games now.&nbsp;
1647798325
Andreas J.
Forum Champion
Sheet Author
Translator
I'm very new to using macros and have no javascript experience.&nbsp; I've been able to follow some tutorials The Roll20 dice macros have nothing to do with javascript. Check <a href="https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls" rel="nofollow">https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls</a> for good info on Roll20's macros in general. And yes, that's pretty close to how you'd do the "who can see" option: ?{To Who|GM,/w GM|Public,|Alice,/w Alice|Bob,/w Bob} (rest of your roll here) I second the suggestion on Scriptcards, it's a robust things that could end up working out better than using the standard macro system, depending on what your other rolls contain.