1) -------------------------------------------------------------------------------------
After trying to run the script:
default
{
state_entry()
{
llSay( 0, "Hello, Avatar!");
}
touch_start(integer total_number)
{
llSay( 0, "Touched.");
}
}
- Everything works fine, and the prim says "Hello, Avatar!" when I drag the script over it, and "Touched." when I click or
select Touch on it.
2) -------------------------------------------------------------------------------------
After trying to run the script:
integer counter;
default
{
state_entry()
{
llSay( 0, "Hello, Avatar! Touch to change color and size.");
counter = 0;
}
touch_start(integer total_number)
{ // do these instructions when the object is touched.
counter = counter + 1;
// choose three random RGB color components between 0. and 1.0.
float redness = llFrand( 1.0 );
float greenness = llFrand( 1.0 );
float blueness = llFrand( 1.0 );
// combine color components into a vector and use that vector
// to set object color.
vector prim_color = < redness, greenness, blueness >;
llSetColor( prim_color, ALL_SIDES ); // set object color to new color.
// choose a random number between 0. and 10. for use as a scale factor.
float new_scale = llFrand(10.0) + 1.0;
llSetScale(< new_scale, new_scale, new_scale > ); // set object scale.
llSay( 0, "Touched by angel number " + (string)counter);
}
}
I get:
- "Hello, Avatar! Touch to change color and size." When I drag the script over the prim;
- "Error executing script function "touch_start":Command not implemented: llSetColorException has been thrown by the target
of an invocation." When I click the prim.
- The prim doesn't change either it's color nor shape.
3) -------------------------------------------------------------------------------------
After trying to run the script:
default
{
touch_start(integer total_number)
{
llSetScale(<5,5,5>);
}
}
- The prim doesn't either resize, either give me a "Command not implemented" message, and just does nothing when touched.
4) -------------------------------------------------------------------------------------
After trying to run the script:
default
{
touch_start(integer total_number)
{
llSetPrimitiveParams([PRIM_PHANTOM, TRUE]);
}
}
I get:
- "Primitive: Error compiling script:Line number 5, Error Number: CS0103, 'The name 'List' does not exist in the current
context'
" When I drag the script over the prim;
- Nothing when I click the prim.