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

Macros: Variables possible?

hi there! is it possible to have variables in an equation that can be filled in by the roller at the time of the roll? so, for example, say the macro is Xd10. the user then in chat goes #macro 4 and the macro activates rolling 4d10. does that make sense? if this isn't possible, it would be a great feature to have, especially if it defaults to 0 if no number is given. this way i could program the macros with room to allow for dice pool modifiers only for when i need them. thanks!
1358506534
Alex L.
Pro
Sheet Author
yeah a perimeter system would be nice i would rather do something like #macro(4) though but that may just be because I'm a programer
sure, whatever works. =) for me this is useful for the nWoD system, since it uses a Dice Pool system. difficulty is determined on the fly by the GM by decreasing the Dice Pool. and equipment bonuses are applied to rolls by increasing the Dice Pool.
You can kind of do this by making one of the three bubbles the variable and calling that in the macro. Zero and blank values are kind of wonky in my experience.
hi yann! thanks for replying, but i'm afraid i don't know what you mean. =) i just got here, like, two days ago. =) could you elaborate? thanks!
Sure. First up, create a character sheet. When you make the attributes on the left hand side, make one of them "modifier". You can leave it blank for now. You can call @modifier in your abilities as normal (such as @Strengthd6 + @Modifierd6) When you import a token, link that token to the character sheet (drop down menu on the top left) On the top right, link one of the three values (the heart, the lightning flash or the squiggly flatline thing) to modifier. Save. When you click on the token, you should see three bubbles pop up. Whichever one you linked to modifier (say the lightning flash) is your modifier - if you type "3" in to there abd roll the ability you created, it'll roll @strengthd6 + 3d6.
ho ho! that's awesome! =D thanks so much! i'll have to give that a shot! =D
1358509783
Alex L.
Pro
Sheet Author
Yeah that's how most people do nWoD stuff, its a good place holder but i would still like to see perimeters.
ah, ok, i see now. this works great for adding in equipment modifiers. but right, it doesn't work if left blank (defaults to 1d10) and doesn't work for negative modifiers that decrease the dicepool. it's still a tool i can leverage though, so thanks! but i hope in the near future the devs will expand the ability to modify dice pools on the fly and with macros. =)