Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Reading Information from a Notecard (Newbie Question)

Cookie Bertone
Music & Audio
Join date: 13 May 2006
Posts: 13
01-22-2007 07:11
I am trying to write a script that gets its information from a notecard. I can get it to read and display each line in turn using llGetNotecardLine but I want to get it so that each line in the notecard can be split into sub categories. I thought I could use the llList2String command but it's just not working.

I'm not after a complete solution, just some help to get me going in the right direction.

Thanks in advance for any help that can be given.

e.g.

The notecard has several lines all with the same basic format.

line 1 > link, detailed description, short name
line 2 > link, detailed description, short name
line 3 > link, detailed description, short name

I enter the short name in chat (probably preceeded by a channel such as /99), it displays the detailed description and applies the url to a variable.
nand Nerd
Flexi Fanatic
Join date: 4 Oct 2005
Posts: 427
01-22-2007 07:20
you're looking to parse the string into a list, the function llList2String takes a list and an index number and returns the contents of the list at index no as a string.

see http://lslwiki.com/lslwiki/wakka.php?wakka=llParseString2List
_____________________
www.nandnerd.info
http://ordinalmalaprop.com/forum - Ordinal Malaprop's Scripting Forum