Difference between revisions of "LlGiveInventory/ja"

From Second Life Wiki
Jump to navigation Jump to search
(Modified translation)
m (Apply LSLG Template)
Line 2: Line 2:
|func_id=150|func_sleep=0.0|func_energy=10.0
|func_id=150|func_sleep=0.0|func_energy=10.0
|func=llGiveInventory
|func=llGiveInventory
|p1_type=key|p1_name=destination|p1_desc=アバターかオブジェクトの[[UUID]].
|p1_type=key|p1_name=destination|p1_desc=アバターかオブジェクトの{{LSLG/ja|UUID}}
|p2_type=string|p2_name=inventory
|p2_type=string|p2_name=inventory
|func_footnote='''destination'''がオブジェクトの場合、同じ[[region/ja|リージョン]]でなければなりません。<br/>'''destination'''がアバタの場合、同じリージョンでなくてもかまいません。
|func_footnote='''destination'''がオブジェクトの場合、同じ[[Land/ja#Region|リージョン]]でなければなりません。<br/>'''destination'''がアバタの場合、同じリージョンでなくてもかまいません。
|func_desc='''destination'''に'''inventory'''を渡します。
|func_desc='''destination'''に'''inventory'''を渡します。
|return_text
|return_text
|spec
|spec
|caveats=*取引が失敗したとしても、知る方法はありません。
|caveats=*取引が失敗したとしても、知る方法はありません。
* '''destination''' に送られたスクリプトは無効化されます。("実行中" のチェックが外れる。一旦 destination を take して rez し直すか、スクリプトを再コンパイルするまで実行できない。) スクリプトを実行中のまま別のプリムへ送るには [[llSetRemoteScriptAccessPin/ja|llSetRemoteScriptAccessPin]] を使ってください。
* '''destination''' に送られたスクリプトは無効化されます。("実行中" のチェックが外れる。一旦 destination を take して rez し直すか、スクリプトを再コンパイルするまで実行できない。) スクリプトを実行中のまま別のプリムへ送るには {{LSLG/ja|llSetRemoteScriptAccessPin}} を使ってください。
|constants
|constants
|examples=
|examples=
Line 21: Line 21:
}</lsl>
}</lsl>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llGiveInventoryList/ja|llGiveInventoryList]]}}
|also_functions={{LSL DefineRow||{{LSLG/ja|llGiveInventoryList}}}}
{{LSL DefineRow||[[llSetRemoteScriptAccessPin/ja|llSetRemoteScriptAccessPin]]}}
{{LSL DefineRow||{{LSLG/ja|llSetRemoteScriptAccessPin}}}}
{{LSL DefineRow||[[llMapDestination/ja|llMapDestination]]}}
{{LSL DefineRow||{{LSLG/ja|llMapDestination}}}}
|also_events={{LSL DefineRow||[[changed/ja|changed]]}}
|also_events={{LSL DefineRow||{{LSLG/ja|changed}}}}
|also_tests
|also_tests
|also_articles
|also_articles

Revision as of 04:12, 13 April 2009

要約

関数: llGiveInventory( key destination, string inventory );

destinationinventoryを渡します。

• key destination アバターかオブジェクトのUUID
• string inventory プリムの インベントリ の中にあるアイテム

destinationがオブジェクトの場合、同じリージョンでなければなりません。
destinationがアバタの場合、同じリージョンでなくてもかまいません。

警告

  • inventory がプリムの中で見つからない場合、エラーが DEBUG_CHANNEL 上で叫ばれます。
  • 取引が失敗したとしても、知る方法はありません。
  • destination に送られたスクリプトは無効化されます。("実行中" のチェックが外れる。一旦 destination を take して rez し直すか、スクリプトを再コンパイルするまで実行できない。) スクリプトを実行中のまま別のプリムへ送るには llSetRemoteScriptAccessPin を使ってください。
All Issues ~ Search JIRA for related Bugs

サンプル

<lsl>default {

   touch_start(integer n)
   {
       //Gives this script to whoever touches the object.
       llGiveInventory(llDetectedKey(0), llGetScriptName());
   }
}</lsl>

関連項目

イベント

•  changed

関数

•  llGiveInventoryList
•  llSetRemoteScriptAccessPin
•  llMapDestination

特記事項

Search JIRA for related Issues

Signature

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