Fallout 2 mod Question about Fallout 2 merchants' "box" scripts

PinkEraser44

First time out of the vault
Are there any hidden mechanics to Fallout 2 shopkeepers that aren't in their "Box" Scripting files?

For example, "Randal's Stock Box in Vault City" script VIRANBOX.SSL says

procedure map_enter_p_proc begin
vault_city_randal_box := self_obj;
if (is_loading_game == false) then begin
if (local_var(LVAR_Restock_Time) < game_time) then begin
check_restock_item(PID_BOTTLE_CAPS, 200, 600, 100)
check_restock_item(PID_BIG_BOOK_OF_SCIENCE, 1, 2, 75)
check_restock_item(PID_DEANS_ELECTRONICS, 1, 1, 75)
check_restock_item(PID_FIRST_AID_BOOK, 1, 1, 75)
check_restock_item(PID_KNIFE, 1, 3, 100)
check_restock_item(PID_10MM_PISTOL, 1, 2, 100)
check_restock_item(PID_SHOTGUN, 1, 2, 25)
check_restock_item(PID_CLUB, 1, 1, 25)
check_restock_item(PID_METAL_ARMOR, 1, 2, 25)
check_restock_item(PID_10MM_JHP, 1, 3, 100)
check_restock_item(PID_SHOTGUN_SHELLS, 1, 3, 100)
check_restock_item(PID_STIMPAK, 3, 8, 100)
check_restock_item(PID_RAD_X, 3, 5, 100)
check_restock_item(PID_FLARE, 1, 2, 50)
check_restock_item(PID_ROPE, 1, 1, 50)
check_restock_item(PID_10MM_SMG, 1, 2, 100)
check_restock_item(PID_RADAWAY, 1, 3, 100)
check_restock_item(PID_FRAG_GRENADE, 2, 2, 100)
check_restock_item(PID_14MM_PISTOL, 1, 1, 100)
check_restock_item(PID_FN_FAL, 1, 1, 25)
check_restock_item(PID_COMBAT_SHOTGUN, 1, 1, 25)
check_restock_item(PID_14MM_AP, 1, 1, 100)
set_local_var(LVAR_Restock_Time, (14 * ONE_GAME_DAY) + game_time);
end
end
end

However it appears Randal sells more than this. Per's guide, the fallout wiki, and an unmodded video walkthrough state that Metal Armor Mk II is sold by Randal at VC. However, the script does not show this.

What am I missing here?

Thanks in advance!
 
If you open VC map in the mapper, you can see there's a set of Metal Armor MKII in his merchant box.
 
I see, thank you. That helps a lot.

I am currently in the process of slowly adding shop inventories of all fallout 2 merchants to their wikipages.

To accomplish this, it sounds like I should:
  • open up the merchant's map in the mapper and look in their merchant box
  • look at their "box" script to see what wares they restock
Would that catch everything?
 
Last edited:
Don't know if that's the case in vanilla, but in the RP that doesn't happen anymore. All their items will be moved into a temporary container. However, due to this, it's possible to steal their items after barter, since the stuff gets just moved back into their inventory but not into the slots it was before (e.g. offhand, etc). I fixed this in ettu. :>
 
Back
Top