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.

Variable macros

I was wondering if it is possible to create variable macros, so the number of dice can be modified depending on what is needed
<a href="http://community.roll20.net/discussion/3650/macro-ideas#Item_4" rel="nofollow">http://community.roll20.net/discussion/3650/macro-ideas#Item_4</a> i just posted this on that thread this morning working with the "Attributes" and "Abilities" on the character sheets has made this waaaaay easier. But can also be done from the settings tab (gear icon) in the main macros section. its all about adding another line and using # and @ to find/link the macros together.
from what you wrote, that doesnt quite cut it, I'm thinking something more like /roll (@att1+@att2+X)d6 and the macro be called from #macro(3) to give /roll (@att1+@att2+3)d6 or one further /roll (X+Y+Z)d6 called with #macro(@att1,@att2,3)
Are yew trying to make the result = the amount of d6's that get rolled from att1&2? check out: <a href="http://help.roll20.net/dice-rolling-reference/" rel="nofollow">http://help.roll20.net/dice-rolling-reference/</a> till someone proper gets a chance to find this topic...Gauss knows whats up, im sure he will find this.
yeah, so what ever stats or variables equal the dicepool
1355319995
Gauss
Forum Champion
You summoned me? Have you cast the proper protection spells? :D Using the current system to do a variable I would do the following: Step 1: In your character sheet create an attribute called Variable. Step 2: Link the character sheet to a token. Using the dropdown menu next to one of the bars select 'Variable'. This allows you to change @variable by changing the number in the bubble. Step 3: Create a macro using @Variable as your variable in the macro. It is worth noting that that you cannot currently use () to group functions together before applying them to a d6 roll. So I would do the following for your macro: /r @att1 d6 +@att2 d6+ @variable d6 with the spaces between the d6 and the @'s removed. To delete the spaces place the cursor right before the d6 and then hit backspace. Place the cursor somewhere else before typing or else you will delete the @att1 etc. - Gauss
Is there a way to do this with exploding dice and roll and keep? For example in L5R rolls would be (in most cases): /roll (@stat+@skill)d10!!k@stat+bonus
1355402122
Gauss
Forum Champion
Unfortunately, there is currently no way to sum up bonuses (inside parenthesis) before the dice are rolled. - Gauss