How to configure a script sitmanager ?
- Details
- Parent Category: Simple Sit
- Created on Sunday, 07 February 2010 19:15
- Last Updated on Wednesday, 11 September 2013 14:40
- Published on Sunday, 07 February 2010 19:15
- Written by sandrine
- Hits: 313
Presentation
We configure a script sitmanager with a note configmanager. There are 5 sections in a note configmanager :
1 version : is a management information that prevents the script to read the notes at every change in inventory. If the version number has not changed the script does not read the note. If the version number has increased, the script reads the note. In a system with many scripts and notes that precaution is very useful.
2 mode : the reception of the avatar. There are 3 modes:
Mode o -> dialog box with numbers for free sits (default)Mode 1 -> no dialog box, avatars in orderMode 2 -> dialog box with names3 words : in mode 2 list the buttons names for reception dialog box
4 buttons : for any external commands
5 api : For slave mode (new in V4.01)
Sections syntax
version
The syntax is simpe :
@version
number
For example for the first time :
@version
1
The next time the number increase :
@version
2
And so on
mode (optional)
The syntax is :
@mode
number
For example for mode 1 :
@mode
1
Mode 0 is default mode so you must not have this section for mode 0.
words (optional)
This section is for mode 2. The syntax is :
@words
word1
word2
...
For example :
@words
man
woman
You must have the same number of words that multisit scripts in your system.
buttons (optional)
If you want to add command buttons to the menu of the owner you must fill this section.
The syntax is :
@buttons
button name | channel | target
For example for 2 buttons :
@buttons
button 1 | 2356 | PRIM
button 2 | 2357 | SAY
Channel must be an integer number.
Target must be :
PRIM : for a script in the same primitive
OBJECT : for a script in the same object
SAY : for a script in another object at a distance of 20 meters
SHOUT : for a script in another object at a distance of 100 meters
REGION.: for a script in another object in the same region
api (optional, new in V4.01)
If you want another script command the sitmanager (so when an avatar click on the sit the script sitmanager is not directly triggered) you must use this section.
The syntax is :
@api
channel
For example :
@api
3000
Channel must be an integer number.
