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 .
×
Our team is currently investigating rolling service outages. For more information, visit our most recent Forum Announcements post.
Create a free account

Looking for Shadowrun Macro

I am looking for help making a generic macro that uses drop down menus for the stats and skill/ or a query. I know the successes use >5 at the end of the dice pool. Which would have to be quarriable. I need the menus for stats, Query skill and dice pool of D6>5. I have a sample of the code: @{Todd Kenji|gmroll}&{template:shadowrun}{{name=@{Todd Kenji|character_name}}}{{roll_name=@{Todd Kenji|skillname8}}}{{val1=@{Todd Kenji|skillattr_name8}}}{{val1_num=[[@{Todd Kenji|skillattr_value8}]]}}{{val2=@{Todd Kenji|skillname8}}}{{val2_num=[[@{Todd Kenji|skillrating8}+@{Todd Kenji|skillbonus8}]]}}{{mod_num=[[?{Situational Modifiers|0}]]}}{{edge=@{Todd Kenji|edgeroll}}}{{edge_num=[[@{Todd Kenji|edg_total}]]}}{{wounds_num=[[@{Todd Kenji|wound_total}]]}}{{limit=@{Todd Kenji|skilllimit_name8}}}{{limit_num=[[@{Todd Kenji|skilllimit_value8}]]}}{{limit_mod=[[@{Todd Kenji|skilllimitbonus8}]]}}{{result=[[(@{Todd Kenji|skilldicepool8}-[[@{Todd Kenji|wound_total}]]+?{Situational Modifiers|0}+[[@{Todd Kenji|edgn}*@{Todd Kenji|edg_total}]])@{Todd Kenji|standardroll}@{Todd Kenji|edgeroll}kh[[[[@{Todd Kenji|skilllimit_value8}]]+@{Todd Kenji|skilllimitbonus8}]]]]}}{{description=@{Todd Kenji|skillnotes8}}}
I'm not sure I understand your question, but if you're trying to make a universal action roll button, I believe you can embed attribute references in your macro so that the values of your drop-down list in your character sheet becomes a pointer to another attribute (something like @{@{attribute_ pointer}}). I believe the Vampire: The Masquerade 5th Edition character sheet has such a feature for Disciplines so you may want to look at its code. That said, I would generally prefer having multiple macros generated by a script instead, but I'm not sure of your use case. By the way, which edition of Shadowrun are we talking about here? I was considering making a sheet for 3rd Edition myself at some point in the future...