Getitemcount isnt working on terminal

Post » Sun Nov 07, 2010 12:58 pm

I have a terminal, with an option 'Insert program'. For a show condition I have GetItemCount == 1 and the parameter is the item I created called CryoLabThawProgram. I have it in my inventory, yet the option does not show up ingame on the terminal. It is a misc object. Am I missing something? Shouldnt this just work? I have the correct object parameter, value, comparason and the item in my inventory... whats going on?

This is incredibly important as it has brought my mod development to a full stop. Can anyone help here?
User avatar
Bloomer
 
Posts: 3435
Joined: Sun May 27, 2007 9:23 pm

Post » Sun Nov 07, 2010 7:08 pm

Are you running the condition on the player? Terminals don't have inventories, so http://geck.gamesas.com/index.php/GetItemCount won't work on them - you have to specify that it runs on the player.

On a less important note, it'd be better to use "!= 0" for this condition, just in case the player somehow manages to get more than one instance of the item in their inventory.

Cipscis
User avatar
Kayleigh Williams
 
Posts: 3397
Joined: Wed Aug 23, 2006 10:41 am

Post » Sun Nov 07, 2010 8:44 pm

Ahh, duh. I now have it run on the PlayerRef reference. The only way they could get more than once is if they use the console, but I'll do that anyway. It works perfectly now. Thanks Cipscis!

Gunmaster95
User avatar
Mike Plumley
 
Posts: 3392
Joined: Wed Sep 05, 2007 10:45 pm


Return to Fallout 3