Page 1 of 1

Bartering oddities

Posted: Wed May 15, 2002 4:35 am
by Max-Violence
I have an NPC set up to be able to barter. Said NPC is heavily-armed.

I gave the entity 2000 rounds of 2mmEC ammo, but I only want the PCs able to buy 50 rounds. So, I set the non-lootable amout to 1950.

50 rounds show up in the NPC's inventory window initially. However, if I right-click on the ammo (to put all rounds in the barter window quickly), 1908 rounds appear in the barter window (the NPC has a gauss minigun and a gauss pistol equipped). Note that if I click and drag the ammo into the barter window and enter any number over 50, only 50 rounds are put up for grabs (which is a good thing).

Any ideas? Have I discovered yet another bug or am I doing/not doing something to mess it up?

Posted: Wed May 15, 2002 7:23 am
by OnTheBounce
We had a discussion about this a long time ago on the old board. The solution is to set up an ammo entity to serve as your non-lootable ammo. (Call it ammo2mmEC-nl.ent or something.)

Have all of one type set to non-lootable and you won't have the option to right-click and place the ammo in the barter window. Play around w/the order that you place the ammo in the inventory to make sure that the NPC loads up the proper ammo. (IIRC the lower in the level editor's inventory window the item it is, the higher it will be in the actual NPC's inventory.)

OTB

Posted: Wed May 15, 2002 8:45 am
by Max-Violence
Ah yes, good idea.

And you RC, OTB, The "lower" the item is in the entity's inventory list, the "higher" it is in the actual inventory in-game.

If I have the normal ammo lower than the customized one, the NPC uses the customized version in 'er gun.

I figured it was something simple to fix, and for once, I was right! 8O

Must be the wisdom that came with age...

Nah.

Posted: Wed May 15, 2002 9:17 pm
by OnTheBounce
:lol: @ "wisdom that came w/age"

BTW, the idea to do that was JJ86's. Give credit where credit is due and all that.

OTB