Archive for SLMC Second LifeŽ Music Community Forum
|

EvaMoon
|
Scripts! Arrrgh!It SEEMS straightforward. I found (and have been using) a group join script. Now I want to put it in something else. But it won't set right. Here is the script:
//To find your groupkey use the new search and search for your groupsname. Scroll down to the bottom. You will find a grey link there. Copy the part with all thos numbers. Mark it with the mouse and press ctrl + C to copy. Go with the mouse between the "" after string Groupkey= an delete anything between the "". Prss ctrl + v to insert your group id.
string GroupKey = "af8465e7-1e85-866a-8aff-fb9c1d8da0dc";
//Replace the letters between the "" after the string Groupname= and replace it with your groupname
string GroupName = "EvaMoon's Lunatics";
//Save and reset the script with the two bottuns on the reght lower side of this windows. Thats it. The Script is now ready to run
default
{
touch_start(integer total_number)
{
llInstantMessage(llDetectedKey(0),"Open history (Ctrl-H), then click the link to join EvaMoon's Lunatics" + ": secondlife:///app/group/" + GroupKey + "/about");
}
}
I've set the group string to my own group's name as you see, but the floating text over the sign refuses to change from "Click me for a group invite to Punks Finest Franchise Group"
I've saved, reset, renamed, taken, rerezzed. I really want NO floating text, but I'll settle for EvaMoon's Lunatics.
Thanks!
|
Grace
|
I copied that script, put it in a clean prim and it works fine. Do you have another script set on the existing object that is creating the floating text?
I dropped the object that I tested on you in world. If you want floating text, that's easy enough to add.
|
Toby Lancaster
|
Unlike other things, floating text is a property of the prim, and not dependant on a script. However, you do use a script to set it.
If you want to remove the floating text, add the following line to the script on a new line after the llInstantMessage line:
llSetText("", <1.0, 1.0, 1.0>, 1.0);
This sets the floating text to nothing. If you want text, put something between the quotes. When you're happy with it you can (if you like) remove it from the script as it only needs to run once. Alternatively comment the line out (//) and re-save the script.
Toby
|
EvaMoon
|
Thanks so much! That worked.
Inch by inch, I learn stuff. But I don't think building and scripting is my niche.
|
|