# sex_ev_stats

if $ARGS[0] = 'npc_update':
	gs 'boy_updater', 'fav_body_part'
	gs 'boy_updater', 'dick_update'
	gs 'boy_updater', 'stamina_update'
	gs 'boy_updater', 'humor_update'
	gs 'boy_updater', 'schedule_update'
	gs 'boy_updater', 'trait_updates'
end

if $ARGS[0] = 'starting_stats':
	$lastwornpantytype['sex_ev'] = $pantyworntype
	lastwornpantynumber['sex_ev'] = pantywornnumber
	$lastwornbratype['sex_ev'] = $braworntype
	lastwornbranumber['sex_ev'] = brawornnumber
	$lastwornclothingtype['sex_ev'] = $clothingworntype
	lastwornclothingnumber['sex_ev'] = clothingwornnumber
	sex_ev['starting_makeup'] = pcs_makeup
	sex_ev['cum_vagina'] = cum_loc['vagina']
	sex_ev['cum_labia'] = cum_loc['labia']
	sex_ev['cum_panty_front'] = cum_loc['panty_front']
	sex_ev['cum_anus'] = cum_loc['anus']
	sex_ev['cum_butt'] = cum_loc['butt']
	sex_ev['cum_panty_back'] = cum_loc['panty_back']
	sex_ev['cum_clothes_groin'] = cum_loc['clothes_groin']
	sex_ev['cum_clothes'] = cum_loc['clothes']
	sex_ev['cum_back'] = cum_loc['back']
	sex_ev['cum_legs'] = cum_loc['legs']
	sex_ev['cum_arms'] = cum_loc['arms']
	sex_ev['cum_face'] = cum_loc['face']
	sex_ev['cum_mouth'] = cum_loc['mouth']
	sex_ev['cum_hands'] = cum_loc['hands']
	sex_ev['cum_stomach'] = cum_loc['stomach']
	sex_ev['cum_tits'] = cum_loc['tits']
	sex_ev['cum_hair'] = cum_loc['hair']
	sex_ev['starting_sweat'] = pcs_sweat
	sex_ev['orgasm'] = orgasm
	sex_ev['orgasm_limit'] = orgasm + 6
    sex_ev['pc_condom_count'] = mc_inventory['normal_condoms']
	sex_ev['start_time'] = totminut
	sex_ev['start_hour'] = hour
	if $start_type[1] ! 'nomagic': sex_ev['magik'] = pcs_magik
	if npc_fuckbuddy[$boy] ! 1: npc_fuckbuddy[$boy] = 1
	if tabletkiday = daystart: sex_ev['bc_take'] = 1
	if $npc_lovername[$boy] = '':
		$npc_lovername[$boy] = 'babe'
		$npc_lovername2[$boy] = 'baby'
	end
	if npc_creampie_permission[$boy] = 1: sex_ev['creampie_allowance'] = 1
	if birth_control['think_safe'] = 1:
		if tabletkishot > 0:
			$sex_ev['bc_type'] = 'shot'
		else
			$sex_ev['bc_type'] = ' pill'
		end
	end
end

if $ARGS[0] = 'save_stats':
	!! number of times you have initiated or responded to a booty call
	npc_bootycalls[$boy] += 1
	
	!! number of times you have had jerked off an npc
	if sex_ev['hj_count'] > 0: npc_hj_count[$boy] += 1
	
	!! number of times you have had blown an npc
	if sex_ev['bj_count'] > 0: npc_bj_count[$boy] += 1
	
	!! number of times you have had sex with an npc
	if sex_ev['fuck'] > 0 or sex_ev['fuck_count'] > 0: npc_fuck_times[$boy] += 1
	
	!! number of times you have fucked bareback
	npc_bareback_times[$boy] += sex_ev['no_condom']
	
	!! number of times you have fucked with condoms
	npc_condom_times[$boy] += sex_ev['condom']
	
	!! number of times you have been eaten out by an npc
	npc_kuni_times[$boy] += sex_ev['kuni']
	
	!! number of times you have made your fuckbuddy cum
	npc_cum_count[$boy] += sex_ev['cum_count']
	
	!! number of times your fuckbuddy has brought you to orgasm
	npc_orgasm_count[$boy] += sex_ev['orgasm_count']
	
	!! number of times you have faked an orgasm
	npc_fake_orgasm_count[$boy] += sex_ev['fake_orgasm_count']
	
	!! number of times you have been creampied by your fuckbudy
	npc_creampie_count[$boy] += sex_ev['creampie_count']
	
	!! number of times you have been accidentally creampied by your fuckbudy
	npc_accidental_creampie_count[$boy] += sex_ev['accidental_creampie_count']
	
	!! number of times you have cum together with your fuckbuddy
	npc_cum_together_count[$boy] += sex_ev['creampie_orgasm']
	
	!! number of simultaneous orgasms you have experienced
	stat['simultaneous_orgasm_count'] += sex_ev['simultaneous_orgasm_count']
	
	!! number of times your fuckbuddy has cum on your face
	npc_facial_count[$boy] += sex_ev['facial_count']
	
	!! number of times your fuckbuddy has cum on your tits
	npc_cum_tits_count[$boy] += sex_ev['cum_tits']
	
	!! number of times your fuckbuddy has pulled out
	npc_pullout_count[$boy] += sex_ev['pullout_count']
	
	!! number of times your fuckbuddy has cum in your mouth
	npc_mouth_cum_count[$boy] += sex_ev['mouth_cum_count']
	
	!! number of times you have jerked him to completion
	npc_cum_hand_count[$boy] += sex_ev['cum_hand']
	
	!! number of times you have swallowed for your fuckbuddy
	npc_swallow_count[$boy] += sex_ev['swallow_count']
	
	!! number of times you have spit out his cum
	npc_spit_count[$boy] += sex_ev['spit_count']
	
	!! number of times you have fucked in the shower
	npc_shower_sex_count[$boy] += sex_ev['shower_sex']
	
	!! number of times your fuckbuddy has cum in your mouth
	npc_mouth_cum_count[$boy] += sex_ev['mouth_cum_count']
	
	!! number of times you have denied letting your fuckbuddy take your virginity
	npc_virgin_deny[$boy] += sex_ev['virgin_deny']
	
	!! if your lover takes your virginity without consent
	npc_virgin_rapist[$boy] += sex_ev['virgin_rape']
	
	if sex_ev['sleep_fuck'] > 0: npc_sleep_fuck[$boy] += 1
	
	if hour >= 8 and hour < 14 and week < 6 and mid($start_type,1,2) = 'sg' and SchoolAtestat = 0 and kanikuli = 0 and schoolProgulDay ! daystart:
		!!absence from school
		npc_school_absences[$boy] = schoolprogul
	end
	
	!! if your lover says they have pullout game and do not cum inside you, it will be remembered that the last time you had sex
	if sex_ev['pullout_game'] = 1 and sex_ev['no_condom'] = 1 and sex_ev['creampie_count'] = 0: 
		npc_no_creampie_mistakes[$boy] += 1
		npc_no_creampie_mistakes_last_time[$boy] = 1
		npc_pullout_failure_last_time[$boy] = 0
	elseif sex_ev['pullout_game'] = 1 and sex_ev['no_condom'] = 1 and sex_ev['creampie_count'] > 0 and sex_ev['broken_condom'] = 0:
		npc_pullout_failure[$boy] += 1
		npc_pullout_failure_last_time[$boy] = 1
		npc_no_creampie_mistakes_last_time[$boy] = 0
	end
	
	if sex_ev['prostitution_freebie'] = 1: stat['prostitution_freebies'] += 1
	
	if sex_ev['phone_film'] = 2 or (sex_ev['phone_film'] = 1 and npc_abusive[$boy] > 0):
		npc_sex_video_count[$boy] += 1
		!!npc_sex_video<<npc_sex_video_count[$boy]>> = 1
	end
end


if $ARGS[0] = 'birth_control_know':
	npc_know_bc_not_effective[$boy] = 0
	npc_know_not_bc[$boy] = 0
	npc_know_bc[$boy] = 1
	sex_ev['bc_tell'] = 1
	if npc_pay_for_ma_pill[$boy] = 1: npc_pay_for_ma_pill[$boy] = -1
end


if $ARGS[0] = 'no_birth_control_know':
	npc_know_not_bc[$boy] = 1
	npc_know_bc[$boy] = 0
	npc_know_bc_not_effective[$boy] = 0
	sex_ev['bc_tell'] = 1
end

if $ARGS[0] = 'bareback_risk_active':
	npc_bareback_risk[$boy] = 1
end

if $ARGS[0] = 'bareback_risk_deactive':
	npc_bareback_risk[$boy] = 0
end

if $ARGS[0] = 'prostitution_pay_code':
	if $npc_rel_type[$boy] = 'sugar_daddy' and sex_ev['sugar_daddy_paid'] = 0:
		sex_ev['sugar_daddy_paid'] = 1
		sex_ev['prostitution_paid'] = 1
		money += npc_sugar_daddy_price[$boy] + sex_ev['prostitution_bonus']
	elseif $npc_rel_type[$boy] = 'p_customer' and sex_ev['prostitution_paid'] = 0:
		sex_ev['prostitution_paid'] = 1
		money += npc_prostitution_price[$boy] + sex_ev['prostitution_bonus']
	end
end

if $ARGS[0] = 'single_know':
	!! the npc knows player is single
	npc_know_have_boyfriend[$boy] = 0
	npc_know_have_girlfriend[$boy] = 0
end

if $ARGS[0] = 'dating_boy_know':
	!! the npc knows player is single
	npc_know_have_boyfriend[$boy] = 1
end

if $ARGS[0] = 'dating_girl_know':
	!! the npc knows player is single
	npc_know_have_girlfriend[$boy] = 1
end

if $ARGS[0] = 'npc_is_single':
	know_npc_girlfriend[$boy] = 0
	know_npc_single[$boy] = 1
end

if $ARGS[0] = 'npc_is_dating':
	know_npc_girlfriend[$boy] = 1
	know_npc_single[$boy] = 0
end

if $ARGS[0] = 'npc_is_married':
	know_npc_wife[$boy] = 1
	know_npc_single[$boy] = 0
end

if $ARGS[0] = 'sleep_check':
	sex_ev['sleep_cum_vagina'] = cum_loc['vagina']
	sex_ev['sleep_cum_butt'] = cum_loc['butt']
	sex_ev['sleep_cum_face'] = cum_loc['face']
	sex_ev['sleep_cum_stomach'] = cum_loc['stomach']
	sex_ev['sleep_cum_tits'] = cum_loc['tits']
	sex_ev['sleep_cum_hair'] = cum_loc['hair']
end

if $ARGS[0] = 'sex_all_night':

end
--- sex_ev_stats ---------------------------------