OsGetNotecardLine

From OpenSimulator

Revision as of 16:07, 12 June 2011 by Fritigern (Talk | contribs)

Jump to: navigation, search
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<=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