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
Particles Particle_Garden__Grows_slowly  

Particle_Garden__Grows_slowly

Particle Garden - Grows slowly, random textures by Zara Vale.lsl

Category: Particles
By : Zara Vale
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Particle_Garden__Grows_slowly
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Particle_Garden__Grows_slowly_rando_1.lsl
1
2 //********************************************************
3 //This Script was pulled out for you by YadNi Monde from the SL FORUMS at http://forums.secondlife.com/forumdisplay.php?f=15, it is intended to stay FREE by it s author(s) and all the comments here in ORANGE must NOT be deleted. They include notes on how to use it and no help will be provided either by YadNi Monde or it s Author(s). IF YOU DO NOT AGREE WITH THIS JUST DONT USE!!!
4 //********************************************************
5
6
7
8
9
10
11
12 //Particle Garden - Grows slowly, random textures by Zara Vale
13 //Hello everyone,
14 //
15 //This is my first post in here so I hope I'm doing it right. Took me forever to learn how to put the code thing in. Anyway on behalf of Tina Vale and myself I would like to present the particle garden script that I use in my classes.
16 //
17 //What does it do?
18 //- It shows a particle picture of what ever texture that is in the object randomly.
19 //- The flowers grow slowly
20 //- It is visible from all angles like all particles
21 //
22 //How do you use it?
23 //- Rez an Object
24 //- Change the ROTATION X=90, Y=0, Z=0 (Under the OBJECT tab for the object)
25 //- You put this script into an object (Click on New Script in the object's contents and copy the code below to this object and save)
26 //- Put any other flowers, gnomes, tree textures you want inside it.
27 //- Click to start / stop
28
29
30
31
32 float MAX_RADIUS = 2.5;
33 float RADIUS_INTERVAL = 0.5;
34
35 // Modified values
36 integer IS_ON = FALSE;
37 float RADIUS = 2;
38 string TEXTURE = "f42bcc2b-20c8-9df7-cf1c-69566e377fd8";
39
40 garden() {
45
46 // Texture / Size / Alpha / Color
47 PSYS_SRC_TEXTURE, TEXTURE,
48 PSYS_PART_START_SCALE,<0.2000, 0.2000, 0.0000>,
49 PSYS_PART_END_SCALE,<0.5000, 0.5000, 0.0000>,
50 PSYS_PART_START_ALPHA,0.000000,
51 PSYS_PART_END_ALPHA,1.000000,
52 PSYS_PART_START_COLOR, <1.0,1.0,1.0>,
53 PSYS_PART_END_COLOR, <1.0,1.0,1.0>,
54
55 // Flow
56 PSYS_PART_MAX_AGE,1000.0000,
57 PSYS_SRC_BURST_RATE,1.000000,
59 PSYS_SRC_MAX_AGE,0.000000,
60
61 // Rez position
63 PSYS_SRC_INNERANGLE,1.550000,
64 PSYS_SRC_OUTERANGLE,1.550000,
65 PSYS_SRC_OMEGA,<0.00000, 0.00000, 4>,
68 ]);
69 }
70
71 stop() {
73 }
74
75 default {
76 state_entry() {
77 if(IS_ON) {
78 llSetTimerEvent(RADIUS_INTERVAL);
79 garden();
80 } else {
81 stop();
82 }
83 }
84
85 touch_start(integer num_detected) {
86 if(IS_ON) {
87 llSetTimerEvent(0.0);
88 stop();
89 llWhisper(0, "Garden has stopped");
90 } else {
91 llSetTimerEvent(RADIUS_INTERVAL);
92 garden();
93 llWhisper(0, "Garden has started");
94 }
95 IS_ON = !IS_ON;
96 }
97
98 timer() {
100 if(max_inventory > 0) {
101 TEXTURE = llGetInventoryName(INVENTORY_TEXTURE, (integer)llFrand(max_inventory));
102 }
103 RADIUS = llFrand(MAX_RADIUS);
104 garden();
105 }
106 } // END //

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