* feat(gen1): grid-wide script message router interface * build(gen1): include new grid script router interface * feat(gen1): implement grid-wide llGridSay scripting API * feat(gen1): implement grid-wide llGridSay scripting API * feat(gen1): implement grid-wide llGridSay scripting API * feat(gen1): relay authenticated llGridSay across estates via NexBus * config(gen1): add opt-in global script messaging on authenticated NexBus * config(gen1): add opt-in global script messaging on authenticated NexBus * config(gen1): add opt-in global script messaging on authenticated NexBus * example(gen1): cross-estate beep cube using llGridSay * test(gen1): guard grid script authorization and NexBus fanout contract * ci(gen1): verify llGridSay protections on every push * docs(gen1): grid-wide llGridSay cube protocol, permissions and staging acceptance * docs(gen1): distinguish example implementation from live validation
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
// OpenGenesisLINK Generation 1 – gridweite Würfel-Kommunikation
|
||
// Das gleiche Skript in jeden Würfel legen. Alle Würfel leuchten rot auf,
|
||
// unabhängig von Region/Entfernung/Estate – innerhalb eines OpenGenesisLINK-Grids.
|
||
//
|
||
// Voraussetzung auf allen Simulatoren:
|
||
// [NexVerseNodeAgent] Enabled = true; GridScriptMessaging = true
|
||
// Für mehrere Simulatornodes muss der NexBus-HMAC-Transport funktionieren.
|
||
// Der AUSLÖSENDE Würfel muss einem Estate Owner oder Manager gehören.
|
||
// llGridSay ist eine OpenGenesisLINK-Servererweiterung (nicht Standard-LSL).
|
||
|
||
integer CHANNEL = -9342801;
|
||
string SIGNAL = "Beep";
|
||
float FLASH_SECONDS = 0.5;
|
||
|
||
flash()
|
||
{
|
||
llSetColor(<1.0, 0.0, 0.0>, ALL_SIDES);
|
||
llSetTimerEvent(FLASH_SECONDS);
|
||
}
|
||
|
||
default
|
||
{
|
||
state_entry()
|
||
{
|
||
llSetColor(<1.0, 1.0, 1.0>, ALL_SIDES);
|
||
llSetTimerEvent(0.0);
|
||
llListen(CHANNEL, "", NULL_KEY, "");
|
||
}
|
||
|
||
touch_start(integer total_number)
|
||
{
|
||
// Sofortiges Feedback am auslösenden Würfel.
|
||
flash();
|
||
// Alle anderen (auch auf fremden Estates im selben Grid) benachrichtigen.
|
||
llGridSay(CHANNEL, SIGNAL);
|
||
}
|
||
|
||
listen(integer channel, string name, key id, string message)
|
||
{
|
||
if (channel == CHANNEL && message == SIGNAL)
|
||
flash();
|
||
}
|
||
|
||
timer()
|
||
{
|
||
llSetColor(<1.0, 1.0, 1.0>, ALL_SIDES);
|
||
llSetTimerEvent(0.0);
|
||
}
|
||
|
||
on_rez(integer start_param)
|
||
{
|
||
llResetScript();
|
||
}
|
||
}
|