I ran into a problem when I wanted to create a GM-only tooltipped result. For example:
Code: Select all
[h: toolTip = evalMacro('[t:1d20+1d10]')]
**Secret sent to GM!!** [gm: toolTip]
This produces "**Secret sent to GM!!** « toolTip = »1d20+1d10 = 19 + 4231d20+1d10 = 19 + 423« »" in the chat; the HTML pulled from a message history export is:
Code: Select all
<font color="#000000"><span>**Secret sent to GM!!** «</span></font><font color="blue"><span class="roll"> toolTip
=  </span></font><font color="#000000"><span>»1d20+1d10 = 19
+ 4231d20+1d10 = 19 + 423«</span></font><font color="blue"><span class="roll">  </span></font><font color="#000000"><span>»</span></font>
I'm guessing this is the "wrong formatting" mentioned in the evalMacro page for a tooltip. So, I tried using the "unformatted" die roll parameter, because I want the DM to be able to see what the roll consists of:
Code: Select all
[h: unformatted = evalMacro('[u:1d20+1d10]')]
**Secret sent to GM!!** [gm: unformatted]
and I got "**Secret sent to GM!!** « unformatted = »u1d20+1d10 = 6 + 10 = 16u1d20+1d10 = 6 + 10 = 16« »" as a result.
Code: Select all
<font color="#000000"><span>**Secret sent to GM!!** «</span></font><font color="blue"><span class="roll"> unformatted
=  </span></font><font color="#000000"><span>»u1d20+1d10 = 6
+ 10 = 16u1d20+1d10 = 6 + 10 = 16«</span></font><font color="blue"><span class="roll">  </span></font><font color="#000000"><span>»</span></font>
Which is a similar error, but shouldn't really be happening, since the "unformatted" roll option should be just sending a text string, right? So is this an issue with the "gm:" roll option, or the "unformatted" option? Having the final output be a [gm,r: ] roll (combining the "gm" and "r" options) does clean up the output a little ("**Secret sent to GM!!** u1d20+1d10 = 8 + 6 = 14« »"), but not completely.
So, does anyone have an idea on how this could be resolved so I can send the full text of a roll to the GM's using evalMacro? I have been using the evalMacro because there's more text to the GM message than just that die roll, but I'm going to split it up into multiple messages to make it work for now.