command line:
/1 uuid temp
e.g. /1 00000000-0000-0000-0000-000000000000 -6
Prim Code...
default
{
state_entry()
{
llSay(0, "Hello, Avatar!");
llSetText("Tokyo", <1.0, 1.0, 1.0>, 1.0);
llListen(1, "", llGetOwner(), "");
llParticleSystem([]);
llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, 0 ] ) ;
llSetColor(<1,1,0.5>, ALL_SIDES);
llSetTexture("8b5fec65-8d8d-9dc5-cda8-8fdf2716e361", ALL_SIDES);
}
listen( integer channel, string name, key id, string message )
{
if (id == llGetOwner()){
//key uuid = (key)llGetSubString(message,0,35);
integer value = (integer)llGetSubString(message,36,-1);
//if(uuid == llGetKey()){
if (value <= 0 && value >= -10 )
{
llSetText("Tokyo "+(string)value+"oC", <1.0, 1.0, 1.0>, 1.0);
llSetTexture("f73e94ac-1bfd-43e2-ff0a-efc7fee1029e", ALL_SIDES);
llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, 0 ] ) ;
llSetColor(<1,1,1>, ALL_SIDES);
llParticleSystem(
[
PSYS_PART_FLAGS, PSYS_PART_WIND_MASK | PSYS_PART_EMISSIVE_MASK,
PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE,
PSYS_PART_START_COLOR, <1,1,1>,
PSYS_PART_START_SCALE,<0.1,0.1,0.1>,
PSYS_PART_END_SCALE,<0.1,0.1,0.1>,
PSYS_SRC_BURST_PART_COUNT,5,
PSYS_SRC_ANGLE_BEGIN,0.57,
PSYS_PART_MAX_AGE,0.5
] );
}
if (value < -10 )
{
llSetText("Tokyo "+(string)value+"oC", <1.0, 1.0, 1.0>, 1.0);
llSetTexture("f73e94ac-1bfd-43e2-ff0a-efc7fee1029e", ALL_SIDES);
llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, 0 ] ) ;
llSetColor(<1,1,1>, ALL_SIDES);
llParticleSystem(
[
PSYS_PART_FLAGS, PSYS_PART_WIND_MASK | PSYS_PART_EMISSIVE_MASK,
PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE,
PSYS_PART_START_COLOR, <1,1,1>,
PSYS_PART_START_SCALE,<0.3,0.3,0.3>,
PSYS_PART_END_SCALE,<0.3,0.3,0.3>,
PSYS_SRC_BURST_PART_COUNT,5,
PSYS_SRC_ANGLE_BEGIN,0.57,
PSYS_PART_MAX_AGE,0.5
] );
}
if (value > 0 && value <= 10 )
{
llSetTexture("f73e94ac-1bfd-43e2-ff0a-efc7fee1029e", ALL_SIDES);
llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, 0 ] ) ;
llSetColor(<1,1,1>, ALL_SIDES);
llParticleSystem([]);
}
if (value > 10 && value <= 20 )
{
llSetTexture("8b5fec65-8d8d-9dc5-cda8-8fdf2716e361", ALL_SIDES);
llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, 0.1 ] ) ;
llSetColor(<1,1,0.5>, ALL_SIDES);
llParticleSystem([]);
}
if (value > 20 && value <= 30 )
{
llSetTexture("8b5fec65-8d8d-9dc5-cda8-8fdf2716e361", ALL_SIDES);
llSetColor(<1,1,0.5>, ALL_SIDES);
llParticleSystem([]);
llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, .2 ] ) ;
}
if (value > 30 && value <= 40 )
{
llSetTexture("8b5fec65-8d8d-9dc5-cda8-8fdf2716e361", ALL_SIDES);
llSetColor(<1,1,0.5>, ALL_SIDES);
llParticleSystem([]);
llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, .6 ] ) ;
}
if (value > 40)
{
llSetTexture("8b5fec65-8d8d-9dc5-cda8-8fdf2716e361", ALL_SIDES);
llSetColor(<1,1,0.5>, ALL_SIDES);
llParticleSystem([]);
llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, 1 ] ) ;
}
//}
}
}
touch_start(integer total_number)
{
llSay(0, "Touched.");
}
}
Subscribe to:
Post Comments (Atom)
Azure OpenAI Architecture Patterns & Deployment Patterns
Sharing some useful links that will help customers architect Azure OpenAI solution using the best practices: (1) Azure OpenAI Landing Zone r...
-
Setting up a MPI cluster on Ubuntu involves the following steps: 1. Install OpenMPI on all machines. $sudo apt-get install libopenmpi-de...
-
Very Useful Link: http://people.cc.ku.edu/~grobe/intro-to-LSL/index.html#particle Using the Linden Script Language This page is a short...
-
float p_size = 0.1; default { state_entry() { llSay(0, "Hello, Avatar!"); llSetPrimitiveParams( [ PRIM_...
No comments:
Post a Comment