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

Powercards Help Please :)

Is there any way to add roll ids together? I want to add two different damage types together (each generated by a different roll) for the purposes of determining whether an attack renders the victim unconscious or kills them in 5e. When you add Roll ids to new Rolls they always come out as zero. From what I read, you definitely can't add them together in other rolls e.g. --hroll|[[ [$total] 1d0 + $Dmg + $Acd ]] but is there a way to add them inside a set of brackets for a conditional query or something?   e.g. --?? ($Dmg + $Acd) >= $Death ?? Character dies horribly...! Many thanks in advance! :) John
1617982244
Andreas J.
Forum Champion
Sheet Author
Translator
This part of the documentation seems relevant: <a href="https://wiki.roll20.net/PowerCards#Important_Clarifications" rel="nofollow">https://wiki.roll20.net/PowerCards#Important_Clarifications</a> Roll IDs (results of rolls assigned to names that can be used in output as placeholders for the roll value) are NOT variables. All rolls are processed before the output portion of any PowerCard tag takes place, and Roll IDs from one roll are not available in other rolls. Roll IDs are only used to include the result of a roll in output or to compare the result in a conditional tag. The powercards documentation is pretty comprehensive so it's best you read it more if it says something relevant elsewhere.
Yes, I have already read that, which is how I already know that Roll IDs are not available in other rolls as per my given examples above :) I am looking for a workaround and thought someone might know. I find it difficult to believe that they can't be used in mathematical functions at all! J
Yay! Expanded conditionals appear to allow the addition of Roll IDs :D:D:D