Oblivion:GetItemCount

Aus Skript-Wiki
Wechseln zu: Navigation, Suche

Syntax:

[ActorID|ContainerID.]GetItemCount ObjectID


Beispiel:

<tesscript> if (GetItemCount Gold001 <= 0)

 disable			

endif </tesscript>

<tesscript> Ref MyItem

Short count

set MyItem to ArenaAkaviriLongSword

if player.GetItemCount MyItem == 0

  player.additem MyItem 1

endif </tesscript>


Gibt die Anzahl der angegebenen ObjektID, die sich im Inventar des Actors befinden, zurück. Funktioniert auch bei Behältern/Containern.


Hinweis:

  • Du kannst eine Referenz-Variable als ObjectID benutzen.


Siehe auch: