Difference between revisions of "User:Clarknova Helvetic/Set Param Widgets"

From Second Life Wiki
Jump to navigation Jump to search
(only setting properties now. clearing properties scripts have thier own page)
m (<lsl> tags added)
 
Line 3: Line 3:
== '''Disposable Sit Target''' ==
== '''Disposable Sit Target''' ==
Drag 'n drop to have something to sit on
Drag 'n drop to have something to sit on
    default
<lsl>default
    {
{
        state_entry()
      state_entry()
        {   
      {   
            llSitTarget(<0,0,0.5>;
          llSitTarget(<0,0,0.5>;
            llRemoveInventory(llGetScriptName());
          llRemoveInventory(llGetScriptName());
        }
      }
    }
}</lsl>
 
== '''Set Texture By Key''' ==
== '''Set Texture By Key''' ==
Enter key and side number, then drop script into prim  
Enter key and side number, then drop script into prim
    key    texture =  "" ;
<lsl>key    texture =  "" ;
    integer face    =  ALL_SIDES;  // or individual side number
integer face    =  ALL_SIDES;  // or individual side number
   
 
    // Use CTRL ALT SHIFT T to get the number of the face you've selected.
// Use CTRL ALT SHIFT T to get the number of the face you've selected.
    // Turn on admin options CTRL ALT V to get the key this way as well.
// Turn on admin options CTRL ALT V to get the key this way as well.
    //  Note that getting texure keys this way does not work in newer clients because
 
    //  fasion designers are the worthless dregs of human culture and will be
//  Note that getting texure keys this way does not work in newer clients because
    //  shot dead in the former parking lots of thier studios which thier  
//  fasion designers are the worthless dregs of human culture and will be
    //  forced labor will have converted into civic gardens after the revolution.
//  shot dead in the former parking lots of thier studios which thier  
   
//  forced labor will have converted into civic gardens after the revolution.
    default
 
    {
default
        state_entry()
  {
        {
    state_entry()
        llSetTexture(texture,face);
    {
        llRemoveInventory(llGetScriptName());
      llSetTexture(texture,face);
        }
      llRemoveInventory(llGetScriptName());
    }
    }
}</lsl>


== '''Set Hover Text''' ==
== '''Set Hover Text''' ==
Enter text, color and alpha, then drop script into prim  
Enter text, color and alpha, then drop script into prim  
    string  text =  "";
<lsl>string  text =  "";
    vector  color = <1.,1.,1.>;
vector  color = <1.,1.,1.>;
    float  alpha = 1.0;
float  alpha = 1.0;
    default
 
    {
default
        state_entry()
{
        {
    state_entry()
            llSetText(text,color,alpha);
      {
            llSetTimerEvent(5.*60);
        llSetText(text,color,alpha);
        }
        llSetTimerEvent(5.*60);
        touch_start(integer n)
      }
        {
      touch_start(integer n)
            llRemoveInventory(llGetScriptName());
      {
        }
          llRemoveInventory(llGetScriptName());
        timer() { llRemoveInventory(llGetScriptName()); }
      }
    }
      timer() { llRemoveInventory(llGetScriptName()); }
}</lsl>

Latest revision as of 13:37, 8 January 2008

These Scripts are for setting a quick param.

Disposable Sit Target

Drag 'n drop to have something to sit on <lsl>default {

     state_entry()
     {   
         llSitTarget(<0,0,0.5>;
         llRemoveInventory(llGetScriptName());
     }

}</lsl>

Set Texture By Key

Enter key and side number, then drop script into prim <lsl>key texture = "" ; integer face = ALL_SIDES; // or individual side number

// Use CTRL ALT SHIFT T to get the number of the face you've selected. // Turn on admin options CTRL ALT V to get the key this way as well.

// Note that getting texure keys this way does not work in newer clients because // fasion designers are the worthless dregs of human culture and will be // shot dead in the former parking lots of thier studios which thier // forced labor will have converted into civic gardens after the revolution.

default
  {
    state_entry()
    {
      llSetTexture(texture,face);
      llRemoveInventory(llGetScriptName());
    }

}</lsl>

Set Hover Text

Enter text, color and alpha, then drop script into prim <lsl>string text = ""; vector color = <1.,1.,1.>; float alpha = 1.0;

default {

    state_entry()
     {
        llSetText(text,color,alpha);
        llSetTimerEvent(5.*60);
     }
     touch_start(integer n)
     {
         llRemoveInventory(llGetScriptName());
     }
     timer() { llRemoveInventory(llGetScriptName()); }

}</lsl>