Centralized control (V1.31)

I guess I have a centralized control of several rezzer. For my example i only take 2 rezzer (the setup must be done), but it would be the same thing with more rezzer.


For each rezzer i add a special section in configrezzer notecard to put them in slave mode :

The special is @api, i choose the channel 103. Now rezzers can be only triggered from another script. Here is this script :

integer channel = -52112;
integer apiChannel = 103;
default
{
state_entry()
{
llListen(channel, "", NULL_KEY, "");
}
listen(integer channel, string name, key id, string message)
{
llMessageLinked(LINK_THIS, apiChannel, message, NULL_KEY);
}
}

I call it command and put it in each rezzer inventory :

Now i creat a new object that will be the the centralized control :

I create a new script for this object :

integer channel = -52112;
default
{
touch_start(integer total_number)
{
llShout(channel, "rezall");
}
}

Now if i delete all rezzed object and clic on centralized control all objects are rezzed again at th esame time for the 2 rezzer.

Maybe you think it will be a good idea to also create an object to del all objects. It's easy. I create a new object :

And i put this script inside :

integer channel = -52112;
default
{
touch_start(integer total_number)
{
llShout(channel, "delall");
}
}

The same script than above, but now the command is delall. Now if i clic on this object all objects are erased.

This example is simple, but it is possible to create a sophisticated system by ordering specific objects or groups of objects.