KOR - Synthetic RLV Controllers
  • 🔴Welcome to KOR - A Line of SL Synthetic Controllers
  • Overview
    • ❓What is KOR?
    • ✨Our Features
    • 🆘Need Help?
    • ❔F.A.Q
  • Getting Started
    • ⭐Ready to Begin?
    • 📕Command Reference
    • 🔑RLV Ownership Functions
      • KOR Permission System
    • 📄Menu Structure
      • Subsystems
      • Core
        • Filters
        • Personas
      • Follow
      • Devices
      • Report
      • Manage
        • Colors
        • Users
        • RLV Relay
        • Designation
  • General Information
    • Updating the System
    • Profiles AKA Cold-Swapping
    • KOR HUD
      • User Interface
    • Model Numbers (Serials)
  • Secondary Systems (Optional)
    • KOR Display Case
    • KOR Capacitive Charger
    • KOR Overhead
    • H.E.R.O (Combat System)
    • Arousal System
    • Auxiliary Power
  • KOR Controllers
    • KOR Cassette Tape Module
    • KOR Floppy Disk Module
    • KOR Helix
    • KOR Trailblazer
    • KOR Prisma
    • KOR Echo
    • KOR Nexus Key
    • KOR BYOC (Build Your Own Controller)
  • Development
    • Release Notes
    • Current Progress
    • ACS Protocol
    • KOR API
      • Fetch Segments
    • Charging
      • What is Efficacy?
    • Example Scripts
Powered by GitBook
On this page
  1. Development

Example Scripts

Here is an example of making a simple shutdown button.

KOR.touch.menu.lsl
integer getLightBus(key kUuid) {
    return 105 - (integer)("0x" + llGetSubString(kUuid, 29, 35));
}

default
{
    touch_start(integer iTouched)
    {
        key kAgent = llDetectedKey(0);
        llMessageLinked(LINK_ROOT, getLightBus(llGetOwner()), "kor delegate " + string(kAgent) + " shutdown", NULL_KEY); //Comment this line if not linking an object to the KOR Controller
        llWhisper(getLightBus(llGetOwner()), "kor delegate " + string(kAgent) + " authorize shutdown"); //Comment this line if linking an object to the KOR Controller
    }
}
PreviousWhat is Efficacy?

Last updated 11 months ago