Difference between revisions of "Template:LSL Constants Perm Mask"

From Second Life Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div>
{{{!}}
<div style="float:right;">
{{!}}- valign="top"
{|{{Prettytable}}
{{!}}
! Permissions
{{{!}} class="sortable" {{Prettytable|style=margin-top:0;}}
! Value
{{!}}-{{Hl2}}
! Description
! title="Mask" {{!}} {{LSLP|category|Category}}
|-
! title="Value" {{!}}
| {{LSLG|PERM_ALL}}
! class="unsortable" {{!}} Description
| {{LSL Hex|0x7FFFFFFF|2147483647}}
{{!}}-
| Move/Modify/Copy/Transfer permissions
{{!}} {{LSL_Const|MASK_BASE|integer|0|c=The base permissions.}}
|-  
{{!}} {{#var:value}}
| {{LSLG|PERM_COPY}}
{{!}} {{#var:comment}}
| {{LSL Hex|0x00008000|32768}}
{{!}}-  
| Copy permission
{{!}} {{LSL_Const|MASK_OWNER|integer|1|c=Current owner permissions.}}
|-
{{!}} {{#var:value}}
| {{LSLG|PERM_MODIFY}}
{{!}} {{#var:comment}}
| {{LSL Hex|0x00004000|16384}}
{{!}}-  
| Modify permission
{{!}} {{LSL_Const|MASK_GROUP|integer|2|c=Active group permissions.}}
|-
{{!}} {{#var:value}}
| {{LSLG|PERM_MOVE}}
{{!}} {{#var:comment}}
| {{LSL Hex|0x00080000|524288}}
{{!}}-  
| Move permission
{{!}} {{LSL_Const|MASK_EVERYONE|integer|3|c=Permissions everyone has.}}
|-  
{{!}} {{#var:value}}
| {{LSLG|PERM_TRANSFER}}
{{!}} {{#var:comment}}
| {{LSL Hex|0x00002000|8192}}
{{!}}-  
| Transfer permission
{{!}} {{LSL_Const|MASK_NEXT|integer|4|c=Permissions the next owner will have.}}
|}
{{!}} {{#var:value}}
</div>
{{!}} {{#var:comment}}
<div>
{{!}}-
{|{{Prettytable}}
{{!}} {{LSL_Const|MASK_COMBINED|integer|16|c=Include object inventory contents when calculating perms.}}
! Mask
{{!}} {{#var:value}}
! Value
{{!}} {{#var:comment}}<br>
! Description
Combine with other mask flags, for instance MASK_OWNER|MASK_COMBINED
|-
{{!}}}
| {{LSLG|MASK_BASE}}
{{!}}
| 0
{{LSL Constants/Perm Flags|all={{{all|<noinclude>*</noinclude>}}}}}
| The base permissions.
{{!}}}
|-
| {{LSLG|MASK_OWNER}}
| 1
| Current owner permissions.
|-  
| {{LSLG|MASK_GROUP}}
| 2
| Active group permissions.
|-  
| {{LSLG|MASK_EVERYONE}}
| 3
| Permissions everyone has.
|-  
| {{LSLG|MASK_NEXT}}
| 4
| Permissions the next owner will have.
|}
</div>
<div style="clear:right;" ></div>
</div>

Latest revision as of 14:17, 12 December 2024

Category Description
MASK_BASE 0 The base permissions.
MASK_OWNER 1 Current owner permissions.
MASK_GROUP 2 Active group permissions.
MASK_EVERYONE 3 Permissions everyone has.
MASK_NEXT 4 Permissions the next owner will have.
MASK_COMBINED 16 Include object inventory contents when calculating perms.

Combine with other mask flags, for instance MASK_OWNER|MASK_COMBINED

Permissions Value Description
PERM_ALL 0x7FFFFFFF Move/Modify/Copy/Transfer permissions
PERM_COPY 0x00008000 Copy permission
PERM_MODIFY 0x00004000 Modify permission
PERM_MOVE 0x00080000 Move permission
PERM_TRANSFER 0x00002000 Transfer permission
PERM_ENTER 0x00010000 [Deprecated] parcels, allow entry
PERM_TERRAFORM 0x00020000 [Deprecated] parcels, allow terraform
PERM_OWNER_DEBIT 0x00040000 [Deprecated] object, can debit money
PERM_DAMAGE 0x00100000 [Deprecated] parcels, avatars take damage