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

From Second Life Wiki
Jump to navigation Jump to search
Line 10: Line 10:
{{LSL Function/inventory|{{{2|}}}|type={{{type|}}}|uuid={{{uuid|}}}|full={{{full|}}}|insert={{{insert|}}}|}}
{{LSL Function/inventory|{{{2|}}}|type={{{type|}}}|uuid={{{uuid|}}}|full={{{full|}}}|insert={{{insert|}}}|}}


{{#vardefine:caveats|{{#var:pcaveats}}
{{#vardefine:caveats|{{#var:pcaveats}}{{#ifeq:{{#var:target-type}}|~4||
* If {{#ifeq:{{#var:target-type}}|~4||'''{{LSL Param|{{{1}}}}}''' is {{#switch:{{#var:target-type}}|~1=not the owner|~2=not owned by the same person|is not the owner nor shares the same owner}},}} {{#ifeq:{{{uuid|}}}|true|'''{{LSL Param|{{{2}}}}}''' is not a [[UUID]]}} and '''{{LSL Param|{{{2}}}}}''' cannot be transferred, an error is shouted on {{#var:DEBUG_CHANNEL}}.
* If '''{{LSL Param|{{{1}}}}}''' is {{#switch:{{#var:target-type}}|~1=not the owner|~2=not owned by the same person|is not the owner nor shares the same owner}}, {{#ifeq:{{{uuid|}}}|true|'''{{LSL Param|{{{2}}}}}''' is not a [[UUID]]}} and '''{{LSL Param|{{{2}}}}}''' cannot be transferred, an error is shouted on {{#var:DEBUG_CHANNEL}}.}}
* If '''{{LSL Param|{{{2}}}}}''' cannot be copied then an error is shouted on {{#var:DEBUG_CHANNEL}}.{{#switch:{{#var:target-type}}
* If '''{{LSL Param|{{{2}}}}}''' {{#if:{{{full|}}}|is not {{HoverLink|:Category:LSL_Permissions/Asset|copy, mod and transfer|full permissions}}|cannot be copied}} then an error is shouted on {{#var:DEBUG_CHANNEL}}.{{#switch:{{#var:target-type}}
|~1=|* If '''{{LSL Param|{{{1}}}}}''' {{#ifeq:{{#var:target-type}}|~2||is a prim that}} is not in the same region an error is shouted on {{#var:DEBUG_CHANNEL}}.
|~1=|* If '''{{LSL Param|{{{1}}}}}''' {{#ifeq:{{#var:target-type}}|~2||is a prim that}} is not in the same region an error is shouted on {{#var:DEBUG_CHANNEL}}.
}}{{#var:caveats}}}}
}}{{#var:caveats}}}}

Revision as of 07:32, 13 May 2009

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 is not the owner nor shares the same owner, item is not a UUID and item cannot be transferred, an error is shouted on DEBUG_CHANNEL.
  • If item cannot be copied then 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 is not the owner nor shares the same owner, and item cannot be transferred, an error is shouted on DEBUG_CHANNEL.
  • If item cannot be copied then 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 ina 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 ina 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=true|link=*}}
#var value
caveats
  • If item cannot be copied then 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 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 sound in the inventory of the prim this script is in or a UUID of a sounda sound in the inventory of the prim this script is ina 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 sounda sound in the inventory of the prim this script is ina sound in the inventory of the prim this script is in or a UUID of a sound