# bed_get_out


if $ARGS[0] = 'start' or $ARGS[0] = '':
	menu_off = 1
	InSleep = 0
	sleepVars['slept_in'] = 0
	strip_here = 0
	SleepHorny = 0
	!! to fudge the first hour wake up sleep loss.

	xgt 'bed_get_out', 'mod_sleeptriggers'
end

if $ARGS[0] = 'mod_sleeptriggers':
	!! This location is here to allow mods to hook into the system.
	!! Check for: if $ARGS[0] = 'bed_get_out' and $ARGS[1] = 'mod_sleeptriggers'
	!!
	!! This is NOT for events!!
	
	gs 'LOCA', 'bed_get_out', 'mod_sleeptriggers'
	xgt 'bed_get_out_events', 'start'
end


if $ARGS[0] = 'end':
	menu_off = 0
	if fullmorrout = 1:
		if $loc = 'bedrPar':
			gt 'vanrPar'
		elseif $loc = 'bedr':
			gt 'vanr'
		end
	end

	gt $loc, $loc_arg
end

--- bed_get_out ---------------------------------
