integer lChannel = 99;
integer Handle;
DoSomething()
{
//put what you want to occur in here
}
DoSomethingElse()
{
//put what you want to occur in here
}
default
{
state_entry()
{
}
attach(key attached)
{
if(attached!=NULL_KEY) //once the prim is being worn start listening on channel 99
{
Handle = llListen(lChannel,"",llGetOwner(),""

;
}
else
{
llListenRemove(Handle);
}
}
listen(integer channel, string name, key id, string message)
{
if(channel == lChannel) //did the owner say something on channel 99?
{
if(message == "oneCommand"

//did they say 'oneCommand'
{
DoSomething();
}
if(message == "aontherCommand"

//did they say 'anotherCommand'
{
DoSomethingElse();
}
}
}
//if you sell it make sure the new owner gets set
changed(integer change)
{
if(change & CHANGED_OWNER)
{
llResetScript();
}
}
}