So this was the original thought behind the hud when I was thinking an object could listen to itself, so I know it won't work ATM but my thought is this .... somehow verify that the roll produced and announced in public chat came from my hud. If not, then instant messages sent to owners with who used the fake dice and the fact that it was not the hud.
========================
llListen(-#, "", llGetOwner(), " embedded text");
listen(integer chan, string what, key who, string msg)
{
if (msg != "embedded text");
{
llSay (0, "llGetOwner()" + "Invalid roll.");
llInstantMessage( person2IM, "llGetOwner()" + " used unofficial die!!! -TEST1" );
llInstantMessage( person3IM, "llGetOwner()" + " used unofficial die!!! -TEST1" );
llInstantMessage( person4IM, "llGetOwner()" + " used unofficial die!!! -TEST1" );
}
{
if (msg == "embedded text");
{
llSay (0, "Valid Roll.");
}
}
default
{
state_entry()
}
touch_start(integer num_detected)
{ integer i = 0; for (; i<NumberOfRolls; ++i )
{ integer roll = (integer)(llFrand(SIDES) + 1); total += roll;
}
llSay (0, llGetDisplayName(llDetectedKey(0)) + " rolled a " + (string)total);
llSay (-#, llGetOwner()) + "embedded text");
llResetScript();
}
}