Example:
PC's do a perception check and they get a little chat output that says that they did so, and it looks pretty and has a tool-tip that breaks down the roll, individual modifiers and total roll. Swanky for my mediocre skills!
NPC's do a perception check and if I just hide the output text, the tool-tip code causes just a blank line of text to show up.
Result:
If the PC's are on one side of a door and listening to see what is on the other side, and I roll for the BBEG to do the same, the players get a meta-game message saying (Image of BBEG)Name of BBEG: (blank text line). It really eats the surprise!
My temporary solution involved simply removing the tool-tips from anything I wanted to be completely hidden, so the DM does not get the neat benefits of seeing roll breakdows but players do.
Is there a way that I am not seeing to have tool-tips visible only to GM's so I can benefit from my tool-tips but still completely hide the chat output to my non-GM players?
Example:(just one skill pulled out to show the code)
Spoiler
Code: Select all
[h: gmOnly = isNPC()]
[h: Random.Roller(20)]
[h: dieRoll = number(outputRoll)]
[h: skillRoll = dieRoll + Heal + TempSkillModifier]
[h: totalModifier = Heal + TempSkillModifier]
[h: output.tip = strformat("<html>
<table><tr><td colspan=2><b><center>Heal Check</center></b></td></tr>
<tr><td>Skill Modifier:</td><td>%{Heal}</td><td>Temporary Modifiers:</td><td>%{TempSkillModifier}</td></tr>
<tr><td>D20 Roll:</td><td>%{dieRoll}</td><td>Final Modifier: %{totalModifier}</td></tr>
</table></html>")]
[h: outputText = strformat("<b>Heal</b> check = %{skillRoll}.")]
[ if(gmOnly == 1), CODE:
{
[r: nad.lib.DisplayText(outputText, gmOnly)]
};{
<td><span title="{output.tip}">
[r: nad.lib.DisplayText(outputText, gmOnly)]
</span></td>
}]
Code: Select all
[h: '<-- arg 1 is npc or pc output
arg 0 is the text to output -->']
[if(arg(1) == 1),CODE:
{
[g,r: arg(0)]
};{
[r: arg(0)]
}]