“LlAllowInventoryDrop”的版本间的差异

来自人工智能助力教育知识百科
跳转至: 导航搜索
Kjf讨论 | 贡献
 
(未显示另一用户的1个中间版本)
第8行: 第8行:
 
|'''参数'''
 
|'''参数'''
 
|-
 
|-
|integer  
+
|integer add  
add  
 
 
–  
 
–  
boolean, If TRUE it allows anyone, even if they don't have modify rights to a prim, regardless of whether they are the owner or not, to drop items into that prim, If FALSE (default) inventory dropping can still be done, but it is restricted only to people with modify permissions to that prim
+
布尔数, ‎如果 True 允许任何人(即使他们没有原始的修改权限,无论他们是否是所有者)将项目放入原始项目,如果 False(默认)库存下降仍然可以执行,但它仅限于具有原始内容修改权限的人‎
 
|-style="background:#FFF3EE; color:"  
 
|-style="background:#FFF3EE; color:"  
 
|'''返回值'''
 
|'''返回值'''
 
|-
 
|-
|Allows for all users without modify permissions to add inventory items to a prim.
+
|‎允许所有用户在未修改权限的情况下将库存项目添加到原始内容中。‎
 
|-style="background:#FFF3EE; color:"  
 
|-style="background:#FFF3EE; color:"  
 
|'''注意事项'''
 
|'''注意事项'''
 
|-
 
|-
 
|
 
|
*In a link set llAllowInventoryDrop must be executed from a script within the root prim or it fails silently.
+
*在链接集中,必须从根原始的脚本中执行下落,否则它将默默失效。‎
*Scripts are an exception to what is allowed to be dropped in. If a user without modify permissions to a prim attempts to drop a script into it, the inventory addition is rejected and the prim shouts (sic -- shouts, not says) "Not permitted to edit this!" This is for obvious security reasons. If you own the prim and have mod rights to it, you can drop a script in. Friends who have mod rights to your stuff can also drop scripts in.
+
*脚本是允许放出的例外。如果用户未经修改原始内容的权限,则尝试将脚本放入其中,则拒绝添加库存,并且原始内容会shout(原文如此 , 不是say) "不允许编辑此内容!这是出于明显的安全原因。如果您拥有原始内容并拥有该原始内容的模组权利,则可以放弃脚本。拥有您东西的模组权利的朋友也可以放弃脚本。‎
*Will not work if, under the Object tab on the prim, "Locked" is ticked.
+
*如果在原始的对象选项卡下勾选"锁定",则不会工作。‎
*Bear in mind when dropping a texture into a prim to be sure (a) that you see a red box framing the target prim, and (b) not to release the Ctrl button until you are sure that the texture is actually inside the box. If you see a white frame instead, or release Ctrl too soon, the texture will instead be applied to the prim face that you were on.
+
*在将纹理放入原始时请记住(a) 您是否看到一个红色框框定目标原始,(b) 在确定纹理实际上在框内之前不要释放 Ctrl 按钮。如果你看到一个白色的框架,而不是,或释放Ctrl太快,质地将改为应用到你上原始的脸。‎
*There is no way to tell who dropped the item in. If you really need to know, consider making the user touch the prim first to turn the llAllowInventoryDrop on, and then grab the user's information from the touch event, and then set it back to FALSE through a timer.
+
*‎没有办法告诉谁把物品放进来了。如果您真的需要知道,请考虑让用户先触摸原始信息,然后打开 llAllow 发明滴,然后从触摸事件中获取用户信息,然后通过定时器将其放回 FALSE。‎
*Nor is there any way based on just llAllowInventoryDrop to tell *what* the user dropped in. See WhoAddedWhat script to handle that.
+
*‎也没有任何方法可以仅仅基于 llAllow 发明滴来告诉用户登录的 *什么* 。查看"谁已"处理该脚本。‎
*Ordinary end-users may face challenges when confronted with actually performing the drag and drop. See the section below.
+
*普通最终用户在实际执行拖拉和下降时可能会面临挑战。请参阅下面的部分。‎
*People with modify rights to your (modifiable) stuff can do this anyway, as can you, even without the presence of llAllowInventoryDrop.
+
*拥有修改权的人可以这样做, 无论如何, 你可以这样做, 就像你一样, 即使没有 llallow 发明滴的存在。‎
*Even if you own the prim, but don't have modify rights to it, you cannot drop anything at all into it, ever, unless the creator put in it an llAllowInventoryDrop(TRUE) first before passing it to you.
+
*即使你拥有原始,但没有修改的权利,你不能放弃任何东西到它,永远,除非创造者把它一个lllow发明滴(TRUE)首先传递给你之前。‎
*If you have a prim that you don't have mod rights to, but that the creator did set an llAllowInventoryDrop(TRUE) in, that even though you can drop stuff in, you will never be able to delete it! You can however move it to your inventory.
+
*‎如果你有一个原始的,你没有模组的权利,但创造者确实设置了一个lllow发明滴(TRUE),即使你可以下降的东西,你将永远无法删除它!但是,您可以将其移动到库存。‎
 
|-style="background:#FFF3EE; color:"  
 
|-style="background:#FFF3EE; color:"  
 
|'''示例'''
 
|'''示例'''
第93行: 第92行:
 
|'''相关事件'''
 
|'''相关事件'''
 
|-
 
|-
|'''''All Issues'''''~[http://wiki.secondlife.com/wiki/LlAllowInventoryDrop]   
+
|'''''All Issues'''''~[http://wiki.secondlife.com/wiki/LlAllowInventoryDrop 原网站]   
 
|}
 
|}

2021年8月16日 (一) 08:53的最新版本

Template:Needs Translation/

函数详情
函数名 Function: llAllowInventoryDrop( integer add );
参数
integer add

– 布尔数, ‎如果 True 允许任何人(即使他们没有原始的修改权限,无论他们是否是所有者)将项目放入原始项目,如果 False(默认)库存下降仍然可以执行,但它仅限于具有原始内容修改权限的人‎

返回值
‎允许所有用户在未修改权限的情况下将库存项目添加到原始内容中。‎
注意事项
  • 在链接集中,必须从根原始的脚本中执行下落,否则它将默默失效。‎
  • 脚本是允许放出的例外。如果用户未经修改原始内容的权限,则尝试将脚本放入其中,则拒绝添加库存,并且原始内容会shout(原文如此 , 不是say) "不允许编辑此内容!这是出于明显的安全原因。如果您拥有原始内容并拥有该原始内容的模组权利,则可以放弃脚本。拥有您东西的模组权利的朋友也可以放弃脚本。‎
  • 如果在原始的对象选项卡下勾选"锁定",则不会工作。‎
  • 在将纹理放入原始时请记住(a) 您是否看到一个红色框框定目标原始,(b) 在确定纹理实际上在框内之前不要释放 Ctrl 按钮。如果你看到一个白色的框架,而不是,或释放Ctrl太快,质地将改为应用到你上原始的脸。‎
  • ‎没有办法告诉谁把物品放进来了。如果您真的需要知道,请考虑让用户先触摸原始信息,然后打开 llAllow 发明滴,然后从触摸事件中获取用户信息,然后通过定时器将其放回 FALSE。‎
  • ‎也没有任何方法可以仅仅基于 llAllow 发明滴来告诉用户登录的 *什么* 。查看"谁已"处理该脚本。‎
  • 普通最终用户在实际执行拖拉和下降时可能会面临挑战。请参阅下面的部分。‎
  • 拥有修改权的人可以这样做, 无论如何, 你可以这样做, 就像你一样, 即使没有 llallow 发明滴的存在。‎
  • 即使你拥有原始,但没有修改的权利,你不能放弃任何东西到它,永远,除非创造者把它一个lllow发明滴(TRUE)首先传递给你之前。‎
  • ‎如果你有一个原始的,你没有模组的权利,但创造者确实设置了一个lllow发明滴(TRUE),即使你可以下降的东西,你将永远无法删除它!但是,您可以将其移动到库存。‎
示例
当llAllowInventoryDrop被设置为TRUE,并且某人在没有修改权限的情况下成功删除了某个项时,将使用CHANGED_ALLOWED_DROP位设置更改发生的事件。
changed(integer change)
{
    if (change & CHANGED_ALLOWED_DROP)
        llSay(0, "Your contribution is appreciated, o ye non-permitted modifier!");
}
当一个具有修改权限的人成功地删除了一个条目时,不管llAllowInventoryDrop()的状态如何,所发生的事件都是CHANGED_INVENTORY ()
changed(integer change)
{
    if (change & CHANGED_INVENTORY)
        llSay(0, "Your contribution is appreciated, o ye permitted modifier!");
}
提示!要测试任何一个改变的事件,正确的语法是:
changed(integer change)
{
    //PUBLIC_CHANNEL has the integer value 0
    if (change & (CHANGED_ALLOWED_DROP | CHANGED_INVENTORY))
        llSay(PUBLIC_CHANNEL, "yeppers, inventory changed somehow.");
}
下面的示例比较复杂。它演示了AllowInventoryDrop和on的交替。(除非你真的想玩弄用户的心思,否则你可能不会真的这么做。)
integer allow;
 
default
{
    touch_start(integer num)
    {
        llAllowInventoryDrop(allow = !allow);
        llOwnerSay("llAllowInventoryDrop == " + llList2String(["FALSE","TRUE"], allow));
    }
 
    changed(integer change)
    {
        //note that it's & and not &&... it's bitwise!
        if (change & CHANGED_ALLOWED_DROP)
            llOwnerSay("The inventory has changed as a result of a user without mod permissions dropping 
                        an item on the prim and it being allowed by the script.");
    }
}
相关
Events

changed – CHANGED_ALLOWED_DROP

相关事件
All Issues~原网站