|
Gurupta Singh
Registered User
Join date: 11 Feb 2007
Posts: 2
|
01-19-2008 09:18
Hi folks.. I'm really sorry if this has appeared elsewhere.. never been good with forums. I have however asked all the SLers I know who have scripting skills to no avail. I'm looking to make a program take an integer value X ... and then return the text sentence at line X of notecard notecard_1 for example. So if X=3 the sentence in line 3 of the notecard is returned as a string which can then be entered into a SAY function. It seems like a really simple thing but I can't find anyone who knows how to do it . Can anyone help ? I might even offer a small L$ reward- if that's allowed XD
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-19-2008 10:03
roughly default{ state_entry(){ llListen( 42, "", llGetOwner(), "" ); }
listen( integer vIntNull, string vStrNull, key vKeyNull, string vStrNumber ){ llGetNotecardLine( "notecard name", (integer)vStrNumber ); //-- 0 based index }
dataserver( key vKeyNull, string vStrData ){ llSay( 0, vStrData ); } }
/42 # will pull out the notecard line
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Gurupta Singh
Registered User
Join date: 11 Feb 2007
Posts: 2
|
thank you
01-19-2008 11:05
thank you thankyou !! 
|