#include "headers\define.h"
#include "headers\MYHOUSE.h"
#include "headers\updatmap.h"
#define NAME SCRIPT_MYHOUSE
#include "headers\command.h"
procedure start;
procedure map_enter_p_proc;
procedure map_update_p_proc;
procedure start begin
end
procedure map_enter_p_proc begin
if ((map_var(MVAR_Made_Car) == 0) and (global_var(GVAR_PLAYER_GOT_CAR) != 0) and (car_current_town == AREA_MYHOUSE)) then begin
set_map_var(MVAR_Made_Car,1);
Create_Car(CAR_MYHOUSE_MAP_HEX,CAR_MYHOUSE_MAP_ELEV)
end
else if ((map_var(MVAR_Made_Car) == 1) and (car_current_town != AREA_MYHOUSE)) then begin
set_map_var(MVAR_Made_Car,0);
Dest_Car(CAR_MYHOUSE_MAP_HEX,CAR_MYHOUSE_MAP_ELEV)
end
Lighting;
set_global_var(GVAR_LOAD_MAP_INDEX,0);
end
procedure map_update_p_proc begin
Lighting;
end