LSL Protocol/ScriptShow

From Second Life Wiki
< LSL Protocol
Revision as of 20:02, 9 October 2007 by Grumble Loudon (talk | contribs) (Creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Back to Protocol page

Scripted show Protocol

(Proposed) (Draft, not implemented) (Open for comments)

Scripted Shows use a notecard to control the show. Notecards are slow, so the protocol allows for the enabling of other scripts for more complex functions.

The basic notecard show consists of lines with commands.

1.) Include, [notecard name], [ntimes = 1]

This command includes a notecard and optionally repeats it n Times.
The notecard that contains this command is paused until the other notecard completes.

2.) Pause, [seconds]

 This pauses for x seconds. x can be as small as .1 second and up to 10 seconds.

3.) Say, [channel = 0], [actor name], [text] (Note: The viewer script is responsible to decide on range say vs wisper vs shout )

This is the main command for the system. It can be used to trigger other actions or send text to the viewer.

4.) TextureKey, [Key]

Changes the display to GUID.
It is recommended that the texture be packed into a box in the inventory of the object so that SL does not remove the texture from the database.

5. TextureName, [name]

Changes the display to display the named texture.

6.) TextureScale, [TBD]

Sets the repeat, rotate, and flip settings for the texture

7.) Color, [RGB], [alpha = 1]

Set's the color of the screen.

6.) TextureAnimate, [pram list]

TBD

7.) ScriptEnable, [script name] and DisableEnable, [script name]

Note: the script must be disabled via script in order to be enabled via a script

8.) WaitFor, [channel], [msg]

 This allows for one Interpreter to wait for other scripts to send messages.

9.) RezObject, [inventory name], [int StartPram], [pos], [rotation]

Rezs a object from the viewer's inventory.
The pos and rotation is relative to the viewer.
Note:This uses the "safe" form of object rezing in that the object being rezed is not a copy of the viewer.

Interpreter

ToDo

Scripts

The Main Interpreter script(To Do)

Notes