Item PID names in scripts

Penttipena

First time out of the vault
Sorry, couldn't find anything relating to this by Searching this forum, so I have to ask:

How do I find out the PID name of an item? I have no trouble with the numbers (that is, 00000001.PRO, and so on), but I cannot find any list of the PID names (for example, PID_KNIFE, PID_10MM_PISTOL, etc.) anywhere.

Trying to find the name in a shopkeeper script occurred to me, but this particular item is not currently in any shop I'm aware of so that won't work here. Are the PID names listed in a particular file somewhere, and how would it be possible to dig them out?

The particular item the PID name of which I'm trying to find, BTW, is 00000540.PRO, "Speargun Bolt", from the Ultimate Warfare Mod -- since it isn't an original item, I figured trying to find its PID name on the net would be futile.

Any help would be very much appreciated.
 
Browse through your "FO2 Mapper\scripts\headers" directory. There's much to see there... You need the "ITEMS.H" file.
 
Thanks! I was about to wander over there, but the .h files looked kinda scary...

It seems this particular item, like many new items in the Urban Warfare Mod, don't have any item PID names defined. So I assigned them new ones in itempid.h, added them to several shopkeeper scripts, and am now going to try it out.
 
Back
Top