How to know if player has a specific item in his inventory?

Post » Sun Nov 18, 2012 6:43 am

There are two instances where I'll need to know whether the player as a certain item. In one, I'll need to know if he has at least one lockpick. In the other, I need to know whether he has at least one unit of juniper berries.

What would be the best way to do this?
User avatar
Amy Melissa
 
Posts: 3390
Joined: Fri Jun 23, 2006 2:35 pm

Post » Sun Nov 18, 2012 2:48 am

GetItemCount exists both as a Papyrus function and in the Condition system.
User avatar
Emma Copeland
 
Posts: 3383
Joined: Sat Jul 01, 2006 12:37 am

Post » Sat Nov 17, 2012 5:58 pm

Manny thanks! I was picturing I'd have to cycle through all the items with some condition. This couldn't be easier :)
User avatar
Elina
 
Posts: 3411
Joined: Wed Jun 21, 2006 10:09 pm


Return to V - Skyrim