Difference between revisions of "GetItemCount"
Jump to navigation
Jump to search
imported>Haama (Category links) |
imported>DragoonWraith |
||
Line 33: | Line 33: | ||
[[Category: Condition Functions]] | [[Category: Condition Functions]] | ||
[[Category: Condition Functions (CS 1.0)]] | [[Category: Condition Functions (CS 1.0)]] | ||
[[Category: Inventory Functions]] | |||
[[Category: | [[Category: Inventory Functions (CS 1.0)]] |
Revision as of 20:12, 15 August 2007
Syntax:
[ActorID|ContainerID.]GetItemCount ObjectID
Examples:
if (GetItemCount Gold001 <= 0) disable endif
Ref MyItem Short count set MyItem to ArenaAkaviriLongSword if player.GetItemCount MyItem == 0 player.additem MyItem 1 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.