G General

Read NOTECARDS easily! ( Notecard reader ) - NotecardLoader [script]

Read NOTECARDS easily! ( Notecard reader ) - NotecardLoader [script]
Details
Features
Contents
Reviews

This script makes it easy for you to read notecards.
Using NotecardLoader's API you will be able to read notecards in a few lines of code

VERY EASY TO USE! EXAMPLES ARE PROVIDED WITH FULLY COMMENTED CODE FOR EASIER UNDERSTANDING.
USAGE IS ENDLESS AND SCRIPTING KNOWLEDGE REQUIRED IS BASIC.

Hello world case!
- You want to read a notecard? So you will call a functions called "readNotecard" indicating the name of the notecard.
- For each line in the notecard you will receive a llMessageLinked message with the content.

HOW TO START
------------
First of all, copy in a box the scripts in this order:
1. NotecardLoader
2. NotecardLoader_Cryptic
3. Now add the notecard to be read: note_example1
4. When you touch the box the script will start reading the notecard.

NotecardLoader_Cryptic comes with a basic example.
Open and read the script DynamicMenu_Cryptic.
You will find a short code fully commented. You can try to modify this script and adapt it for what you need.

FUNCTIONS PROVIDED
------------------

NOTECARDLOADER_setlinkMessageNum(integer linkMessageNumToSet)
Change the linkMessageNum to communicate with NotecardLoader script. By default -2.

NOTECARDLOADER_readNotecard(string notecardToRead)
Start reading a notecard.

EVENT NOTIFICATIONS
------------------
llMessageLinked messages with Json data structure are sent from NotecardLoader script in the following cases:
- Before starting to read the notecard:
["notecardLoaderPingBegin"]
- For everyline read in the notecard:
["readNoteCardResponse","content of each line"]
- Read the notecard is finished:
["notecardLoaderPingEnd"]

  • Notecard reader