Collection: LSL scripts
January 8, 2011
The Internet contains countless LSL scripts that you take and adapt for their own use, and from which one can learn a lot.
A pretty decent air/sea altimeter
- Builders’ Buddy
Large building positioning/movement utility
- Builders’ Tabs
Advanced precision builder’s tool
- Camera Follower
Follows just above your camera
- Chat Extension Module
Allows transfer of >255 character strings over chat, via Packet Chat Protocol
- Content Browser
ATM-like content browsing terminal (example of modular system)
- Conversation AI
Simple conversation tree (Eliza-like)
- Create a flying pet
A working example on how to create a small flying object using physics-based movement
- Day of the week
Figure out what day of the week a given date is
- Deluxe Door
A door with some extras. See also: the new Timeless Linked Door
- Dialog Module
Create and handle dialog boxes through linked messages
- Email Extension Module
Allows scripts to send emails without delay and receive emails without a timer.
- Event Lottery
Randomly choose a winner from a list of people without duplicates.
- Experimental Rotation Math Library
Collection of functions for working with rotations
- Fade Texture
Smoothly drop texture alpha using exponential fall-off.
- Fast Find
Fast find number of lines in a notecard (binary search).
- Fix Repeats Per Meter
Make a building by roughly positioning walls, then drop this script on each prim. It rescales to grid, positions to grid, and fixes repeats per meter, then deletes self.
- Float to Hex
Very useful for floats transporting
- General Menu Engine
A menu system engine that lets you define menus then easily use them
- Get Day of Week
Alternate method to get day of week from llGetUnixTime
- Go Game
A fully working Go game board
- Hello Avatar
- IGS (In Game Data Server)
A simple LSL server
- Keyboard while typing
A simple keyboard while you type
- Library Case Insensitive Listen Rezzer
Case insensitive listen rezzer
- Library Dump Prim Parameters
Dump prim parameters to a LSL code string that can be fed to llSetPrimitiveParams
Moves a HUD to a sane position in any attach point.
Implements ‘float-safe’, reasonably quick serialization and unserialization of list types
- Link Numbers Getter
Simple function for keeping track of the links in your object
- Millisecond Time
Timezone-aware and millisecond-granuality time and formatting functions
- Multidimensional Array API
Store data in lists as you would in a standard C++/Java multidimensional array
Give a notecard to a new resident below a certain age
- Particle Script 0.5
Create particle systems and play around with the settings
- Particle Script 0.5a
An optimized version of the above script
- Particle Script 1.1
A very efficient script for the creation and inclusion of particle systems. Albeit not the best if you are just learning, but excellent if a particle system is needed for something else.
- Plane Pontoon Script
Water detection for plane pontoons script
- PortRing Creator
A system to automatically create a teleporter system from a central “base” location to a number of outlying “stations”
- Pseudo-Random Number Generator
For use with secure communication through insecure mediums to reducing the risk of the communications protocol being hacked
- Public Billboard
A Public Cycling Texture Billboard
Fairly complete scanner that includes details on distance, time in vicinity and direction
- Regular timer
A timer that is synchronized to the wall clock. That is, if you set it to tick every 3 seconds, it ticks at 3, 6, 9, … with accuracy of about 2 parts in 100. It performs some user defined action every 3 seconds, and adjusts itself if it drifts away from the wall clock. Several copies will all perform the action at the same time.
- Runtime Environment
Detailed detection of object environment changes like dropping or wearing. Also detects logins!
- Sailboat Script
Flying Tako sailboat
- Scale Spaz
- Self Upgrading Script
Keeps only latest version on prim
- Self Upgrading Script Alt
Updates each child-prim with a given script
- Set Text Once
Drop it on an object, say “/3 This is Red”, the floating text changes and the script deletes itself.
- Settings Notecard
Loads values from a notecard so scripts can be customized by user.
- Simple Cypher
A simple password-based substitution cypher
- Simple Disappearing HoverText
A simple demonstration of how to remove hover text when an avatar sits on the prim
A function to print formated data, including hexidecimal and fixed-point floats
This implements the widely-available swarm algorithm in SL.
Texture switcher that will step through the textures in an object’s inventory, displaying them on all sides of the object.
When called twice, will give the time elapsed with millisecond precision
- Timer Enhancer
Grants more precise control over timers
- Timeless Linked Door
Full-featured door script for doors that are linked to other prims
Unescape escape codes in strings
- Universal Prim Torture Script
Upgradable universal prim torture script
- Vendor Script
A simple vendor
- Vigenere Cipher
A polyalphabetic substitution cipher
A function that allows one to do instantaneous non-physical movement
Display text (up to 6 characters) on a prim
For more articles, visit our Home Page…