Im not sure im getting it right. This is what i have.
default
{
touch_start(integer total_number) {
llSay(-55343,"Does this Work?");
}
}
and the listen...
integer CommandIs(string msg,string cmd)
{
return llSubStringIndex(msg,cmd) == 0;
}
ParseAndIssueCommand(string cmd)
{
if (CommandIs(cmd,""))
{
string name = llGetSubString(cmd,20,-1);
if (name == "")
llSetText("",<0,1,0>,1.0);
else
llSetText(name,<0,1,0>,1.0);
}
}
default
{
state_entry()
{
llListen(-55343,"",llGetOwner(),"");
}
on_rez(integer start_param)
{
llResetScript();
}
listen(integer channel, string name, key id, string msg)
{
ParseAndIssueCommand(msg);
}
}
// END //