removed useless _ folders
This commit is contained in:
3
Splash/Splash.sol
Normal file
3
Splash/Splash.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Splash">
|
||||
<Project name="Splash" path="Splash\Splash.prj" active="true"/>
|
||||
</Solution>
|
||||
40
Splash/Splash/Object/Splash_1.lsl
Normal file
40
Splash/Splash/Object/Splash_1.lsl
Normal file
@@ -0,0 +1,40 @@
|
||||
// :CATEGORY:Effects
|
||||
// :NAME:Splash
|
||||
// :AUTHOR:Encog Dod
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:39:05
|
||||
// :ID:827
|
||||
// :NUM:1154
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Splash
|
||||
// :CODE:
|
||||
// From the book:
|
||||
//
|
||||
// Scripting Recipes for Second Life
|
||||
// by Jeff Heaton (Encog Dod in SL)
|
||||
// ISBN: 160439000X
|
||||
// Copyright 2007 by Heaton Research, Inc.
|
||||
//
|
||||
// This script may be freely copied and modified so long as this header
|
||||
// remains unmodified.
|
||||
//
|
||||
// For more information about this book visit the following web site:
|
||||
//
|
||||
// http://www.heatonresearch.com/articles/series/22/
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llSetTextureAnim(ANIM_ON | ROTATE | LOOP | SMOOTH, ALL_SIDES, 0, 0, 0, 100, .05);
|
||||
llVolumeDetect(TRUE);
|
||||
}
|
||||
|
||||
collision_start( integer num_detected )
|
||||
{
|
||||
llTriggerSound("splash", 1);
|
||||
}
|
||||
|
||||
}
|
||||
162
Splash/Splash/Object/Splash_2.lsl
Normal file
162
Splash/Splash/Object/Splash_2.lsl
Normal file
@@ -0,0 +1,162 @@
|
||||
// :CATEGORY:Special Effects
|
||||
// :NAME:Splash
|
||||
// :AUTHOR:Ferd Frederix
|
||||
// :CREATED:2013-09-06
|
||||
// :EDITED:2013-09-18 15:39:05
|
||||
// :ID:827
|
||||
// :NUM:1155
|
||||
// :REV:1
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Makes the splash effect from a Piers Anthony Book
|
||||
// :CODE:
|
||||
|
||||
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llParticleSystem([]);
|
||||
|
||||
llSetPrimitiveParams([PRIM_SIZE , <1.0,1.0,1.0>]);
|
||||
llSetAlpha(0.0, ALL_SIDES); // set entire prim 0% visible.
|
||||
llTargetOmega(<0.0,1.0,0.0>,TWO_PI,1.0);
|
||||
llPreloadSound("thunder1");
|
||||
llPreloadSound("thunder2");
|
||||
llPreloadSound("thunder3");
|
||||
|
||||
llListen(0, "", "", "");
|
||||
}
|
||||
|
||||
|
||||
listen(integer channel, string name, key id, string message)
|
||||
{
|
||||
// check if the message corresponds to a predefined string.
|
||||
// llToLower converts the message to lowercase.
|
||||
|
||||
list words = llParseString2List(message, [",",".",","," "], []);
|
||||
integer count = llGetListLength(words);
|
||||
integer total = 0;
|
||||
//llOwnerSay("Count = " + (string) count);
|
||||
integer j;
|
||||
for ( j = 0; j < count; j++)
|
||||
{
|
||||
string aword = llList2String(words,j);
|
||||
if (llToLower(aword) == "thee")
|
||||
total++;
|
||||
}
|
||||
// llOwnerSay("total = " + (string) total);
|
||||
integer max;
|
||||
|
||||
if (total> 0 )
|
||||
{
|
||||
llSetAlpha(0.5, ALL_SIDES); // set entire prim 100% visible.
|
||||
|
||||
|
||||
|
||||
|
||||
if (total == 1 )
|
||||
{
|
||||
llWhisper(0, "a small ripple of absolute truth spreads throughout the land.....then slowly vanishes.");
|
||||
llPlaySound("thunder1",0.4);
|
||||
max = 5;
|
||||
|
||||
}
|
||||
if (total == 2 )
|
||||
{
|
||||
llSay(0, "a ripple spreads throughout the land, anticipating.....what?");
|
||||
max = 7;
|
||||
llPlaySound("thunder3",0.6);
|
||||
}
|
||||
if (total >= 3 )
|
||||
{
|
||||
llShout(0, "a ripple of truth, with the force of an oath spreads throughout the land....and explodes in sound and fury!");
|
||||
max =10;
|
||||
llPlaySound("thunder2",1.0);
|
||||
}
|
||||
|
||||
|
||||
float i;
|
||||
|
||||
|
||||
for ( i = 1; i < max; i += 1)
|
||||
{
|
||||
vector size;
|
||||
size.x = i;
|
||||
size.y = i;
|
||||
size.z = i;
|
||||
llSetPrimitiveParams([PRIM_SIZE , size]);
|
||||
llSleep(0.05);
|
||||
}
|
||||
|
||||
if (total == 1 )
|
||||
{
|
||||
llSetAlpha(0.66, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.33, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
}
|
||||
|
||||
if (total == 2 )
|
||||
{
|
||||
llSetAlpha(0.8, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.6, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.4, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.2, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
}
|
||||
|
||||
if (total >= 3 )
|
||||
{
|
||||
llSetAlpha(0.8, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.7, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.6, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.5, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.4, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.3, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.2, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
llSetAlpha(0.1, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSleep(0.5);
|
||||
}
|
||||
|
||||
|
||||
|
||||
llSetAlpha(0.0, ALL_SIDES); // set entire prim 0% visible.
|
||||
llSetPrimitiveParams([PRIM_SIZE , <0.010,0.010,0.010>]);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/////////////////////// on_rez() //////////////////////////////
|
||||
|
||||
on_rez(integer start_param)
|
||||
{
|
||||
llResetScript();
|
||||
}
|
||||
|
||||
/////////////////////// changed() ////////////////////////////
|
||||
|
||||
changed(integer mask)
|
||||
{
|
||||
if (mask & CHANGED_INVENTORY)
|
||||
{
|
||||
llResetScript();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
8
Splash/Splash/Splash.prj
Normal file
8
Splash/Splash/Splash.prj
Normal file
@@ -0,0 +1,8 @@
|
||||
<Project name="Splash" guid="d69a638f-6c00-1014-b904-200204c60a89">
|
||||
<Object name="Object" guid="d69a6498-6c00-1014-b904-200204c60a89">
|
||||
<Script name="Splash_1.lsl" guid="d69bb767-6c00-1014-b904-200204c60a89">
|
||||
</Script>
|
||||
<Script name="Splash_2.lsl" guid="b47c1bc8-3167-41e4-be37-d67965f916c7">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user