Difference between revisions of "GetItemCount"
m
Added Search Terms
imported>JOG m |
imported>Vswe m (Added Search Terms) |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<!-- Begin Search Terms | |||
Get | |||
Item | |||
Count | |||
End Search Terms --> | |||
'''Syntax:''' | '''Syntax:''' | ||
[''ActorID''|''ContainerID''.]GetItemCount ''ObjectID'' | |||
'''Examples:''' | '''Examples:''' | ||
if (GetItemCount Gold001 <= 0) | if (GetItemCount Gold001 <= 0) | ||
disable | disable | ||
Line 21: | Line 19: | ||
endif | endif | ||
Returns the number of ObjectID in the actor's inventory. It also works for containers. | |||
==Notes== | |||
*You can use a reference variable as ObjectID. | *You can use a reference variable as ObjectID. | ||
Line 34: | Line 33: | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: | [[Category:Functions (CS)]] | ||
[[Category: Functions (CS 1.0)]] | |||
[[Category:Actor Functions]] | |||
[[Category:Actor Functions (CS 1.0)]] | |||
[[Category: Condition Functions]] | [[Category: Condition Functions]] | ||
[[Category: Condition Functions (CS 1.0)]] | |||
[[Category: Inventory Functions]] | |||
[[Category: Inventory Functions (CS 1.0)]] | |||
<!-- Begin Search Terms | |||
Get | |||
Item | |||
Count | |||
End Search Terms --> |