GetItemCount
Revision as of 15:07, 10 June 2006 by imported>JOG (Also accepts References as ObjectID...)
Returns the number of ObjectID in the actor's inventory. It also works for containers.
Syntax:
GetItemCount ObjectID
Examples:
if (GetItemCount Gold001 <= 0) disable endif
Ref MyItem Short count set MyItem to ArenaAkaviriLongSword if player.GetItemCount MyItem > 0 message "Hail, owner of the Akaviri Longsword" endif
Notes:
- You can use a reference variable as ObjectID.