Difference between revisions of "User:Clarknova Helvetic/Set Param Widgets"
m (2 moar) |
m (<lsl> tags added) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''These Scripts are for setting a quick param | '''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''' == | == '''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> | |||
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>