Difference between revisions of "LlAllowInventoryDrop/ja"

From Second Life Wiki
Jump to navigation Jump to search
m (カテゴリ変更)
(One intermediate revision by one other user not shown)
Line 10: Line 10:
*絵あるいはテクスチャをアップロードするには、[ctrl]を押したままプリムにドラッグして入れます。
*絵あるいはテクスチャをアップロードするには、[ctrl]を押したままプリムにドラッグして入れます。
|constants
|constants
|examples=<lsl>
|examples=<source lang="lsl2">
integer allow;
integer allow;


Line 28: Line 28:
     }
     }
}
}
</lsl>
</source>
|helpers
|helpers
|also_functions
|also_functions
Line 37: Line 37:
|permission
|permission
|negative_index
|negative_index
|cat1=Inventory/ja
|cat1=Inventory
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 11:02, 21 February 2016

要約

関数: llAllowInventoryDrop( integer add );

プリムへインベントリアイテムを加えることを、パーミッションの変更が不要のまま全てのユーザに許可します。

• integer add TRUEの場合、プリムのインベントリにだれでもドロップすることを許可し、FALSEだと取り消します。

ドロップされたインベントリアイテムのオーナ権はプリムのオーナに変わり、次のオーナの権限は譲渡されたインベントリアイテムへ承認されます。

警告

  • スクリプトは、llAllowInventoryDropステートに関係なく、プリムへエージェントよりドロップされることはありません。(ユーザが権限を変更することなく、プリムにインベントリドロップを許可するスクリプトをドロップするのを試す場合、プリムは"これを編集する権限はありません"と叫ぶでしょう)
  • 絵あるいはテクスチャをアップロードするには、[ctrl]を押したままプリムにドラッグして入れます。
All Issues ~ Search JIRA for related Bugs

サンプル

integer allow;

default
{
    touch_start(integer num)
    {
        llAllowInventoryDrop(allow = !allow);
        llOwnerSay("llAllowInventoryDrop == "+llList2String(["FALSE","TRUE"],allow));
    }
    changed(integer change)
    {
        if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise!
        {
            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.");
        }
    }
}

注意点

ユーザはドロップされるインベントリアイテムへ譲渡権を与えるべきです。

関連項目

イベント

•  changed CHANGED_ALLOWED_DROP

特記事項

Search JIRA for related Issues

Signature

function void llAllowInventoryDrop( integer add );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。