Difference between revisions of "Template:LSL Function/give"

From Second Life Wiki
Jump to navigation Jump to search
(Fix double "is" for some uses, make what)
m (keep previous table contents from showing up in the next table)
Line 23: Line 23:
{{Multi-lang}}
{{Multi-lang}}
{{UpdateLink}}
{{UpdateLink}}
 
{{#vardefine:caveats}}{{#vardefine:p_target_desc}}{{#vardefine:p_target_hover}}{{#vardefine:p_item_desc}}{{#vardefine:p_item_hover}}
{| {{Prettytable}} {{#vardefine:caveats}}
{| {{Prettytable}} {{#vardefine:caveats}}
|+<code><nowiki>{{</nowiki>{{FULLPAGENAMEE}}<nowiki>|target|item|type=sound|uuid=true}}</nowiki></code>{{{{FULLPAGENAMEE}}|target|item|type=sound|uuid=true}}
|+<code><nowiki>{{</nowiki>{{FULLPAGENAMEE}}<nowiki>|target|item|type=sound|uuid=true}}</nowiki></code>{{{{FULLPAGENAMEE}}|target|item|type=sound|uuid=true}}
Line 40: Line 40:
{{VarPair|p_item_hover}}
{{VarPair|p_item_hover}}
|}
|}
 
{{#vardefine:caveats}}{{#vardefine:p_target_desc}}{{#vardefine:p_target_hover}}{{#vardefine:p_item_desc}}{{#vardefine:p_item_hover}}
{| {{Prettytable}} {{#vardefine:caveats}}
{| {{Prettytable}} {{#vardefine:caveats}}
|+<code><nowiki>{{</nowiki>{{FULLPAGENAMEE}}<nowiki>|target|item|type=sound|uuid=false}}</nowiki></code>{{{{FULLPAGENAMEE}}|target|item|type=sound|uuid=false}}
|+<code><nowiki>{{</nowiki>{{FULLPAGENAMEE}}<nowiki>|target|item|type=sound|uuid=false}}</nowiki></code>{{{{FULLPAGENAMEE}}|target|item|type=sound|uuid=false}}
Line 57: Line 57:
{{VarPair|p_item_hover}}
{{VarPair|p_item_hover}}
|}
|}
 
{{#vardefine:caveats}}{{#vardefine:p_target_desc}}{{#vardefine:p_target_hover}}{{#vardefine:p_item_desc}}{{#vardefine:p_item_hover}}
{| {{Prettytable}} {{#vardefine:caveats}}
{| {{Prettytable}} {{#vardefine:caveats}}
|+<code><nowiki>{{</nowiki>{{FULLPAGENAMEE}}<nowiki>|target|item|type=script|uuid=true|link=*}}</nowiki></code>{{{{FULLPAGENAMEE}}|target|item|type=script|uuid=true|link=*}}
|+<code><nowiki>{{</nowiki>{{FULLPAGENAMEE}}<nowiki>|target|item|type=script|uuid=true|link=*}}</nowiki></code>{{{{FULLPAGENAMEE}}|target|item|type=script|uuid=true|link=*}}

Revision as of 09:26, 19 March 2012

Press this link after making a change, so it becomes displayed.
{{Template:LSL_Function/give|target|item|type=sound|uuid=true}}
#var value
caveats
  • If target is not the owner nor shares the same owner, item is not a UUID and item does not have transfer permissions, an error is shouted on DEBUG_CHANNEL.
  • If item permissions do not allow copy, the transfer fails and an error is shouted on DEBUG_CHANNEL.
  • If target is a prim that is not in the same region an error is shouted on DEBUG_CHANNEL.
  • If item is missing from the prim's inventory and it is not a UUID or it is not a sound then an error is shouted on DEBUG_CHANNEL.
  • If item is a UUID then there are no new asset permissions consequences for the object.
    • The resulting object develops no new usage restrictions that might have occurred if the asset had been placed in the prims inventory.
p_target_desc group, avatar or prim UUID
p_target_hover group, avatar or prim UUID
p_item_desc a sound in the inventory of the prim this script is in or a UUID of a sound
p_item_hover a sound in the inventory of the prim this script is in or a UUID of a sound
{{Template:LSL_Function/give|target|item|type=sound|uuid=false}}
#var value
caveats
  • If target is not the owner nor shares the same owner, and item does not have transfer permissions, an error is shouted on DEBUG_CHANNEL.
  • If item permissions do not allow copy, the transfer fails and an error is shouted on DEBUG_CHANNEL.
  • If target is a prim that is not in the same region an error is shouted on DEBUG_CHANNEL.
  • If item is missing from the prim's inventory or it is not a sound then an error is shouted on DEBUG_CHANNEL.
p_target_desc group, avatar or prim UUID
p_target_hover group, avatar or prim UUID
p_item_desc a sound in the inventory of the prim this script is in
p_item_hover a sound in the inventory of the prim this script is in
{{Template:LSL_Function/give|target|item|type=script|uuid=true|link=*}}
#var value
caveats
  • When scripts are copied or moved between inventories, their state does not survive the transfer. Memory, event queue and execution position are all discarded.
  • If item is missing from the prim's inventory and it is not a UUID or it is not a script then an error is shouted on DEBUG_CHANNEL.
  • If item is a UUID then there are no new asset permissions consequences for the object.
    • The resulting object develops no new usage restrictions that might have occurred if the asset had been placed in the prims inventory.
p_target_desc Link number (0: unlinked, 1: root prim, >1: child prims and seated avatars) or a LINK_* flag
p_target_hover Link number (0: unlinked, 1: root prim, >1: child prims and seated avatars) or a LINK_* flag
p_item_desc a script in the inventory of the prim this script is in or a UUID of a script
p_item_hover a script in the inventory of the prim this script is in or a UUID of a script