from toee import *

def san_dialog( attachee, triggerer ):
	triggerer.begin_dialog(attachee,1)
	return SKIP_DEFAULT

def san_heartbeat( attachee, triggerer ):
	if (not game.combat_is_active()):
		for obj in game.obj_list_vicinity(attachee.location,OLC_PC):
			if (is_safe_to_talk(attachee,obj)):
				attachee.turn_towards(obj)
				obj.begin_dialog(attachee,1)
				game.new_sid = 0
				return RUN_DEFAULT
	return RUN_DEFAULT

def san_dying( attachee, triggerer ):
	if attachee.name == 14360:
		game.global_vars[30] = game.global_vars[30] + 1
	return RUN_DEFAULT
