Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Avatar Name Generator

Lola123 Littlething
Registered User
Join date: 19 Aug 2007
Posts: 6
06-29-2008 11:59
Hi, I am looking for a script that I can put on a sign that will say something like Welcome (then it shows the avatars name that is close). Something like the profile projector but it does not show the picture, it will only display the name of the avatar on the object.
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
06-29-2008 12:04
look up llSensorRepeat and llDetectedName()
Lola123 Littlething
Registered User
Join date: 19 Aug 2007
Posts: 6
06-29-2008 12:26
Yes tried that and not finding anything :-/ I need it to have the avatars name in writing on the sign. All I am finding are scripts to have it whisper the name.
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
06-29-2008 12:28
in the sensor event have something like

llSetText("Welcome "+llDetectedName(0),<1,1,1>,1);

should in text say Welcome Mrc Homewood

you can also investigate XYZ text wich would need slightly more scripting


EDIT:
CODE

default
{
state_entry()
{
llSensorRepeat("", "",AGENT, 5, PI, 1);
}
sensor(integer num_detected)
{
{
llSetText("Wellcome "+llDetectedName(0),<1,1,1>,1);
}
}
no_sensor()
{
llSetText("",<1,1,1>,1);
}
}
Lola123 Littlething
Registered User
Join date: 19 Aug 2007
Posts: 6
06-29-2008 13:15
I saw this on a grave stone, where it writes the name of the person standing near it on the grave stone. Its like its engraved.
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
06-29-2008 13:35
ya thats XYZ text they are textures that are on prims and switch depending on a message