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.

Reuse of variable for better macro

Hello, I saw in forum lot of players wanted to reuse roll value or to setup a variable during a macro with a dice. Like : Attack = 1D20 Damage = 1D5 NumberOfAttack = 1D3 TotalDamage =  Damage *  NumberOfAttack Which mean : Attack = 14 (success) Damage = 5 NumberOfAttack = 2 TotalDamage =  5 * 2 This is of course just the way variable can be used on that is missing on roll20 It could be a way to get the dice result by ID too like ID[Damage] or something It's something missing for Powercards & Scriptcards to go further in possibility. Like to do an automatic quest generation : !power {{ --QuestType : |[[ [$Roll] 1D110]] -- D5 :|[[ 1D5 ]] --?? $Roll.base >= 51 and $Roll.base <= 110 ?? Quest : |Give [[ Result{D5} ]] drink rank 1 --?? $Roll.base >= 51 and $Roll.base <= 110 ?? Earn : |[[ Result{D5} * 3]] money & [[ Result{D5} * 3]] Reputation --?? $Roll.base >= 1 and $Roll.base <= 50 ?? Quest : |Give [[ Result{D5} ]] food rank 1 --?? $Roll.base >= 1 and $Roll.base <= 50 ?? Earn : |[[ Result{D5}  * 3]] money & [[ Result{D5}  * 3]] Reputation }}
1693037992
Andrew R.
Pro
Sheet Author
You should read the Wiki, which has instructions for reusing rolls. <a href="https://wiki.roll20.net/Reusing_Rolls" rel="nofollow">https://wiki.roll20.net/Reusing_Rolls</a> ScriptCards has no trouble reusing rolls, it’s just a Roll Variable.&nbsp;
1695795537
[Deleted]
Pro
Marketplace Creator
Thanks for the suggestion! After 30 days, Suggestions and Ideas with fewer than 10 votes are closed and the votes are refunded to promote freshness. Your suggestion didn't build the right momentum this time, but feel free to submit it again! We find that the best suggestions describe the problem you are having, and the solution you want. You can learn more about the process of making suggestions on the Roll20 Wiki! More details can be found here .