Want to add a script or a project? Upload it and a half million people will see it and your name here this year.
![]() |
![]() |
||
---|---|---|---|
Category: | Contributor: | Creator | |
Effects | Encog Dod | Splash |
Category: Effects
By : Encog Dod
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life
Browse the Zip file
1 // From the book:2 //3 // Scripting Recipes for Second Life4 // by Jeff Heaton (Encog Dod in SL)5 // ISBN: 1604390006 X// Copyright 2007 by Heaton Research, Inc.7 //8 // This script may be freely copied and modified so long as this header9 // remains unmodified.10 //11 // For more information about this book visit the following web site:12 //13 // http://www.heatonresearch.com/articles/series/22/1415 default16 {17 state_entry()18 {20 llVolumeDetect(TRUE);21 }2223 collision_start( integer num_detected )24 {25 llTriggerSound("splash", 1);26 }2728 }
Category: Effects
By : Encog Dod
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life
1234 default5 {6 state_entry()7 {8 llParticleSystem([]);910 llSetPrimitiveParams([PRIM_SIZE , <1.0,1.0,1.0>]);12 llTargetOmega(<0.0,1.0,0.0>,TWO_PI,1.0);13 llPreloadSound("thunder1");14 llPreloadSound("thunder2");15 llPreloadSound("thunder3");1617 llListen(0, "", "", "");18 }192022 {23 // check if the message corresponds to a predefined string.24 // llToLower converts the message to lowercase.2526 list words = llParseString2List(message, [",",".",","," "], []);27 integer count = llGetListLength(words);28 integer total = 0;29 //llOwnerSay("Count = " + (string) count);30 integer j;31 for ( j = 0; j < count; j++)32 {33 string aword = llList2String(words,j);35 total++;36 }37 // llOwnerSay("total = " + (string) total);38 integer max;3940 if(total> 0 )41 {4344454647 if(total == 1 )48 {49 llWhisper(0, "a small ripple of absolute truth spreads throughout the land.....then slowly vanishes.");50 llPlaySound("thunder1",0.4);51 max = 5;5253 }54 if(total == 2 )55 {56 llSay(0, "a ripple spreads throughout the land, anticipating.....what?");57 max = 7;58 llPlaySound("thunder3",0.6);59 }60 if(total >= 3 )61 {62 llShout(0, "a ripple of truth, with the force of an oath spreads throughout the land....and explodes in sound and fury!");63 max =10;64 llPlaySound("thunder2",1.0);65 }666768 float i;697071 for ( i = 1; i < max; i += 1)72 {73 vector size;74 size.x = i;75 size.y = i;76 size.z = i;77 llSetPrimitiveParams([PRIM_SIZE , size]);78 llSleep(0.05);79 }8081 if(total == 1 )82 {84 llSleep(0.5);86 llSleep(0.5);87 }8889 if(total == 2 )90 {92 llSleep(0.5);94 llSleep(0.5);96 llSleep(0.5);98 llSleep(0.5);99 }100101 if(total >= 3 )102 {104 llSleep(0.5);106 llSleep(0.5);108 llSleep(0.5);110 llSleep(0.5);112 llSleep(0.5);114 llSleep(0.5);116 llSleep(0.5);118 llSleep(0.5);119 }120121122124 llSetPrimitiveParams([PRIM_SIZE , <0.010,0.010,0.010>]);125126 }127 }128129130131132133 /////////////////////// on_rez() //////////////////////////////134136 {137 llResetScript();138 }139140 /////////////////////// changed() ////////////////////////////141143 {144 if(mask & CHANGED_INVENTORY)145 {146 llResetScript();147 }148 }149 }
Back to the Best Free Tools in Second Life and OpenSim.