Difference between revisions of "Template:LSL Function/give"
Jump to navigation
Jump to search
m |
(Attempt to fix llGiveInventory to not say that it can give to groups) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: | <includeonly>{{LSL Injection Test}}{{#if: | ||
{{#vardefine:target-type|~{{#expr:{{#if:{{{avatar|}}}|1|0}}+{{#if:{{{prim|}}}{{{object|}}}|2|0}}+{{#if:{{{link|}}}|4|0}}}}}} | {{#vardefine:target-type|~{{#expr:{{#if:{{{avatar|}}}|1|0}}+{{#if:{{{prim|}}}{{{object|}}}|2|0}}+{{#if:{{{link|}}}|4|0}}}}}} | ||
Line 6: | Line 6: | ||
{{#vardefine:caveats}} | {{#vardefine:caveats}} | ||
{{LSL Function/{{#switch:{{#var:target-type}}|~1=avatar|~2=prim|~4=link|uuid}}|object={{{object|}}}|sim={{{sim|}}}|{{{1|}}}|}} | {{LSL Function/{{#switch:{{#var:target-type}}|~1=avatar|~2=prim|~4=link|uuid}}|group=|object={{{object|}}}|sim={{{sim|}}}|{{{1|}}}|}} | ||
{{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}}{{#ifeq:{{#var:target-type}}|~4|| | {{#vardefine:caveats|{{#var:pcaveats}}{{#ifeq:{{#var:target-type}}|~4|| | ||
* If '''{{LSL Param|{{{1}}}}}''' is {{#switch:{{#var:target-type}}|~1=not the owner|~2=not owned by the same person| | * If '''{{LSL Param|{{{1}}}}}''' is {{#switch:{{#var:target-type}}|~1=not the owner|~2=not owned by the same person|not the owner nor shares the same owner}}, {{#ifeq:{{{uuid|}}}|true|'''{{LSL Param|{{{2}}}}}''' is not a [[UUID]]}} and '''{{LSL Param|{{{2}}}}}''' does not have transfer permissions, an error is shouted on {{#var:DEBUG_CHANNEL}}. | ||
* If '''{{LSL Param|{{{2}}}}}''' {{#if:{{{full|}}}|is not {{HoverLink|:Category:LSL_Permissions/Asset|copy, mod and transfer|full permissions}}| | {{#if:{{{copyok|}}}|| | ||
|~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}}.}}}} | * If '''{{LSL Param|{{{2}}}}}''' {{#if:{{{full|}}}|is not {{HoverLink|:Category:LSL_Permissions/Asset|copy, mod and transfer|full permissions}}|permissions do not allow copy}}, the transfer fails and 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}}.}}}}}} | |||
{{#switch:{{{type|}}}|script|=* When scripts are copied or moved between inventories, their state does not survive the transfer. Memory, event queue and execution position are all discarded.|#default=}} | |||
{{#var:caveats}}}} | {{#var:caveats}}}} | ||
Line 21: | 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 38: | 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 55: | 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= | |+<code><nowiki>{{</nowiki>{{FULLPAGENAMEE}}<nowiki>|target|item|type=script|uuid=true|link=*}}</nowiki></code>{{{{FULLPAGENAMEE}}|target|item|type=script|uuid=true|link=*}} | ||
|-{{Hl2}} | |-{{Hl2}} | ||
! #var | ! #var |
Latest revision as of 11:14, 24 September 2022
Press this link after making a change, so it becomes displayed.
#var | value |
---|---|
caveats |
|
p_target_desc | avatar or prim UUID |
p_target_hover | 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 |
#var | value |
---|---|
caveats |
|
p_target_desc | avatar or prim UUID |
p_target_hover | 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 |
#var | value |
---|---|
caveats |
|
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 |