How to command an external script ?

There are many ways to command an external script.

Command an external script on animation change

If you want to command an external script on animation change you must inform the section command in the note configmultisit :

@command
channel_number|target

The possibilities for the target are :

PRIM (the script is in the same primitive)
OBJECT (the script is in the same object)
SAY (the script is in another object within a radius of 20 meters)
SHOUT (the script is in another object within a radius of 100 meters)
REGION (the script is in another object in the same region)

For example :

@command
2300|PRIM

The script is in the same primitive and listen to the channel 2300.

When an animation changes the animation name is sent on this channel like this :

PRIM -> llMessageLinked(LINK_THIS, channel, animation_name, NULL_KEY);
OBJECT -> llMessageLinked(LINK_SET, channel, animation_name, NULL_KEY);
SAY -> llSay(channel, animation_name);
SHOUT -> llShout(channel, animation_name);
REGION -> llRegionSay(channel, animation_name);

You can add many commands. For example :

@command
2300|PRIM
-12000|SHOUT

Command an external script with a button in the animations dialog box

If you want to command an external script with a new button in the animations dialog box you must inform the section button in the note configmultisit :

@button
button_name | channel_number | target

Operation is the same than above.

You can add many buttons. For example :

@button
Get gift|3211|PRIM
Help|3212|SAY


If you do not have yet a note configmultisit you must create one by providing information, in addition to the command and button sections, the section required version that must be at the beginning of the note:

@version
1

Command an external script with a button in the owner dialog box

If you want to command an external script with a new button in the animations dialog box you must inform the section button in the note configmanager :

@button
button_name | channel_number | target

Operation is the same than above.

If you do not have yet a note configmanager you must create one by providing information, in addition to the button section, the section required version that must be at the beginning of the note:

@version
1