![Second life forums scripting](https://kumkoniak.com/35.jpg)
![second life forums scripting second life forums scripting](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/6/f69fae28b2f739b8c872cb91330fa08c5b62db9b.png)
llSay(0, "turning on!") This makes the object speak "turning on!" on channel zero. SPEAK TO ME! The first line in the event state_entry is. First we see the "state_entry" event, which gets triggered each time the default state is entered. Also, while the object has a texture, the color will effect the "tint" more than the true color. default Note that after "default" all new states begin with the word "state". Here is a look at a minimal program in written in LSL that can loosely be translated as."When I am in the default state, and I am touched, say "Hello World" on channel zero". So the minimum LSL program must have one state with one event in it. One called Touch_start(), will trigger the code in it when the object running the script is touched. Events are not user defined in Second Life but rather predefined in LSL. An event can be thought of as a "Trigger". Minimally a script will have one state, the default state.
![second life forums scripting second life forums scripting](https://forums.coregames.com/uploads/default/original/2X/0/0d4da6be424a37e95aa832451b697a90bb967465.png)
Many real life objects have "states" and the same can be true for LSL programs. Free for All: Second Life - Article link from Massively + CEO Interview. A person can be "hyper", "calm", or "bored". NoR as a MMORPG in SL (GM Corruption) Renoaku. A door can be "open" or "closed" and a light can be "on" or "off".
![second life forums scripting second life forums scripting](https://i2.wp.com/gwynethllewelyn.net/wp-content/uploads/2011/02/screenshot-11.jpg)
One thing that makes LSL unique is it's heavy emphasis on "States" and "Events". They are written with a built-in editor/compiler which we will access in step 2. Scripts in Second Life are a set of instructions that can be placed inside any object in the world, or any object worn by an avatar, but not inside an avatar. This is the language all scripts in Second LIfe are written in.
![Second life forums scripting](https://kumkoniak.com/35.jpg)