Okie, so i found a nose kiss script i wanted to use for my Toddleedoo and edited it a bit. My problem was originally, that it didn't display the display name for the person who clicked it, but showed display name for the owner (me). So i edited it a bit and i'm so close! Now it shows the Display name for both clicker and owner. But it has this ":" in front it which I think is the object name... Originally the snippet that read: " llSay(0, llGetDisplayName(llDetectedKey(0)) + "kisses " + owner + "'s nose. ");" read " llSay(0, "/me kisses " + owner + "'s nose."); " and I think that's the problem...? Can anyone help me with removing the ":"? Thank you so much in advanced! Here is my current lsl (it might be kind of messy lol):
default
{
state_entry()
{
llPreloadSound("KISS SOUND HERE");
}
on_rez(integer start_param)
{
llResetScript();
}
touch_start(integer total_number)
{
integer i;
for (i = 0;i < total_number;i += 1)
{
llPlaySound("KISS SOUND HERE", 0.7);
string origName = llGetObjectName();
string owner;
owner = llGetDisplayName( llGetOwner() );
owner = llList2String( llParseString2List( owner, [" "], [] ), 0 );
string avName;
avName = " ";;
avName = llList2String( llParseString2List( avName, [" "], [] ), 0 );
llSetObjectName( avName );
llSay(0, llGetDisplayName(llDetectedKey(0)) + "kisses " + owner + "'s nose.");
llSetObjectName( origName );
}
}
}