Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Title changer

Killer Perhaps
Registered User
Join date: 7 May 2006
Posts: 2
07-13-2008 01:13
I am trying to create a script that will allow me to change the llSetText line through a channel command. Can anyone help me?
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
07-13-2008 01:37
CODE

default
{
state_entry()
{
llListen(11, "", llGetOwner(), "");
}
listen(integer channel, string name, key id, string message)
{
if(llToLower(message) == "blank")
{
llSetText("", <0,1,0>, 1);
}
else
{
llSetText(message, <0,1,0>, 1);
}
}
}


There's a simple one. Anything you say on channel 11 will be set as the text. If you say '/11 blank' it will blank the title.

Might need some syntax correction, this was off the top of my head. Done it in-game many times though, so it should work fine, generally.
_____________________
Tutorials for Sculpties using Blender!
Http://www.youtube.com/user/BlenderSL
Killer Perhaps
Registered User
Join date: 7 May 2006
Posts: 2
07-13-2008 12:38
Thank you very much, I really appreciate it!