GetNumStackedItems(object)
所持品にあるアイテムのスタックしている数を調べます。
int GetNumStackedItems( object oItem );
Parameters
oItem
所持品欄にあって、どれだけスタックしているのか調べたいアイテム。
Description
所持品欄にあるoItemという積み重ねられているアイテムの数を返します。
Version
1.22
Example
// NPCの持っている矢の数を調べ、それが尽きたときセリフを喋らせます。
void main()
{
//NPCの持っている矢を調べます。
object arrows = GetObjectByTag("MY_ARROWS");
if(GetNumStackedItems(arrows)==0)
{
ActionSpeakString("My arrow supply is depleted!");
}
}
See Also
| functions: | GetNumItems |
| categories: | Inventory Functions |
author: Sarev0k, editor: Tom Cassiotis, JP team: NamaYake
Send comments on this topic.