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

From Second Life Wiki
Jump to navigation Jump to search
(Removing all content from page)
(only setting properties now. clearing properties scripts have thier own page)
Line 1: Line 1:
'''These Scripts are for setting a quick param.'''


== '''Disposable Sit Target''' ==
Drag 'n drop to have something to sit on
    default
    {
        state_entry()
        { 
            llSitTarget(<0,0,0.5>;
            llRemoveInventory(llGetScriptName());
        }
    }
== '''Set Texture By Key''' ==
Enter key and side number, then drop script into prim
    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());
        }
    }
== '''Set Hover Text''' ==
Enter text, color and alpha, then drop script into prim
    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()); }
    }

Revision as of 16:59, 7 January 2008

These Scripts are for setting a quick param.

Disposable Sit Target

Drag 'n drop to have something to sit on

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

Set Texture By Key

Enter key and side number, then drop script into prim

   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());
       }
   }

Set Hover Text

Enter text, color and alpha, then drop script into prim

   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()); }
   }