Makaylah Wurgle
English
| online |
Aerielle Kiyori
English
| offline |
Anomelli Mellow
English
| offline |
Glaznah Gassner
English, Russian
| offline |
Kaitlynn Rizzo
English
| offline |
NealB
English, Hindi
| offline |
Rehnaeaislinn
English
| offline |
Sammyredfire
English
| offline |
TwixiChardonnay
English
| offline |
Xartashah
English
| offline |
show offline managers | |
English, Hindi, Russian |
Allows requesting your own custom variables from SSTI Config Notecard.
The following table shows input values (you send them with the API call) and returned output values.
Variable | Required | Description | |
---|---|---|---|
Input, llMessageLinked(LINK_SET, num, str, id): | |||
num | SSTI_API_GET_PARAM | ||
str | variable name (will be prepended with "PLUGIN ") | ||
id | -- not used -- | ||
Output: | |||
Response events | Expect the SSTI_SERV_EVENT_PARAM event with a variable value. |
This command allows requesting your own variables only because "PLUGIN " prefix is being added:
llMessageLinked(LINK_SET, SSTI_API_GET_PARAM, "MY PARAM", NULL_KEY);
checks for this config variable:
PLUGIN MY PARAM = some-value-here
This example requests your own variable from a config notecard.
1. Add the following line to your SSTI config notecard:
PLUGIN WARNING TEXT = Dear tenant, please clean up your prims.
2. Launch the code:
// Server API // Commands: integer SSTI_SERV_API_CUSTOM_BUTTON=-45050001; integer SSTI_SERV_API_GET_GROUP=-45050002; integer SSTI_SERV_API_GET_CLOUD=-45050003; integer SSTI_SERV_API_BOX_CUSTOM_BUTTON=-45050004; integer SSTI_SERV_API_GET_PARAM=-45050005; integer SSTI_SERV_API_CUSTOM_HTTP_BUTTONS=-45050006; integer SSTI_SERV_API_HTTP_REPLY=-45050007; // Events: integer SSTI_SERV_EVENT_INITIALIZED=-45060001; integer SSTI_SERV_EVENT_CUSTOM_BUTTON=-45060002; integer SSTI_SERV_EVENT_GROUP=-45060003; integer SSTI_SERV_EVENT_CLOUD=-45060004; integer SSTI_SERV_EVENT_BOX_CUSTOM_BUTTON=-45060005; integer SSTI_SERV_EVENT_PARAM=-45060006; integer SSTI_SERV_EVENT_RESET=-45060007; integer SSTI_SERV_EVENT_LOCALURL=-45060008; integer SSTI_SERV_EVENT_HTTPBUTTON=-45060009; integer SSTI_SERV_EVENT_TENANT=-45060010; integer SSTI_SERV_EVENT_NEW_GUESTPARTNER=-45060011; integer SSTI_SERV_EVENT_GUESTPARTNER_REMOVED=-45060012;
// // Example code starts here default { touch_start(integer num) { llMessageLinked(LINK_SET, SSTI_SERV_API_GET_PARAM, "WARNING TEXT", NULL_KEY); } link_message(integer sender, integer cmd, string str, key id) { if(cmd == SSTI_SERV_EVENT_PARAM) { list parts = llParseStringKeepNulls(str, [" = "], []); llOwnerSay("Warning text: " + llList2String(parts,1)); } }