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
Bling Bling_5_Seconds  

Bling_5_Seconds

Bling 5 Seconds.lsl

Category: Bling
By : CHandra Page
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Bling_5_Seconds
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Bling_5_Seconds_1.lsl
1
2 // Diamond sparkly effect
3 // by Chandra Page
4 // 2004-12-06
5
6 // Based on Particle Script 0.5
7 // Created by Ama Omega
8 // 3-26-2004
9
10 // Mask Flags - set to TRUE to enable
11 integer glow = TRUE; // Make the particles glow
12 integer bounce = FALSE; // Make particles bounce on Z plane of object
13 integer interpColor = TRUE; // Go from start to end color
14 integer interpSize = TRUE; // Go from start to end size
15 integer wind = TRUE; // Particles effected by wind
16 integer followSource = TRUE; // Particles follow the source
17 integer followVel = TRUE; // Particles turn to velocity direction
18
19 // Choose a pattern from the following:
20 // PSYS_SRC_PATTERN_EXPLODE
21 // PSYS_SRC_PATTERN_DROP
22 // PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY
23 // PSYS_SRC_PATTERN_ANGLE_CONE
24 // PSYS_SRC_PATTERN_ANGLE
25 integer pattern = PSYS_SRC_PATTERN_EXPLODE;
26
27 // Select a target for particles to go towards
28 // "" for no target, "owner" will follow object owner
29 // and "self" will target this object
30 // or put the key of an object for particles to go to
31 key target = "self";
32
33 // Particle paramaters
34 float age = 0.5; // Life of each particle
35 float maxSpeed = .1; // Max speed each particle is spit out at
36 float minSpeed = .1; // Min speed each particle is spit out at
37 string texture = ""; // Texture used for particles, default used if blank
38 float startAlpha = 1; // Start alpha (transparency) value
39 float endAlpha = 0.1; // End alpha (transparency) value
40 vector startColor = <1,1,1>; // Start color of particles <R,G,B>
41 vector endColor = <1,1,1>; // End color of particles <R,G,B> (if interpColor == TRUE)
42 vector startSize = <.3,.05,.3>; // Start size of particles
43 vector endSize = <.3,.05,.3>; // End size of particles (if interpSize == TRUE)
44 vector push = <0,0,0>; // Force pushed on particles
45
46 // System paramaters
47 float rate = 5.0; // How fast (rate) to emit particles
48 float radius = 0; // Radius to emit particles for BURST pattern
49 integer count = 3; // How many particles to emit per BURST
50 float outerAngle = 1.54; // Outer angle for all ANGLE patterns
51 float innerAngle = 1.55; // Inner angle for all ANGLE patterns
52 vector omega = <0,0,0>; // Rotation of ANGLE patterns around the source
53 float life = 0; // Life in seconds for the system to make particles
54
55 // Script variables
56 integer pre = 2; //Adjust the precision of the generated list.
57
58 integer flags;
59 list sys;
60 integer type;
61 vector tempVector;
62 rotation tempRot;
63 string tempString;
64 integer i;
65
66 particlesOn()
67 {
68 flags = 0;
69 if(target == "owner") target = llGetOwner();
70 if(target == "self") target = llGetKey();
71 if(glow) flags = flags | PSYS_PART_EMISSIVE_MASK;
72 if(bounce) flags = flags | PSYS_PART_BOUNCE_MASK;
73 if(interpColor) flags = flags | PSYS_PART_INTERP_COLOR_MASK;
74 if(interpSize) flags = flags | PSYS_PART_INTERP_SCALE_MASK;
75 if(wind) flags = flags | PSYS_PART_WIND_MASK;
76 if(followSource) flags = flags | PSYS_PART_FOLLOW_SRC_MASK;
77 if(followVel) flags = flags | PSYS_PART_FOLLOW_VELOCITY_MASK;
78 if(target != "") flags = flags | PSYS_PART_TARGET_POS_MASK;
79 sys = [ PSYS_PART_MAX_AGE,age,
80 PSYS_PART_FLAGS,flags,
81 PSYS_PART_START_COLOR, startColor,
82 PSYS_PART_END_COLOR, endColor,
83 PSYS_PART_START_SCALE,startSize,
84 PSYS_PART_END_SCALE,endSize,
85 PSYS_SRC_PATTERN, pattern,
87 PSYS_SRC_ACCEL, push,
93 PSYS_SRC_INNERANGLE,innerAngle,
94 PSYS_SRC_OUTERANGLE,outerAngle,
95 PSYS_SRC_OMEGA, omega,
96 PSYS_SRC_MAX_AGE, life,
97 PSYS_SRC_TEXTURE, texture,
98 PSYS_PART_START_ALPHA, startAlpha,
99 PSYS_PART_END_ALPHA, endAlpha
100 ];
101
103 }
104
105 particlesOff()
106 {
108 }
109
110 default
111 {
113 {
114 particlesOn();
115 }
116
117 link_message(integer sender_num, integer num, string str, key id)
118 {
119 if(str == "on")
120 {
121 particlesOn();
122 }
123
124 if(str == "off")
125 {
126 particlesOff();
127 }
128 }
129 }
130 // END //

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