24 May 2020
27 May 2017
attachmentsparameter; added the ability to set permissions on created notecards via the
3 January 2017
entityto be set and allows creating a notecard by reading a text file from the local storage that Corrade is running off.
7 October 2016
|Type||Corrade progressive command|
|Last Changes||C10 - added the ability to place embedded items at specified positions.|
createnotecard command can be used to create a new notecard in Corrade's inventory.
|Command||Required Parameters||Required Corrade Permissions||Example|
| || || ||
llInstantMessage(CORRADE, wasKeyValueEncode( [ // creates a notecard called // "Hello" containing the // text "Good day!" "command", "createnotecard", "group", wasURLEscape(GROUP), "password", wasURLEscape(PASSWORD), "entity", "text", "name", "Hello", "text", "Good day!" ] ) );
|Optional Parameter||Possible Value||Description|
| ||A string representing permissions in Corrade permission notation||Set the permissions on the notecard.|
| ||A string.||The description of the notecard.|
| ||A CSV string.||A list of tokens by UUIDs or inventory paths to be used as embedded attachments for the notecard.|
|Parameter||Possible Value||Second Parameter||Possible Value||Description|
| || || ||The text contained in the notecard.|| Creates a notecard using the value passed to the optional parameter
| || ||The path to a file on the local storage that Corrade is running off.|| Creates a notecard by reading the file passed to the optional
| || ||Base64-encoded asset data such as the one returned by the download command.||Creates a notecard from binary asset data.|
The following command will create a notecard and embed two items specified by their inventory path:
llInstantMessage(CORRADE, wasKeyValueEncode( [ // creates a notecard called // with multiple atachments "command", "createnotecard", "group", wasURLEscape(GROUP), "password", wasURLEscape(PASSWORD), "entity", "text", "name", "Test 12", "text", wasURLEscape("Good  day! "), "description", "A test notecard", "attachments", wasListToCSV( [ "", wasURLEscape("/My Inventory/Textures/AF_Leather.tga"), "", wasURLEscape("/My Inventory/Textures/xmas") ] ), "callback", wasURLEscape(URL) ] ) );
 are user-defined tokens and can be anything as long as the tokens are unique for each inventory item and the tokens do not conflict with the underlying supported output and/or input language; in the latter case, the tokens will have to be properly escaped (ie:
The expected result of running the command will be the creation of a new notecard with the body being a concatenation of:
The tokens can be placed anywhere in the value of the
text key. For instance, the command can be changed with the purpose of achieving a different embedded item order:
"text", " Good day!"
will create a notecard with the two attachment items placed at the very beginning of the notecard and followed by the string
attachmentsparameter could not be found, the command will return a list of attachments passed to the
dataparameter of the callback.