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

[Roll Template] Summing Template Rolls

1455379176
Carl T
Sheet Author
Is it possible to sum two independent rolls in a roll template together to produce a final result for that roll? Pseudo-code: &{template:default} {{name=Defense}} {{Passive=[[4d2>2]]}} {{Active=[[4d2>2]]}} {{Defense=@{Passive}+@{Active}}} I want the results of the Passive and Active rolls to be summed as Defense and not Defenseas a 3rd independent roll.
Not to my knowledge. Something that simple can sorta be done with powercards, but manipulating the results any further cannot.
This will sorta work right now, but it shows the totals of the dice rolls instead of the total success. I'm working on a minor update to PowerCards allow you to specify to show the successes instead. !power {{ --name|Defense --Passive:|[! [^Pssv] !] --Active:|[! [^Actv] !] --Defense:|[[ [$Pssv] 4d2>2 + [$Actv] 4d2>2 ]] }}
1455381969
Carl T
Sheet Author
Hi. I figured it probably wasn't possible, but I thought I'd check. Can PowerCards be used as part of a character sheet?
What do you mean by part of a character sheet?
1455383631
Lithl
Pro
Sheet Author
API Scripter
Carl T said: Hi. I figured it probably wasn't possible, but I thought I'd check. Can PowerCards be used as part of a character sheet? You can put a PowerCard macro into a roll button on a character sheet, but that button will then not work in a campaign without the PowerCards script installed. Probably not a good idea for a community sheet, but if you're just making a custom sheet for your own campaign(s), it'd be fine.
On the bright side, even if you don't need the update to PowerCards that I almost have done... your thread has prompted an update that expands PowerCards a tiny bit. :D
Carl T said: Can PowerCards be used as part of a character sheet? Powercards can be used with pretty much everything.  Any character sheet, macaroni, presidential elections, Vince, footwear, sociological theories, advertising...
1455386983
Finderski
Plus
Sheet Author
Compendium Curator
Coal Powered Puppet said: Carl T said: Can PowerCards be used as part of a character sheet? Powercards can be used with pretty much everything.  Any character sheet, macaroni, presidential elections, Vince, footwear, sociological theories, advertising... I've even used PowerCards to found a new religion, bake ziti, and walk the dog (a literal dog, not the yo-yo trick—though, I'm sure that could be done, too). I do recommend caution when using PowerCards with Vince, though...sometimes the results can be a little unexpected...
PowerCards: &nbsp; <a href="https://app.roll20.net/forum/post/2165711/script-p" rel="nofollow">https://app.roll20.net/forum/post/2165711/script-p</a>... You can format the powercard however you want, but the macro below shows how to use the Roll ID's to get the individual results from each roll and use those to display them in the Passive and Active tags. Macro: !power {{ --name|Defense --Passive:|[! [^Pssv.ss] !] --Active:|[! [^Actv.ss] !] --Total Defense:|[[ [$Pssv|NH] 4d2&gt;2 + [$Actv|NH] 4d2&gt;2 ]] }} Output:
1455389221

Edited 1455389293
vÍnce
Pro
Sheet Author
G V. said: Coal Powered Puppet said: Carl T said: Can PowerCards be used as part of a character sheet? Powercards can be used with pretty much everything. &nbsp;Any character sheet, macaroni, presidential elections, Vince,&nbsp;footwear, sociological theories, advertising... I've even used PowerCards to found a new religion, bake ziti, and walk the dog (a literal dog, not the yo-yo trick—though, I'm sure that could be done, too). I do recommend caution when using PowerCards with Vince, though...sometimes the results can be a little unexpected... Confirmed. +1000 for Powercards...