Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sign Script

Koneko Nori
Registered User
Join date: 15 Jun 2006
Posts: 3
06-17-2006 03:00
Hi all,

Can anyone help me out please, I'm looking to make a sign that is scripted so that, when you touch the sign you are then able to change the text on it. Like for names. I know there are flip titles but what I'm going for is a simple prim sign to put with a item I have built and I plan to sell

thanks in advance

(sorry if that doesn't make sense, I can't think how else to word my question.)
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
06-17-2006 05:07
Do you want it to only respond to owner commands or such?
I'd probably do something like:

CODE
integer listenID = FALSE;
default {
touch_start(integer x) {
if (llDetectedOwner(--x) == llGetOwner()) {
llListenRemove(listenID);
listenID = llListen(0, "", llGetOwner(), "");
llOwnerSay("Please type (into chat) the title you would like for your sign");
llSetTimerEvent(60.0);
}
}
timer() {
if (listenID) {
llListenRemove(listenID);
listenID = FALSE;
llOwnerSay("Didn't receive a title after 60 seconds, please touch to try again!");
}
}
listen(integer channel, string name, key id, string msg) {
llSetText(msg, <1.0, 1.0, 1.0>, 1.0);
llListenRemove(listenID);
listenID = FALSE;
llSetTimerEvent(0.0);
llOwnerSay("New title was set!");
}
}


Double check for any slight typos, but that would allow the owner of the sign to enter any title they wish by typing into chat, with a timeout on the chat.
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)
Zaldor Tandino
Registered User
Join date: 24 Mar 2006
Posts: 2
06-20-2006 08:16
You might want to consider the XY Text script /54/9c/12156/1.html (in particularly the 3rd page) and use the previous post's suggestion on typing the information into chat.