OsGetNotecardLine

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc|
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
threat_level = VeryHigh
|- valign="top"
+
|
|'''Threat Level''' || VeryHigh
+
function_syntax = <source lang="lsl">
 
+
|- valign="top"
+
|'''Function Syntax''' || <source lang="lsl">
+
 
osGetNotecardLine(string name, integer line)  
 
osGetNotecardLine(string name, integer line)  
 
</source>
 
</source>
|- valign="top"
+
|
|'''Example(s)||<source lang="lsl">
+
ossl_example = <source lang="lsl">
 
//Example usage:
 
//Example usage:
 
default {
 
default {
Line 21: Line 18:
 
}
 
}
 
</source>
 
</source>
 
+
|  
|}
+
additional_info = This function directly reads a line of text from the specified notecard, if it exists within the task inventory, and returns the text as a string. It skips the dataserver event, thereby reducing code complexity.  
 
+
|
This function directly reads a line of text from the specified notecard, if it exists within the task inventory, and returns the text as a string. It skips the dataserver event, thereby reducing code complexity.  
+
}}
 
+
[[Category:OSSL Functions]]
+

Revision as of 16:07, 12 June 2011

osGetNotecardLine(string name, integer line)
No descriptions provided
Threat Level VeryHigh
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
//Example usage:
default {
    state_entry() {
        integer i;
        string notecard = llGetInventoryName(INVENTORY_NOTECARD, 0);
        for(i=1; i&lt;=osGetNumberOfNotecardLines(notecard); i++) {
            llSay(0, osGetNotecardLine(notecard, i));
        }
    }
}
Notes
This function directly reads a line of text from the specified notecard, if it exists within the task inventory, and returns the text as a string. It skips the dataserver event, thereby reducing code complexity.
Personal tools
General
About This Wiki