OsGetNumberOfNotecardLines
From OpenSimulator
(Difference between revisions)
m (some format conversions) |
|||
Line 1: | Line 1: | ||
− | {{osslfunc| | + | {{osslfunc |
− | threat_level = VeryHigh | + | |threat_level=VeryHigh |
− | | | + | |function_syntax=osGetNumberOfNotecardLines(string name) |
− | function_syntax = | + | |ossl_example=<source lang="lsl">//Example usage: |
− | osGetNumberOfNotecardLines(string name) | + | |
− | + | ||
− | | | + | |
− | ossl_example = <source lang="lsl">//Example usage: | + | |
default { | default { | ||
state_entry() { | state_entry() { | ||
Line 17: | Line 13: | ||
} | } | ||
</source> | </source> | ||
− | | | + | |description=This function directly reads how many lines a notecard has if the specified notecard exists within the task inventory, bypassing the dataserver event to reduce code complexity. |
− | + | ||
| | | | ||
}} | }} |
Revision as of 20:33, 1 July 2011
osGetNumberOfNotecardLines(string name)
| |
This function directly reads how many lines a notecard has if the specified notecard exists within the task inventory, bypassing the dataserver event to reduce code complexity. | |
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<=osGetNumberOfNotecardLines(notecard); i++) { llSay(0, osGetNotecardLine(notecard, i)); } } } |