Assistance and illumination is always appreciated -)
Dominus
key myid;
default
{
state_entry()
{
llSay(0, "Hello, Avatar!"
;}
touch_start(integer total_number)
{
string name = "Dominus Skye";
llSensor(name,NULL_KEY,AGENT,99,PI);
llSay(0,"your key is: "+(string)myid);
}
sensor(integer who)
{
myid = llDetectedKey(0);
}
}
Sample output based on 4 touches:
Object: Hello, Avatar!
Object: your key is:
Object: your key is: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
Object: your key is: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
Object: your key is: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
(Actual key changed to protect the guilty lol)