Difference between revisions of "LSL Function Style/Strife Onizuka"

From Second Life Wiki
Jump to navigation Jump to search
m (was stupid edit)
m (For what's worth, I've replaced <lsl> with <syntaxhighlight>...)
 
Line 47: Line 47:
== Examples ==
== Examples ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
<lsl>
<syntaxhighlight lang="lsl2">
default
default
{
{
Line 55: Line 55:
     }
     }
}
}
</lsl>
</syntaxhighlight>


</div>
</div>
Line 65: Line 65:
== Helper Functions ==
== Helper Functions ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
<lsl>
<syntaxhighlight lang="lsl2">
</lsl>
</syntaxhighlight>
</div>
</div>
</div>
</div>
Line 125: Line 125:
|spec=This function performs this specific set of actions under these circumstances. If the key passed to it is NULL_KEY, then it will shout "Nobody's whacking!" on channel 0.
|spec=This function performs this specific set of actions under these circumstances. If the key passed to it is NULL_KEY, then it will shout "Nobody's whacking!" on channel 0.
|caveats=* Don't use this function to test whether a key is null.
|caveats=* Don't use this function to test whether a key is null.
|examples=<lsl></lsl>
|examples=<syntaxhighlight lang="lsl2"></syntaxhighlight>
|helpers=<lsl></lsl>
|helpers=<syntaxhighlight lang="lsl2"></syntaxhighlight>
|related=
|related=
*{{LSLG|llVecMag}}
*{{LSLG|llVecMag}}
Line 173: Line 173:
|spec=This function performs this specific set of actions under these circumstances. If the key passed to it is NULL_KEY, then it will shout "Nobody's whacking!" on channel 0.
|spec=This function performs this specific set of actions under these circumstances. If the key passed to it is NULL_KEY, then it will shout "Nobody's whacking!" on channel 0.
|caveats=* Don't use this function to test whether a key is null.
|caveats=* Don't use this function to test whether a key is null.
|examples=<lsl></lsl>
|examples=<syntaxhighlight lang="lsl2"></syntaxhighlight>
|helpers=<lsl></lsl>
|helpers=<syntaxhighlight lang="lsl2"></syntaxhighlight>
|related=
|related=
*{{LSLG|llVecMag}}
*{{LSLG|llVecMag}}

Latest revision as of 15:23, 3 February 2023

  WORK IN PROGRESS

(This style and layout is not finalized yet - this needs to be finalized before significant information is added to articles!)

string llFunction( key avatar, integer widgets , float stickLength );

0 Function ID
0.0 Delay
10.0 Energy

This function consumes widgets while it simultaneously animates a person whacking bad formatters. The widgets are destroyed. This is the lede. (short high-level description of function, a few sentences to a paragraph)

Returns a string contains the name of the widget last consumed.

• key avatar – This is a key parameter which expects to be passed a valid avatar key.
• integer widgets – This is an integer parameter which indicates the number of widgets to process.
• float stickLength – This is a float parameter used to describe the length of the stick used to whack bad formatters.

Specification

This function performs this specific set of actions under these circumstances. If the key passed to it is NULL_KEY, then it will shout "Nobody's whacking!" on channel 0.

Caveats

  • Don't use this function to test whether a key is null.
  • (if you know of none, try using:) None known

Examples

default
{
    state_entry()
    {
        llSay(0,"The absolute value of -4 is: "+(string)llAbs(-4) );
    }
}

Helper Functions

See Also

(similar functions, related examples and pages, etc.)

Notes

(footnotes, if necessary - caveats should go in caveats section)



Implementation

Summary

Function: string llFunction( key avatar, integer widgets, float stickLength );
0.0 Forced Delay
10.0 Energy

This function consumes widgets while it simultaneously animates a person whacking bad formatters. The widgets are destroyed. This is the lede. (short high-level description of function, a few sentences to a paragraph)
Returns a string contains the name of the widget last consumed.

• key avatar This is a key parameter which expects to be passed a valid avatar key.
• integer widgets This is an integer parameter which indicates the number of widgets to process.
• float stickLength This is a float parameter used to describe the length of the stick used to whack bad formatters.

Specification

This function performs this specific set of actions under these circumstances. If the key passed to it is NULL_KEY, then it will shout "Nobody's whacking!" on channel 0.

Flag Inventory Type
INVENTORY_NONE -1 Item does not exist.
INVENTORY_ALL Any inventory type.
INVENTORY_TEXTURE 0 texture
INVENTORY_SOUND 1 sound
INVENTORY_LANDMARK 3 landmark
INVENTORY_CLOTHING 5 clothing
INVENTORY_OBJECT 6 object
Flag Inventory Type
INVENTORY_NOTECARD 7 notecard
INVENTORY_SCRIPT 10 script
INVENTORY_BODYPART 13 body part
INVENTORY_ANIMATION 20 animation
INVENTORY_GESTURE 21 gesture
INVENTORY_SETTING 56 setting
INVENTORY_MATERIAL 57 material

Caveats

  • Don't use this function to test whether a key is null.

Examples

Useful Snippets

Notes

(footnotes, if necessary - caveats should go in caveats section)

See Also

(similar functions, related examples and pages, etc.)

Deep Notes

Signature

function string llFunction( key avatar, integer widgets, float stickLength );


Function Description on Wish List

Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: string llWishedFunction( key avatar, integer widgets, float stickLength );
0.0 Forced Delay
10.0 Energy

This function consumes widgets while it simultaneously animates a person whacking bad formatters. The widgets are destroyed. This is the lede. (short high-level description of function, a few sentences to a paragraph) This function consumes widgets while it simultaneously animates a person whacking bad formatters. The widgets are destroyed. This is the lede. (short high-level description of function, a few sentences to a paragraph)
Returns a string contains the name of the widget last consumed.contains the name of the widget last consumed.

• key avatar This is a key parameter which expects to be passed a valid avatar key.This is a key parameter which expects to be passed a valid avatar key.
• integer widgets This is an integer parameter which indicates the number of widgets to process.This is an integer parameter which indicates the number of widgets to process.
• float stickLength This is a float parameter used to describe the length of the stick used to whack bad formatters.This is a float parameter used to describe the length of the stick used to whack bad formatters.

Specification

This function performs this specific set of actions under these circumstances. If the key passed to it is NULL_KEY, then it will shout "Nobody's whacking!" on channel 0. This function performs this specific set of actions under these circumstances. If the key passed to it is NULL_KEY, then it will shout "Nobody's whacking!" on channel 0.

Flag Inventory Type
INVENTORY_NONE -1 Item does not exist.
INVENTORY_ALL Any inventory type.
INVENTORY_TEXTURE 0 texture
INVENTORY_SOUND 1 sound
INVENTORY_LANDMARK 3 landmark
INVENTORY_CLOTHING 5 clothing
INVENTORY_OBJECT 6 object
Flag Inventory Type
INVENTORY_NOTECARD 7 notecard
INVENTORY_SCRIPT 10 script
INVENTORY_BODYPART 13 body part
INVENTORY_ANIMATION 20 animation
INVENTORY_GESTURE 21 gesture
INVENTORY_SETTING 56 setting
INVENTORY_MATERIAL 57 material
Flag Inventory Type
INVENTORY_NONE -1 Item does not exist.
INVENTORY_ALL Any inventory type.
INVENTORY_TEXTURE 0 texture
INVENTORY_SOUND 1 sound
INVENTORY_LANDMARK 3 landmark
INVENTORY_CLOTHING 5 clothing
INVENTORY_OBJECT 6 object
Flag Inventory Type
INVENTORY_NOTECARD 7 notecard
INVENTORY_SCRIPT 10 script
INVENTORY_BODYPART 13 body part
INVENTORY_ANIMATION 20 animation
INVENTORY_GESTURE 21 gesture
INVENTORY_SETTING 56 setting
INVENTORY_MATERIAL 57 material

Caveats

  • Don't use this function to test whether a key is null.
  • Don't use this function to test whether a key is null.

Examples

Useful Snippets

Notes

(footnotes, if necessary - caveats should go in caveats section) (footnotes, if necessary - caveats should go in caveats section)

See Also

(similar functions, related examples and pages, etc.) (similar functions, related examples and pages, etc.)

Deep Notes

Signature

//function string llWishedFunction( key avatar, integer widgets, float stickLength );