Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Windows Window_Controller  

Window_Controller

Window Controller.lsl

Category: Windows
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Window_Controller
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Window_Controller_1.lsl
1
2 // if not linked just remove the link_message section )
3 //
4 // Place in all of the prims in the link set including the "master"
5 // then just touch and choose an option
6 // Phantom Walk thru walls :-)
7 // Solid As you would expect
8 // Visible 100% visible
9 // Clear 100% Invisible
10 //
11 // When the question is answered all of the prims in the link set are given the message
12 // so they all change to be the same.
13 //
14 // This has been coded so that it can be the the master ( the prim touched )
15 // or any of the link set - reading link messages
16 // So that as long as it exists in all prims in the link set it doesnt matter which one is master.
17 //
18 // The listener is deleted after 60 seconds or as soon as the dialog is answered - to reduce lag
19 //
20 integer lkey;
21
22 init()
23 {
24 }
25 default
26 {
28 {
29 init();
30 }
31 on_rez( integer param )
32 {
33 init();
34 }
35 touch_start( integer num )
36 {
37 if( llDetectedKey(0) == llGetOwner() )
38 {
39 lkey = llListen( 8192, "", llGetOwner(), "" );
41 llDialog( llDetectedKey(0), "Window Options :",
42 [ "Phantom", "Solid", "Clear", "Visible" ], 8192 );
43 }
44 }
45 timer()
46 {
48 llSetTimerEvent( 0 );
49 }
50 listen ( integer channel, string name, key id, string message )
51 {
53 if( message == "Solid" )
54 {
55 llMessageLinked( LINK_SET, 0 , "Solid" , NULL_KEY );
57 }
58 if( message == "Visible" )
59 {
60 llMessageLinked( LINK_SET, 0 , "Visible" , NULL_KEY );
62 }
63 if( message == "Clear" )
64 {
65 llMessageLinked( LINK_SET, 0 , "Clear" , NULL_KEY );
67 }
68 if( message == "Phantom" )
69 {
70 llMessageLinked( LINK_SET, 0 , "Phantom" , NULL_KEY );
72 }
73 }
74 link_message( integer to, integer from , string message, key id )
75 {
76 if( message == "Solid" )
77 {
79 }
80 if( message == "Visible" )
81 {
83 }
84 if( message == "Clear" )
85 {
87 }
88 if( message == "Phantom" )
89 {
91 }
92 }
93 } // END //

Back to the Best Free Tools in Second Life and OpenSim.