# katja_nightclub
!2023/03/25

!! katjaQW['disco_loc'] = 1: Katja is dancing alone on the dance floor
!! katjaQW['disco_loc'] = 2: Katja is at the bar alone
!! katjaQW['disco_loc'] = 3: Katja is dancing with a guy
!! katjaQW['disco_loc'] = 4: Katja is dancing with a black guy
!! katjaQW['disco_loc'] = 5: Katja is dancing with a girl
!! katjaQW['disco_loc'] = 6: Katja is dancing with two guys
!! katjaQW['disco_loc'] = 7: Katja is in a VIP booth with a guy
!! katjaQW['disco_loc'] = 8: Katja is in the restroom

if $ARGS[0] = 'activity':
	gs 'katja_meynold_schedule' 

	if locat['katja'] = 53 and (katjaQW['know_katja_uni'] = 1 or ($start_type['loc'] = 'sg' or $start_type['magic'] ! 'tg')):
		!! This sets what Katja is doing if she is not with the player character
		if katjaQW['disco_check_time'] + 600 < totminut:
			katjaQW['disco_loc'] = 0
		end
	
		if katjaQW['disco_loc'] >= 3 and katjaQW['disco_loc'] <= 6: 
			if katjaQW['disco_check_time'] + 30 < totminut:
				katjaQW['disco_check_time'] = totminut
				if (rand(1,15) <= (min(func('katja_procedural', 'willing_to_be_naughty'), 100) - 50)/10 and katjaQW['relationship_talk'] = 1 and katjaQW['faithful'] = 0) or (katjaQW['liberated'] and rand(0,3) = 0):
					if katjaQW['disco_loc'] = 3 and rand(0,4) < 4:
						!! Katja goes to a private room with the guy 
						katjaQW['nightclub_private_room_boy'] = 1
						katjaQW['disco_loc'] = 7
					else
						!! Katja leaves the club with whom she is dancing
						katjaQw['alone_with_other_day'] = daystart
						if katjaQW['disco_loc'] = 5:
							gs 'katja_procedural', 'sex_set', 0, 1
						elseif katjaQW['disco_loc'] = 6:
							gs 'katja_procedural', 'sex_set', 2
						else
							gs 'katja_procedural', 'sex_set', 1
						end
					
						if hour > 10:
							locat['katja_rand2'] = daystart
						else
							locat['katja_rand2'] = daystart -1
						end
						locat['katja_save2'] = 54
						locat['katja'] = locat['katja_save2']
					end
				else
					if rand(0,4) = 0:
						katjaQW['disco_loc'] = 2
						katjaQW['drinks'] += rand(1,2)
					elseif rand(0,4) = 0:
						katjaQW['disco_loc'] = 8
					else
						katjaQW['disco_loc'] = 1
					end
				end
			end
		elseif katjaQW['disco_loc'] = 2:
			if katjaQW['disco_check_time'] + 15 < totminut:
				katjaQW['disco_check_time'] = totminut
					katjaQW['drinks'] += 1
				if rand(0,8) = 0:
					katjaQW['disco_loc'] = 8
				else
					katjaQW['disco_loc'] = 1
				end
			end
		elseif katjaQW['disco_loc'] = 8:
			if katjaQW['disco_check_time'] + 15 < totminut:
				katjaQW['disco_check_time'] = totminut
				if rand(0,5) = 0:
					katjaQW['disco_loc'] = 2
				else
					katjaQW['disco_loc'] = 1
				end
			end
		elseif katjaQW['disco_loc'] = 7:
			if katjaQW['disco_check_time'] + 60 < totminut:
				katjaQW['disco_check_time'] = totminut
				if rand(0,4) = 0:
					katjaQW['disco_loc'] = 8
				elseif rand(0,5) = 0:
					katjaQW['disco_loc'] = 2
					katjaQW['drinks'] += 1
				else
					katjaQW['disco_loc'] = 1
				end
			end
		else
			if katjaQW['disco_check_time'] + 15 < totminut:
				katjaQW['disco_check_time'] = totminut
				if rand(1,4) <= 3:
					katjaQW['disco_loc'] = 1
				elseif rand(0,5) = 0:
					katjaQW['disco_loc'] = 2
					katjaQW['drinks'] += 1
				elseif rand(0,8) = 0:
					katjaQW['disco_loc'] = 8
				elseif rand(1,12) <= (min(func('katja_procedural', 'willing_to_be_naughty'), 100) - 50)/10 or (katjaQW['relationship_talk'] = 1 and katjaQW['faithful'] = 0 and rand(1,8) <= (min(func('katja_procedural', 'willing_to_be_naughty'), 100) - 50)/10) or (katjaQW['liberated'] = 1 and rand(0,3) = 0): 
					katjaQW['disco_loc'] = 3
				elseif rand(1,12) <= (min(func('katja_procedural', 'willing_to_be_naughty'), 100) - 50)/10 or (katjaQW['relationship_talk'] = 1 and katjaQW['faithful'] = 0 and rand(1,8) <= (min(func('katja_procedural', 'willing_to_be_naughty'), 100) - 50)/10) or (katjaQW['liberated'] = 1 and rand(0,3) = 0): 
					katjaQW['disco_loc'] = rand(4,6)
				end
			end
		end

		if $ARGS[1] = 'dance_floor':
			if katjaQW['disco_loc'] = 1:
				'You see <a href="exec: gt ''katja_nightclub'',''dance_approach''">Katja</a> on the dance floor, dancing alone.'
			elseif katjaQW['disco_loc'] = 3:
				'You see <a href="exec: gt ''katja_nightclub'',''dance_guy_approach''">Katja</a> on the dance floor, dancing with a guy.'
			elseif katjaQW['disco_loc'] = 4:
				!!'You see <a href="exec: gt ''katja_nightclub'',''dance_black_guy_approach''">Katja</a> on the dance floor, dancing with a black guy.'
			elseif katjaQW['disco_loc'] = 5:
				!!'You see <a href="exec: gt ''katja_nightclub'',''dance_girl_approach''">Katja</a> on the dance floor, dancing with a girl.'
			elseif katjaQW['disco_loc'] = 6:
				!!'You see <a href="exec: gt ''katja_nightclub'',''dance_two_guys''">Katja</a> on the dance floor, dancing with two guys.'
			end
		elseif $ARGS[1] = 'bar':
			if katjaQW['disco_loc'] = 2:
				'You see <a href="exec: gt ''katja_nightclub'',''bar_approach''">Katja</a> at the bar, talking with the bartender.'
			end
		end
	end
end

if $ARGS[0] = 'dance_approach':
	menu_off = 1
	minut += 5
	gs 'stat'
	if katjaQW['disco_arrival'] + 600 < totminut and katjaQW['disco_met'] + 600 < totminut: 
		katjaQW['disco_met'] = totminut
		gs 'npc_relationship', 'modify', 'A14', 'like'
		if katjaQW['QWstage'] > 0 or npc_rel['A14'] >= 70:
			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_talking_on__dance_floor.jpg"></center>'
			'You approach her from behind. "Hey Katja!" you shout so she can hear you over the music.'
			'She turns around and '+iif(npc_sex['A14'] > 0 and func('katja_procedural', 'willing_to_be_naughty') > 80 and katjaQW['sex_clossedness'] < 2, 'gives you a quick kiss', 'a huge smile appears on her face')+' when she sees that it''s you. "You''re here, too? We''re going to have so much fun! Let''s dance!"'
			act 'Dance with Katja': gt 'katja_nightclub', 'dance'
		elseif npc_rel['A14'] <= 20:
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
			'You approach her and try to move yourself so that she can see you, but when she finally notices you, she just turns around and continues dancing like she doesn''t know who you are.'
		else
			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_talking_on__dance_floor.jpg"></center>'
			'You approach her from behind. "Hey Katja!" you shout so she can hear you over the music.'
			'She turns around. "Oh hi, <<$pcs_nickname>>!" she shouts back when she sees you. "You decided to come clubbing tonight as well? It''s a great place to let loose. Why don''t we dance?"'
			act 'Dance with Katja': gt 'katja_nightclub', 'dance'	
		end
	else
		if katjaQW['QWstage'] > 0 or npc_rel['A14'] >= 70:
			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_talking_on__dance_floor.jpg"></center>'
			'You approach her and tap her on the shoulder. She turns around and '+iif(npc_sex['A14'] > 0 and func('katja_procedural', 'willing_to_be_naughty') > 80 and katjaQW['sex_clossedness'] < 2, 'gives you a quick kiss', 'a huge smile appears on her face')+'. "You''re back! Let''s dance!"'
			act 'Dance with Katja': gt 'katja_nightclub', 'dance'
		elseif npc_rel['A14'] < 20:
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
			'You approach her and try to move yourself so that she can see you, but when she finally notices you, she just turns around and continues dancing like she doesn''t know who you are.'
		else
			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_talking_on__dance_floor.jpg"></center>'
			'You approach her and she smiles when she sees you coming. "You''re back! Let''s dance!"'
			act 'Dance with Katja': gt 'katja_nightclub', 'dance'	
		end
	end
	act 'Leave Katja': gt 'city_nightclub', 'dance'
end

if $ARGS[0] = 'bar_approach':
	menu_off = 1
	minut += 5
	gs 'stat'
	if katjaQW['disco_arrival'] + 600 > totminut and katjaQW['disco_met'] + 600 > totminut: 
		katjaQW['disco_met'] = totminut
		gs 'npc_relationship', 'modify', 'A14', 'like'
		if katjaQW['QWstage'] > 0 or npc_rel['A14'] >= 70:
			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_bar1.jpg"></center>'
			'You approach the bar where she''s getting a drink handed to her by the bartender. "Hi, Katja!" you say loudly so she can hear you over the music.'
			'She turns to you with a huge smile on her face. "It''s great to see you here! We''re going to have so much fun! Get a drink and join me, <<$pcs_nickname>>!"'
			act 'Order a drink': gt 'katja_nightclub', 'drink'
		elseif npc_rel['A14'] <= 20:
			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_bar1.jpg"></center>'
			'You approach the bar where she''s getting a drink handed to her by the bartender and sit close to her.'
			'When she notices you, she just acts like she doesn''t know you and strikes up a conversation with another person at the bar, clearly signaling that she doesn''t want to talk to you.'
		else
			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_bar1.jpg"></center>'
			'You approach the bar where she''s getting a drink handed to her by the bartender. "Hi, Katja!" you say loudly so she can hear you over the music.'
			'She turns to you and shouts back. "Oh hi, <<$pcs_nickname>>! You decided to come clubbing tonight as well? It''s a great place to let loose. Have a drink with me!"'
			act 'Order a drink': gt 'katja_nightclub', 'drink'
		end
	else
		if katjaQW['QWstage'] > 0 or npc_rel['A14'] >= 70:
			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_bar1.jpg"></center>'
			'You approach the bar where she''s getting a drink handed to her by the bartender. "Hi, Katja!" you say loudly so she can hear you over the music.'
			'She turns to you with a huge smile on her face. "You need a drink too, <<$pcs_nickname>>? Great minds think alike."'
			act 'Order a drink': gt 'katja_nightclub', 'drink'
		elseif npc_rel['A14'] <= 20:
			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_bar1.jpg"></center>'
			'You approach the bar where she''s getting a drink handed to her by the bartender and sit close to her.'
			'When she notices you, she just acts like she doesn''t know you and strikes up a conversation with another person at the bar, clearly signaling that she doesn''t want to talk to you.'
		else
			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_bar1.jpg"></center>'
			'You approach the bar where she''s getting a drink handed to her by the bartender. "Hi, Katja!" you say loudly so she can hear you over the music.'
			'She turns to you. "Oh hi, <<$pcs_nickname>>! You thirsty too? Have a drink with me."'
			act 'Order a drink': gt 'katja_nightclub', 'drink'
		end
	end
	act 'Leave Katja': gt 'city_nightclub', 'bar'
end

if $ARGS[0] = 'dance_guy_approach':
	menu_off = 1
	minut += 5
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dancing_katja_guy<<rand(1,2)>>.jpg"></center>'
	if npc_rel['A14'] <= 20:
		if katjaQW['disco_arrival'] + 600 > totminut and katjaQW['disco_met'] + 600 > totminut: katjaQW['disco_met'] = totminut & gs 'npc_relationship', 'modify', 'A14', 'like'
		'As you approach her, she notices you and demonstrably drags the guy she''s dancing with away from you. She clearly doesn''t want anything to do with you.'
		act 'Leave them': gt 'city_nightclub', 'dance'
	else
		if rand(0,1) = 0:
			if katjaQW['disco_arrival'] + 600 > totminut and katjaQW['disco_met'] + 600 > totminut: katjaQW['disco_met'] = totminut & gs 'npc_relationship', 'modify', 'A14', 'like'
			'As you approach her, you notice that the guy she''s dancing with is wearing expensive clothes. She notices you and waves you over to join them.'
			act 'Join them': gt 'katja_nightclub', 'dance_guy2'
			act 'Don''t join them': gs 'npc_relationship', 'modify', 'A14', 'dislike' & gt 'city_nightclub', 'dance'
		else
			'As you approach, you can see that Katja is dancing with a guy in expensive clothes. She seems to be enjoying it and he''s clearly into her as you notice his hands sometimes touch her body.' 
			act 'Join them': 
				cla
				if katjaQW['disco_arrival'] + 600 > totminut and katjaQW['disco_met'] + 600 > totminut: katjaQW['disco_met'] = totminut & gs 'npc_relationship', 'modify', 'A14', 'like'
				'You get closer and get the attention of Katja. When she sees you, she motions for you to join them.'
				act 'Join them': gt 'katja_nightclub', 'dance_guy2'
			end
			act 'Stay back and see how it goes':
				cla
				minut += 15
				'They continue to dance for a while, and as the dance goes on, he keeps getting closer and closer to her. His hand starts to go from just touching her arms and back to resting on her ass.'
				if func('katja_procedural', 'willing_to_be_naughty') < 50 and katjaQW['liberated'] = 0:
					'That seems to be too much for her. When he doesn''t get the hint after she''s removed his hand from her ass several times, she dances away from him, leaving him alone.'
					act 'Go to her': gt 'katja_nightclub', 'dance_approach'
					act 'Leave her': gt 'city_nightclub', 'dance'
				else
					if katjaQW['simultanous_boys'] = 0 or func('katja_procedural', 'willing_to_be_naughty') < 65 or katjaQW['boy_block'] = 1:
						katjaQW['horny'] += 10
						'It seems that Katja can''t decide how to respond to this. She tries at times to move so that his hand will let go. At other times, it seems as though she likes the attention.'
					else
						katjaQW['horny'] += 20
						'Katja clearly enjoys the attention she''s getting and starts to get closer to him as well, almost grinding her body against his.'
					end
					if (katjaQW['liberated'] = 1 and (katjaQW['simultanous_boys'] = 0 and rand(1,10)) or (katjaQW['simultanous_boys'] > 0 and rand(1,5))) or (katjaQW['QWstage'] >= 6 and katjaQW['boy_block'] = 0 and rand(1,10) <= (min(func('katja_procedural', 'willing_to_be_naughty'), 100) - 50)/10 and rand(1,5) <= (min(katjaQW['horny'], 100) - 50)/10 and katjaQW['relationship_talk'] = 1 and (katjaQW['faithful'] = 0 or katjaQW['cheat_warning'] = 2)):
						!! The conditions is such that only if Katja is liberated or the player has introduced her to sex with a boy is there a chance that she will go with the guy. In the later case she won''t go until after the the player has had the relationship talk, and then only if they agreed on an open relationship or if she has warned the player because she has caught the player cheating. She also won''t go if the player said they''re not into boys.
						katjaQW['nightclub_private_room_boy'] = 1
						katjaQW['disco_loc'] = 7
						katjaQW['disco_check_time'] = totminut
						'By the end of the dance, he grabs her and leans in for a kiss and she fully kisses him back. Afterwards, he whispers something in her ear and she nods as he takes her hand and leads her towards the private rooms.'
						!!act 'Follow them': gt 'city_nightclub', ''
						act 'Leave them': gt 'city_nightclub', 'dance'
					else
						'By the end of the dance, he grabs her and leans in for a kiss, but she just gives him a quick peck on the cheek and gets herself out of his grip. She thanks him for the dance before dancing away, leaving him standing there looking very disappointed.'
						act 'Go to her': gt 'katja_nightclub', 'dance_approach'
						act 'Leave her': gt 'city_nightclub', 'dance'							
					end
				end
			end
			act 'Leave them': gt 'city_nightclub', 'dance'
		end
	end
end

if $ARGS[0] = 'dance_black_guy_approach':

end

if $ARGS[0] = 'dance_girl_approach':

end

if $ARGS[0] = 'dance_two_guys_approach':
	menu_off = 1
	minut += 5
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dancing_katja_guy<<rand(1,2)>>.jpg"></center>'
	if npc_rel['A14'] <= 20:
		if katjaQW['disco_arrival'] + 600 > totminut and katjaQW['disco_met'] + 600 > totminut: katjaQW['disco_met'] = totminut & gs 'npc_relationship', 'modify', 'A14', 'like'
		'As you approach her, she notices you and demonstrably drags the guys she''s dancing with away from you. She clearly doesn''t want anything to do with you.'
		act 'Leave them': gt 'city_nightclub', 'dance'
	else
		if rand(0,0) = 1:
			if katjaQW['disco_arrival'] + 600 > totminut and katjaQW['disco_met'] + 600 > totminut: katjaQW['disco_met'] = totminut & gs 'npc_relationship', 'modify', 'A14', 'like'
			'As you approach her, you notice that the men she''s dancing with are wearing expensive clothes. She notices you and waves you over to join them.'
			act 'Join them': gt 'katja_nightclub', 'dance_two_guys2'
			act 'Don''t join them': gs 'npc_relationship', 'modify', 'A14', 'dislike' & gt 'city_nightclub', 'dance'
		else
			'As you approach, you can see that Katja is dancing with two men in expensive clothes. She seems to be enjoying it, and they''re clearly into her as you notice their hands sometimes touch her body.' 
			act 'Join them': 
				cla
				if katjaQW['disco_arrival'] + 600 > totminut and katjaQW['disco_met'] + 600 > totminut: katjaQW['disco_met'] = totminut & gs 'npc_relationship', 'modify', 'A14', 'like'
				'You get closer and get the attention of Katja. When she sees you, she motions for you to join them.'
				act 'Join them': gt 'katja_nightclub', 'dance_two_guys2'
			end
			act 'Stay back and see how it goes':
				cla
				minut += 15
				'They continue to dance for a while, and as the dance goes on, the men keep getting closer and closer to her. Their hands start to go from just touching her arms and back to resting on her ass.'
				if func('katja_procedural', 'willing_to_be_naughty') < 75 and katjaQW['liberated'] = 0:
					'That seems to be too much for her. When they don''t get the hint after she''s removed their hands from her ass several times, she dances away from him, leaving him alone.'
					act 'Go to Katja': gt 'katja_nightclub', 'dance_approach'
					act 'Leave her': gt 'city_nightclub', 'dance'
				else
					if katjaQW['simultanous_boys'] < 2 or func('katja_procedural', 'willing_to_be_naughty') < 90 or katjaQW['boy_block'] = 1:
						katjaQW['horny'] += 10
						'It seems that Katja can''t decide how to respond to this. She tries at times to move so that their hands will let go. At other times, it seems as though she likes the attention.'
					else
						katjaQW['horny'] += 20
						'Katja clearly enjoys the attention she''s getting from the men. She starts to get closer to them as well, almost grinding her body against theirs.'
					end
					if (katjaQW['liberated'] = 1 and (katjaQW['simultanous_boys'] = 1 and rand(1,10)) or (katjaQW['simultanous_boys'] > 1 and rand(1,5))) or (katjaQW['QWstage'] >= 6 and katjaQW['boy_block'] = 0 and rand(1,10) <= (min(func('katja_procedural', 'willing_to_be_naughty'), 100) - 50)/10 and rand(1,5) <= (min(katjaQW['horny'], 100) - 50)/10 and katjaQW['relationship_talk'] = 1 and (katjaQW['faithful'] = 0 or katjaQW['cheat_warning'] = 2)):
						gs 'katja_procedural', 'sex_set', 2
						if hour > 10:
							locat['katja_rand2'] = daystart
						else
							locat['katja_rand2'] = daystart -1
						end
						locat['katja_save2'] = 54
						locat['katja'] = locat['katja_save2']						
						'By the end of the dance, one of the men leans in and says something to Katja that you can''t hear. '+iif(katjaQW['simultanous_boys'] > 2 and func('katja_procedural', 'willing_to_be_naughty') >= 100 and katjaQw['horny'] >= 75, 'She immediately, and eagerly, agrees to his proposition.' , 'she seems to consider it for some time before she hesitantly agrees.')+' The three of them then leave the dance floor and head for the exit of the club.'
						act 'Leave them': gt 'city_nightclub', 'dance'
					else
						'By the end of the dance, one of the men grabs her and leans in for a kiss, but she just gives him a quick peck on the cheek and gets herself out of his grip. She thanks them for the dance before dancing away, leaving him standing there looking very disappointed.'
						act 'Go to her': gt 'katja_nightclub', 'dance_approach'
						act 'Leave her': gt 'city_nightclub', 'dance'							
					end
				end
			end
			act 'Leave them': gt 'city_nightclub', 'dance'
		end
	end
end

if $ARGS[0] = 'dance':
	minut += 15
	pcs_stam -= 5
	gs 'sweat', 'add', 3
	fat -= 1
	gs 'exp_gain', 'danc', 1
	frost = 0
	gs 'stat'
	temp_rand = rand(0,20)
	if temp_rand = 1:
		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_talking_on__dance_floor.jpg"></center>'
		'A song that Katja loves comes on and she starts singing the lyrics as you join her.'
		if katjaQW['drinks'] > 8:
			'She''s very drunk and is basically just shouting parts of the song very loudly.'+iif( alko < 8 or pcs_vokal > 50, ' You at least manage to sing the correct lyrics.', ' You''re not doing any better.')+' At least'+iif( alko < 8, 'she''s', 'you''re')+' having fun.'
		elseif katjaQW['drinks'] > 4:
			'Katja is able to sing the song quite well considering how drunk she is.'+iif(alko < 5 or pcs_vokal > 25, ' You''re also able to sing it well enough.', ' She''s doing better than you, as you only manage to mix up the lyrics.')
		else
			'Katja clearly knows this song by heart, and sings it very well.'+iif(pcs_vokal > 50, ' Your singing skills mean you''re able to complement her perfectly.', ' You''re clearly not as good as her at singing.')
		end
	elseif temp_rand = 2:
		pcs_stam -= 10
		gs 'sweat', 'add', 3
		fat -= 1
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dancing_wild.jpg"></center>'
		'A very popular beat comes on, and the crowd goes wild. The dance floor becomes a mass of people moving fast to the rhythm. Dance skill does not matter at the moment, just enthusiasm and stamina.'
		if katjaQW['drinks'] > 8:
			'Katja is very drunk and is having trouble staying on her feet with all the people bombing into her.'+iif( alko < 8, ' You do your best to keep her steady.', ' You''re in the same state and it''s a miracle that none of you fall.')
		elseif katjaQW['drinks'] > 4:
			iif(alko > 4, 'You and Katja are drunkenly', 'Katja is drunkenly')+' bumping into other dancers, but they don''t seem to pay any notion to it.'
		end
	elseif temp_rand <= hotcat/2:
		gt 'katja_nightclub', 'dance_two_guys1'
	elseif temp_rand <= hotcat:
		gt 'katja_nightclub', 'dance_guy1'
	elseif temp_rand = 11 and func('katja_procedural', 'willing_to_be_naughty') > 30*(2 -npc_sex['A14']):
		katjaQW['horny'] += 5
		gs 'arousal', 'foreplay', -5
		gs 'arousal', 'end'
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_grinding.jpg"></center>'
		'As you''re dancing, Katja turns around and starts doing sexy dance moves in front of you. She starts to grind her ass into you as the rhythm allows it.'
		'When the number is over, she turns around and dance normally for the next number with a naughty glint in her eye.'
	else
		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dancing1.jpg"></center>'
		if katjaQW['drinks'] < 4:
			'You and Katja are dancing and having fun. She''s a pretty good dancer, '+iif(pcs_danc < 50, 'and you''re having a little trouble matching her moves.', 'but your moves are clearly better than hers.')
		elseif katjaQW['drinks'] < 8:
			'You and Katja are dancing and having fun, but it''s clear that Katja''s moves aren''t as smooth since she''s clearly not sober anymore. '+iif(alko < 4, 'You do the best to make up for her less than perfect moves.', 'You''re also under the influence and following her in letting go.')
			'She clearly doesn''t care what others think about how good or silly you look doing it.'
		else
			'Katja is very drunk and more rolling around than actually dancing .'+iif( alko < 8, ' You do your best to not make it a complete disaster.', ' You''re in the same state and almost fall over a few times.')+' At least'+iif( alko < 8, 'she''s', 'you''re')+' having fun.'
		end
	end
	gs 'katja_nightclub', 'dance_end'
end

if $ARGS[0] = 'dance_end':
	gs 'katja_meynold_schedule' 
	if locat['Katja'] ! 53:
		if  katjaQW['disco_arrival'] + 600 < totminut:
			'"It''s getting late, <<$pcs_nickname>>. Let''s go home," Katja says as the song ends. It looks like there''s no way to convince her to stay.' 
			act 'Go home with Katja': katjaQW['on_date'] = 1 & gt 'katja_city', 'metro'
			act 'Stay at the nightclub': gt 'city_nightclub', 'dance'
		else
			'"It''s getting late, <<$pcs_nickname>>. I''m heading home," Katja says as she finishes her drink. It looks like there''s no way to convince her to stay.' 
			if (npc_sex['A14'] > 0 and katjaQW['sex_clossedness'] < 2) or $home['current'] = 'university_dorm':
				act 'Suggest you go home together': 
					*clr & cla
					'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
					'"Why don''t we go back together?" you suggest.'
					'"Great idea," she replies.'
					act 'Go home with Katja': katjaQW['on_date'] = 1 & gt 'katja_city', 'metro'
				end		
			end
			act 'Say goodbye to Katja': gt 'city_nightclub', 'dance'
		end
	else
		if rand(0,8) = 0:
			'After a while, Katja tells you that she needs to go to the restroom, but will be back shortly.'
			act 'Let her go': gt 'city_nightclub', 'dance'
		elseif rand(0,4) = 0:
			'"I''m getting thirsty. Let''s go to the bar," Katja says after dancing for a while.'
			act 'Go to the bar': 
				gs 'npc_relationship', 'modify', 'A14', 'like', 2, 'agree'
				gt 'katja_nightclub', 'bar_arrive'
			end
			act 'Tell her that you want to keep dancing':
				*clr & cla
				'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
				if rand(-30,30) > katjaQW['dom']:
					'"Okay," she says. "We can dance a little longer."'
					act 'Continue to dance': gt 'katja_nightclub', 'dance'
				else
					'"No. I really want a drink right now!" she insists, looking quite determined.'
					if katjaQW['dom'] > 30:
						gs 'willpower', '', 'force', 'hard'
					elseif katjaQW['dom'] < 0:
						gs 'willpower', '', 'force', 'easy'
					else
						gs 'willpower', '', 'force'
					end
					if will_cost <= pcs_willpwr:
						act 'Convince her to keep dancing (<<will_cost>> Willpower)':
							cla
							gs 'npc_relationship', 'modify', 'A14', 'dislike'
							gs 'willpower', 'pay', 'force'
							katjaQW['dom'] -= rand(1,2)
							gs 'stat'
							'"Just one more song, then we can go to the bar! Can you hear what''s coming on? We need to dance to this!" you plead and Katja gives in and starts to dance with you again.'
							act 'Dance': gt 'katja_nightclub', 'dance'
						end
					else
						act 'Convince her to keep dancing (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
					end
					act 'Relent and go to the bar': 
						katjaQW['dom'] += rand(2,3)
						gs 'stat'
						gt 'katja_nightclub', 'bar_arrive'
					end
					act 'Tell her she can go alone': 
						katjaQW['dom'] -= rand(0,1)
						katjaQW['disco_loc'] = 2
						katjaQW['drink'] += rand(1,2)
						gs 'npc_relationship', 'modify', 'A14', 'dislike'
						gs 'stat'						
						gt 'city_nightclub', 'dance'
					end
				end
			end
			act 'Tell Katja that you need to leave': gt 'city_nightclub', 'dance'
		else
			'"Listen. Can you hear that? We need to dance to this!" Katja says after you''ve danced for several songs, still full of energy.'
			act 'Dance some more':
				gt 'katja_nightclub', 'dance'
				gs 'npc_relationship', 'modify', 'A14', 'like'
			end
			act 'Tell Katja that you want a drink':
				*clr & cla
				'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
				if rand(-30,30) > katjaQW['dom']:
					'"Okay," she says. "We can get drinks, I''m starting to get thirsty."'
					act 'Go to the bar': gt 'katja_nightclub', 'bar_arrive'
				else
					'"I really want to dance to this number, though! Come on, stay with me! Please?" she pleads.'
					if katjaQW['dom'] > 30:
						gs 'willpower', '', 'force', 'hard'
					elseif katjaQW['dom'] < 0:
						gs 'willpower', '', 'force', 'easy'
					else
						gs 'willpower', '', 'force'
					end
					if will_cost <= pcs_willpwr:
						act 'Convince her to go to the bar (<<will_cost>> Willpower)':
							cla
							gs 'npc_relationship', 'modify', 'A14', 'dislike'
							gs 'willpower', 'pay', 'force'
							katjaQW['dom'] -= rand(1,2)
							gs 'stat'
							'"Come on! I really, really need something to drink right now. Please?" you plead and Katja finally gives in.'
							act 'Go to the bar': gt 'katja_nightclub', 'bar_arrive'
						end
					else
						act 'Convince her to go to the bar (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
					end
					act 'Relent and continue dancing':
						katjaQW['dom'] += rand(2,3)
						gs 'stat'
						gt 'katja_nightclub', 'dance'
					end
					act 'Go to the bar alone while she dances':
						katjaQW['dom'] -= rand(0,1)
						katjaQW['disco_loc'] = 1
						gs 'npc_relationship', 'modify', 'A14', 'dislike'
						gs 'stat'						
						gt 'city_nightclub', 'bar'
					end
				end
			end	
		end
	end
end

if $ARGS[0] = 'bar_arrive':
	minut += 5
	$loc = 'city_nightclub'
	$loc_arg = 'bar'
	$menu_loc = 'city_nightclub'
	$menu_arg = 'bar'
	menu_off = 1
	gs 'stat'
	if (hour < 6 or hour > 22) and rand(0,4) = 0 and katjaQW['lone_bartender'] < daystart -1: gt 'katja_nightclub_sex', 'lone_bartender'
	katjaQW['disco_loc'] = 2
	katjaQW['drinks'] += rand(1,2)
	'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_bar1.jpg"></center>'
	'You make your way to the bar, which is quite crowded. Katja quickly orders a drink while you think about what to order.'
	if pcs_health > 20:
		act 'Order a drink': gt 'katja_nightclub', 'drink'
	else
		'You don''t feel well enough to drink alcohol.'
	end
	act 'Don''t order a drink': gt 'katja_nightclub', 'bar_after_drink'
end

if $ARGS[0] = 'drink':
	$loc = 'katja_nightclub'
	$loc_arg = 'bar_after_drink'
	katjaQW['disco_drink_bought'] = 1
	gs 'food_menu', 'city_nightclub_only_cost'
end

if $ARGS[0] = 'bar_after_drink':
	$loc = 'city_nightclub'
	$loc_arg = 'bar'
	$menu_loc = 'city_nightclub'
	$menu_arg = 'bar'
	menu_off = 1
	minut += 10
	gs 'stat'
	temp_rand = rand(1,20)
	katjaQW['horny'] += 5
	if temp_rand = 1  and (katjaQW['QWstage'] >= 3 or katjaQW['drinks'] > 3) and katjaQW['sex_clossedness'] < 2:
		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_kiss_cheek.jpg"></center>'
		katjaQW['horny'] += 5
		iif(katjaQW['disco_drink_bought'] = 1, 'You and Katja are', 'Katja is')+' enjoying '+iif(katjaQW['disco_drink_bought'] = 1, 'your drinks', 'her drink')+' when she suddenly decides to kiss you on the cheek.'
		if func('katja_procedural', 'willing_to_be_naughty') < 65 and katjaQW['drinks'] < 8:
			'She quickly looks around and starts giggling, as if she''s embarrassed about what she just did.'
		else
			if func('katja_procedural', 'willing_to_be_naughty') < 65:
				'As she''s doing this, she stumbles and almost falls to the ground, laughing. It''s clear that she''s entirely wasted at this point.'
			else
				'She then continues the conversation like it was the most natural thing to do.'
			end
		end
		katjaQW['disco_drink_bought'] = 0
		gs 'katja_nightclub', 'bar_end'
	elseif temp_rand <= hotcat/2:
		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dringking_man_approach.jpg"></center>'
		'As '+iif(katjaQW['disco_drink_bought'] = 1, 'you and Katja are', 'Katja is')+' enjoying '+iif(katjaQW['disco_drink_bought'] = 1, 'your drinks', 'her drink')+', a well-dressed man comes up to you. "Hello, ladies! Mind if I join you?"'
		katjaQW['disco_drink_bought'] = 0
		act 'Let him join':
			if (katjaQW['QWstage'] < 3 and katjaQW['liberated'] = 0) or (katjaQW['boy_block'] = 1 and katjaQW['sex_clossedness'] <2) or func('katja_procedural', 'willing_to_be_naughty')+katjaQW['horny'] < rand (50,100):
				cla
				if katjaQW['dom'] > rand(0,30):
					'You''re about to tell him that he can join you when Katja shakes her head.'
					'"If you want to have him fawning over you, then I''ll leave you to it," she says in a clearly disapproving voice.'
					'The guy takes the hint and excuses himself before leaving the two of you alone.'
					act 'Ask her what''s going on':
						*clr & cla
						gs 'npc_relationship', 'modify', 'A14', 'dislike'
						gs 'stat'
						'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
						'"What was that about?" you ask.'
						'"I thought we were having a drink together, just the two of us?" she asks. "If you want to chase boys then go ahead, but '+iif(katjaQW['boy_block'] = 1, 'I thought you didn''t have any interest in them?', 'I''m not interested,')+'"' 
						gs 'katja_nightclub', 'bar_end'
					end
					act 'Just finish your drinks in peace':
						*clr & cla
						katjaQW['dom'] += rand(1,2)
						'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_bar1.jpg"></center>'
						gs 'katja_nightclub', 'bar_end'
					end
				else
					'"Yes, you can join us," you tell him, but Katja looks at you disapprovingly. It''s clear that she doesn''t want him there, but she''s not going to say anything.'
					act 'Tell him you changed your mind':
						*clr & cla
						gs 'npc_relationship', 'modify', 'A14', 'like'
						gs 'stat'
						'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
						'You pull out your phone. "Oh shit, lost track of time! Sorry, but my friend and I need to meet somebody on the dance floor right now!" you say and drag Katja away from the bar without giving him time to protest.'
						'"Thanks. I really didn''t want to have a guy hitting on us right now," she says as you make your way to the dance floor.'
						gs 'katja_nightclub', 'bar_end'
					end
					act 'Ignore Katja''s discomfort':
						*clr & cla
						gs 'npc_relationship', 'modify', 'A14', 'dislike'
						gs 'stat'
						'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dringking_man_approach.jpg"></center>'
						'You ignore Katja and he joins you. You spend the time chatting with while Katja says nothing.'
						if rand(5,8) < hotcat:
							'He then thanks you for a nice time, but says he has to run and leaves you and Katja alone at the bar.'
							'"Why did you invite <i>him</i>?" she asks in a harsh tone.'
							'"It''s fine. It never hurts to talk to a good looking guy," you answer.'
							'"Well, I didn''t want to talk to him! Next time, I''ll just leave you alone," she says, still a little upset with you.'
							gs 'katja_nightclub', 'bar_end'
						else
							if rand(0,2) = 0:
								'He''s clearly flirting with the two of you, which Katja tries to ignore. After your glasses are empty, he asks if you want to join him on the dance floor.'
								act 'Yes':
									cla
									'"Sure! Sounds good," you tell him.'
									'Katja then leans in and whispers in your ear. "You go ahead, I won''t be joining you."'
									act 'Dance with him alone':
										gs 'npcgeneratec', 0, '', rand(18,55), rand(3,4)
										gs 'boystat', $npclastgenerated
										gs 'npc_relationship', 'modify', 'A14', 'dislike'
										gs 'stat'
										gt 'city_nightclub', 'dance_guy'
									end
									act 'Stay with Katja':
										'"Sorry, but my friend just reminded me that we need to be somewhere else. I hope you understand," you tell him. He looks disappointed, but leaves the two of you alone.'
										'"Thanks. I really didn''t want to have a guy hitting on us right now," she says.'
										gs 'katja_nightclub', 'bar_end'
									end
								end
									act 'No':
									cla
									'"Sorry, but my friend and I are going to stay at the bar," you tell him, making it clear that you''re not interested.'
									'"Too bad, you''ll be missing a great time," he says as he leaves, almost like you''ve insulted him.'
									'Once he''s gone, Katja turns to you. "Thanks. I didn''t want to spend any more time with him."'
									gs 'katja_nightclub', 'bar_end'
								end					
							else
								'"I''d like to buy you another drink, but let''s go to one of the private booths. We''ll be more comfortable there and it''ll be easier to get to know each other with less noise," he says.'
								'"Sorry, but we really should be going," Katja says before you have time to respond.'
								'"Okay. Maybe I''ll see you around?" he asks before leaving with a disappointed look.'
								if katjaQW['boy_block'] = 1:
									'"I''m sure he just wanted to get in our panties. As if that would ever happen," she snorts.'
								else
									'"Sorry, but I didn''t want to spend any more time with him," she says.'
								end
								gs 'katja_nightclub', 'bar_end'
							end
						end
					end
				end			
			else
				*clr & cla
				katjaQW['horny'] += max(0,rand(katjaQW['slut']-50,100)/50)
				'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dringking_man_approach.jpg"></center>'
				'You tell him that he''s welcome to join and Katja nods in agreement. You spend the time chatting with him while your glasses empty.'
				if rand(5,8) < hotcat:
					'He then thanks you for a nice time, but says he has to run, and leaves you and Katja alone at the bar.'
					gs 'katja_nightclub', 'bar_end'
				else
					if rand(0,2) = 0:
						'He''s clearly flirting with the two of you and asks if you want to join him on the dance floor.'
						act 'Go to the dance floor with him':
							cla
							'You agree and the three of you leave the bar and head to the dance floor.'
							act 'Dance': gt 'katja_nightclub', 'dance_guy2'
						end
						act 'Refuse':
							cla
							'"Sorry, but my friend and I are going to stay at the bar," you tell him, making it clear that you''re not interested.'
							'"Too bad, you''ll be missing a great time," he says as he leaves, almost like you had insulted him.'
							'Once he''s gone, Katja turns to you. '+iif((katjaQW['QWstage'] >= 6 or katjaQW['liberated'] = 1) and katjaQW['boy_block'] = 0 and katjaQW['sex_clossedness'] <2 and katjaQW['horny'] > 70, '"Why did you let him go? He was cute. It might have led to a fun time if we had gone dancing with him."', '"I didn''t find him that interesting, either."')  
							gs 'katja_nightclub', 'bar_end'
						end					
					else
						'"I''d like to buy you another drink, but let''s go to one of the private booths. We''ll be more comfortable there and it''ll be easier to get to know each other with less noise," he says.'
						if (katjaQW['QWstage'] < 3 and katjaQW['liberated'] = 0) or (katjaQW['boy_block'] = 1 and katjaQW['sex_clossedness'] <2):
							'"Sorry, but we really should be going," Katja says before you have time to respond.'
							'"Okay. Maybe I''ll see you around?" he asks before leaving with a disappointed look.'
							if katjaQW['boy_block'] = 1:
								'"I''m sure he just wanted to get in our panties. As if that would ever happen," she snorts.'
							else
								'"I''m sorry, but I''m not really comfortable with us being alone with strange guys," she says.'
							end
							gs 'katja_nightclub', 'bar_end'
						else
							act 'Join him':
								cla
								if katjaQW['QWstage'] >= 6 and katjaQW['boy_block'] = 0 and katjaQW['sex_clossedness'] < 2 and katjaQW['horny'] > rand(40,60):
									'You and Katja both end up agreeing at the same time, which causes her to giggle. You''re not sure if it''s because of the awkwardness of the two of you speaking at the same time or the eagerness both of you showed to his proposal.'
									'"Great. Follow me, my ladies," he says and leads you to a private room. The bouncer seems to know him and opens the door for you.'
									act 'Go with him': gt 'katja_nightclub_sex', 'private_room1'
								else
									'"Sure," you answer.'
									'However, Katja grabs your shoulder and whispers in your ear. "I''m not going with him. You go ahead, but I''m staying here."'
									act 'Go with him alone':
										cla
										'"Suits yourself," you shrug and turn to the guy. "Lead the way."'
										'"Great. Follow me, my lady," he says and leads you to a private room. The bouncer seems to know him and opens the door for you.'
										gs 'npcgeneratec', 0, '', rand(18,55), 4
										gs 'boystat', $npclastgenerated
										gs 'npc_relationship', 'modify', 'A14', 'dislike'
										gs 'stat'
										act 'Have sex with him': picrand = 38 & $sexloc = 'city_nightclub' & xgt 'sex', 'var'
										act 'Leave': gt 'city_nightclub', 'private_rooms'
									end
									act 'Stay with Katja':
										'"Sorry, but my friend just reminded me that we need to be somewhere else. I hope you understand," you tell him. He looks disappointed, but leaves the two of you alone.'
										'"Thanks. I really didn''t want to have a guy hitting on us right now," she says.'
										gs 'katja_nightclub', 'bar_end'
									end
								end
							end
							act 'Refuse':
								cla
								if katjaQW['QWstage'] >= 6 and katjaQW['boy_block'] = 0 and katjaQW['sex_clossedness'] < 2 and katjaQW['horny'] > rand(40,60):
									'You''re about to refuse, but Katja says he can join you.'
									'She gives you a surprised look while the man looks confused.'
									act 'Relent and let Katja decide':
										cla
										katjaQW['doem'] += rand(1,2)
										'"Well, if you want to," you say.'
										'His face lights up. "Great! Follow me, my ladies." He leads you to a private room. The bouncer seems to know him and opens the door for you.'
										act 'Go with him': gt 'katja_nightclub_sex', 'private_room1'
									end
									act 'Try to convince her to stay':
										*clr & cla
										'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
										'You lean into Katja and whisper in her ear. "I don''t want to go with him. He gives me the wrong vibes."'
										'"I don''t get bad vibes from him. I think he''s actually quite hot and that we should go with him," she answers.'
										if katjaQW['dom'] > 30:
											gs 'willpower', '', 'force', 'hard'
										elseif katjaQW['dom'] < 0:
											gs 'willpower', '', 'force', 'easy'
										else
											gs 'willpower', '', 'force'
										end
										if will_cost <= pcs_willpwr:
											act 'Convince her to stay at the bar (<<will_cost>> Willpower)':
												cla
												gs 'npc_relationship', 'modify', 'A14', 'dislike'
												gs 'willpower', 'pay', 'force'
												katjaQW['dom'] -= rand(1,2)
												gs 'stat'										
												'"I really don''t think it''s a good idea to go with him. He really seems like a guy that won''t stop if we tell him to when we''re alone with him," you whisper.'
												'Katja looks at the guy again, and after a moment of thinking, she relents. "Okay. I''m not really convinced that he''s bad, but I''ll stay with you," she answers.'
												'She turns to him. "Sorry, but my friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so I''ll stay with her. Maybe another time?"'
												'He shrugs before leaving, looking very disappointed.'
												gs 'katja_nightclub', 'bar_end'
											end
										else
											act 'Convince her to stay at the bar (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
										end
										act 'Relent and go with him':
											cla
											katjaQW['doem'] += rand(1,2)
											'"Well, if you really want to," you say.'
											'His face lights up. "Great! Follow me, my ladies." He leads you to a private room. The bouncer seems to know him and opens the door for you.'
											act 'Go with him': gt 'katja_nightclub_sex', 'private_room1'
										end
										act 'Let Katja go with guy, but stay at the bar':
											katjaQW['nightclub_private_room_boy'] = 1
											katjaQW['disco_loc'] = 7
											katjaQW['disco_check_time'] = totminut
											cla
											'"You can go with him if you want," you shrug.'
											'She looks at you a little skeptical, but then turns to the guy. "My friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so she isn''t coming, but I''d love to have another drink with you."'
											'He lights up before taking her hand and walking away, leaving you alone at the bar.'
											act 'Continue': gt 'city_nightclub', 'bar'
										end
									end
								else
									'"Thanks, but no. I think we''ll go dancing," you tell him.'
									'"We had a good time. Maybe we can join you some other time?" Katja asks.' 
									'He just shrugs before leaving, looking a little disappointed.'
									gs 'katja_nightclub', 'bar_end'
								end
							end
						end
					end
				end
			end
		end
		act 'Tell him no':
			if katjaQW['QWstage'] >= 6 and katjaQW['boy_block'] = 0 and katjaQW['sex_clossedness'] < 2 and katjaQW['horny'] > rand(40,60) and func('katja_procedural', 'willing_to_be_naughty') > rand(80,80):
				*clr & cla
				'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_drinnking_bar.jpg"></center>'
				'"We''d love to have you join us for a drink," Katja says before you have time to say anything.' 
				act 'You don''t want him to join':
					cla
					gs 'npc_relationship', 'modify', 'A14', 'dislike'
					gs 'stat'
					'You lean in and whisper in Katja''s ear. "We''re having fun by ourselves. We don''t need some guy. Besides, he gives me the wrong vibes..."'
					'She looks at him again, then at you. "Okay, you win," she whispers before she turns back to him. "Sorry, but my friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'prefers for us to be alone right now')+', so we have to decline. Maybe another time?"'
					gs 'katja_nightclub', 'bar_end'
				end
				act 'Let him join':
					katjaQW['dom'] += rand(1,2)
					*clr & cla
					katjaQW['horny'] += max(0,rand(katjaQW['slut']-50,100)/50)
					'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dringking_man_approach.jpg"></center>'
					'You tell him that he''s welcome to join and Katja nods in agreement. You spend the time chatting with him while your glasses empty.'
					if rand(5,8) < hotcat:
						'He then thanks you for a nice time, but says he has to run and leaves you and Katja alone at the bar.'
						gs 'katja_nightclub', 'bar_end'
					else
						if rand(0,2) = 0:
							'He''s clearly flirting with the two of you and asks if you want to join him on the dance floor.'
							act 'Go to the dance floor with him':
								cla
								'You agree and the three of you leave the bar and head to the dance floor.'
								act 'Dance': gt 'katja_nightclub', 'dance_guy2'
							end
							act 'Refuse':
								cla
								'"Sorry, but my friend and I are going to stay at the bar," you tell him, making it clear that you''re not interested.'
								'"Too bad, you''ll be missing a great time," he says as he leaves, almost like you''ve insulted him.'
								'Once he''s gone, Katja turns to you. '+iif((katjaQW['QWstage'] >= 6 or katjaQW['liberated'] = 1) and katjaQW['boy_block'] = 0 and katjaQW['sex_clossedness'] <2 and katjaQW['horny'] > 70, '"Why did you let him go? He was cute! It might have led to a fun time if we had gone dancing with him."', '"I didn''t find him that interesting, either."')  
								gs 'katja_nightclub', 'bar_end'
							end					
						else
							'"I''d like to buy you another drink, but let''s go to one of the private booths. We''ll be more comfortable there and it''ll be easier to get to know each other with less noise," he says.'
							act 'Join him':
								cla
								if katjaQW['horny'] > rand(40,60):
									'You and Katja both end up agreeing at the same time, which causes her to giggle. You''re not sure if it''s because of the awkwardness of the two of you speaking at the same time or the eagerness both of you showed to his proposal.'
									'"Great. Follow me, my ladies," he says and leads you to a private room. The bouncer seems to know him and opens the door for you.'
									act 'Go with him': gt 'katja_nightclub_sex', 'private_room1'
								else
									'"Sure," you answer.'
									'However, Katja grabs your shoulder and whispers in your ear. "I''m not going with him. You can go ahead, but I''m staying here."'
									act 'Go with him alone':
										cla
										'"Suits yourself," you shrug and turn to the guy "Lead the way."'
										'"Great. Follow me, my lady," he says and leads you to a private room. The bouncer seems to know him and opens the door for you.'
										gs 'npcgeneratec', 0, '', rand(18,55), 4
										gs 'boystat', $npclastgenerated
										gs 'npc_relationship', 'modify', 'A14', 'dislike'
										gs 'stat'
										act 'Have sex with him': picrand = 38 & $sexloc = 'city_nightclub' & xgt 'sex', 'var'
										act 'Leave': gt 'city_nightclub', 'private_rooms'
									end
									act 'Stay with Katja':
										'"Sorry, but my friend just reminded me that we need to be somewhere else. I hope you understand," you tell him. He looks disappointed, but leaves the two of you alone.'
										'"Thanks. I really didn''t want to have a guy hitting on us right now," she says.'
										gs 'katja_nightclub', 'bar_end'
									end
								end
							end
							act 'Refuse':
								cla
								if katjaQW['horny'] > rand(40,60):
									'You''re about to tell him no when Katja says he can join you.'
									'She gives you a surprised look while the man looks confused.'
									act 'Relent and let Katja decide':
										cla
										katjaQW['doem'] += rand(1,2)
										'"Well, if you want to," you say.'
										'His face lights up. "Great! Follow me, my ladies." He leads you to a private room. The bouncer seems to know him and opens the door for you.'
										act 'Go with him': gt 'katja_nightclub_sex', 'private_room1'
									end
									act 'Try to convince her to stay':
										*clr & cla
										'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
										'You lean into Katja and whisper in her ear. "Come on. I don''t want to go with him. He gives me the wrong vibes."'
										'"I don''t get bad vibes from him. I think he''s actually quite hot and that we should go with him," Katja answers.'
										if katjaQW['dom'] > 30:
											gs 'willpower', '', 'force', 'hard'
										elseif katjaQW['dom'] < 0:
											gs 'willpower', '', 'force', 'easy'
										else
											gs 'willpower', '', 'force'
										end
										if will_cost <= pcs_willpwr:
											act 'Convince her to stay at the bar (<<will_cost>> Willpower)':
												cla
												gs 'npc_relationship', 'modify', 'A14', 'dislike'
												gs 'willpower', 'pay', 'force'
												katjaQW['dom'] -= rand(1,2)
												gs 'stat'
												'"I really don''t think it''s a good idea to go with him. He really seems like a guy that won''t stop if we tell him to when we are alone with him," you whisper.'
												'Katja looks at the guy again and after a moment of thinking, she relents. "Okay. I''m not really convinced that he''s bad, but I will stay with you," she answers.'
												'She turns to him. "I''m sorry, but my friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so I''ll stay with her. Maybe another time?"'
												'He just shrugs before leaving, looking very disappointed.'
												gs 'katja_nightclub', 'bar_end'
											end
										else
											act 'Convince her to stay at the bar (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
										end
										act 'Relent and go with the guy':
											cla
											katjaQW['doem'] += rand(1,2)
											'"Well, if you really want to," you say.'
											'His face lights up. "Great! Follow me, my ladies." He leads you to a private room, the bouncer seems to know him and opens the door for you.'
											act 'Go with him': gt 'katja_nightclub_sex', 'private_room1'
										end
										act 'Let her go with him':
											katjaQW['nightclub_private_room_boy'] = 1
											katjaQW['disco_loc'] = 7
											katjaQW['disco_check_time'] = totminut
											cla
											'"You can go with him if you want to," you shrug.'
											'She looks at you a little skeptical, but then turns to the guy. "My friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so she''s not coming, but I''d love another drink with you."'
											'He lights up and takes her hand before walking away, leaving you alone at the bar.'
											act 'Continue': gt 'city_nightclub', 'bar'
										end
									end
								else
									'"Thanks, but no. I think we''ll go dancing," you tell him.'
									'"We had fun, though. Maybe some other time?" Katja asks.'
									'He just shrugs before leaving, looking a little disappointed.'
									gs 'katja_nightclub', 'bar_end'
								end
							end
						end
					end
				end
			else
				*clr & cla
				'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_drinnking_bar.jpg"></center>'
				'You say a polite ''no'', which he accepts and leaves you in peace.'
				'"Thanks," Katja says. "I didn''t want to talk to some random guy right now."' 
				gs 'katja_nightclub', 'bar_end'
			end
		end
	else
		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_drinnking_bar.jpg"></center>'
		'You spend some time hanging at the bar talking as '+iif(katjaQW['disco_drink_bought'] = 1, 'you and Katja', 'Katja')+' enjoy'+iif(katjaQW['disco_drink_bought'] = 1, ' your drinks.', 's her drink.')+''
		gs 'katja_nightclub', 'bar_end'
	end
end

if $ARGS[0] = 'bar_end':
	gs 'katja_meynold_schedule' 
	if locat['Katja'] ! 53:
		if  katjaQW['disco_arrival'] + 600 < totminut:
			'"It''s getting late, <<$pcs_nickname>>. Let''s go home," Katja says after finishing her drink. It looks like there''s no way to convince her to stay.' 
			act 'Go home with Katja': katjaQW['on_date'] = 1 & gt 'katja_city', 'metro'
			act 'Stay at the nightclub': gt 'city_nightclub', 'bar'
		else
			'"It''s getting late, <<$pcs_nickname>>. I''m heading home," Katja says after finishing her drink. It looks like there''s no way to convince her to stay.' 
			if (npc_sex['A14'] > 0 and katjaQW['sex_clossedness'] < 2) or $home['current'] = 'university_dorm':
				act 'Suggest you go home together': 
					'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
					'"Why don''t we go back together?" you suggest.'
					'"Great idea," she replies.'
					act 'Go home with Katja': katjaQW['on_date'] = 1 & gt 'katja_city', 'metro'
				end
			end
			act 'Say goodbye': gt 'city_nightclub', 'bar'
		end
	else
		if rand(0,8) = 0:
			'After finishing her drink, Katja tells you that she needs to go to the restroom. She says she''ll be back shortly, but that you should just go ahead and start dancing.'
			act 'Let her go': gt 'city_nightclub', 'bar'
		else
			'"Come on, we''ve wasted enough time! Let''s go dance!" she says after finishing her drink.'
			act 'Go dancing with Katja': 
				gs 'npc_relationship', 'modify', 'A14', 'like', 2, 'agree'
				gt 'katja_nightclub', 'dance'
			end
			act 'Tell her that you want to have another drink':
				*clr & cla
				'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
				if rand(-45,15) > katjaQW['dom']:
					'"Okay, we can get another drink," she says and quickly gets the attention of the bartender.'
					act 'Order a drink': gt 'katja_nightclub', 'drink'
				else
					'"I don''t want another drink, I want to dance!" she insists, looking quite determined.'
					if katjaQW['dom'] > 30 or katjaQW['drinks'] < 4:
						gs 'willpower', '', 'force', 'hard'
					elseif katjaQW['dom'] < 0 or katjaQW['drinks'] > 8:
						gs 'willpower', '', 'force', 'easy'
					else
						gs 'willpower', '', 'force'
					end
					if will_cost <= pcs_willpwr:
						act 'Convince her to have another drink (<<will_cost>> Willpower)':
							cla
							gs 'npc_relationship', 'modify', 'A14', 'dislike'
							gs 'willpower', 'pay', 'force'
							katjaQW['dom'] -= rand(1,2)
							gs 'stat'
							'"Just one more drink!" you plead. "You know you want another. Please... There''s plenty of time for dancing later!" Katja finally gives in and quickly gets the attention of the bartender.'
							act 'Order a drink': gt 'katja_nightclub', 'drink'
						end
					else
						act 'Convince her to have another drink (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
					end
					act 'Relent and dance': 
						katjaQW['dom'] += rand(2,3)
						gs 'stat'
						gt 'katja_nightclub', 'dance'
					end
					act 'Tell her she can go dance alone while you stay at the bar':
						katjaQW['dom'] -= rand(0,1)
						gs 'npc_relationship', 'modify', 'A14', 'dislike'
						gs 'stat'						
						gt 'city_nightclub', 'bar'
					end
				end
			end
			act 'Tell Katja that you need to leave': gt 'city_nightclub', 'bar'
		end
	end
end

if $ARGS[0] = 'dance_guy1':
	'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dancing1.jpg"></center>'
	'A guy approaches you and Katja and it''s clear that he wants to join you. He''s rather good looking and wearing nice clothes.'
	act 'Let him join you': gt 'katja_nightclub', 'dance_guy2'
	act 'Don''t let him join':
		cla
		'You make sure to let him know that you don''t want him to join you before you and Katja continue dancing alone, having a lot of fun.'
		gs 'katja_nightclub', 'dance_end'
	end
end

if $ARGS[0] = 'dance_guy2':
	if hotcat < rand(4,12):
		minut += 15
		pcs_stam -= 5
		gs 'sweat', 'add', 3
		fat -= 1
		gs 'exp_gain', 'danc', 1
		frost = 0
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dancing_extra_guy1.jpg"></center>'
		'You dance through several songs, and while he''s a '+iif(rand(0,1) = 0, 'good', 'terrible')+' dancer, he never tries to get too close to either you or Katja. In fact, whenever you try to get closer to him, he always distances himself.'
		'After some time, he thanks you for the dance and excuses himself.'
		'"Well, seems he wasn''t that into us," Katja says with a smile.'
		gs 'katja_nightclub', 'dance_end'
	else
		gt 'katja_nightclub', 'dance_guy3'
	end
end

if $ARGS[0] = 'dance_guy3':
	minut += 15
	pcs_stam -= 5
	gs 'sweat', 'add', 3
	fat -= 1
	gs 'exp_gain', 'danc', 1
	frost = 0
	gs 'arousal', 'foreplay', rand(-5,0) 
	katjaQW['horny'] += rand(0,10)
	'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dancing_extra_guy1.jpg"></center>'
	'You dance through several songs, and he''s clearly into you and and Katja. He dances quite close to you and, from time to time, his hand moves from your back to your ass.'
	if hotcat < rand(0,12):
		gs 'arousal', 'end'
		gs 'stat'
		'After some time, he thanks you for the dance and excuses himself.'
		'"Seems he wasn''t that into us after all," Katja says with a smile.'
		gs 'katja_nightclub', 'dance_end'
	else
		gs 'stat'
		if rand(0,2) = 0:
			'"This is great," he says after you''ve danced for a while. "Let''s keep going!"'  
			act 'Keep dancing with him': gt 'katja_nightclub', 'dance_guy3'
			act 'Find something else to do':
				cla
				gs 'arousal', 'end'
				gs 'stat'
				'"Thanks, but no thanks. We need to get going," you say and look at Katja, who seems to be fine with the idea. He''s clearly not satisfied with your reply, but he doesn''t try to keep you.'
				gs 'katja_nightclub', 'dance_end'
			end
		else
			if rand (0,1) = 0:
				'After some time he suggest that you get some drinks in one of the private booths.'
				if (katjaQW['QWstage'] < 3 and katjaQW['liberated'] = 0) or katjaQW['boy_block'] = 1 or katjaQW['sex_clossedness'] > 0:
					'"Sorry, but we want to keep dancing," Katja says before you have time to respond.'
					'"Okay. Maybe I''ll see you around?" he says and leaves with a disappointed look.'
					if katjaQW['boy_block'] = 1:
						'"I''m sure he just wanted to get in our panties. As if that would ever happen," she snorts.'
					else
						'"I''m sorry, but I''m not really comfortable with us being alone with strange guys," she tells you.'
					end
					gs 'katja_nightclub', 'dance_end'
				else
					act 'Join him':
						cla
						if katjaQW['QWstage'] >= 6 and katjaQW['boy_block'] = 0 and katjaQW['sex_clossedness'] = 0 and katjaQW['horny'] > rand(40,60):
							'You and Katja both end up agreeing at the same time, which causes her to giggle. You''re not sure if it''s because of the awkwardness of the two of you speaking at the same time or the eagerness both of you showed to his proposal.'
							'"Great! Follow me, my ladies," he says and leads you to a private room. The bouncer seems to know him and opens the curtain for you.'
							act 'Go with him': gt 'katja_nightclub_sex', 'private_room1'
						else
							'"Sure," you answer.'
							'However, Katja grabs your shoulder and whispers in your ear. "I''m not going with him. You can go ahead, but I''m staying here."'		
							act 'Go with him alone':
								cla
								'"Suits yourself," you shrug and turn to the guy. "Lead the way."'
								'"Great. Follow me, my lady," he says and leads you to a private room. The bouncer seems to know him and opens the door for you.'
								gs 'npcgeneratec', 0, '', rand(18,55), 4
								gs 'boystat', $npclastgenerated
								gs 'npc_relationship', 'modify', 'A14', 'dislike'
								gs 'stat'
								act 'Have sex with him': picrand = 38 & $sexloc = 'city_nightclub' & xgt 'sex', 'var'
								act 'Leave': gt 'city_nightclub', 'private_rooms'
							end
							act 'Stay with Katja':
								cla
								'"Sorry, but my friend just reminded me that we need to be somewhere else. I hope you understand," you tell him. He looks disappointed, but leaves the two of you alone.'
								'"Thanks. I really didn''t want to have a guy hitting on us right now," she says.'
								gs 'katja_nightclub', 'dance_end'
							end
						end
					end
					act 'Refuse':
						cla
						if katjaQW['QWstage'] >= 6 and katjaQW['boy_block'] = 0 and katjaQW['sex_clossedness'] = 0 and katjaQW['horny'] > rand(40,60):
							'You''re about to tell him no, but Katja says he can join you.'
							'She gives you a surprised look while the man looks confused.'		
							act 'Relent and let Katja decide':
								cla
								katjaQW['dom'] += rand(1,2)
								'"Well, if you want to," you say.'
								'His face lights up. "Great! Follow me, my ladies." He leads you to a private room. The bouncer seems to know him and opens the door for you.'
								act 'Go with the guy': gt 'katja_nightclub_sex', 'private_room1'
							end
							act 'Try to convince Katja to stay':
								*clr & cla
								'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
								'You lean into Katja and whisper in her ear. "I don''t want to go with him. He gives me the wrong vibes."'
								'"I don''t get bad vibes from him. He''s actually quite hot and I think that we should go with him," she answers.'
								if katjaQW['dom'] > 30:
									gs 'willpower', '', 'force', 'hard'
								elseif katjaQW['dom'] < 0:
									gs 'willpower', '', 'force', 'easy'
								else
									gs 'willpower', '', 'force'
								end
								if will_cost <= pcs_willpwr:
									act 'Convince her to stay on the dance floor (<<will_cost>> Willpower)':
										cla
										gs 'npc_relationship', 'modify', 'A14', 'dislike'
										gs 'willpower', 'pay', 'force'
										katjaQW['dom'] -= rand(1,2)
										gs 'stat'										
										'"I really don''t think it''s a good idea to go with him. He seems like a guy that won''t stop if we tell him to when we are alone with him," you whisper.'
										'Katja looks at the guy again and after a moment of thinking, she relents. "Okay. I''m not really convinced that he''s bad, but I''ll stay with you."'
										'She then turns to him. "Sorry, but my friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so I''ll stay with her. Maybe another time?"'
										'He shrugs before leaving, looking very disappointed.'
										gs 'katja_nightclub', 'dance_end'
									end
								else
									act 'Convince her to stay on the dance floor (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
								end
							end
							act 'Relent and go with him':
								cla
								katjaQW['dom'] += rand(1,2)
								'"Well, if you really want to," you say.'
								'His face lights up. "Great! Follow me, my ladies." He leads you to a private room. The bouncer seems to know him and opens the door for you.'
								act 'Go with him': gt 'katja_nightclub_sex', 'private_room1'
							end
							if katjaQW['relationship_talk'] = 1 and katjaQW['faithful'] = 0:
								act 'Let her go with him':
									katjaQW['nightclub_private_room_boy'] = 1
									katjaQW['disco_loc'] = 7
									katjaQW['disco_check_time'] = totminut
									cla
									'"You can go with him if you want to," you shrug.'
									'She looks at you a little skeptical, but then turns to the guy. "My friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so she''s not coming, but I''d love another drink with you."'
									'He lights up and takes her hand before walking away, leaving you alone on the dance floor.'
									act 'Continue': gt 'city_nightclub', 'dance'
								end
							end
						else
							cla
							'"Thanks, but no thanks. I think we''ll stick to dancing," you tell him.'
							'"We had fun, though. Maybe some other time?" Katja asks.' 
							'He leaves you, looking a disappointed.'
							gs 'katja_nightclub', 'dance_end'
						end
					end
				end
			else
				'After some time, he tells you that his place isn''t far from here and suggests that you continue the party there, making it very clear that he''s expecting his bedroom to be the main location.'
				if katjaQW['QWstage'] <= 5 or katjaQW['boy_block'] = 1 or katjaQW['sex_clossedness'] > 0 or func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] < rand (50,100):
					'"No. We''d prefer to stay here and dance," Katja quickly replies in a firm voice, which clearly surprises the guy.'
					if katjaQW['QWstage'] >= 5 and katjaQW['boy_block'] = 0 and katjaQW['sex_clossedness'] = 0:
						act 'Try to convince her to go with him':
							*clr & cla
							'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
							'"Come on, Katja. It''s going to be fun. He''s quite good-looking and '+iif(katjaQW['QWstage'] = 5, 'we talked about you trying to have sex with a guy,', 'I know you do like have a cock inside you,')+'" you whisper in her ear.'
							'Her face turns red. "I don''t know... I''m not sure he''s right for us."'
							if katjaQW['dom'] > 30:
								gs 'willpower', '', 'force', 'hard'
							elseif katjaQW['dom'] < 0:
								gs 'willpower', '', 'force', 'easy'
							else
								gs 'willpower', '', 'force'
							end
							if will_cost <= pcs_willpwr:
								act 'Push her a little more (<<will_cost>> Willpower)':
									cla
									gs 'npc_relationship', 'modify', 'A14', 'dislike'
									gs 'willpower', 'pay', 'force'
									katjaQW['dom'] -= rand(1,2)
									katjaQW['horny'] += 10
									gs 'stat'
									if hour > 10:
										locat['katja_rand2'] = daystart
									else
										locat['katja_rand3'] = daystart -1
									end
									locat['katja_save2'] = 54
									locat['katja'] = locat['katja_save2']
									minut += 10
									'"I know you want his cock. Just imagine it sliding in and out of your tight, wet pussy..." you whisper in her ear and you can see her start squirming.'
									'"Okay. Let''s go," she finally says out loud and the guy''s face lights up. You walk '+iif(temper <20, 'to the wardrobe to get your coats before leaving the club.', 'out into the warm night.')
									act 'Walk to his home': gt 'katja_city_sex', 'walking_home_with_a_guy' 	
								end
							else
								act 'Push her a little more (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
							end
							act 'Let it go':
								cla
								katjaQW['dom'] += rand(2,3)
								gs 'arousal', 'end'
								gs 'stat'
								'You resign yourself and accept Katja''s decision. "Sorry, but my friend doesn''t feel like it, so we''re staying here to dance," you tell him, and he says goodbye and walks away, looking quite sad.' 
								gs 'katja_nightclub', 'dance_end'
							end
							if katjaQW['faithful'] = 0:
								act 'Go home with him alone':
									cla
									gs 'npc_relationship', 'modify', 'A14', 'hate'
									gs 'npcgeneratec', 0, '', rand(18,55), rand(3,4)
									'"Well, I''m going with him. If you don''t want to have fun, then you can stay here alone," you tell her.'
									'Katja almost looks angry. "If you get hurt, then I won''t be able to help you. But whatever," she says before turning around and walking away.'
									'The guy looks a little surprised by the exchange, but takes you under his arm and walks you '+iif(temper <20, 'to the wardrobe to get your coat before leaving the club.', 'out into the warm night.')
									act 'Go with him': gt 'sex_ev_start', 'hookup_npc_home_start'
								end
							end
						end
					end
					act 'Agree and say goodbye to him':
						cla
						gs 'arousal', 'end'
						gs 'stat'
						'You agree with Katja and say goodbye to the guy.'
						gs 'katja_nightclub', 'dance_end'
					end
				else
					if (func('katja_procedural', 'willing_to_be_naughty') >= 100 and katjaQW['horny'] >= 100 and katjaQW['dom'] >= 0) or (katjaQW['dom'] >= 25 and func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] >= 150):
						'"That sounds like a good idea. I''m sure that you have lots of ways to entertain us," Katja says in a seductive voice before you even have time to reply.'
						act 'Go home with him':
							cla
							minut += 10
							if hour > 10:
								locat['katja_rand2'] = daystart
							else
								locat['katja_rand3'] = daystart -1
							end
							locat['katja_save2'] = 54
							locat['katja'] = locat['katja_save2']
							'"I just hope you''re man enough to really entertain a couple of hot girls like us. Let''s go," you say, trying to sound as seductive as Katja. You walk '+iif(temper <20, 'to the wardrobe to get your coats before leaving the club.', 'out into the warm night.')
							act 'Walk to his home': gt 'katja_city_sex', 'walking_home_with_a_guy'
						end
						act 'You don''t want to go home with him':
							*clr & cla
							'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
							'You lean into Katja and whisper in her ear. "I don''t want to go home with him. Who knows what will happen?"'
							'"He''s actually quite hot and I get a good feeling from him. I''m sure nothing we don''t want to happen will happen. Besides, there''s two of us and only one of him, we have nothing to be afraid of," she answers.'
							if katjaQW['dom'] > 30:
								gs 'willpower', '', 'force', 'hard'
							elseif katjaQW['dom'] < 0:
								gs 'willpower', '', 'force', 'easy'
							else
								gs 'willpower', '', 'force'
							end
							if will_cost <= pcs_willpwr:
								act 'Convince her not to go home with him (<<will_cost>> Willpower)':
									cla
									gs 'npc_relationship', 'modify', 'A14', 'dislike'
									gs 'willpower', 'pay', 'force'
									katjaQW['dom'] -= rand(1,2)
									gs 'stat'										
									'"I really don''t think it''s a good idea to go with him. I get the feeling he might have someone waiting for us, and then what''re we going to do?" you whisper.'
									'Katja looks at the guy again and after a moment of thinking, she relents. "Okay. I''m not really convinced that he''s bad, but I''ll stay with you," she answers.'
									'She then turns to him. "Sorry, but my friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so I''ll stay with her. Maybe another time?"'
									'He shrugs before leaving, looking very disappointed.'
									gs 'katja_nightclub', 'dance_end'
								end
							else
								act 'Convince her not to go home with him (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
							end
							act 'Relent and go with him':
								cla
								minut += 10
								if hour > 10:
									locat['katja_rand2'] = daystart
								else
									locat['katja_rand3'] = daystart -1
								end
								locat['katja_save2'] = 54
								locat['katja'] = locat['katja_save2']
								katjaQW['dom'] += rand(1,2)
								'"Well, if you really want to," you say.'
								'His face lights up. "Great! Follow me, my ladies." You walk '+iif(temper <20, 'to the wardrobe to get your coats before leaving the club.', 'out into the warm night.')
								act 'Walk to his home': gt 'katja_city_sex', 'walking_home_with_a_guy'
							end
							if katjaQW['relationship_talk'] = 1 and katjaQW['faithful'] = 0:
								act 'Let her go home with him':
									katjaQW['alone_with_other_day'] = daystart
									if hour > 10:
										locat['katja_rand2'] = daystart
									else
										locat['katja_rand3'] = daystart -1
									end
									locat['katja_save2'] = 54
									locat['katja'] = locat['katja_save2']
									cla
									'"You can go with him if you want," you shrug.'
									'She looks at you a little skeptical, but then turns to the guy. "My friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so she isn''t coming, but I''d love another drink with you."'
									'He then lights up and takes her hand and walks away, leaving you alone on the dance floor.'
									act 'Continue': gt 'city_nightclub', 'dance'
								end
							end
						end
					else
						'Katja looks at you, making it clear that it''s up to you to decide and that she''ll do whatever you choose.'
						act 'Go home with the guy':
							cla
							minut += 10
							if hour > 10:
								locat['katja_rand2'] = daystart
							else
								locat['katja_rand3'] = daystart -1
							end
							locat['katja_save2'] = 54
							locat['katja'] = locat['katja_save2']
							'"That does sound like fun. Let''s go," you say and his face lights up. You walk '+iif(temper <20, 'to the wardrobe to get your coats before leaving the club.', 'out in the warm night.')
							act 'Walk to his home': gt 'katja_city_sex', 'walking_home_with_a_guy' 
						end
						act 'No thanks':
							cla
							gs 'arousal', 'end'
							gs 'stat'
							'"Thanks, but no thanks," you say. "We prefer to stay here and dance."'
							'He clearly looks disappointed, but says goodbye before leaving you and Katja alone on the dance floor.'
							gs 'katja_nightclub', 'dance_end'
						end
					end
				end
			end
		end
	end
end

if $ARGS[0] = 'dance_two_guys1':
	'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dancing1.jpg"></center>'
	'Two men approach you and Katja and it''s clear that they want to join you. They''re rather good looking and wearing nice clothes.'
	act 'Let them join you': gt 'katja_nightclub', 'dance_two_guys2'
	act 'Don''t let them join':
		cla
		'You make sure to let them know that you don''t want them to join you before you and Katja continue dancing alone, having a lot of fun.'
		gs 'katja_nightclub', 'dance_end'
	end
end

if $ARGS[0] = 'dance_two_guys2':
	if hotcat < rand(5,12):
		minut += 15
		pcs_stam -= 5
		gs 'sweat', 'add', 3
		fat -= 1
		gs 'exp_gain', 'danc', 1
		frost = 0
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dancing_extra_guy1.jpg"></center>'
		'You dance through several songs, and while they''re '+iif(rand(0,1) = 0, 'good', 'terrible')+' dancers, they never try to get too close to either you or Katja. In fact, whenever you try to get closer to one of them, he always distances himself.'
		'After some time, they thank you for the dance and excuse themselves.'
		'"Seems they weren''t that into us," Katja says with a smile.'
		gs 'katja_nightclub', 'dance_end'
	else
		gt 'katja_nightclub', 'dance_two_guys3'
	end
end

if $ARGS[0] = 'dance_two_guys3':
	minut += 15
	pcs_stam -= 5
	gs 'sweat', 'add', 3
	fat -= 1
	gs 'exp_gain', 'danc', 1
	frost = 0
	gs 'arousal', 'foreplay', rand(-5,0) 
	katjaQW['horny'] += rand(0,10)
	'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/katja/uni/nightclub/disco_dancing_extra_guy1.jpg"></center>'
	'You dance through several songs, and they''re clearly into you and and Katja. One of them dances quite close to you and, from time to time, his hand moves from your back to your ass.'
	if hotcat < rand(0,12):
		gs 'arousal', 'end'
		gs 'stat'
		'After some time, he thanks you for the dance and excuses himself. He then go to his friend, who''s dancing with Katja, and says something you can''t hear.'+iif(rand(0,2) = 0, ' His friend just nods and', ' He seems not to agree with his friend, but after some back and forth he relents and')+' thanks Katja for the dance before they leave.' 
		'"Seems they weren''t that into us after all," Katja says with a smile.'
		gs 'katja_nightclub', 'dance_end'
	else
		gs 'stat'
		if rand(0,3) = 0:
			'"This is great," he says after you''ve danced for a while. "Let''s keep dancing," he says.'
			'You look over at Katja and her partner and it seems that they''re also ready to dance some more.'  
			act 'Keep dancing with them': gt 'katja_nightclub', 'dance_two_guys3'
			act 'Find something else to do':
				cla
				gs 'arousal', 'end'
				gs 'stat'
				'"Thanks, but no thanks. We need to get going," you say and look at Katja, who seems to be fine with the idea. They''re clearly not satisfied with your reply, but they don''t try to keep you.'
				gs 'katja_nightclub', 'dance_end'
			end
		else
			'After some time, he gets you and Katja close so you both can hear him. He suggests that the four of you continue the party at his place, making it very clear that he and his friend are expecting the bedroom to be the main location of the party.'
			if katjaQW['QWstage'] < 5 or katjaQW['boy_block'] = 1 or katjaQW['sex_clossedness'] > 0 or func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] < rand (50,100):
				*p '"No. We prefer to stay here and dance," Katja quickly replies in a firm voice, which clearly surprises the guy. '
				if katjaQW['QWstage'] > 5 and katjaQW['boy_block'] = 0 and katjaQW['sex_clossedness'] = 0:
					if katjaQW['simultanous_boys'] < 2:
						'She then leans into you and whispers in your ear. "I''ve never been with two guys at once..."'
					else
						''
					end
					act 'Try to convince her to go with them':
						*clr & cla
						'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
						'"Come on, it''ll be fun! They look hot and '+iif(katjaQW['simultanous_boys'] <2, ' if you''ve never been with two guys, then you should defiantly try it.', 'I know you like to have several cocks to play with.')+'" you whisper in her ear.'
						'Her face turns red. "I don''t know. I''m not sure '+iif(katjaQW['simultanous_boys'] <2, 'it''s the right time to try a foursome', 'they''re right for us')+'..."'
						if katjaQW['dom'] > 30:
							gs 'willpower', '', 'force', 'hard'
						elseif katjaQW['dom'] < 0:
							gs 'willpower', '', 'force', 'easy'
						else
							gs 'willpower', '', 'force'
						end
						if will_cost <= pcs_willpwr:
							act 'Push her a little more (<<will_cost>> Willpower)':
								cla
								gs 'npc_relationship', 'modify', 'A14', 'dislike'
								gs 'willpower', 'pay', 'force'
								katjaQW['dom'] -= rand(1,2)
								katjaQW['horny'] += 10
								gs 'stat'
								if hour > 10:
									locat['katja_rand2'] = daystart
								else
									locat['katja_rand3'] = daystart -1
								end
								locat['katja_save2'] = 54
								locat['katja'] = locat['katja_save2']
								minut += 10
								'"I know you want those cocks. Just imagine one of them sliding in and out of your tight, wet pussy, while you look at me bouncing up and down the other cock..." you whisper in her ear and can see her start squirming.'
								'"Okay. Let''s go," she finally says out loud and the men''s faces light up. You walk '+iif(temper <20, 'to the wardrobe to get your coats before leaving the club.', 'out into the warm night.')
								act 'Walk to his home': gt 'katja_city_sex', 'walking_home_with_two_guys' 	
							end
						else
							act 'Push her a little more (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
						end
						act 'Let it go':
							cla
							katjaQW['dom'] += rand(2,3)
							gs 'arousal', 'end'
							gs 'stat'
							'You resign yourself and accept Katja''s decision. "Sorry, but my friend doesn''t feel like it, so we''re staying here to dance," you tell them and they say goodbye before walking away, looking quite sad.' 
							gs 'katja_nightclub', 'dance_end'
						end
						!!if katjaQW['faithful'] = 0:
						!!	act 'Go home with him alone':
						!!		cla
						!!		gs 'npc_relationship', 'modify', 'A14', 'hate'
						!!		gs 'npcgeneratec', 0, '', rand(18,55), rand(3,4)
						!!		'"Well, I''m going with them so if you don''t want to have fun, then you can stay here alone," you tell her.'
						!!		'Katja almost looks angry. "If you get hurt, then I won''t be able to help you. But whatever," she says before turning around and walking away.'
						!!		'The guy looks a little surprised by the exchange, but takes you under his arm and you walk '+iif(temper <20, 'to the wardrobe to get your coat before leaving the club.', 'out into the warm night.')
						!!		act 'Go with him': gt 'sex_ev_start', 'hookup_npc_home_start'
						!!	end
						!!end
					end
				end

				!! Create a linebreak which the *p purposefully did not create.
				*nl

				act 'Agree and say goodbye to them':
					cla
					gs 'arousal', 'end'
					gs 'stat'
					*nl
					'You agree with Katja and say goodbye to the men.'
					gs 'katja_nightclub', 'dance_end'
				end
			else
				if (func('katja_procedural', 'willing_to_be_naughty') >= 100 and katjaQW['horny'] >= 100 and katjaQW['dom'] >= 0) or (katjaQW['dom'] >= 25 and func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] >= 150):
					'"That sounds like a good idea. I''m sure that you two have lots of ways to entertain us," Katja says in a seductive voice before you even have time to reply.'
					act 'Go home with them':
						cla
						minut += 10
						if hour > 10:
							locat['katja_rand2'] = daystart
						else
							locat['katja_rand3'] = daystart -1
						end
						locat['katja_save2'] = 54
						locat['katja'] = locat['katja_save2']
						'"I just hope you''re both man enough to really entertain a couple of hot girls like us. Let''s go," you say, trying to sound as seductive as Katja. You walk '+iif(temper <20, 'to the wardrobe to get your coats before leaving the club.', 'out into the warm night.')
						act 'Walk to his home': gt 'katja_city_sex', 'walking_home_with_two_guys'
					end
					act 'You don''t want to go home with them':
						*clr & cla
						'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big14.jpg"></center>'
						'You lean into Katja and whisper in her ear. "I don''t want to go home with them. Who knows what will happen?"'
						'"They''re actually quite hot and I get a good feeling from them. I''m sure nothing we don''t want to happen will happen. I''ll protect you if they try to do something we don''t want," she answers while trying to look tough.'
						if katjaQW['dom'] > 30:
							gs 'willpower', '', 'force', 'hard'
						elseif katjaQW['dom'] < 0:
							gs 'willpower', '', 'force', 'easy'
						else
							gs 'willpower', '', 'force'
						end
						if will_cost <= pcs_willpwr:
							act 'Convince her not to go home with them (<<will_cost>> Willpower)':
								cla
								gs 'npc_relationship', 'modify', 'A14', 'dislike'
								gs 'willpower', 'pay', 'force'
								katjaQW['dom'] -= rand(1,2)
								gs 'stat'										
								'"I really don''t think it''s a good idea to go with them. I got a really bad feeling from the guy I was dancing with. You can play tough, but you know damn well that we won''t be able to do anything if they get violent!" you whisper.'
								'Katja looks at the man you were dancing with again and after a moment of thinking, she relents. "Okay. I''m not really convinced that they''re bad, but I''ll stay with you," she answers.'
								'She then turns to them. "Sorry, but my friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so I''ll stay with her. Maybe another time?"'
								'They both leave, looking very disappointed.'
								gs 'katja_nightclub', 'dance_end'
							end
						else
							act 'Convince her not to go home with him (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
						end
						act 'Relent and go with them':
							cla
							minut += 10
							if hour > 10:
								locat['katja_rand2'] = daystart
							else
								locat['katja_rand3'] = daystart -1
							end
							locat['katja_save2'] = 54
							locat['katja'] = locat['katja_save2']
							katjaQW['dom'] += rand(1,2)
							'"Well, if you really want to," you say.'
							'Their faces lights up. "Great! Follow me, my ladies," the guy you were dancing with says and you walk '+iif(temper <20, 'to the wardrobe to get your coats before leaving the club.', 'out into the warm night.')
							act 'Walk to his home': gt 'katja_city_sex', 'walking_home_with_two_guys'
						end
						if katjaQW['relationship_talk'] = 1 and katjaQW['faithful'] = 0:
							act 'Let her go home with them':
								'"You can go with them if you want, but I''m staying here," you shrug.'
								if katjaQW['simultanous_boys'] <2:
									'Katja looks at you a little panicked. "But I''ve never been with two guys before! Come with me, please!" she pleads, but seeing that you won''t relent, she turns to the guys. "Sorry, but my friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so I''ll stay with her. Maybe another time?"'
									'They both leave, looking very disappointed.'
									gs 'katja_nightclub', 'dance_end'
								else
									katjaQW['alone_with_other_day'] = daystart
									if hour > 10:
										locat['katja_rand2'] = daystart
									else
										locat['katja_rand3'] = daystart -1
									end
									locat['katja_save2'] = 54
									locat['katja'] = locat['katja_save2']
									cla
									'She looks at you a little skeptical, but then turns to the men. "My friend '+iif(func('katja_procedural', 'willing_to_be_naughty') + katjaQW['horny'] > 175, 'is boring', 'doesn''t feel like it')+', so she isn''t coming, but I''d love another drink with you."'
									'Their faces light up and they take her hands and walk away, leaving you alone on the dance floor.'
									act 'Continue': gt 'city_nightclub', 'dance'
								end
							end
						end
					end
				else
					'Katja looks at you, making it clear that it''s up to you to decide and that she''ll do whatever you choose.'
					act 'Go home with the men':
						cla
						minut += 10
						if hour > 10:
							locat['katja_rand2'] = daystart
						else
							locat['katja_rand3'] = daystart -1
						end
						locat['katja_save2'] = 54
						locat['katja'] = locat['katja_save2']
						'"That does sound like fun. Let''s go," you say and their faces light up. You walk '+iif(temper <20, 'to the wardrobe to get your coats before leaving the club.', 'out into the warm night.')
						act 'Walk to his home': gt 'katja_city_sex', 'walking_home_with_two_guys' 
					end
					act 'No thanks':
						cla
						gs 'arousal', 'end'
						gs 'stat'
						'"Thanks, but no thanks," you say. "We''d prefer to stay here and dance."'
						'They clearly look disappointed, but say goodbye before leaving you and Katja alone on the dance floor.'
						gs 'katja_nightclub', 'dance_end'
					end
				end
			end
		end
	end
end

--- katja_nightclub ---------------------------------

