# sex

if $ARGS[0] = 'start':
	sexstart = 1
	sexvar = rand(3,6)
	guy += 1
	dynamic $stamina_npc
	'<center><img src="images/img/sex/kiss.jpg"></center>'
	'You kiss for a while. It feels nice, but you want more!'
	gs 'stat'
	picrand = rand(0, 1)
	xgt 'sex', 'var'
end

if $ARGS[0] = 'var':
	cla
	gs 'stat'
	textrand = rand(1, 4)
	dynamic $BanSexType
	if SexTypeCheck = 0 and picrand > 1:
		SexTypeCheck = 1
		BlowBan = arrpos('BlowArray',picrand)
		CooneyBan = arrpos('CooneyArray',picrand)
		MissionBan = arrpos('MissionArray',picrand)
		CowgirlBan = arrpos('CowgirlArray',picrand)
		DoggyBan = arrpos('DoggyArray',picrand)
		SidewaysBan = arrpos('SidewaysArray',picrand)
		AnalBan = arrpos('AnalArray',picrand)
	end
	if BlowBan <= 0:act 'Give him a blowjob':gt 'sex', 'minet'
	if CooneyBan <= 0:act 'Cooney':gt 'sex', 'kuni'
	if MissionBan <= 0:act 'Missionary':gt 'sex', 'vag'
	if CowgirlBan <= 0:act 'Cowgirl':gt 'sex', 'nae'
	if DoggyBan <= 0:act 'Doggy style':gt 'sex', 'rak'
	if SidewaysBan <= 0:act 'Sideways':gt 'sex', 'bok'
	if AnalBan <= 0:act 'In the ass':gt 'sex', 'anal'
end

if $ARGS[0] = 'minet':
	cls
	sexvar -= 1
	dynamic $stamina_npc
	pos = 1

	if sxbj = 0:
		if svidboysex = 1:bja += 1
		sxbj = 1
	end

	'<center><img src="images/img/sex/minet<<picrand>>.jpg"></center>'

	if textrand = 1:'You take his member in your hand and pull his foreskin back, exposing the shiny head underneath. Giving him a sweet smile, you close your lips around it and run your tongue over the tip. You then continue to suck his cock vigorously, teasing him with your tongue and fondling his balls with your fingers. He moans blissfully while you service him with your mouth, not taking his eyes from you.'
	if textrand = 2:'You kneel down and place your hand in on his nearly fully erect trunk. You smile at him shyly and mutter: "That''s a nice cock you have there..." before closing your lips around the tip and sucking him off.'
	if textrand = 3:'You dart your tongue all over his shaft, licking him eagerly all the way from the tip of his cock, to and including his testicles. Then your tender lips close around the well-engorged head, and you slowly take more and more of his length down your throat while you stroke the rest of his shaft that doesn''t fit in your mouth with your hand.'
	if textrand = 4:'You wrap your delicate fingers around his hard cock and guide it to your mouth, closing your lips around the tip. You try to take as much of his length down your throat as you can, gently caressing your own clit while you service him with your mouth.'

	gs 'arousal', 'bj', 10
	gs 'stat'

	if sexvar < 0:sexvar = 0
	if sexvar = 1:'<br>The man groans that he will cum soon.'
	if sexvar > 0:xgt 'sex', 'var'
	if sexvar = 0:gs 'sex', 'end'
end

if $ARGS[0] = 'kuni':
	cls
	sexvar -= 1
	dynamic $stamina_npc
	pos = 2

	if sxkuni = 0:
		sxkuni = 1
	end

	'<center><img src="images/img/sex/kuni<<picrand>>.jpg"></center>'

	if textrand = 1:'He places gentle kisses and licks all across your thighs, slowly working his way to your sweet slit. When he reaches it, he eagerly thrusts his tongue inside you as far it will go, lapping up your juices enthusiastically.'
	if textrand = 2:'He immediately thrusts his tongue deep inside your pussy, and moves it around as much as he can. He''s completely ignoring your clitoris though, and the devious glint in his eyes makes you believe he''s doing that on purpose. You enthusiastically rub your groin against his face, in an attempt to get yourself off.'
	if textrand = 3:'With his nose against your clitoris and his tongue plunged deep inside you, he licks you enthusiastically. Then he moves away from you and guides your ass to his mouth, eagerly licking your sphincter and trying to squeeze his tongue in. It feels heavenly, and you moan loudly while you thrust your hips against his face, encouraging him to go on.'
	if textrand = 4:'His tongue gently begins to lick your pussy lips. "Oh my!" you think to yourself, enjoying his touch more and more. When he pays more attention to your clitoris you have to pull away from him for a moment... wow, that''s intense!'

	gs 'arousal', 'cuni', 10
	gs 'stat'

	if sexvar < 0:sexvar = 0
	if sexvar = 1:'<br>The man groans that he will cum soon.'
	if sexvar > 0:xgt 'sex', 'var'
	if sexvar = 0:gs 'sex', 'end'
end

if $ARGS[0] = 'vag':
	cls
	if sexstart = 0:sexstart = 1 & sexvar = rand(3,7)
	sexvar -= 1
	dynamic $stamina_npc
	pos = 3

	if sxsex = 0:
		if svidboysex = 1:sexa += 1

		sxsex = 1
	end

	'<center><img src="images/img/sex/vag<<picrand>>.jpg"></center>'
	
	if textrand = 1:'He slowly penetrates you, and keeps thrusting until most of his length is buried inside you. You eagerly kiss him when you see the look of ecstacy on his face, and wrap your arms around him while he thrusts his hips against yours.'
	if textrand = 2:'His hard cock slides inside your wet cunt easily, and you feel the engorged head of his cock slowly part your insides when it goes deeper and deeper. You can''t help but rub your clit, while you encourage him to fuck you harder.'
	if textrand = 3:'He doesn''t stop until his cock bottoms out in you, and then proceeds to fuck you with the entire length of his impressive shaft. His thrusts become more and more intense, and soon the sound of his skin slapping against yours fills the room.'
	if textrand = 4:'Your wet pussy eagerly takes his cock in, and you hear some embarrassing sopping sounds when he proceeds to fuck your pussy enthusiastically. You must''ve wanted him pretty badly, if you got this wet...'

	gs 'arousal', 'vaginal', 10
	gs 'stat'

	if sexvar < 0:sexvar = 0
	if sexvar = 1:'<br>The man groans that he will cum soon.'
	if sexvar > 0:cumprecheck = 1 & gs 'cum_manage' & xgt 'sex', 'var'
	if sexvar = 0:gs 'sex', 'end'
end

if $ARGS[0] = 'nae':
	cls
	if sexstart = 0:sexstart = 1 & sexvar = rand(3,7)
	sexvar -= 1
	dynamic $stamina_npc
	pos = 4

	if sxsex = 0:
		if svidboysex = 1:sexa += 1

		sxsex = 1
	end

	'<center><img src="images/img/sex/nae<<picrand>>.jpg"></center>'

	if textrand = 1:'He slowly penetrates you, and keeps thrusting until most of his length is buried inside you. You eagerly kiss him when you see the look of ecstacy on his face, and wrap your arms around him while he thrusts his hips against yours.'
	if textrand = 2:'His hard cock slides inside your wet cunt easily, and you feel the engorged head of his cock slowly part your insides when it goes deeper and deeper. You can''t help but rub your clit, while you encourage him to fuck you harder.'
	if textrand = 3:'He doesn''t stop until his cock bottoms out in you, and then proceeds to fuck you with the entire length of his impressive shaft. His thrusts become more and more intense, and soon the sound of his skin slapping against yours fills the room.'
	if textrand = 4:'Your wet pussy eagerly takes his cock in, and you hear some embarrassing sopping sounds when he proceeds to fuck your pussy enthusiastically. You must''ve wanted him pretty badly, if you got this wet...'

	gs 'arousal', 'vaginal', 10
	gs 'stat'

	if sexvar < 0:sexvar = 0
	if sexvar = 1:'<br>The man groans that he will cum soon.'
	if sexvar > 0:cumprecheck = 1 & gs 'cum_manage' & xgt 'sex', 'var'
	if sexvar = 0:gs 'sex', 'end'
end

if $ARGS[0] = 'rak':
	cls
	if sexstart = 0:sexstart = 1 & sexvar = rand(3,7)
	sexvar -= 1
	dynamic $stamina_npc
	pos = 5

	if sxsex = 0:
		if svidboysex = 1:sexa += 1
		sxsex = 1
	end

	'<center><img src="images/img/sex/rak<<picrand>>.jpg"></center>'

	if textrand = 1:'He slowly penetrates you, and keeps thrusting until most of his length is buried inside you. You eagerly kiss him when you see the look of ecstacy on his face, and wrap your arms around him while he thrusts his hips against yours.'
	if textrand = 2:'His hard cock slides inside your wet cunt easily, and you feel the engorged head of his cock slowly part your insides when it goes deeper and deeper. You can''t help but rub your clit, while you encourage him to fuck you harder.'
	if textrand = 3:'He doesn''t stop until his cock bottoms out in you, and then proceeds to fuck you with the entire length of his impressive shaft. His thrusts become more and more intense, and soon the sound of his skin slapping against yours fills the room.'
	if textrand = 4:'Your wet pussy eagerly takes his cock in, and you hear some embarrassing sopping sounds when he proceeds to fuck your pussy enthusiastically. You must''ve wanted him pretty badly, if you got this wet...'

	gs 'arousal', 'vaginal', 10
	gs 'stat'

	if sexvar < 0:sexvar = 0
	if sexvar = 1:'<br>The man groans that he will cum soon.'
	if sexvar > 0:cumprecheck = 1 & gs 'cum_manage' & xgt 'sex', 'var'
	if sexvar = 0:gs 'sex', 'end'
end

if $ARGS[0] = 'bok':
	cls
	if sexstart = 0:sexstart = 1 & sexvar = rand(3,7)
	sexvar -= 1
	dynamic $stamina_npc
	pos = 6

	if sxsex = 0:
		if svidboysex = 1:sexa += 1

		sxsex = 1
	end

	'<center><img src="images/img/sex/bok<<picrand>>.jpg"></center>'
	
	if textrand = 1:'He slowly penetrates you, and keeps thrusting until most of his length is buried inside you. You eagerly kiss him when you see the look of ecstacy on his face, and wrap your arms around him while he thrusts his hips against yours.'
	if textrand = 2:'His hard cock slides inside your wet cunt easily, and you feel the engorged head of his cock slowly part your insides when it goes deeper and deeper. You can''t help but rub your clit, while you encourage him to fuck you harder.'
	if textrand = 3:'He doesn''t stop until his cock bottoms out in you, and then proceeds to fuck you with the entire length of his impressive shaft. His thrusts become more and more intense, and soon the sound of his skin slapping against yours fills the room.'
	if textrand = 4:'Your wet pussy eagerly takes his cock in, and you hear some embarrassing sopping sounds when he proceeds to fuck your pussy enthusiastically. You must''ve wanted him pretty badly, if you got this wet...'

	gs 'arousal', 'vaginal', 10
	gs 'stat'

	if sexvar < 0:sexvar = 0
	if sexvar = 1:'<br>The man groans that he will cum soon.'
	if sexvar > 0:cumprecheck = 1 & gs 'cum_manage' & xgt 'sex', 'var'
	if sexvar = 0:gs 'sex', 'end'
end


if $ARGS[0] = 'anal':
	cls
	if sexstart = 0:sexstart = 1 & sexvar = rand(3,7)
	sexvar -= 1
	dynamic $stamina_npc
	pos = 7

	if sxanal = 0:
		if svidboysex = 1:anala += 1

		sxanal = 1
	end

	'<center><img src="images/img/sex/anal<<picrand>>.jpg"></center>'

	if textrand = 1:'You spread your buttocks invitingly, inviting the man to fuck your ass. He does not hesitate and guides his cock to your puckered sphincter, slowly penetrating you further and further with each thrust. He''s a bit rough about it, making you squeal loudly with every thrust.'
	if textrand = 2:'His cock slowly but surely finds its way into your ass. After a while he bottoms out in you, and you squeeze your ass around the base of his cock testily. The tightness of your sphincter around him makes his cock pulse even harder, and he groans: "Oh yea! Keep doing that! That feels great... don''t stop!"'
	if textrand = 3:'You feel something thick and hard press against your sphincter, and enter it. You cry out in pain but he pays no attention to you, and begins to fuck you enthusiastically. Slowly your whimpers of pain become moans of pleasure, and despite the pain you greatly enjoy him fucking your ass.'
	if textrand = 4:'You spread your buttocks invitingly, inviting the man to fuck your ass. He does not hesitate and guides his cock to your puckered sphincter, slowly penetrating you further and further with each thrust. He''s a bit rough about it, making you squeal loudly with every thrust.'

	gs 'arousal', 'anal', 10
	gs 'stat'

	if sexvar < 0:sexvar = 0
	if sexvar = 1:'<br>The man groans that he will cum soon.'
	if sexvar > 0:xgt 'sex', 'var'
	if sexvar = 0:gs 'sex', 'end'
end

if $ARGS[0] = 'end':
	cla
	sexstart = 0
	svidboysex = 0
	sexvar = 0
	sxkuni = 0
	sxbj = 0
	sxsex = 0
	sxanal = 0
	SexTypeCheck = 0
	BlowBan = 0
	CooneyBan = 0
	MissionBan = 0
	CowgirlBan = 0
	DoggyBan = 0
	SidewaysBan = 0
	AnalBan = 0
	dick = 0

	if pos < 3:
		spafinloc = 12
		'He groans loudly, and you feel his hard cock erupting in your mouth. You swallow it obediently, figuring that is what he wants you to do.'
	elseif pos < 7:
		spafinloc = 0
		cuminside = 1
		'He groans loudly, spraying his seed deep inside your pussy.'
	else
		spafinloc = 3
		'He groans loudly, spraying his seed deep inside your ass.'
	end
	gs 'cum_manage'
	if horny >= 80:
		horny = 0
		orgasm += 1
		'You feel so horny after bringing him to orgasm, you''re very close to having an orgasm also! You close your eyes and surrender yourself to the moment, quickly rubbing yourself to completion.'
	end
	pos = 0
	if cuminside = 1: gs 'cuminsidereact'

	gs 'arousal', 'end'

	gs 'stat'
	act 'Leave':
		if picrand >= 54 and picrand <= 73:gt 'office', 'work'
		if picrand >= 74 and picrand <= 76:gt 'vann', 'start'
		if picrand >= 77 and picrand <= 80:gt 'tanhouse'
		if picrand >= 81 and picrand <= 82:gt 'down'
		if picrand >= 83 and picrand <= 84:dynamic $brodila
		if picrand >= 85 and picrand <= 86:gt'down'
		if picrand = 87 or picrand = 90:dynamic $brodilk
		if picrand = 88:dynamic $brodils
		if picrand = 89:gt 'bed', 'start'

		if svidboykino = 1:
			svidboykino = 0
			gt 'torgcentr'
		end

		if svidboypark = 1:
			svidboypark = 0
			gt 'park', 'start'
		end

		if svidboypark1 = 1:
			svidboypark1 = 0
			gt 'svidboy', 'parksvid21'
		end

		if svidboypark2 = 1:
			svidboypark2 = 0
			gt 'svidboy', 'parksvid22'
		end

		if svidboykafe = 1:
			svidboykafe = 0
			gt 'down'
		end

		gt $sexloc, 'start'
	end
end

--- sex ---------------------------------

