
To my understanding in a macro ?{<variable name>|<default value>} sets a re-accessible variable for that macro resetting every time you reuse that macro. However, I found you can't store a dice rolled value only the rolling text. for example ------------------------------- ?{x|[[d20]]} ?{x} ?{x} ?{x} ?{x} -------------------------------- outputs 5 different random rolls when it should store 1 random roll printed 5 times. After all it is a variable. I need a way to turn a {1d20} into a variable holder so I can re reference my roll more than once in a macro. My use woud be . for example using ~{<variable>|<set to>} and ~{<variable>} to set it apart from --------------------------------- /em draws her +1, impact(+2), cold iron nodachi named Haru-no-Okina and strikes with a [[1d20cs>15+?{modifier|20}]], if she criticals (15-20x3) she tries to confirm with a [[1d20cs>15+?{modifier|20}]]. /em 's connected Haru-no-Okina's strike does [[2d8+13]] and [[1d6]] acid, if she criticals add [[4d8+26]] more. --------------------------------- could be changed to -------------------------------- /em draws her +1, impact(+2), cold iron nodachi named Haru-no-Okina and strikes with a [[{ ~{VAR | 1d20cs>15} +?{modifier|20}} ]], if she criticals (15-20x3) she tries to confirm with a [[1d20cs>15+?{modifier}]]. /em 's connected Haru-no-Okina's strike does [[{2d8+13{+{2d8+26}*{{{ ~{VAR} }>15}*2}}}]] and [[1d6]] acid. -------------------------------- As you can see the damage references the the first d20 roll and uses the pass/fail function as a 0/1 multiplier to the calculation of extra critical damage. My suggestion to fix/add functionality is to have the ?{<variable> |<value> } also include processing of math functions as part of the set value, or have a raw set variable option that can be set in a macro without a popup box and math functionality prior to setting the variable. Like below ---------------------------- ?{x=[[d20]]} ------->Variable set no popup box ------->Random roll rolls a 14 ?{x} -------> output 14 ?{y|[[d20]]} ------->Variable set with popup box ------->Random roll rolls a 3 ?{y} -------> output 3 ?{x} -------> output 14 /roll ?{x}d20+{?{x}*?{y}} ------->Sample use would be ------->Output would be a 56 hover would show: rolled{14}+(number{14}*rolled{3}) --------------------------- Thanx for reading this post...