Fallout Wiki
Advertisement
Fallout Wiki
Details
Type Source file
SCRIPTS.LST comment New Reno Renesco Box
MSG file N/A
Transcript

/*
        Copyright 1998-2003 Interplay Entertainment Corp. All rights reserved.
*/
/******************************************************************************************
        Item: Renesco Store Box
        Location : New Reno
        Description: This box is for the Bartender's Goods
        Log:
           Please note any changes that have been made to the file in Updated. Then comment
           the code which you have changed/altered/commented out. Please, do not delete any
           code which was written.
           Created: May 13, 1998
           Updated:
******************************************************************************************/
/* Include Files */
#include "..\headers\define.h"
#define NAME SCRIPT_NIRENBOX
#include "..\headers\command.h"
#include "..\headers\NewReno.h"
/* Defines and Macros */
#define LVAR_Restock_Time (0)
/* Standard Script Procedures */
procedure start;
procedure map_enter_p_proc;
procedure map_update_p_proc;
import variable new_reno_renesco_box;
procedure start begin
   new_reno_renesco_box := self_obj;
end
procedure map_enter_p_proc begin
   new_reno_renesco_box := self_obj;
   if (is_loading_game == false) then begin
      if (local_var(LVAR_Restock_Time) < game_time) then begin
         item_caps_adjust(self_obj, random(250,500) - self_caps);
         check_restock_item(PID_JET, 5, 10, 100)
         check_restock_item(PID_ANTIDOTE, 1, 5, 100)
         check_restock_item(PID_STIMPAK, 5, 10, 100)
         check_restock_item(PID_BLUE_CONDOM, 1, 1, 80)
         check_restock_item(PID_BUFFOUT, 1, 2, 100)
         check_restock_item(PID_ROPE, 1, 1, 80)
         check_restock_item(PID_FLARE, 1, 5, 80)
         check_restock_item(PID_RAD_X, 3, 5, 100)
         check_restock_item(PID_RADAWAY, 3, 5, 100)
         check_restock_item(PID_FIRST_AID_BOOK, 1, 1, 25)
         check_restock_item(PID_SUPER_STIMPAK, 1, 1, 25)
         check_restock_item(PID_MENTATS, 1, 1, 25)
         check_restock_item(PID_FLAMETHROWER_FUEL, 1, 1, 25)
         check_restock_item(PID_PSYCHO, 1, 1, 50)
         if (map_first_run) then begin
            check_restock_item(PID_FIRST_AID_KIT, 1, 1, 100)
         end
         set_local_var(LVAR_Restock_Time, (random(2,5) * ONE_GAME_DAY) + game_time);
      end
   end
end
procedure map_update_p_proc begin
   new_reno_renesco_box := self_obj;
end

Advertisement