GetItemCount
From GECK
Contents |
Description
Returns the amount of ObjectID in the container\actor\creature.
Syntax
[ContainerID.]GetItemCount ObjectID
Examples
Player.GetItemCount Caps001
If Player.GetItemCount Caps001 == 0 Player.AddItem Caps001 100 EndIf
Notes
- You can use a reference variable as ObjectID.
- You can use a FormList as the item parameter -- in this case, the function returns the sum of the counts for all items in the list.
- Does not work with Notes. Use GetHasNote to check if the Player has a specific note.