Difference between revisions of "Template:LSL Function/notecard"
Jump to navigation
Jump to search
m (Fix parentheses) |
(Move some Caveats from LlGetNotecardLine) |
||
Line 2: | Line 2: | ||
{{#vardefine:caveats|{{#var:caveats}} | {{#vardefine:caveats|{{#var:caveats}} | ||
* If '''{{LSL Param|{{{1|name}}}}}''' is a new empty notecard (never saved) then an error | * If '''{{LSL Param|{{{1|name}}}}}''' is a new empty notecard (never saved) then an error "Couldn't find notecard ~NAME~" (~NAME~ being the value of '''{{LSL Param|{{{1|name}}}}}''') will be shouted on the [[DEBUG_CHANNEL]]. This is because until a notecard is saved for the first time, it does not exist as an asset only as an inventory placeholder ([[llGetInventoryKey]] will return [[NULL_KEY]]). | ||
}} | }} | ||
Revision as of 05:43, 7 May 2009
Caveats
- If name is missing from the prim's inventory or it is not a notecard then an error is shouted on DEBUG_CHANNEL.
- If name is a new empty notecard (never saved) then an error "Couldn't find notecard ~NAME~" (~NAME~ being the value of name) will be shouted on the DEBUG_CHANNEL. This is because until a notecard is saved for the first time, it does not exist as an asset only as an inventory placeholder (llGetInventoryKey will return NULL_KEY).
Footnotes