Code: Select all
[h: Roll = d20]
[h: addToInitiative()]
[h: InitRoll = Roll + 6]
[h: setInitiative(InitRoll)]
[h: sortInitiative()]
<table border='0' cellpadding='0' cellspacing='0' style='width:200px'>
<tr bgcolor='blue'>
<td><span style='color:white'><b>Initiative</b></span></td>
</tr>
<tr><td>[r: InitRoll]</td></tr>
</table>
The same thing happens when a player tries. They click the button, a roll appears in chat, and they can see it on their own Initiative panel, but it never shows up in anyone else's.
It seems to affect both PCs and NPCs. I usually play with "Hide NPCs" disabled anyway, as I don't mind my players knowing the turn order.
I'm on version 1.4.5.2 of the Nerps variant. Is there a bug in my code? A misconfiguration somewhere? Any suggestions would be welcome, as it's pretty annoying. Thanks.