QQ Ship Panel Controller (SPC)
Currently, a scripter’s only choice for providing options is a popup dialogue that supports up to twelve text options. The number of options is reduced to nine per page to enable paging.
The SPC is an SL-based platform for creating visual interfaces for objects. It requires a graphic designer to create an image that visually represents the panel's functions and describes an activity that occurs when a user touches a specific part of that image.
SPC is a special implementation of Auto Greeter. It implements a different set of commands on a panel. For BUTTONs these are the things you can do.
The SPC is an SL-based platform for creating visual interfaces for objects. It requires a graphic designer to create an image that visually represents the panel's functions and describes an activity that occurs when a user touches a specific part of that image.
SPC is a special implementation of Auto Greeter. It implements a different set of commands on a panel. For BUTTONs these are the things you can do.
- PAGE - Causes a new texture to appear with a new set of buttons.
- Syntax: PageName
- Simply provide the name of the page to go to. Each page loads the texture and defines a set of buttons.
- NARRATION - Sends a message on a CommBadge v4 Channel.
- Syntax: channel;character;message
- Parts are separated with a semi-colon (";").
- Identify the Named CommBadge channel. (it's specific to each SOTL)
- Identify the name everybody else on the region will see.
- Identify the message that is transmitted. Since you are specifying the exact message, you need to specify =/\= characters manually. A "|" for a new line is not supported.
- Syntax: channel;character;message
- TP - Sends a message to the CommBadge v4 user offering a teleport to anywhere on the grid..
- Syntax: slurl
- Provide an SLURL and the CommBadge does all the rest to teleport the user to that location.
- Provide an SLURL and the CommBadge does all the rest to teleport the user to that location.
- Syntax: slurl
- LOGOUT - Closes the panel and allows somebody standing nearby to start it. This is the same if the user walks more than 4m from the panel. By default, no other person can interact with a panel once a user gains access.
- Syntax: <no parameters>
- Syntax: <no parameters>
- DIALOG - Opens a dialog box showing up to 500 characters. HTTP addresses are automatically shown with links, making it easy to have a button.
- Syntax: message
- Note: Use "|" to denote a new line.
- Note: Use "<name>" to subtitute in the user's display name.
- Specify up to 500 characters for a message. HTTP address are shown with links along with any Second Life URI address.
- Syntax: message
- MACRO - Allows you to execute one or more other buttons sequentially. The other buttons do not require mapping to the texture to be used in a MACRO.
- Syntax: button-prefix
- Identifies the name of the buttons to execute. For example, if the Button Prefix is "!Clicker", then buttons to execute under the macro are called "!Clicker-1", "!Clicker-2", "!Clicker-3", and so on. No limit to the number of steps in a macro.
- Important! The special "!Clicker-" buttons don't need to have touch spots on the panel, but if they do, they execute as a regular button
- Syntax: button-prefix
- MSG - Sends a message to objects external to this object.
- Syntax: channel;message
- Parts are separated with a semi-colon (";").
- Channel is a numeric value -/+ 2 billion that a programmer tells you to use.
- Message is any text. Use <key> to subtitute the users key.
- Syntax: channel;message
- LINK - Sends a message to internal scripts of this object.
- Syntax: channel;message
- Parts are separated with a semi-colon (";").
- Channel is a numeric value -/+ 2 billion that a programmer tells you to use.
- Message is any text. Use <key> to subtitute the users key.
- Syntax: channel;message
Example Notecard
TEXTURE~e42abf77-3e34-7328-43d7-17fc5d47ee15 BUTTON~StatusSetNormal~macro~!DoNormal BUTTON~StatusSetRed~macro~!DoRed BUTTON~StatusSetYellow~macro~!DoYellow BUTTON~StatusSetBlue~macro~!DoBlue BUTTON~ShieldsUp~narration~UFS;Security Station;Shields Up BUTTON~ShieldsDown~narration~UFS;Security Station;Shields Down BUTTON~TorpForward3~narration~UFS;Security Station;Firing Forward Photon Torpedoes - Full Volley Full Spread BUTTON~TorpForward1~narration~UFS;Security Station;Firing a single photon torpedo using forward tube BUTTON~PhaserForward~narration~UFS;Security Station;Firing Forward Phasers BUTTON~PhaserRear~narration~UFS;Security Station;Firing Rear Phasers BUTTON~TorpRear3~narration~UFS;Security Station;Firing Rear Photon Torpedoes - Full Volley Full Spread BUTTON~TorpRear1~narration~UFS;Security Station;Firing a single photon torpedo using rear tube BUTTON~!DoNormal-1~msg~-2700;NORMAL BUTTON~!DoNormal-2~narration~UFS;Security Station; Normal Status BUTTON~!DoRed-1~msg~-2700;RED BUTTON~!DoRed-2~narration~UFS;Security Station; RED ALERT BUTTON~!DoYellow-1~msg~-2700;YELLOW BUTTON~!DoYellow-2~narration~UFS;Security Station; Yellow Alert BUTTON~!DoBlue-1~msg~-2700;BLUE BUTTON~!DoBlue-2~narration~UFS;Security Station; Blue Alert