#include <define.h>

//#define NAME                    SCRIPT_

#include <command.h>
//#include <ModReact.h>



procedure start;
#include <push.h>
procedure look_at_p_proc;

variable Only_Once := 1;
variable spot1 := 27096;
variable spot2 := 27104;
variable spot3 := 26312;
variable spot4 := 26320;
variable field1;
variable field2;
variable field3;
variable field4;
variable swtch;


procedure start
begin
	if (script_action == map_enter_proc) then begin
	end
	if (script_action == use_proc) then begin
		display_msg(message_str(SCRIPT_GENCHAT, 187));
		if (local_var(0)) then begin
			set_local_var(0, 0);
			set_map_var(7, 0);
		end
		else begin
			set_local_var(0, 1);
			set_map_var(7, 1);
		end
	end
	if (script_action == look_at_proc) then begin
		call look_at_p_proc;
	end
	if (script_action == map_exit_proc) then begin
	end
end

procedure look_at_p_proc
begin
	script_overrides;
end