From SLIS Second Life Wiki
| Function: getSloodleObjects
|
|
| Description:
|
Returns a list of sloodle tools in the course of the type specified
|
|
| llMessageLinked(LINK_SET, PLUGIN_CHANNEL, "PLUGIN:general,FUNCTION:getSloodleObjects\nSLOODLEID:null\nTYPE:presenter|INDEX:0|ITEMSPERPAGE:10", NULL_KEY);
|
|
| Parameters:
|
| SLOODLE_ID:null
|
this is left as null
|
| TYPE:
|
The type of objects you'd like to return: presenter, distributor, quiz, awards
If the value of TYPE: is "null", then all Sloodle types will be output
|
| INDEX:
|
The index of the tool you'd like to start from
|
| ITEMS_PER_PAGE:
|
The number of items you'd like to appear in the output
|
|
| Output:
|
|
|
| Example Script:
|
/*********************************************
* Copyright (c) 2009 Paul Preibisch
* Released under the GNU GPL 3.0
* This script can be used in your scripts, but you must include this copyright header as per the GPL Licence
* For more information about GPL 3.0 - see: http://www.gnu.org/copyleft/gpl.html
* This script is part of the SLOODLE Project see http://sloodle.org
*
* example_plugin.lsl
* Copyright:
* Paul G. Preibisch (Fire Centaur in SL)
* fire@b3dMultiTech.com
*
*
*/
integer PLUGIN_RESPONSE_CHANNEL =998822; //sloodle_api.lsl responses
integer PLUGIN_CHANNEL =998821;//sloodle_api requests
default {
state_entry() {
llOwnerSay("Example Plugin. All commands sent to the _sloodle.api script go on channel 998822.\nAll responses come in on 998821");
}//end state_entry
touch_start(integer num_detected) {
llMessageLinked(LINK_SET, PLUGIN_CHANNEL, "PLUGIN:general,FUNCTION:getSloodleObjects\nSLOODLEID:null\nTYPE:distributor|INDEX:0|ITEMSPERPAGE:10", NULL_KEY);
}//end touch
link_message(integer sender_num, integer channel, string str, key id) {
if (channel==PLUGIN_RESPONSE_CHANNEL){
llOwnerSay(str);
}
}//end link_message
}//end state
|
|