Difference between revisions of "LlGetInventoryNumber/ja"
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) (New page: {{multi-lang}}{{LSL_Function/ja |func_id=146|func_sleep=0.0|func_energy=10.0 |func=llGetInventoryNumber|return_type=integer |p1_type=integer|p1_name=type|p1_desc=INVENTORY_*フラグ |func...) |
Asuka Neely (talk | contribs) m |
||
Line 1: | Line 1: | ||
{{LSL_Function/ja | |||
|func_id=146|func_sleep=0.0|func_energy=10.0 | |func_id=146|func_sleep=0.0|func_energy=10.0 | ||
|func=llGetInventoryNumber|return_type=integer | |func=llGetInventoryNumber|return_type=integer | ||
Line 73: | Line 73: | ||
|permission | |permission | ||
|negative_index | |negative_index | ||
|sort=GetInventoryNumber | |sort=GetInventoryNumber | ||
|cat1=Inventory | |cat1=Inventory | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 22:23, 18 April 2008
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: integer llGetInventoryNumber( integer type );
|
|
サンプル
<lsl>// Item Counter // // By Apollia Pirandello // // 9/19/2007 // // Public domain. Free to use and/or modify for any purpose, // including commercial purposes. // // Once you drop this script in any prim, it will immediately // tell you in an OwnerSay how many items are in that prim, // minus 1, so the script itself isn't counted. // // It will also do that whenever the prim is touched. //**********SCRIPT BEGINS BELOW**********
//****VARIABLE
integer items_contained;
//****END OF VARIABLE SECTION //****FUNCTIONS****
CountItems() {
items_contained = llGetInventoryNumber( INVENTORY_ALL ); --items_contained;
}
SayCount() {
llOwnerSay( "This prim contains " + (string)items_contained + " items." );
}
//****END OF FUNCTIONS**** //****DEFAULT STATE****
default {
state_entry() { CountItems(); SayCount(); }
touch_start(integer total_number) { CountItems(); SayCount(); }
}</lsl>
<lsl>objects = llGetInventoryNumber(INVENTORY_OBJECT);</lsl>関連項目
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。