Jump to content

Particle UUID Slideshow Script: SOLVED


You are about to reply to a thread that has been inactive for 637 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hello! I want to create a particle UUID slideshow script based on this script from the library and this UUID slideshow script. Can anyone advise how to do this? Is this even possible to use UUIDs for particles?

string URL = "http://www.subnova.com/secondlife/api/map.php?sim=";
 
key httpRequestId;
 
float mapSize = 3.0;
 
mapParticle(key mapTexture)
{
    llParticleSystem([PSYS_PART_FLAGS, 0,
                      PSYS_SRC_PATTERN, 4,
                      PSYS_PART_START_ALPHA, 0.5,
                      PSYS_PART_END_ALPHA, 0.5,
                      PSYS_PART_START_COLOR, <1.0, 1.0, 1.0>,
                      PSYS_PART_END_COLOR, <1.0, 1.0, 1.0>,
                      PSYS_PART_START_SCALE, <mapSize, mapSize, 0.0>,
                      PSYS_PART_END_SCALE, <mapSize, mapSize, 0.0>,
                      PSYS_PART_MAX_AGE, 1.2,
                      PSYS_SRC_MAX_AGE, 0.0,
                      PSYS_SRC_ACCEL, <0.0, 0.0, 0.0>,
                      PSYS_SRC_ANGLE_BEGIN, 0.0,
                      PSYS_SRC_ANGLE_END, 0.0,
                      PSYS_SRC_BURST_PART_COUNT, 8,
                      PSYS_SRC_BURST_RADIUS, mapSize,
                      PSYS_SRC_BURST_RATE, 0.1,
                      PSYS_SRC_BURST_SPEED_MIN, 0.0,
                      PSYS_SRC_BURST_SPEED_MAX, 0.0,
                      PSYS_SRC_OMEGA, <0.0, 0.0, 0.0>,
                      PSYS_SRC_TEXTURE, mapTexture]);
}
 
default
{
    on_rez(integer param)
    {
        llResetScript();
    }
    state_entry()
    {
        httpRequestId = llHTTPRequest(URL + llEscapeURL(llGetRegionName()), [], "");
    }
    http_response(key request_id, integer status, list metadata, string body)
    {
        if((request_id == httpRequestId) && (status == 200))
            mapParticle(body);
    }
}

&

integer count;
list texture=[

// UUID LIST:

"4fedd443-67bd-1a50-bd34-b545320dcb1f",
"3fc1eb82-0b91-71af-fc20-90cbe7400819",
"e9a382d5-bf6d-64b6-ccab-03a8f4148086",
"8b840c69-a483-324a-a8b5-6cfc6e11d2ee"

];

default {
        state_entry() 
        {
                llSetTimerEvent(3);
        }
        
        timer() 
        {
                llSetTexture(llList2Key(texture,count), ALL_SIDES);
                ++count;
                count %=llGetListLength(texture);
        }
}
Edited by Sunbleached
Link to post
Share on other sites

And additional question. I want to try to create a holographic version of such a script, with alpha textures and made particle system. but I don’t know how to make particles a little higher than the object and not in the center of it.

default
{
    state_entry()
    {
        llSay(0, "Hello, Avatar!");
    }

    touch_start(integer total_number)
    {

    llParticleSystem([PSYS_PART_MAX_AGE,0.00,
PSYS_PART_FLAGS, 259,
PSYS_PART_START_COLOR, <0.12844, 0.66452, 0.87156>,
PSYS_PART_END_COLOR, <0.14975, 0.52752, 0.85025>,
PSYS_PART_START_SCALE,<1.33334, 1.33334, 0.00000>,
PSYS_PART_END_SCALE,<1.33334, 1.33334, 0.00000>,
PSYS_SRC_PATTERN, 16,
PSYS_SRC_BURST_RATE,0.00,
PSYS_SRC_BURST_PART_COUNT,1,
PSYS_SRC_BURST_RADIUS,0.00,
PSYS_SRC_BURST_SPEED_MIN,0.00,
PSYS_SRC_BURST_SPEED_MAX,3.08,
PSYS_SRC_ANGLE_BEGIN, 0.00,
PSYS_SRC_ANGLE_END, 0.00,
PSYS_SRC_MAX_AGE, 0.0,
PSYS_SRC_TEXTURE, "1ecd0cab-72d6-b47f-2c6f-94f556a0831a",
PSYS_PART_START_ALPHA, 0.60,
PSYS_PART_END_ALPHA, 0.60,
PSYS_PART_START_GLOW, 0.00,
PSYS_PART_END_GLOW, 0.00]);

    }
}

 

Edited by Sunbleached
Link to post
Share on other sites

I added on/off toggle and 3 seconds timer.


integer run;
integer count;
list texture=[
// UUID LIST:

"4fedd443-67bd-1a50-bd34-b545320dcb1f",
"3fc1eb82-0b91-71af-fc20-90cbe7400819",
"e9a382d5-bf6d-64b6-ccab-03a8f4148086",
"8b840c69-a483-324a-a8b5-6cfc6e11d2ee"

];


default
{
touch_start(integer total_number)
{
if(llDetectedKey(0)==llGetOwner())
{
if(run)
{
run = FALSE;
llParticleSystem([]);
llSetTimerEvent(0);
}
else
{
run = TRUE;
llSetTimerEvent(3);}}}

timer(){
llParticleSystem([PSYS_PART_MAX_AGE,0.00,
PSYS_PART_FLAGS, 259,
PSYS_PART_START_COLOR, <0.12, 0.66, 0.87>,
PSYS_PART_END_COLOR, <0.14, 0.52, 0.85>,
PSYS_PART_START_SCALE,<1.33, 1.33, 0.00>,
PSYS_PART_END_SCALE,<1.33, 1.33, 0.00>,
PSYS_SRC_PATTERN, 16,
PSYS_SRC_BURST_RATE,0.00,
PSYS_SRC_BURST_PART_COUNT,1,
PSYS_SRC_BURST_RADIUS,0.00,
PSYS_SRC_BURST_SPEED_MIN,0.00,
PSYS_SRC_BURST_SPEED_MAX,3.08,
PSYS_SRC_ANGLE_BEGIN, 0.00,
PSYS_SRC_ANGLE_END, 0.00,
PSYS_SRC_MAX_AGE, 0.0,
PSYS_SRC_TEXTURE, "1ecd0cab-72d6-b47f-2c6f-94f556a0831a",
PSYS_PART_START_ALPHA, 0.60,
PSYS_PART_END_ALPHA, 0.60,
PSYS_PART_START_GLOW, 0.00,
PSYS_PART_END_GLOW, 0.00]);
}
}

 

Edited by Sunbleached
Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 637 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...