Kendall Edman
-
Posts
9 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Posts posted by Kendall Edman
-
-
ok I kinda got it to work, I messed around and got it to recognize multiple lines but the word title shows up in front of my custom title, it looks somthing like this(title MyCustomTitle) this only shows up on line one.
this is what i did.
listen(integer chan, string name, key id, string msg)
{
string mesg;
mesg = llToLower(msg);
if(chan == 1)
{
if(llGetOwnerKey(id) == llGetOwner())
{ if(llGetSubString(mesg, 0, 5) == "title ")
{
title = llGetSubString(msg, 6, -1);
title = llDumpList2String( llParseStringKeepNulls( msg, ["|"], [] ), "\n" );
if(llToLower(title) == "titleoff")
{
title = "";
}I know I did something right but I also messed up something because title is showing up, however I am getting more than one line now, so my question is what did i do wrong?
-
i am not good at building scripts from scratch, but understand scripting enough to mod them to work for me.
i have however ran into a snag, what i am trying to do is turn a titler into a multi-line titler.
heres the snippet:
listen(integer chan, string name, key id, string msg)
{
string mesg;
mesg = llToLower(msg);
if(chan == 1)
{
if(llGetOwnerKey(id) == llGetOwner())
{
if(llGetSubString(mesg, 0, 5) == "title ")
{
title = llGetSubString(msg, 6, -1);
if(llToLower(title) == "titleoff")
{
title = "";
}i know that \n starts a new line but saying it in open chat wont work, what i need help with is making an un-used character make a new line on a titler.
i have seen some others that use a pipe character "|" to start new lines. if i can get help with making my script do that it will be great.
-
thanks, everythings good now.
-
oh right, i forgot about the details.......... well they are pretty much the same as Ranya and Tommi.
i took the test but its not updating, the test thing is still pink.
any help would be greatly appreciated.
-
can i throw my hat into this ring, i am having the same problem
Help Needed making a Multi-Line titler
in LSL Scripting
Posted
Thanks alot Void, i now have it working properly and no errors, the funny thing was i just changed the title call to msg and that did the trick. but it was your last post that showed me what i needed to change.
and thank you randall for your input as well.