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

Can I reference Roll Results? (am I even using the word reference in the right context?)

(am I even using the word, reference, in the right context?) Hey guys, Is it possible too pull the result of a macro, and use that result in other macros? Basically I have this macro: [[1d100]] = "#aHund" And I'm using it in these 2 Macros: 1: "tHund" =  [[(-1*(#aHund ) +55 ) /10]] 2: &{template:default} {{name=AxeStrike}} {{Hit= #Ahund }} {{DoS= #thund }}{{Dmg= [[1d10+2]] }} {{BodyPart=[[1t[hit-location]]]}} {{AP Cost=[[-2]]}}  I was hoping to find a way that the result for "aHund" would roll once for all the uses.  (I've learned that it doesn't) The goal is to have it roll once for the Hit chance, and then use that roll in the "THund" macro  for the degrees of success section.   Is there another way to do this? I was thinking since i have the API script chatsetattr; that i could make a attribute that holds result of "aHund" and then the other macros could reference that number, then once the roll is done wipe the number back too 0.   I was just wondering if there is a less complicated way to go about Degrees of success for templates.  
1497574797
vÍnce
Pro
Sheet Author
AFAIK you cannot reference a roll like that without an API script.  Not sure chatsetAttr would handle something like this since it's primarily designed to handle sheet attributes (although I recall it can do some math and roll functions as well...). I believe the powercards script is able to do something like this though.  You might try asking in the  powercard thread .
1497578540
Lithl
Pro
Sheet Author
API Scripter
Yes, the Power Cards script lets you do this.