# nerd_game_night
!!2022/03/17
!!
!!SMS update: ---Anjuna
!!2023/09/06

!!
if $ARGS[0] = 'cikl':
	!! Set the days for the game after the player have aggreed to a weekly day after school is over.
	if nerd_game['fixed_uni_day'] = week: nerd_game['game_day'] = daystart
end

!! Feofan is the Game Master. Artem, Gerasim, Petka, Julia and Zin all play.
if $ARGS[0] = 'game':
	$location_type = 'public_indoors'
	frost = 0
	gs 'themes', 'indoors'
	if nerd_game['stage'] = 0:
		gt 'nerd_game_night', 'game_night1'
	elseif nerd_game['stage'] = 1:
		gt 'nerd_game_night', 'game_night2'
	elseif nerd_game['stage'] = 2:
		gt 'nerd_game_night', 'game_night3'
	elseif nerd_game['stage'] = 3:
		gt 'nerd_game_night', 'game_night4'
	elseif nerd_game['stage'] = 4:
		gt 'nerd_game_night', 'game_night5'
	else
		gt 'nerd_game_night', 'board_games'
	end
end

!! Foefan approaches during break
if $ARGS[0] = 'invite':
	if $ARGS[1] = 'exit':
		act 'Continue down the hall':
			if $temp_loc = 'morning':
				killvar '$temp_loc' & gt 'gschool_lessons', 'morning'
			elseif $temp_loc = 'lunch':
				killvar '$temp_loc' & gt 'gschool_events', 'leave_break_events2'
			else
				killvar '$temp_loc' & gt 'gschool_lessons', 'short_break'
			end
		end
	else
		menu_off = 1
		*clr & cla
		minut += 2
		!! in order to return Sveta to the correct location
		$temp_loc = $ARGS[1]
		!! In order to avoid loops or complex if-else trees a random combination of days (Mon-Thu 1-4) is picked. The first day is set as the first number from the combination, the second day as the second.
		temp = func('shortgs', 'rand_pick', '', 12, 13, 14, 23, 24, 34)
		nerd_game['invite_day'] = daystart
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
		'You stop by your locker and Feofan walks over to you and smiles. "Hey <<$pcs_nickname>>, we do a weekly game night where we mostly play Dungeons and Dragons, but we sometimes play some board games. I was talking to the others and we were wondering if you would like to join us? We have a few nights free this week and were wondering which night works best for you. We can do it either on <<$week[val(mid(temp,1,1))]>> or <<$week[val(mid(temp,2,1))]>>."'
		act 'Not interested <br><font color="red">This will block this story arc.</font>':
			nerd_game['invite_day'] = 2147483647 & ! block the event
			*clr & cla
			minut += 2
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
			'You shake your head. "Sorry, but I''m not interested in stuff like that. Thanks for the invite though."'
			'He looks disappointed "Oh... Okay, yeah I get it. Well, I guess we''ll see you around..." he mumbles before walking away.'
			gs 'nerd_game_night', 'invite', 'exit'
		end
		act 'I have to study':
			*clr & cla
			minut += 2
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
			'You shake your head. "Sorry, but I can''t this week. My <<$npc_nickname[''A29'']>> is on my ass about my grades and I''m going to have to put in extra studying this week."'
			'He looks disappointed "Oh... Okay, yeah I understand. Parents, am I right? Uh yeah... Anyway, I''ll go let the others know and maybe you can come next week? Talk to you later." He walks away before you can reply.'
			gs 'nerd_game_night', 'invite', 'exit'
		end
		act 'I''m busy':
			*clr & cla
			minut += 2
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
			'You shake your head. "Sorry, but I can''t this week. I already made plans for those days."'
			'He looks disappointed. "Oh... Okay. I guess you''re turning into a popular girl, huh?" he says with a grin.'
			'You shake your head. "Very funny."'
			'He laughs a little. "Anyway, I''ll go let the others know and maybe you can come next week? Talk to you later." He walks away before you can reply.'
			gs 'nerd_game_night', 'invite', 'exit'
		end
		act '<<$week[val(mid(temp,1,1))]>>':
			*clr & cla
			minut += 2
			nerd_game['game_day'] = daystart - week + val(mid(temp,1,1))
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
			'"Sure, I can make it on <<$week[val(mid(temp,1,1))]>>," you reply.'
			'He looks excited. "Great! I''ll see you on <<$week[val(mid(temp,1,1))]>> at 20:00 in the library then! Be ready to get your nerd on, because we''re going to rock it so hard!" he says with a cheesy wink and double finger point before walking away.'
			gs 'nerd_game_night', 'invite', 'exit'
		end
		act '<<$week[val(mid(temp,2,1))]>>':
			*clr & cla
			minut += 2
			nerd_game['game_day'] = daystart - week + val(mid(temp,2,1))
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
			'"Sure, I can make it on <<$week[val(mid(temp,2,1))]>>," you reply.'
			'He looks excited. "Great! I''ll see you on <<$week[val(mid(temp,2,1))]>> at 20:00 in the library then! Be ready to get your nerd on, because we''re going to rock it so hard!" he says with a cheesy wink and double finger point before walking away.'
			gs 'nerd_game_night', 'invite', 'exit'
		end
	end
end

if $ARGS[0] = 'game_night1':
	*clr & cla
	nerd_game['stage'] = 1
	menu_off = 1
	minut += 180
	grupvalue[3] += 1
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
	if grupTipe['joined_nerds'] = 1:
		'Upon entering the room, everyone freezes and looks your way. You can feel the anxious gazes as you greet the group sitting around the table that has a large map spread across it, along with small figures, various papers and books, and lots and lots of dice.'
		'Just as you''re about to ask what they''re doing, Feofan speaks up. "Welcome to our little game night <<$pcs_nickname>>! Please take a seat and I''ll explain the rules to you."'
		'The empty seat is next to Julia, who smiles warmly at you and scoots a little closer to help explain things to you.'
		'As you take your seat, Feofan tells you an incredible background story as he builds up the game world so you can be fully immersed. You''re handed a character sheet and a pencil as he continues explaining what the game is all about.'
		'You hear a few sighs as Feofan passionately continues. "Why does it always end up like this? Let''s get on with the game already!" Petka exclaims.'
		gs 'nerd_game_night', 'group_rel_change','nerds', 1
	elseif $loc = 'city_coffee_hole':
		'Upon entering the Coffee Hole, you can see the nerds have claimed a large table in the back corner. As you make your way over to them, you can''t help but notice Anushka working the counter. As you join them, you can feel the anxious gazes as you greet the group sitting around the table that has a large map spread across it, along with small figures, various papers and books, and lots and lots of dice.'
		'Just as you''re about to ask what they''re doing, Feofan speaks up. "Welcome to our little game night, <<$pcs_nickname>>! Please take a seat and I''ll explain the rules to you."'
		'The empty seat is next to Julia, who she smiles warmly at you and scoots a little closer to help explain things to you.'
		'As you take your seat, Feofan tells you an incredible background story as he builds up the game world so you can be fully immersed. You''re handed a character sheet and a pencil as he continues explaining what the game is all about.'
		'You hear a few sighs as Feofan passionately continues. "Why does it always end up like this? Let''s get on with the game already!" Petka exclaims.'
	else
		'Upon entering the room, everyone freezes and looks your way before you are given warm smiles and waved over. Feofan is sitting at one end of the table with some type of screen partially obscuring him while Artem, Petka and Gerasim sit on one side of the table and Julia and Zinaida sit on the opposite side. A large map is spread across the table, along with small figures, various papers and books, and lots and lots of dice.'
		'Before you can ask anything Feofan speaks up, "Welcome to our little game night <<$pcs_nickname>>! Please take a seat and I''ll explain the rules to you."'
		'The empty seat is next to Julia, who smiles warmly at you and scoots a little closer to help explain things to you.'
		'As you take your seat, Feofan tells you an incredible background story as he builds up the game world so you can be fully immersed. You''re handed a character sheet and a pencil as he continues explaining what the game is all about.'
		'You hear a few sighs as Feofan passionately continues. "Why does it always end up like this? Let''s get on with the game already!" Petka exclaims.'
	end
	gs 'stat'
	act 'Introduction':
		*clr & cla
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/character.jpg"></center>'
		'Feofan glances at Petka and sighs. "Anyway, I should tell you a little something about your fellow adventurers. Artem is playing a Dwarven male Fighter, Gerasim is playing a half-orc male Ranger, Julia is playing a Human female Cleric of the Lady of Morning, Zinaida is playing a Human male Fighter and Petka <i>was</i> playing a Halfling male Rogue, but he got killed last game session and wants to try something different, so now he''s a Half Elven female Wizard."'
		'You nod and continue listening as he explains a little about what each of them can do. It sounds like they''re mostly able to fight, heal, cast damaging spells or buff up the other characters, which makes sense from what little you know about the game. "So what the group could really use is a Rogue. I made one up for you to help you get started. She is a human Rogue who is quick and agile, but also beautiful and charismatic. This will help the group when dealing with social situations. Don''t worry, she can fight too! Her ability is to sneak up to or around enemies and deliver devastating back stabs. So what do you think?" The whole group looks at you, waiting for your reply.'
		act 'Sounds like fun':
			*clr & cla
			gs 'npc_relationship', 'modify', 'A2', 'like'
			gs 'npc_relationship', 'modify', 'A6', 'like'
			gs 'npc_relationship', 'modify', 'A153', 'like'
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/rogue.jpg"></center>'
			'You take the folder he has made. You look inside and find a character sheet with a small background for your character, along with a full color printed image of what you can only guess is what your character is supposed to look like. You can''t help but smile at the amount of skin showing and how pretty the girl is. "Sure, sounds like a lot of fun. I can''t wait, so let''s get going!"'
			act 'Game on': gt 'nerd_game_night', 'game_on'
		end
		act 'If that is what the group needs':
			*clr & cla
			grupvalue[3] += 1
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/rogue.jpg"></center>'
			'You take the folder he has made. You look inside and find a character sheet with a small background for your character, along with a full color printed image of what you can only guess is what your character is supposed to look like. You cringe at the revealing clothes your character is wearing and wonder if you could get less revealing armor at some point. "Okay, if that''s what the group needs. I''m just learning and want to help as much as I can."'
			'You get some smiles of encouragement from the others. "Don''t worry, you''ll do great! It''s really not that hard to learn, so let''s get started!" Feofan says.'
			act 'Game on': gt 'nerd_game_night', 'game_on'
		end
	end
end

if $ARGS[0] = 'game_on':
	menu_off = 1
	act 'Game on':
		*clr & cla
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/playing.jpg"></center>'
		'Feofan clears his throat. "Now then, the last time we stopped at the turn when Zinaida was supposed to make her move."'
		'Artem sighs deeply. "Do we need to have this discussion again? It''s obvious that we should attack the dragon. She is our tank after all."'
		'Gerasim looks a little irritated. "We should buff the warrior first before taking on the dragon. It''s a more sound strategy."'
		'Artem sighs again. "And if the dragon hears Julia casting, it will attack us first! We should attack now while we still have the element of surprise."'
		'The whole room erupts in a frenzy with everyone talking over each other to get their point across. Feofan tries to calm everyone down, but it''s futile. After a while, they decide that they should vote on what to do next.'
		'"How about we let <<$pcs_nickname>> decide? She''s new and should be objective," Artem suggests and the others nod approvingly.'
		'You first ask what they mean by buffing and learn that it will make Zinaida''s character tougher and able to take more damage.'
		act 'Side with Artem':
			*clr & cla
			gs 'npc_relationship', 'modify', 'A2', 'like'
			gs 'npc_relationship', 'modify', 'A153', 'dislike'
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big2.jpg"></center>'
			'You think about it for a few seconds before answering. "I think Artem is right. The element of surprise shouldn''t be wasted."'
			'"See? I told you I was making sense!" Artem proudly proclaims. You notice Gerasim frowning and Zinaida doesn''t seem too happy either, but Petka seems exicted by your decision.'
			act 'Continue': gt 'nerd_game_night', 'keep_playing_on1'
		end
		act 'Side with Gerasim':
			*clr & cla
			gs 'npc_relationship', 'modify', 'A2', 'dislike'
			gs 'npc_relationship', 'modify', 'A153', 'like'
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big153.jpg"></center>'
			'You think about it for a few seconds before answering. "I think it''s more important to make Zindaida''s character as tough as we can, so she can survive the dragon''s attack."'
			'"See? I told you I was making sense!" Gerasim proudly proclaims. Zinaida also seems to like your decision, as does Julia, while Artem shakes his head slightly and Petka sighs.'
			act 'Continue': gt 'nerd_game_night', 'keep_playing_on1'
		end
		act 'Side with no one':
			*clr & cla
			gs 'npc_relationship', 'modify', 'A2', 'dislike'
			gs 'npc_relationship', 'modify', 'A153', 'dislike'
			npc_rel['A2'] -= 1
			npc_rel['A153'] -= 1
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
			'You excuse yourself as you explain that it wouldn''t be fair for you to make this kind of decision as you''re new at this and don''t even know how tough a dragon is, though it sounds dangerous. "I mean, it''s a dragon right? Should we even be attacking it? Can we win?"'
			'They assure you that it''s something the group can beat, but only if only they take it by surprise or are ready with buffs, which launches yet another heated debate. They go back and forth until Feofan demands they decide and they take a vote. Gerasim, Julia and Zinaida vote to buff up first while Artem and Petka vote to attack now. The two boys sigh and mutter about how it''s going to be harder now as Julia''s character starts buffing up Zinaida''s character.'
			act 'Continue': gt 'nerd_game_night', 'keep_playing_on1'
		end
	end
end

if $ARGS[0] = 'keep_playing_on1':
	menu_off = 1
	*clr & cla
	pcs_mood += 10
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/playing.jpg"></center>'
	'The battle with the dragon begins and Feofan weaves a scary sounding battle as everyone takes turns taking an action. At one point, most of the group is down, with only Julia and Petka''s characters still up. Julia is trying to heal Zinaida and Artem''s characters, while Petka''s sorceress is trying to cast a powerful spell. It looks like the dragon is about to finish them off, but you''ve managed to sneak around behind the dragon while it focuses on the rest of the party. At this point, you decide to try out your back stab ability Feofan told you about. "I want to back stab the dragon."'
	'Feofan looks surprised at first. "You have to be behi... Oh." He looks at the figures on the map and notices your rogue directly behind the dragon.'
	'"Yes!" Artem exclaims and several of the others acknowledge what you''ve done, which makes you feel good about yourself, even if it is over a game.'
	'Feofan nods with a smile. "Okay then. Roll your attack, <<$pcs_nickname>>."'
	act 'Roll the dice':
		*clr & cla
		temp = rand(1,20)
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/rollingdice.jpg"></center>'
		if temp = 20:
			pcs_mood += 20
			'You roll the dice and the 20 comes up. You hear a slight gasp go around the table, but aren''t sure what happened as everyone but Feofan smiles. "You got a critical strike," he informs you. You think that''s a good thing as you roll your dice damage.'
			'Feofan checks his notes, then double checks them. "As the dragon rears back to let loose it''s fiery breath, <<$pcs_nickname>>''s rogue spots a weak point between two of it''s scales. Lunging forward, she buries her sword into the dragon. It roars in pain and thrashes about tossing you aside, but you manage to land and roll safely, taking no damage. The dragon falls over and moves no more..." The rest of the group cheers and congratulates you on killing the dragon, and you can''t help but feel good about it.'
		elseif temp => 11:
			pcs_mood += 10
			'You roll the dice and Feofan checks the numbers. "You managed to land a backstab on the dragon. Roll your damage." You think that''s a good thing as you roll your dice damage.'
			'Feofan checks his notes. "As the dragon rears back to let lose it''s fiery breath, <<$pcs_nickname>>''s rogue lunges forward, scoring a back stab on the dragon. It roars in pain and thrashes about tossing you aside, but you manage to land and roll safely, taking no damage. The dragon turns on you and tries to bite you..." More dice are rolled and you manage to dodge the dragon. Your distraction allows Julia to heal both Zinaida and Artem and buys enough time for Petka to finish casting his sorceress''s most powerful spell, which causes a great deal of damage. With combined attacks from the rest of the group, the dragon is finally defeated. The group congratulates you on landing a powerful hit and distracting the dragon, and you can''t help but feel good about it.'
		else
			pcs_mood += 5
			'You roll the dice and Feofan checks the numbers. "Your weapon hits the dragon''s scales, but fails to pierce them."'
			'Feofan checks his notes. "As the dragon rears back to let lose it''s fiery breath, <<$pcs_nickname>>''s rogue lunges forward, but fails to damage the dragon. The dragon then turns on you and tries to bite you..." More dice are rolled and you manage to dodge the dragon. Your distraction allows Julia to heal both Zinaida and Artem and buys enough time for Petka to finish casting his sorceress''s most powerful spell, which causes a great deal of damage. With combined attacks from the rest of the group, the dragon is finally defeated. The group congratulates you on distracting the dragon, and you can''t help but feel good about it.'
		end
		gs 'stat'
		act 'Finish the game night':
			*clr & cla
			pcs_mood += 20
			gs 'exp_gain', 'prcptn', rand(1,2)
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
			if $loc = 'city_coffee_hole':
				'The dragon defeated, wounds are tended to and the lair is searched. Being the rogue, you do most of the searching and exploring of the large lair while the rest heal and recover from the fight. After a while, you get into the game as some of the rules become clearer and you''re able to enjoy yourself.' 
				'"Have fun killing the dragon, nerds?" The voice causes everyone to stop and look up to see Anushka watching with a teasing smile on her face.'
				'Feofan finally responds. "How did you..." he asks, a little confused.'
				'Anushka smiles. "How did I know you guys just pretended to kill a dragon? Because you guys are so fucking loud that I can hear you over at the counter! <i>Everyone</i> can hear you!" She indicates the rest of the coffee shop and a few of the nerds blush.'
				act 'Look around':
					*clr & cla
					'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/anushka/nush_model/sveta_photographer/coffee_hole/pose1.jpg"></center>'
					'Feofan just grins at her. "Sorry! We can get carried away sometimes since it''s really fun."'
					'She just scoffs. "I''m sure... Anyway, you guys know the rules. You need to order something," she says while indicating to the clock on the wall. The others mutter and just about everyone orders something.'
					'As Anushka leaves with the order, Artem looks at you. "We have to order something every few hours. That''s the deal we made with the owner to let us play here," he says with a shrug.'
					*nl
					'Anushka returns a few minutes later and gives everyone their order. "It sounded like you kept that dragon focused on you so the rest could kill it," she tells Gerasim while handing him his order.'
					'He looks up to her and smiles. "It was a group effort."'
					'She just shakes her head slightly and continues serving. "Your Elven Ladyship," she says teasingly to Petka, loud enough for everyone to hear. "Well, have fun nerds. Just remember to clean up after yourselves."'
					act 'Back to the game':
						*clr & cla
						'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
						'Once Anushka is gone, you all get back into the game. The rest continue with their special banter and the discussions are quite intensive, forcing you to take small breaks.'
						'Feofan tries his best to be a good game leader, but sometimes even he can''t keep his head cool and gets carried away as he passionately discusses the game world.'
						'The time quickly flies by before Feofan interrupts and stops the game as it''s getting late and he has to get back to the dorm.'
						*nl
						'You hear a disappointing sigh go through the room as everybody stops and closes their handbooks. The group is still buzzing and you chat for some time about the twists and turns during one of the encounters.'
						'As you''re about to leave, Feofan speaks up. "Don''t worry, we''ll continue this story event next time." He then turns to you. "It was fun having you around, <<$pcs_nickname>>. I hope you had fun and will join us again next time." The group then gather up their books and walk out of the shop. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
						act 'Leave': gt 'city_coffee_hole', 'inner'
						act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
					end
				end
			else
				'The dragon defeated, wounds are tended to and the lair is searched. Being the rogue, you do most of the searching and exploring of the large lair while the rest heal and recover from the fight. After a while, you get into the game as some of the rules become clearer and you''re able to enjoy yourself. They continue with the special banter and the discussions are quite intensive, forcing you to take small breaks.'
				'Feofan tries his best to be a good game leader, but sometimes even he can''t keep his head cool and gets carried away as he passionately discusses the game world.'
				'The time quickly flies by before Feofan interrupts and stops the game as it''s getting late and he has to get home.'
				*nl
				'You hear a disappointing sigh go through the room as everybody stops and closes their handbooks. The group is still buzzing and you chat for some time about the twists and turns during one of the encounters.'
				'As you''re about to leave, Feofan speaks up. "Don''t worry, we''ll continue this story event next time." He then turns to you. "It was fun having you around, <<$pcs_nickname>>. I hope you had fun and will join us again next time." The group then gather up their books and head out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
				act 'Leave': gt 'pav_commcenter', 'lobby'
				act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
			end
		end
	end
end


if $ARGS[0] = 'game_night2':
	*clr & cla
	nerd_game['stage'] = 2
	menu_off = 1
	minut += 180
	grupvalue[3] += 1
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
	'You find the rest of your friends already present as you arrive. "Alright, settle down!" Feofan yells out as the group takes a seat around the game table. Feofan has prepared the game table and the figurines are neatly placed over the board.'
	'"Does everyone remember where we left off the last time we played?" he inquires while looking around the table. Most of you nod confidently while some take a more careful approach. "We slayed the dragon, right?" Artem asks while looking around the room.'
	*nl
	'"That''s right!" Feofan replies as he starts handing out the character sheets. "Now then, you''ve beaten the dragon and explored its lair, finding its gold and some trinkets. They say that the gold is cursed and your party might potentially suffer dire consequences." Feofan shivers in his voice as he speaks.'
	'"Oh we''re definitely taking the treasure!" Petka exclaims. "We need it to buy new gear in the village and I feel like it''s worth the risk." Some of the group nod in agreement while others frown.'
	'"I don''t think that''s a smart idea," Julia speaks up. "Let''s just take the trinkets and see what we can do with them. We''ll probably be able to sell these for quite the profit..."'
	*nl
	'Artem lets out a deep sigh. "Always going with these safe choices! Why not live it up a little?! The game is getting stale and I really want to feel overpowered for once!"'
	'The two of them bicker back and forth and get nowhere, causing Feofan step in to break it up. "You''ll have to decide on what to do..."'
	'You all decide to do a vote and everyone starts voting on how to proceed. Gerasim can''t make up his mind and decides that his character wouldn''t vote. It''s neck and neck and before you know it, you have the deciding vote. Everyone watches you, expecting a decisive vote.'
	act 'Grab all the loot':
		*clr & cla
		gs 'npc_relationship', 'modify', 'A2', 'like'
		gs 'npc_relationship', 'modify', 'A12', 'dislike'
		nerd_game['tookgold'] = 1
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/treasure.jpg"></center>'
		'"Artem is right, let''s take all the gold. We can get a lot more gear and take on more powerful challenges. I vote that we grab all the loot and head towards the village." You''re quite confident in your decision and the others abide by it.'
		'"That''s settled then," Feofan proclaims. "You grab all the loot and head out of the cave, straight toward the village without a care as to what might await you..."'
		act 'Continue': gt 'nerd_game_night', 'keep_playing_on2'
	end

	act 'Just grab the trinkets':
		*clr & cla
		gs 'npc_relationship', 'modify', 'A2', 'dislike'
		gs 'npc_relationship', 'modify', 'A12', 'like'
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/treasure.jpg"></center>'
		'"No, Julia is right. We shouldn''t take the risk. If the gold really is cursed, then that sounds really bad." You look towards Julia and she nods in agreement.'
		'"This sucks so hard..." Artem mutters in disappointment and Petka nods in agreement.'
		'"The vote has been cast," Feofan proclaims. "You grab the trinkets and before you know it, you''re leaving the cave. You turn and notice the gold still glimmering, ready to be grabbed..."'
		act 'Continue': gt 'nerd_game_night', 'keep_playing_on2'
	end
end

if $ARGS[0] = 'keep_playing_on2':
	menu_off = 1
	*clr & cla
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/camp.jpg"></center>'
	'You continue walking towards the nearby village as Feofan vividly describes the areas that you pass through. You travel for several days, only stopping to eat and make camp at night. Feofan makes it sound both beautiful and grueling before he announces the group is less than a day from town, but night will fall before you can get there. He describes a clearing at the edge of a forest with a river of fresh water just beyond the trees.'
	*nl
	'Gerasim makes a few rolls for survival. "I think it''s best we stop for the night and camp, instead of pushing through the night." The group starts discussing if they should make a stop or try and press on through the night, eventually deciding that it would be safer to listen to the Ranger and stop for the night. As everyone starts setting up camp, you ask Feofan a question. "You said there was a river nearby, yes?"'
	'He nods. "Yes, you set up camp just at the edge of the trees. The river is just a short walk beyond them."'
	*nl
	'Everyone is silent, not understanding why you''re asking. "What? None of us have bathed in days! That''s just gross! I thought we were role-playing; imagine what our characters smell like!"' 
	'Everyone quickly agrees that it makes sense and that they never really thought about it until you brought it up. They also explain how they normally don''t worry about stuff like that.'
	act 'Stay in camp':
		*clr & cla
		gs 'exp_gain', 'prcptn', rand(1,2)
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/camp.jpg"></center>'
		if $loc = 'city_coffee_hole':
			'You decide that maybe that is a bit too much realism and decide to stay in camp, feeling a little embarrassed for suggesting it. The party soon has the camp set up and eats dinner.'
			'"If I was playing, I would have totally gone down to the river to bathe." The voice causes everyone to stop and look up to see Anushka watching with a teasing smile on her face.'
			'Feofan grins at her. "Well, if you ever want to join us, it''s really fun."' 
			'Several of the others look uncomfortable at Feofan offering to let Anushka play with them.'
			act 'Wait to hear what Anuhska says':
				*clr & cla
				'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/anushka/nush_model/sveta_photographer/coffee_hole/pose1.jpg"></center>'
				'She just giggles slightly. "I''m sure, but I don''t have the time. Anyway, you guys know the rules. You need to order something," she says while indicating the clock on the wall. Most of the others seem relieved when Anushka turns Feofan down and just about everyone orders something.'
				'Anushka returns a few minutes later and gives everyone their order. "It sounds like your character is some kind of wilderness master," she tells Gerasim when handing him his order.'
				'He looks up to her and smiles. "He''s like Aragorn from Lord of the Rings."'
				*nl
				'She nods slightly, apparently knowing who that is. "Oh, he is a hottie..." Gerasim blushes at her comment, but you can''t help but feel there''s more to it than it seems. Is she flirting with him?'
				'"So do you play a girl because you''re curious what it''s like to be fucked like one?" she asks Petka while serving him.'
				'He blushes bright red and stammers. "What?! No! I just... I mean...." He''s totally flustered by her question and you notice Zinaida smiling slightly at the interaction. Petka''s reaction makes Anushka grin, having gotten the reaction she was hoping for. "Well, have fun nerds. Just remember to clean up after yourselves."'
				act 'Back to the game':
					*clr & cla
					'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
					'Once Anushka is gone, you all get back into the game. The group banter back and forth as their characters talking about what they plan to spend their share of the treasure on, before deciding the order of who is on watch during the night. After that, everyone takes their turn on watch as Petka recieves a ribbing about what Anushka said about his choice of character.'
					'"We''re out of time," Feofan announces and you and the group let out a sigh. "Don''t worry, there are lots of adventures left to explore. We''ll pick it up next time." The group then gather up their books and walk out of the shop. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
					act 'Leave': gt 'city_coffee_hole', 'inner'
					act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
				end
			end
		else
			'You decide that maybe that is a bit too much realism and decide to stay in camp, feeling a little embarrassed for suggesting it. The party soon has the camp set up and eats dinner. The group banter back and forth as their characters talking about what they plan to spend their share of the treasure on, before deciding the order of who is on watch during the night. After that, everyone takes their turn on watch until morning.'
			'"We''re out of time," Feofan announces and you and the group let out a sigh. "Don''t worry, there are lots of adventures left to explore. We''ll pick it up next time."'
			act 'Leave': gt 'pav_commcenter', 'lobby'
		end
	end
	act 'Go to the river and bathe':
		*clr & cla
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/bathing.jpg"></center>'
		'You smile at their reactions. "Well, if we''re supposed to pretend to be these characters, then I would desperately want to bathe and clean up if I was her. Okay, my character is going to go down to the river and take a bath." Feofan describes the beautiful river running through the forest and the sounds of the animals. You pick a nice spot, fairly close to the camp but far enough away to not be seen, and have your character strip naked and get ready to bathe in the river. You notice Petka pass Feofan a note, who reads it with a smile and asks you to roll some dice.'
		'Feofan pauses dramatically after your dice roll. "Just after you get undressed, you''re about to wade into the river when you suddenly hear the snapping of a twig, like someone, or <i>something</i> is behind you. What do you do?"'
		act 'Grab your sword':
			*clr & cla
			gs 'exp_gain', 'prcptn', rand(1,2)
			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/bathing_confront.jpg"></center>'
			if $loc = 'city_coffee_hole':
				'"I grab my sword and tell whoever is there to show themselves now," you reply.'
				'Petka sighs. "Sorry, I just wanted to check on you. I didn''t mean to scare you."'
				'Feofan then describes how your character is standing naked in front of Petka''s with only her sword in hand. "<<$pcs_nickname>>..... Naked?" Petka blurts before blushing when he realizes what he said. "I-I meant her character!"'
				'"What a perv. Can''t you just stare at <i>real</i> naked girls online?" The voice causes everyone to stop and look up to see Anushka watching with a teasing smile on her face.'
				'Petka blushes bright red, looking like a little boy caught watching porn. "I... I..." he stammers, not knowing what to say.'
				act 'Wait to hear what Anuhska says':
					*clr & cla
					'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/anushka/nush_model/sveta_photographer/coffee_hole/pose1.jpg"></center>'
					'She just giggles and shakes her head. "Whatever, perv." She then addresses the rest of you. "Anyway, you guys know the rules. You need to order something," she says while indicating to the clock on the wall. There''s a bit of muttering as most don''t seem to like that she keeps interrupting them, but they still order something.'
					'Anushka returns a few minutes later and gives everyone their order. "Sounds like the half elf is feeling randy," she says to Gerasim while indicating Petka. "Bet you could bang her, if you tried."'
					'He looks up to her and blushes. "Maybe. I never really thought about it."'
					*nl
					'She grins at his reply. "I bet she would love a big orc dick." She''s talking to Gerasim, but looking at Petka. "Isn''t that right?" Petka just blushes even more, and the others are starting to look a bit uncomfortable with all the sex talk.'
					'Feofan cuts in before it goes further. "Okay okay, if they want to pursue a relationship, they can. I wouldn''t mind some more in depth role playing, but we''re not going <i>that</i> far." This seems to calm everyone down as Anushka rolls her eyes and smirks.' 
					'"See, this is why I could never play a game like this. You guys never want to role play the fun stuff." She walks away without waiting for a reply, but you notice Feofan watching her, seemingly thinking about what she just said.'
					act 'Back to the game':
						*clr & cla
						'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
						'Once Anushka is gone, you all get back into the game. The party beds down for the night as you and the others keep teasing Petka.'
						'"We''re out of time," Feofan announces and you and the rest of the group let out a sigh. "Don''t worry, there are lots of adventures left to explore. We''ll pick it up next time. Hopefully Petka will get to see <<$pcs_nickname>> naked again..." he says with a wink, which gets everyone laughing again as Petka blushes once more. The group then gather up their books and walk out of the shop. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
						act 'Leave': gt 'city_coffee_hole', 'inner'
						act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
					end
				end
			else
				'"I grab my sword and tell whoever is there to show themselves now," you reply.'
				'Petka sighs. "Sorry, I just wanted to check on you. I didn''t mean to scare you."'
				'Feofan then describes how your character is standing naked in front of Petka''s with only her sword in hand. "<<$pcs_nickname>>..... Naked?" Petka blurts before blushing when he realizes what he said. "I-I meant her character!"'
				*nl
				'The others start laughing. "Sure you did," they wink. "I didn''t know you were such a perv, Petka!"'
				'The tension rises before easing up as the others tease Petka about his unfortunate choice of words. You tell him you''re fine and to return to camp before you finish bathing, get dressed and head back yourself. After you do, the rest of the group follow your lead and one by one, their characters all go and bathe as well, apparently enjoying the more immersive role-playing you''re doing.'
				*nl
				'As the party beds down for the night, you and the others keep teasing Petka throughout the rest of the game as it nears the end.'
				'"We''re out of time," Feofan announces and you and the rest of the group let out a sigh. "Don''t worry, there are lots of adventures left to explore. We''ll pick it up next time. Hopefully Petka will get to see <<$pcs_nickname>> naked again..." he says with a wink, which gets everyone laughing again as Petka blushes once more. The group then gather up their books and head out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
				act 'Leave': gt 'pav_commcenter', 'lobby'
				act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
			end
		end
	end
end


if $ARGS[0] = 'game_night3':
	*clr & cla
	nerd_game['stage'] = 3
	menu_off = 1
	minut += 180
	grupvalue[3] += 1
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
	'Feofan has already set everything up as you walk in. There''s a new map set on the table; it''s of the village you''re about to enter. Everyone runs over to see what''s being set up.'
	'Feofan is clearly loving the attention. "Thanks, it took me several weeks to draw up the details and paint everything. Shall we get started?" You all quickly take a seat around the table as Feofan begins. "After you break camp and pack up, you make haste to the village. You enter the sleepy village around midday."'
	'He then describes the layout of the village, pointing out the blacksmith shop where you can upgrade your gear, the tavern where you can collect valuable information and the alchemist shop where you can buy potions. There''s even a rumor of a brothel located somewhere within the village.'
	'You all sit in awe as Feofan explains further. As soon as he''s finished, Artem takes over. "Let''s find an inn. We need a base where we can rest at night." It doesn''t take long before you find a nice inn that you settle into.'
	act 'Settle in':
		*clr & cla
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/village.jpg"></center>'
		'"Now that we''re settled at the inn, it''s time to take care of our mission here," Artem says and the group starts dividing up the different tasks.'
		if nerd_game['tookgold'] = 1:
			'"We''ve got this extra gold so we can pick up new armors, weapons, potions and supplies," Artem explains and the rest of the group nods in agreement. "Then it''s settled. We''ll split up so we can finish our tasks quicker. I suggest that Zinaida and Julia go and pick up the potions, Petka and Gerasim can sell our trinkets and buy us some supplies from the local trader and <<$pcs_nickname>> and I will head over to the blacksmith to buy more gear."'
			'After a short discussion, you all agree on the details and head out.'
			act 'Head to the blacksmith shop':
				*clr & cla
				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/blacksmith_shop.jpg"></center>'
				'Upon entering the blacksmith shop, you hear the clanking of a hammer hitting heated iron. A tall man with broad shoulders is hammering away and not really paying attention to you. "Excuse me, sir!" Artem shouts, but the banging continues. "Sir!" Artem and Feofan continue roleplaying as the rest of you listen. "We would like to buy your finest wares!"'
				'The banging stops and the blacksmith looks up. He''s got dark eyes and looks annoyed, as if you were bothering him. "Did you bring a fortune with you? Only royalty has the means to buy what I''m offering."'
				*nl
				'Artem looks confidently at him as he throws a bag of the gold taken from the dragon fight on the counter. "Will this suffice?"'
				'The blacksmith opens the bag and looks inside before throwing it back. "You can keep it. I know where you got this. It''s cursed." He turns his back and starts hammering once again.'
				'The two of you look at each other dumbfounded. Nonetheless, you step outside and start talking to each other. "What should we do now? He won''t accept the gold!" you ask Artem.'
				'"Easy. There''s a reason you were brought along, <<$pcs_nickname>>. Don''t you have high charisma and social skills?" Artem asks. You quickly go through your character sheet and nod. "There we have it then. Head back inside and have him eat out of your hand."'
				act 'Re-enter the blacksmith shop':
					*clr & cla
					'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/blacksmith.jpg"></center>'
					'You cautiously enter the blacksmith shop. "I''m not interested in what you have to say, girl!" The familiar clanking sound starts all over again.'
					'"I-I..." you start hesitating, losing some of your composure as Feofan is a really good role-player. You suddenly feel a light nudge on your arm. "Say that you want to roll the dice for a persuasion check," Julia reminds you.'
					'You look towards Feofan. "I would like to roll the dice for a persuasion check!"'
					'"Are you sure about that?" Feofan teases, knowing you''re not that experienced when it comes to role-playing. The others nod in encouragement. "Yes, I''m sure!"'
					'Feofan smiles. "Great, then roll the dice!"'
					act 'Roll the dice':
						*clr & cla
						temp = rand(10,30)
						'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/rollingdice.jpg"></center>'
						if temp <= 18:
							grupvalue[3] -= 2
							pcs_mood -= 20
							gs 'stat'
							'You roll the dice... and it''s low. The group looks at you in disappointment.'
							'"Still not buying it, girl!" the blacksmith replies harshly. "Now leave, I have more important things to do!"'
							'You step outside. "I failed... He still refuses to accept the gold," you role-play.'
							'"Can''t say I''m not disappointed, but you did your best <<$pcs_nickname>>. Let''s see if the others had better luck." The two of you walk away from the blacksmith shop without buying anything.'
							act 'Meet up with the others':
								*clr & cla
								gs 'exp_gain', 'prcptn', rand(1,2)
								'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/party.jpg"></center>'
								if $loc = 'city_coffee_hole':
									'The whole group meets up and starts showing off what they got. "We didn''t manage to buy anything either. No one wanted to accept our gold!" Julia exhales.'
									'"Yeah, we''ll have to save the gold for another time. We''ll surely come across someone that will accept it!" Artem exclaims while throwing an eye towards Feofan.'
									'"We sold the trinkets to the local trader and managed to buy enough supplies to last us a few weeks, so we can always go find another adventure," Gerasim adds.'
									*nl
									'Petka jumps in excitedly. "I found the brothel, if that''s any consolation."'
									'"Isn''t your character a girl?" Artem replies.'
									'Petka blushes. "Yeah? So?"'
									'Artem laughs. "Why would she need a brothel?"' 
									'At this point, you notice Anushka watching you. You see Petka cringe and some of the others look annoyed as they realize why she''s there.'
									act 'Anushka says':
										*clr & cla
										'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/anushka/nush_model/sveta_photographer/coffee_hole/pose1.jpg"></center>'
										'She just grins as she looks at Gerasim. "Have you not given poor Princess Buttercup some orc dick yet?" She then turns her attention to Artem. "And you wonder why his character is looking for the brothel. I''m sure they cater to all genders... Right?"'
										'Artem and Gerasim fail to hide their amused smiles, Zinaida and Julia look a little uncomfortable and Petka blushes as Feofan tries to keep things moving. "Uh... Yeah! Of course the brothel caters to everyone," he replies to Anushka, then glances at Petka. "Is that why you were checking?"'
										*nl
										'Petka manages to turn even more red and shakes his head. "No! I just forgot I was playing a girl is all...." Anushka just snorts a laugh and even you have to admit that it was a lame excuse.'
										'Before it can go further, Anushka clears her throat and just pointedly looks at the clock. When she returns and gives everyone their order, she leans over to Gerasim. "You should just seduce Princess Buttercup and give her what she needs tonight." Gersim just smiles as Anushka walks away.'
										act 'Back to the game':
											*clr & cla
											'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
											'Once Anushka is gone, you all get back into the game. Everyone starts laughing, disregarding that you haven''t really achieved any of your goals. As your party sits at the local tavern, drinking and eating, they all engage in some role-playing banter. Shortly after that, the game night is over and you all help Feofan pack everything up before everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
											act 'Leave': gt 'city_coffee_hole', 'inner'
											act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
										end
									end
								else
									'The whole group meets up and starts showing off what they got. "We didn''t manage to buy anything either. No one wanted to accept our gold!" Julia exhales.'
									'"Yeah, we''ll have to save the gold for another time. We''ll surely come across someone that will accept it!" Artem exclaims while throwing an eye towards Feofan.'
									'"We sold the trinkets to the local trader and managed to buy enough supplies to last us a few weeks, so we can always go find another adventure," Gerasim adds.'
									*nl
									'Petka jumps in excitedly. "I found the brothel, if that''s any consolation."'
									'"Isn''t your character a girl?" Artem replies.'
									'Petka blushes. "Yeah? So?"'
									'Artem laughs. "Why would she need a brothel?"'
									'Everyone starts laughing, disregarding that you haven''t really achieved any of your goals. As your party sits at the local tavern, drinking and eating, they all engage in some role-playing banter. Shortly after that, the game night is over and you all help Feofan pack everything up before everyone gathers up their books and head out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
									act 'Leave': gt 'pav_commcenter', 'lobby'
									act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
								end
							end
						elseif temp > 18 and temp <= 26:
							grupvalue[3] += 1
							pcs_mood += 10
							gs 'stat'
							'You roll the dice and hit the first target number Feofan stated, but not the higher one he said you need for complete success.'
							'"What do you want girl?!" the blacksmith angrily stares at you.'
							'Feeling quite confident, you quickly reply. "We want to buy some equipment from you and I''m pretty sure you could use some gold. I''m sure we can work something out. Can you really say no to this?" You start playing with the gold pouch.'
							'There''s a long silence before the blacksmith finally sighs. "Fine. I''ll sell you my goods, but it''ll cost you double."'
							'You tell him that you need to talk to your group before you leave the shop and quickly inform your comrades. "That means we can only buy either armor or weapons for everyone," Artem sighs. "Take the weapons. We''ll need them more. A dead corpse won''t fight back."'
							'You walk back into the shop and buy the weapons. You''re paying a way higher price than you expected, but at least you managed to get some new gear.'
							act 'Meet up with the others':
								*clr & cla
								gs 'exp_gain', 'prcptn', rand(1,2)
								'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/party.jpg"></center>'
								if $loc = 'city_coffee_hole':
									'You meet up with a cheerful Julia and Zinaida. "Who knew that our usually quiet Zinaida was quite the sweet talker. She managed to get us some potions."'
									'"And we got new weapons!" Artem chimes in.'
									'"We sold the trinkets to the local trader and managed to buy enough supplies to last us a few weeks, so we can go on our next adventure," Gerasim adds.'
									*nl
									'Petka jumps in excitedly. "To top it off, I found the brothel!"'
									'"Isn''t your character a girl?" Artem replies.'
									'Petka blushes. "Yeah? So?"'
									'Artem laughs. "Why would she need a brothel?"' 
									'At this point, you notice Anushka watching you. You see Petka cringe and some of the others look annoyed as they realize why she''s there.'
									act 'Anushka says':
										*clr & cla
										'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/anushka/nush_model/sveta_photographer/coffee_hole/pose1.jpg"></center>'
										'She just grins as she looks at Gerasim. "Have you not given poor Princess Buttercup some orc dick yet?" She then turns her attention to Artem. "And you wonder why his character is looking for the brothel. I''m sure they cater to all genders... Right?"'
										'Artem and Gerasim fail to hide their amused smiles, Zinaida and Julia look a little uncomfortable and Petka blushes as Feofan tries to keep things moving. "Uh... Yeah! Of course the brothel caters to everyone," he replies to Anushka, then glances at Petka. "Is that why you were checking?"'
										*nl
										'Petka manages to turn even more red and shakes his head. "No! I just forgot I was playing a girl is all...." Anushka just snorts a laugh and even you have to admit that it was a lame excuse.'
										'Before it can go further, Anushka clears her throat and just pointedly looks at the clock. When she returns and gives everyone their order, she leans over to Gerasim. "You should just seduce Princess Buttercup and give her what she needs tonight." Gersim just smiles as Anushka walks away.'
										act 'Back to the game':
											*clr & cla
											'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
											'Once Anushka is gone, you all get back into the game. Everyone starts laughing, disregarding that you haven''t really achieved any of your goals. As your party sits at the local tavern, drinking and eating, they all engage in some role-playing banter. Shortly after that, the game night is over and you all help Feofan pack everything up before everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
											act 'Leave': gt 'city_coffee_hole', 'inner'
											act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
										end
									end
								else
									'You meet up with a cheerful Julia and Zinaida. "Who knew that our usually quiet Zinaida was quite the sweet talker. She managed to get us some potions."'
									'"And we got new weapons!" Artem chimes in.'
									'"We sold the trinkets to the local trader and managed to buy enough supplies to last us a few weeks, so we can go on our next adventure," Gerasim adds.'
									*nl
									'Petka jumps in excitedly. "To top it off, I found the brothel!"'
									'"Isn''t your character a girl?" Artem replies.'
									'Petka blushes. "Yeah? So?"'
									'Artem laughs. "Why would she need a brothel?"'
									'Everyone starts laughing and you spend some time looking at the stuff you''ve managed to acquire before your party heads to the local tavern, where they drink and eat. "I can''t wait to see how all of this plays out!" someone comments before Feofan calls a stop for the day. Shortly after that, the game night is over and you all help Feofan pack everything up before everyone gathers up their books and head out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
									act 'Leave':gt 'pav_commcenter', 'lobby'
									act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
								end
							end
						else
							grupvalue[3] += 5
							pcs_mood += 20
							gs 'stat'
							'You roll the dice and... jackpot! You''ve managed to roll well above what you needed and look sneakily towards Feofan, clearing your throat before you start bargaining, charming the pants off the blacksmith. "Fine, fine! I''ll let you buy all the equipment you need for the regular price with that damn gold."'
							'Smiling, you point towards all the armor and weapons you want and manage to fully equip all your group members in better gear, calling in Artem to help you carry all the stuff. You thank the blacksmith and he mutters something under his breath.'
							act 'Meet up with the others':
								*clr & cla
								gs 'exp_gain', 'prcptn', rand(1,2)
								'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/party.jpg"></center>'
								if $loc = 'city_coffee_hole':
									'Julia and Zinaida are looking dejected. "We didn''t manage to get rid of the gold. The shopkeeper wasn''t having any of it..." They quickly turn ecstatic when they see all the goods you''ve brought with you.'
									'"Maybe we should send <<$pcs_nickname>> to have a chat with the shopkeeper too." Several of them congratulate you as you all discuss the different armors and weapons you''ve managed to acquire.'
									'"We sold the trinkets to the local trader and managed to buy enough supplies to last us a few weeks, so we can go on our next adventure," Gerasim adds.'
									*nl
									'Petka jumps in excitedly. "And I found the brothel!"'
									'"Isn''t your character a girl?" Artem replies.'
									'Petka blushes. "Yeah? So?"'
									'Artem laughs. "Why would she need a brothel?"'
									'At this point, you notice Anushka watching you. You see Petka cringe and some of the others look annoyed as they realize why she''s there.'
									act 'Anushka says':
										*clr & cla
										'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/anushka/nush_model/sveta_photographer/coffee_hole/pose1.jpg"></center>'
										'She just grins before looking at Gerasim. "Have you not given poor Princess Buttercup some orc dick yet?"'
										'Gerasim clears his throat. "Half orc."'
										'Anushka just gives Gerasim a "whatever" look before she turns to Artem. "And you wonder why his character is looking for the brothel. I''m sure they cater to all genders... Right?"'
										'Artem and Gerasim fail to hide their amused smiles, Zinaida and Julia look a little uncomfortable and Petka blushes as Feofan tries to keep things moving. "Uh... Yeah! Of course the brothel caters to everyone," he replies to Anushka, then glances at Petka. "Is that why you were checking?"'
										*nl
										'Petka manages to turn even more red and shakes his head. "No! I just forgot I was playing a girl is all...." Anushka just snorts a laugh and even you have to admit that it was a lame excuse.'
										'Before it can go further, Anushka clears her throat and just pointedly looks at the clock. When she returns and gives everyone their order, she leans over to Gerasim. "You should just seduce Princess Buttercup and give her what she needs tonight." Gersim just smiles as Anushka walks away.'
										act 'Back to the game':
											*clr & cla
											'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
											'Once Anushka is gone, you all get back into the game. Everyone starts laughing, disregarding that you haven''t really achieved any of your goals. As your party sits at the local tavern, drinking and eating, they all engage in some role-playing banter. Shortly after that, the game night is over and you all help Feofan pack everything up before everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
											act 'Leave': gt 'city_coffee_hole', 'inner'
											act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
										end
									end
								else									
									'Julia and Zinaida are looking dejected. "We didn''t manage to get rid of the gold. The shopkeeper wasn''t having any of it..." They quickly turn ecstatic when they see all the goods you''ve brought with you.'
									'"Maybe we should send <<$pcs_nickname>> to have a chat with the shopkeeper too?" Several of them congratulate you as you all discuss the different armors and weapons you''ve managed to acquire.'
									'"We sold the trinkets to the local trader and managed to buy enough supplies to last us a few weeks, so we can go on our next adventure," Gerasim adds.'
									*nl
									'Petka jumps in excitedly. "And I found the brothel!"'
									'"Isn''t your character a girl?" Artem replies.'
									'Petka blushes. "Yeah? So?"'
									'Artem laughs. "Why would she need a brothel?"'
									'Everyone starts laughing and you spend some time looking at the stuff you''ve managed to acquire before your party heads to the local tavern, where they drink and eat. "Good job everyone! I can''t wait to see you use all these weapons at a later time," Feofan comments as it''s time to stop for the day. Shortly after that, the game night is over and you all help Feofan pack everything up before everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
									act 'Leave':gt 'pav_commcenter', 'lobby'
									act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
								end
							end
						end
					end
				end
			end
		else
			'"All we''ve got are this few trinkets to sell. It won''t be enough to buy new armor, weapons, potions <i>and</i> supplies..." Artem explains and the rest of the group nods in agreement.'
			'"We have that small stash of gold from our last adventure," Julia points out.'
			'"We agreed to keep it for an emergency!" Petka cries out.'
			'"What do you think this is?" Julia replies with a roll of her eyes.'
			'"Then it''s settled. We''ll split up so we can finish our tasks quicker. I suggest that Zinaida and Julia go and pick up the potions, Petka and Gerasim can sell those trinkets and buy us some supplies from the local trader and <<$pcs_nickname>> and I will head over to the blacksmith so we can buy more gear."'
			'After a short discussion, you all agree on the details and head out.'
			act 'Head to the blacksmith shop':
				*clr & cla
				gs 'stat'
				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/blacksmith_shop.jpg"></center>'
				'Upon entering the blacksmith shop, you hear the clanking of a hammer hitting on heated iron. A tall man with broad shoulders is hammering away and not really paying attention to you. "Excuse me, sir!" Artem shouts, but the banging continues. "Sir!" Artem and Feofan continue roleplaying as the rest of you listen. "My good sir, we would like to see what wares you have to offer."'
				'The banging stops and the blacksmith looks up. He''s got dark eyes and looks annoyed, as if you were bothering him. "Did you bring a fortune with you? Only royalty has the means to buy what I''m offering."'
				'You''re taken back a little by his bluntness, but you brush it off and look around his shop. "You''ve got quite the quality gear here."'
				'"Thank you," he grunts. "You buying something or you''re just out to waste my time?"'
				act 'Listen':
					*clr & cla
					'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/blacksmith.jpg"></center>'
					'"S-Sorry, we don''t have much gold so..." Artem starts to explain.'
					'"I don''t care!" The annoyed voice behind the counter is getting louder.'
					'Noticing Artem not getting anywhere, you decide to jump in. "Please sir, just give us a minute. We just need to decide on what to buy since we''re on a limited budget."'
					'There is an awkward silence in the air before the blacksmith finally speaks up. "Talk it over and then call on me when you''ve decided."'
					'"Thank you!" You turn to the others. "So what should we do? We have limited funds and it''s really expensive here."'
					'"Get Zinaida and I some better weapons. It''s all we can afford," Artem replies'
					act 'Proceed to buy some gear':
						*clr & cla
						'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/weaponsarmor.jpg"></center>'
						'You agree on buying a few weapons that will hopefully help out with your future endeavors. "No need to worry. My weapons are of the highest quality, and therefore the highest price."'
						'Now that you''ve decided to buy something, the blacksmith has softened up a little. You even manage to have quite the conversation while Artem chooses the weapons. You thank him for everything and head out to meet the rest of the party.'
						act 'Meet up with the others':
							*clr & cla
							gs 'exp_gain', 'prcptn', rand(1,2)
							'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/party.jpg"></center>'
							if $loc = 'city_coffee_hole':
								'You meet the rest of the party and show off the goods to both some excitement and disappointment as you continue discussing what to do next.'
								'Julia and Zinaida are looking cheerful. "Who knew that our usually quiet Zinaida was quite the sweet talker. She managed to get us some potions."'
								'"We got a few new weapons," Artem chimes in.'
								'"We sold the trinkets to the local trader and managed to buy enough supplies to last us a few weeks, so we can go on our next adventure," Gerasim adds.'
								*nl
								'Petka jumps in excitedly. "To top it off, I found the brothel!"'
								'"Isn''t your character a girl?" Artem replies.'
								'Petka blushes. "Yeah? So?"'
								'Artem laughs. "Why would she need a brothel?"' 
								'At this point, you notice Anushka watching you. You see Petka cringe and some of the others look annoyed as they realize why she''s there.'
								act 'Anushka says':
									*clr & cla
									'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/anushka/nush_model/sveta_photographer/coffee_hole/pose1.jpg"></center>'
									'She just grins before looking at Gerasim. "Have you not given poor Princess Buttercup some orc dick yet?"'
									'Gerasim clears his throat. "Half orc."'
									'Anushka just gives Gerasim a "whatever" look before she turns to Artem. "And you wonder why his character is looking for the brothel. I''m sure they cater to all genders... Right?"'
									'Artem and Gerasim fail to hide their amused smiles, Zinaida and Julia look a little uncomfortable and Petka blushes as Feofan tries to keep things moving. "Uh... Yeah! Of course the brothel caters to everyone," he replies to Anushka, then glances at Petka. "Is that why you were checking?"'
									*nl
									'Petka manages to turn even more red and shakes his head. "No! I just forgot I was playing a girl is all...." Anushka just snorts a laugh and even you have to admit that it was a lame excuse.'
									'Before it can go further, Anushka clears her throat and just pointedly looks at the clock. When she returns and gives everyone their order, she leans over to Gerasim. "You should just seduce Princess Buttercup and give her what she needs tonight." Gersim just smiles as Anushka walks away.'
									act 'Back to the game':
										*clr & cla
										'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
										'Once Anushka is gone, you all get back into the game. Everyone starts laughing, disregarding that you haven''t really achieved any of your goals. As your party sits at the local tavern, drinking and eating, they all engage in some role-playing banter. Shortly after that, the game night is over and you all help Feofan pack everything up before everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
										act 'Leave': gt 'city_coffee_hole', 'inner'
										act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
									end
								end
							else									
								'Julia and Zinaida are looking dejected. "We didn''t manage to get rid of the gold. The shopkeeper wasn''t having any of it..." They quickly turn ecstatic when they see all the goods you''ve brought with you.'
								'"Maybe we should send <<$pcs_nickname>> to have a chat with the shopkeeper too?" Several of them congratulate you as you all discuss the different armors and weapons you''ve managed to acquire.'
								'"We sold the trinkets to the local trader and managed to buy enough supplies to last us a few weeks, so we can go on our next adventure," Gerasim adds.'
								*nl
								'Petka jumps in excitedly. "And I found the brothel!"'
								'"Isn''t your character a girl?" Artem replies.'
								'Petka blushes. "Yeah? So?"'
								'Artem laughs. "Why would she need a brothel?"'
								'Everyone starts laughing and you spend some time looking at the stuff you''ve managed to acquire before your party heads to the local tavern, where they drink and eat. "Good job everyone! I can''t wait to see you use all these weapons at a later time," Feofan comments as it''s time to stop for the day. Shortly after that, the game night is over and you all help Feofan pack everything up before everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
								act 'Leave':gt 'pav_commcenter', 'lobby'
								act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
							end
						end
					end
				end
			end
		end
	end
end

if $ARGS[0] = 'game_night4':
	*clr & cla
	nerd_game['stage'] = 4
	menu_off = 1
	minut += 180
	grupvalue[3] += 1
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
	'As you arrive, you notice that the atmosphere is quite elated as the group can''t wait to continue their adventures.'
	'Feofan begins describing the scene. "You spend an uneventful night at the inn, and at the early dawn you''re all awoken by a roosters'' crow. You take some time to get ready and all meet up in front of the inn."'
	'"So what should we focus on today?" Petka asks.'
	'"It''s adventure time! We really need to find a new quest today. We''re low on funds so, we need to find an adventure that will sustain us for a while," Artem explains, taking the role of leader once again. "Don''t worry, I''m sure we''ll overhear something interesting in the tavern."'
	act 'Head to the tavern':
		*clr & cla
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/village.jpg"></center>'
		'You leave the inn and head towards the local tavern near the traders post.'
		'The village is quite empty and you don''t see anyone running around. There seems to be some commotion happening inside the tavern as you approach.'
		'"You said that the barkeep didn''t have any usable information, right?" Zinaida asks.'
		'Petka and Gerasim shake their heads. "No, he didn''t want to tell us anything last night, other than about the brothel he also runs," Gerasim replies.'
		'"Maybe some of the patrons have some interesting information to tell us? Let''s head inside; every other lead is dead anyway," Julia suggests.'
		act 'Enter the tavern':
			*clr & cla
			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/tavern.jpg"></center>'
			'As you enter the tavern, the commotion settles down as everyone turns towards your group. You can cut the tension with a knife as the patrons watch to see what you, a group of armed strangers, will do next.'
			'"What the hell is this?!" Zinaida yells out. "Why are you all so tense? Didn''t we have a great time yesterday?" she smirks.'
			'"L-Look, we don''t want any trouble, you hear!" the barkeep yells from behind the counter.'
			'"Don''t worry, we''re not here to look for a fight," Julia tries to calm the barkeep. "We''re just looking for some information."'
			'Feofan takes over. "You can see several patrons minding their own business. There''s a beautiful woman sitting furthest away, almost hidden from the rest. She''s dressed in all black, observing your group. Closest to the bar counter, you see a group of drunk and rowdy men in armor, talking loudly about some of the adventures they''ve been on. Lastly, an old man, his face covered in scars, is enjoying his drink..."'
			'Someone nudges you. "Pick one and go talk to them." You look around in confusion. "Don''t look so worried! You have the highest persuasion out of the whole group, so decide who to talk to and if anything happens, we have your back."'
			act 'Talk to the woman': gt 'nerd_game_night', 'woman'
			act 'Talk to the group of men': gt 'nerd_game_night', 'group'
			act 'Talk to the old man': gt 'nerd_game_night', 'oldman'
		end
	end
end

if $ARGS[0] = 'woman':
	*clr & cla
	nerd_game['tavernwoman'] = 1
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/tavernwoman.jpg"></center>'
	!Will turn out to be a succubus in a future game night where the group will have to fight her
	'You nod towards the woman dressed in black and start walking over to her. "Can''t you see I''m mourning? I''m in no mood to be talking to anyone."'
	'You''re surprised by her bluntness. "Sorry, I don''t want to be a bother..."'
	'"Then don''t..." the woman interrupts you. "You should find someone you love before it''s too late. Better to love than never to have felt it. I should know, I had the fairest man in this kingdom, but our relationship turned sour and I threw it all away... I heard that the heartbreak killed him in the end and now there''s a fortune just sitting in that damned mansion."'
	'"Why are you telling me this? If there''s a fortune there, don''t you want to keep that a secret? This sounds too good to be true." You grow suspicious of her ulterior motives.'
	'"I''m too grief-stricken to visit that place ever again, but if your path crosses it, be sure to visit. It''s quite secluded." She describes the location of the mansion while you carefully listen.'
	if nerd_game['taverngroup'] = 0: act 'Talk to the group of men': gt 'nerd_game_night', 'group'
	if nerd_game['tavernman'] = 0: act 'Talk to the old man': gt 'nerd_game_night', 'oldman'
	act 'Tell your party what you learned': gt 'nerd_game_night', 'inform_them'
end

if $ARGS[0] = 'group':
	*clr & cla
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/taverngroup.jpg"></center>'
	!Will turn into bandits that want to rob you later on
	'As you approach the table, the rowdy men stop and look at you. "Is this the entertainment? Up for a good time, cutie?" They''re clearly undressing you with their eyes. "Have you ever had sex with several men at once?" one asks and they all start laughing.'
	'You boldly stare at them. "So my friends and I..." You point over towards your group. "We overheard you talking about a treasure."'
	'The men start laughing. "Were you listening in on a private conversation? You''re a bit cocky for a little squirt." One of the men spits next to your feet. "Listen here, let''s not drag this out, we can share the information if you pay us."'
	'"And how can I trust that you''re telling me the truth?" you ask.'
	'The man pulls out a pouch and throws it on the table. "See that? That''s my share from the last treasure run we did. And believe me girl, we have plenty of treasure maps remaining."'
	act 'Decide':
		*clr & cla
		nerd_game['taverngroup'] = 1
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/taverngroup.jpg"></center>'
		'"I need to talk to my friends first. I''ll be right back."'
		'As you turn your back, the men start hollering. "Did you see her ass?! I wouldn''t mind getting my hands on that. I bet I could make her scream all night long." The men continue to be rowdy as they order another round.'
		'Feofan finishes by talking as one of the men. "Pay us the gold now and the information is yours or no deal."'
		'Feofan then looks at you. "Well <<$pcs_nickname>>, what are you going to do? Pay them or...?"'
		*nl
		'You really want the information and think it''s the right move for the group. "How much?"'
		'What seems to be the leader licks his lips and tells you the price he wants you to pay. He wants the last of the gold your party has. "No haggling, you understand girl?! That''s the price, take it or leave it!"'
		'Several players all chime in suggesting what you should do, only to have Feofan interrupt them. "Okay, enough! Your characters aren''t there. You sent <<$pcs_nickname>> up alone, so it''s her choice." He then looks at you. "So what will it be?"'
		act 'Pay up':
			*clr & cla
			nerd_game['acceptpay'] = 1
			pcs_mood += 20
			grupvalue[3] += 1
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/taverngroup.jpg"></center>'
			'You look up, trying to read your co-players, but they''re keeping true to what''s playing out. "Alright, you''ve got a deal!"'
			'He picks up one of the scrolls from his bag and throws it towards you. "There you have it, girl! Now hand over the gold!"'
			'You hand over the gold and quickly return to the group. The others cheer you on, pleased with your decision.'
			if nerd_game['tavernwoman'] = 0: act 'Talk to the woman': gt 'nerd_game_night', 'woman'
			if nerd_game['tavernman'] = 0: act 'Talk to the old man': gt 'nerd_game_night', 'oldman'
			act 'Tell your party what you learned': gt 'nerd_game_night', 'inform_them'
		end
		act 'Decline':
			*clr & cla
			pcs_mood -= 20
			grupvalue[3] -= 2
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/taverngroup.jpg"></center>'
			'You shake your head. "That''s way too much!"'
			'"Too bad then... Leave us alone, we''re done here!" You can clearly tell that he''s annoyed.'
			'The others sigh as you return to the group, discontent with your decision.'
			if nerd_game['tavernwoman'] = 0: act 'Talk to the woman': gt 'nerd_game_night', 'woman'
			if nerd_game['tavernman'] = 0: act 'Talk to the old man': gt 'nerd_game_night', 'oldman'
			act 'Tell your party what you learned': gt 'nerd_game_night', 'inform_them'
		end
	end
end

if $ARGS[0] = 'oldman':
	!Will send you out to old ruins where the players will find his old (dead) crew
	*clr & cla
	nerd_game['tavernman'] = 1
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/tavernman.jpg"></center>'
	'You walk over to the old man and before you can even say a word, he turns to you. "Buy me a drink and I''ll tell you a story."'
	'"Is that so?" You nod at the barkeep to pour another drink for the old man.'
	'After taking a sip, the old man starts telling you about when he was a young man. He was an adventurer like you, until he took an arrow to the knee. He starts telling you about some of the adventures he went on and how he fought everything from bandits to powerful mages, and even dragons. "Now for the story, girl."'
	'You take a seat as he starts. "Our last adventure started in this village. The crew and I had decided to go on one final adventure. There was a huge bounty on a powerful Necromancer who resided in an old castle hidden deep inside the forest and was said to be unkillable, so we decided to head out and slay him for the fame and fortune."'
	*nl
	'He goes silent and his eyes blacken as he takes another sip. "We underestimated that bastard. Before we knew it, his monsters had killed half of us before we''d even gotten near the castle... Anyway, we finally make it and we find ourselves standing face to face with the Necromancer himself."'
	'He takes another sip of his drink. "Just as we''re about to attack, I get slashed across the face by some shadow creature..." He points to his scar. "Then all hell broke loose. I remember it all clear as day. The fighting, the screaming, my fallen brothers rising from the dead to fight for him... Even the shadows were alive. One by one, my friends fell dead around me until I was the last one standing. I ran for my life, only for one of my former men, the best archer for miles around, to shoot me in the knee. I have no idea what happened after that. I just kept running as fast as I could until I passed out..."'
	*nl
	'"Where can I find this place, old man?" you curiously ask.'
	'"I wouldn''t recommend going there, unless you want to end up like my crew..." the old man warns.'
	'You shake your head. "We''re not afraid of anything!" You order another round and manage to pry out the information. After several more drinks loosen his tongue, he describes how to find the Necromancer''s lair.'
	if nerd_game['tavernwoman'] = 0: act 'Talk to the woman': gt 'nerd_game_night', 'woman'
	if nerd_game['taverngroup'] = 0: act 'Talk to the group of men': gt 'nerd_game_night', 'group'
	act 'Tell your party what you learned': gt 'nerd_game_night', 'inform_them'
end

!Continuation of game night 4
if $ARGS[0] = 'inform_them':
	*clr & cla
	if nerd_game['tavernwoman'] = 0 or nerd_game['taverngroup'] = 0 or nerd_game['tavernman'] = 0:
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/party.jpg"></center>'
		'You return to your party and tell them what you''ve learned. Some are excited by what you''ve discovered, while others are less interested. They discuss it for a few minutes while Feofan just watches. "Okay, go find out if there are any other options," Artems orders.'
		if nerd_game['tavernwoman'] = 0: act 'Talk to the woman': gt 'nerd_game_night', 'woman'
		if nerd_game['taverngroup'] = 0: act 'Talk to the group of men': gt 'nerd_game_night', 'group'
		if nerd_game['tavernman'] = 0: act 'Talk to the old man': gt 'nerd_game_night', 'oldman'
	else
		gs 'exp_gain', 'prcptn', rand(1,2)
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/anushka/nush_model/sveta_photographer/coffee_hole/pose1.jpg"></center>'
		if $loc = 'city_coffee_hole':
			gs 'exp_gain', 'prcptn', rand(1,2)
			'You return to the group and tell them about the different adventures you''ve discovered from the patrons of the tavern. They all listen attentively to what you have to say. "Well, I feel like we should go and bash that Necromancer''s head in!" Artem suggests with a smile.' 
			'At this point, you notice Anushka watching. "Come on, you know the drill by now," She returns a few minutes later and gives everyone their order. "Don''t trust any of them," she tells Gersim, who just smiles as Anushka walks away.'
			act 'Back to the game':
				*clr & cla
				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
				'Once Anushka is gone, you all get back into the game. "I''m not too fond of that, I''d rather do something else," Julia counters. The arguing starts getting more intense as everyone tries to get their point across, the yelling getting louder and louder until Feofan gets fed up and slams the table. "Now that I have your attention! Since you can''t decide what you should do, I suggest you have a vote on it!"'
				'There''s a lot of loud moans. "I don''t care how you feel about it! Vote!" Feofan commands.'
				act 'Vote for the mansion adventure': gt 'nerd_game_night', 'mansion_adventure'
				act 'Vote to kill the Necromancer': gt 'nerd_game_night', 'necromancer_adventure'
				if nerd_game['acceptpay'] = 1:
					act 'Vote for the treasure map adventure': gt 'nerd_game_night', 'treasure_map__adventure'
				end
			end
		else
			'You return to the group and tell them about the different adventures you''ve discovered from the patrons of the tavern. They all listen attentively to what you have to say. "Well, I feel like we should go and bash that Necromancer''s head in!" Artem suggests with a smile.'
			'"I''m not too fond of that, I''d rather do something else," Julia counters. The arguing starts getting more intense as everyone tries to get their point across, the yelling getting louder and louder until Feofan gets fed up and slams the table. "Now that I have your attention! Since you can''t decide what you should do, I suggest you have a vote on it!"'
			'There''s a lot of loud moans. "I don''t care how you feel about it! Vote!" Feofan commands.'
			act 'Vote for the mansion adventure': gt 'nerd_game_night', 'mansion_adventure'
			act 'Vote to kill the Necromancer': gt 'nerd_game_night', 'necromancer_adventure'
			if nerd_game['acceptpay'] = 1:
				act 'Vote for the treasure map adventure': gt 'nerd_game_night', 'treasure_map__adventure'
			end
		end
	end
end

if $ARGS[0] = 'mansion_adventure':
	*clr & cla
!!is this nerd_game code right? and maybe we can change all the nerd game night to use that formula
	nerd_game['mansion_adventure'] = 1
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/party.jpg"></center>'
	'Everyone takes turns voting while Feofan writes down the results. "Great! Now that the vote is decided, I suggest we call it for the day and pick up it next time."'
	'"But we want to continue playing! We already know what adventure we''re going on!" Gerasim sighs.'
	'"That''s it for today!" Feofan stands firm. "Everyone needs to calm down as this discussion got way out of line!" Everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
	if $loc = 'city_coffee_hole':
		act 'Leave': gt 'city_coffee_hole', 'inner'
	else
		act 'Leave':gt 'pav_commcenter', 'lobby'
	end
	act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
end

if $ARGS[0] = 'necromancer_adventure':
	*clr & cla
	nerd_game['necromancer_adventure'] = 1
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/party.jpg"></center>'
	'Everyone takes turns voting while Feofan writes down the results. "Great! Now that the vote is decided, I suggest we call it for the day and pick up it next time."'
	'"But we want to continue playing! We already know what adventure we''re going on!" Gerasim sighs.'
	'"That''s it for today!" Feofan stands firm. "Everyone needs to calm down as this discussion got way out of line!" Everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
	if $loc = 'city_coffee_hole':
		act 'Leave': gt 'city_coffee_hole', 'inner'
	else
		act 'Leave':gt 'pav_commcenter', 'lobby'
	end
	act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
end

if $ARGS[0] = 'treasure_map__adventure':
	*clr & cla
	nerd_game['treasure_map_adventure'] = 1
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/party.jpg"></center>'
	'Everyone takes turns voting while Feofan writes down the results. "Great! Now that the vote is decided, I suggest we call it for the day and pick up it next time."'
	'"But we want to continue playing! We already know what adventure we''re going on!" Gerasim sighs.'
	'"That''s it for today!" Feofan stands firm. "Everyone needs to calm down as this discussion got way out of line!" Everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
	if $loc = 'city_coffee_hole':
		act 'Leave': gt 'city_coffee_hole', 'inner'
	else
		act 'Leave':gt 'pav_commcenter', 'lobby'
	end
	act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
end

if $ARGS[0] = 'game_night5':
	*clr & cla
	nerd_game['stage'] = 5
	menu_off = 1
	minut += 180
	grupvalue[3] += 1
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
	'As you arrive, you notice that the atmosphere is quite elated. The tension from last week seems to have dissolved and the group is ready for their next adventure.'
	'"Freaking finally! Let''s head out of this god-forsaken village and on to a new adventure!" Zinaida exclaims.'
	'"We just need to pack up and we''re good to go!" Gerasim replies.'
	'The group quickly packs up everything from the rooms in the inn, pays for their stay and heads outside.'
	act 'Leave the inn':
		*clr & cla
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/partymeet.jpg"></center>'
		if $loc = 'city_coffee_hole':
			'As you''re heading out, you quickly throw one last gaze at the beautiful village map that Feofan painted. You gather just outside of town and everyone takes a second to double check the supplies to make sure you didn''t miss anything. Once everyone is sure, you head out in the direction of your next adventure.' 
			'At this point, you notice Anushka watching you. A few of others look annoyed as they realize why she''s there.'
			act 'Anushka says':
				*clr & cla
				gs 'exp_gain', 'prcptn', rand(1,2)
				'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/anushka/nush_model/sveta_photographer/coffee_hole/pose1.jpg"></center>'
				'"Off on another adventure, huh?" she asks with a teasing smile.'
				'Gerasim clears his throat. "Yes, this one likely won''t be as exciting as fighting a dragon, but you can never be sure..." he says as he glances at Feofan.'
				'Anushka nods, but you think she''s just being polite. "I''m sure. Anyway, you guys know the drill by now." There''s a resigned sigh as almost everyone orders something. As Anushka returns a few minutes later and gives everyone their order. You can''t help but notice pretty much all the guys checking out her ass as she walks away.'
				*nl
				'Once Anushka is gone, you all get back into the game. You run into a few wandering encounters, but nothing too serious before your group stops to camp for the night. You expect to see Feofan pull out the map of your camp, but to everyone''s disappointment, he doesn''t. You look at each other in confusion, searching for some answers.'
				'"That''s it for now," Feofan explains, but he''s quickly interrupted.'
				'"What do you mean ''that''s it''? Where''s the next part? We voted for the adventure last week!" Gerasim exclaims.'
				*nl
				'Feofan chokes up a little. "I-I haven''t had time to finish the story. I didn''t know which one you would pick until last week and it takes me weeks to write the adventure and prepare the maps and stuff. It''ll take some time..."'
				'The group immediately starts moaning and complaining about his lack of forward planning. "Great, just when it got good we need to stop... You are aware that we play this game mostly for the adventures, right?" Artem scoffs.'
				'"I know," Feofan quickly replies. "That''s why I''m stopping it now. I need time to prepare as well as I did for the last adventure, so you''ll get the most out of it. You don''t want a half assed adventure, do you?"'
				act 'So what about next week?':
					*clr & cla
					gs 'stat'
					'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
					'You feel more disappointed than you expected, but now you wonder how long it will take him to set up the adventure and what you will do in the meantime. "What about next week? Are we not playing?" you ask, and the others nod in agreement.'
					'Feofan holds up his hand. "I''ve got it covered! I recently acquired a few board games I think we''ll like. We can play those instead as I work on finishing the adventure."'
					'There are a few grumbles, but the group seems curious. Zinaida even gets excited about one of the games he names, exclaiming it''s one she''s been wanting to try for a while. You all put your things away and spend the time chatting about the board games before moving onto the latest films, TV shows and books. Once time is up, everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
					act 'Leave': gt 'city_coffee_hole', 'inner'
					act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
				end
			end
		else
			'As you''re heading out, you quickly throw one last gaze at the beautiful village map that Feofan painted. You gather just outside of town and everyone takes a second to double check the supplies to make sure you didn''t miss anything. Once everyone is sure, you head out in the direction of your next adventure. You run into a few wandering encounters, but nothing too serious before your group stops to camp for the night. You expect to see Feofan pull out the map of your camp, but to everyone''s disappointment, he doesn''t. You look at each other in confusion, searching for some answers.'
			'"That''s it for now," Feofan explains, but he''s quickly interrupted.'
			*nl
			'"What do you mean ''that''s it''? Where''s the next part? We voted for the adventure ast week!" Gerasim exclaims.'
			'Feofan chokes up a little. "I-I haven''t had time to finish the story. I didn''t know which one you would pick until last week and it takes me weeks to write the adventure and prepare the maps and stuff. It''ll take some time..."'
			'The group immediately starts moaning and complaining about his lack of forward planning. "Great, just when it got good we need to stop... You are aware that we play this game mostly for the adventures, right?" Artem scoffs.'
			'"I know," Feofan quickly replies. "That''s why I''m stopping it now. I need time to prepare as well as I did for the last adventure, so you''ll get the most out of it. You don''t want a half assed adventure, do you?"'
			act 'So what about next week?':
				*clr & cla
				gs 'stat'
				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
				'You feel more disappointed than you expected, but now you wonder how long it will take him to set up the adventure and what you will do in the meantime. "What about next week? Are we not playing?" you ask, and the others nod in agreement.'
				'Feofan holds up his hand. "I''ve got it covered! I recently acquired a few board games I think we''ll like. We can play those instead as I work on finishing the adventure."'
				'There are a few grumbles, but the group seems curious. Zinaida even gets excited about one of the games he names, exclaiming it''s one she''s been wanting to try for a while. You all put your things away and spend the time chatting about the board games before moving onto the latest films, TV shows and books. Once time is up, everyone gathers up their books and heads out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
				act 'Leave':gt 'pav_commcenter', 'lobby'
				act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
			end
		end
	end
end


if $ARGS[0] = 'board_games':
	*clr & cla
	menu_off = 1
	minut += 180
	grupvalue[3] += 1
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/board1.jpg"></center>'
!!new code
	if $loc = 'city_coffee_hole':
		if nerd_game['boardgames'] = 0:
			'Walking into the Coffee Hole, you don''t really know what to expect as you see the group gathered around their table.'
			'You take a seat and notice several board game boxes on the table. "Are we playing all of these today?"'
			'Feofan shakes his head. "No, I just wanted to show you all the collection that I managed to get my hands on. Some games will take several weeks to complete and some will only take a few hours."'
			'You take a look at the selection while the others comment about what game they''re mostly anticipating to play.'
			'"Shall we start then?" Before you know it, the game board is out and Feofan starts explaining the rules.'
		else
			'You quickly enter the Coffee Hole, not wanting to be late, and see the group gathered around their table.'
			'You all take a look at the board games Feofan brought and there is a small argument on which game you should play until a vote is held to select one.'
			'"Shall we start then?" Before you know it, the game board is out and Feofan starts explaining the rules.'
		end
	else
		if nerd_game['boardgames'] = 0:
			'Walking up to the library, you don''t really know what to expect as you enter and see the group gathered around their table.'
			'You take a seat and notice several board game boxes on the table. "Are we playing all of these today?"'
			'Feofan shakes his head. "No, I just wanted to show you all the collection that I managed to get my hands on. Some games will take several weeks to complete and some will only take a few hours."'
			'You take a look at the selection while the others comment about what game they''re mostly anticipating to play.'
			'"Shall we start then?" Before you know it, the game board is out and Feofan starts explaining the rules.'
		else
			'You quickly run up the stairs into the usual library room, not wanting to be late. You enter the room and see the group gathered around their table.'
			'You all take a look at the board games Feofan brought and there is a small argument on which game you should play until a vote is held to select one.'
			'"Shall we start then?" Before you know it, the game board is out and Feofan starts explaining the rules.'
		end
	end
	act 'Start playing':
		*clr & cla
		nerd_game['boardgames'] = 1
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/board1.jpg"></center>'
		if $loc = 'city_coffee_hole':
			'Once Feofan finishes explaining the rules and everyone is done asking questions, you start playing the game. Despite the occasional argument over rules, you all end up enjoying yourselves. As the game goes on, it remains close and there''s no way to say who''s going to win.' 
			'At this point, you notice Anushka watching you. A few of others look annoyed as they realize why she''s there.'
			act 'Anushka says':
				*clr & cla
				gs 'exp_gain', 'prcptn', rand(1,2)
				'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/girl/anushka/nush_model/sveta_photographer/coffee_hole/pose1.jpg"></center>'
				'She looks over the board. "This looks different that what you guys were playing before."'
				'Feofan grins. "Yes, this is a board game. We were playing Dungeons and Dragons, which is a table top RPG, but I need a break to work on the next adventure..." He trails off when he sees her bored expression.'
				'"I didn''t ask, nor do I care. You guys know why I''m here." There''s a resigned sigh as mostly everyone orders something. She returns a few minutes and gives everyone their order. You can''t help but notice pretty all the guys checking out her ass as she walks away. Once Anushka is gone, you all get back into the game.'
				act 'Finish up':
					*clr & cla
					gs 'stat'
					'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/board1.jpg"></center>'
					'You continue playing with even more laughter and before you know it the game is over for the night. You all praise Feofan for picking a really good game.'
					'Feofan responds as expected - haughty. "Ye, with little faith in me. Told you I would fix everything."'
					'You all pile on him before clearing up. Once you pack everything up, you walk out of the shop. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
					act 'Leave': gt 'city_coffee_hole', 'inner'
					act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
				end
			end
		else
			'Once Feofan finishes explaining the rules and everyone is done asking questions, you start playing the game. Despite the occasional argument over rules, you all end up enjoying yourselves. As the game goes on, it remains close and there''s no way to say who''s going to win.'
			act 'Finish up':
				*clr & cla
				gs 'stat'
				'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/board1.jpg"></center>'
				'You continue playing with even more laughter and before you know it the game is over for the night. You all praise Feofan for picking a really good game.'
				'Feofan responds as expected - haughty. "Ye, with little faith in me. Told you I would fix everything."'
				'You all pile on him before clearing up. Once you pack everything up, you head out. Julia and Zinaida leave together, as do Artem and Petka. Gerasim and Feofan each leave on their own.'
				act 'Leave':gt 'pav_commcenter', 'lobby'
				act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
			end
		end
	end
end

if $ARGS[0] = 'summer_invite':
!!if Sveta is a nerd she gets a phone text, I have no clue how to code that, but the text messages will be the following.
	menu_off = 1
	*clr & cla
	minut += 2
	!! in order to return Sveta to the correct location
	$temp_loc = $ARGS[1]
	!! In order to avoid loops or complex if-else trees a random combination of days (Mon-Thu 1-4) is picked. The first day is set as the first number from the combination, the second day as the second.
	temp = func('shortgs', 'rand_pick', '', 12, 13, 14, 23, 24, 34)
	nerd_game['invite_day'] = daystart
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/pc/activities/phone/text_indoor.jpg"></center>'

	'You look at your phone and notice that Feofan has texted you. "Hey <<$pcs_nickname>>, we do a weekly game night. We mostly play Dungeons and Dragons and board games. I was talking to the others and we were wondering if you would like to join us? We have a few nights free this week and were wondering which one works best for you. We can do it either on <<$week[val(mid(temp,1,1))]>> or <<$week[val(mid(temp,2,1))]>>."'
	act 'Not interested <br><font color="red">This will block this story arc.</font>':
		nerd_game['invite_day'] = 2147483647 & ! block the event
		*clr & cla
		minut += 2
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
		'"Sorry, but I''m just not interested in stuff like that. Thanks for the invite though." you text back.'
		'He sends a sad emoji. "Oh... Okay, yeah I get it. Guess we''ll see you around."'
		act 'Put phone away': gt ''
!!not sure the code needed to put the phone away and put Sveta back where she was
	end
	act '<<$week[val(mid(temp,1,1))]>>':
		*clr & cla
		minut += 2
		nerd_game['game_day'] = daystart - week + val(mid(temp,1,1))
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/pc/activities/phone/text_indoor.jpg"></center>'
		'"Sure, I can make it on <<$week[val(mid(temp,1,1))]>>." you text back.'
		'He sends a happy emoji. "Great! I''ll see you on <<$week[val(mid(temp,1,1))]>> at 20:00 in the library then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those."'
		act 'Put phone away': gt ''
!!not sure the code needed to put the phone away and put Sveta back where she was
	end
	act '<<$week[val(mid(temp,2,1))]>>':
		*clr & cla
		minut += 2
		nerd_game['game_day'] = daystart - week + val(mid(temp,2,1))
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/pc/activities/phone/text_indoor.jpg"></center>'
		'"Sure, I can make it on <<$week[val(mid(temp,2,1))]>>." you text back.'
		'He sends a happy emoji. "Great! I''ll see you on <<$week[val(mid(temp,2,1))]>> at 20:00 in the library then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those."'
		act 'Put phone away': gt ''
!!not sure the code needed to put the phone away and put Sveta back where she was
!!also need code to set Saturday and Sunday at the same times as a board game nights. So if Sveta shows up it auto goes to the board game night on those days.
	end
end

if $ARGS[0] = 'crash_gamenight':
!!will need code in the community center and library. If Sveta is not part of nerd game night, this lets her crash it and chat to one of them.
	*clr & cla
	menu_off = 1
	minut += 10
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
	if grupTipe = 1 or grupTipe = 2:
		if nerd_game['game_day'] = daystart and (hour*60+minut < 22*60+30):
			'Upon entering the room, everyone freezes and looks your way. You can feel the anxious looks from the group sitting around a table that has all sorts of geeky stuff spread across it.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Can we help you?"'
			'You smile to reassure them that you''re not here to mess with them. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you, Feofan being the one to speak up again. "Can it wait until we finish at 11pm?"'
			'You sigh and check the time.'

			act 'Leave':gt 'pav_commcenter', 'lobby'
			act 'Wait for game to end': minut = 23*60 - (hour*60+minut) & gt 'nerd_game_night', 'nerd_chat'
		else
			'Upon entering the room, everyone freezes and looks your way. You can feel the anxious looks from the group standing around a table packing up all their geeky stuff.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Can we help you?"'
			'You smile to reassure them that you''re not here to mess with them. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you, Feofan being the one to speak up again. "Oh. Okay...." You can tell they''re all wondering who it is you came to speak with.'

			act 'Leave':gt 'pav_commcenter', 'lobby'
			act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
		end
	elseif grupTipe = 3:
		if nerd_game['game_day'] = daystart and (hour*60+minut < 22*60+30):
			'Upon entering the room, everyone freezes and looks your way. When they see you, they relax and go back to playing their game.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Hey <<$pcs_nickname>>! We''re almost done, but it''s not too late to join."'
			'You smile and shake your head. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you as Feofan nods. "Okay. Can it wait until we finish at 11pm?"'
			'You sigh and check the time.'

			act 'Leave':gt 'pav_commcenter', 'lobby'
			act 'Wait for game to end': minut = 23*60 - (hour*60+minut) & gt 'nerd_game_night', 'nerd_chat'
		else
			'Upon entering the room, everyone freezes and looks your way. When they see you, they relax and continue putting away their game materials.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Hey <<$pcs_nickname>>! We''re done for the night, but you can always join us another time?"'
			'You smile and shake your head. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you as Feofan nods. "Oh. Okay..." You can tell they''re all wondering who it is you came to speak with.'

			act 'Leave':gt 'pav_commcenter', 'lobby'
			act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
		end
	elseif grupTipe = 4:
		if nerd_game['game_day'] = daystart and (hour*60+minut < 22*60+30):
			'Upon entering the room, everyone freezes and looks your way. You can feel their fear as they sit around a table covered in all of their geeky stuff.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Look, we''re just playing a game. We just want to be left alone!"'
			'You smile to reassure them that you''re not here to mess with them. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you, Feofan being the one to speak up again. "Can it wait until we finish at 11pm?"'
			'You sigh and check the time.'

			act 'Leave':gt 'pav_commcenter', 'lobby'
			act 'Wait for game to end': minut = 23*60 - (hour*60+minut) & gt 'nerd_game_night', 'nerd_chat'
		else
			'Upon entering the room everyone freezes and looks your way. You can feel their fear as they clear all their geeky stuff off the table.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Look, we''re just playing a game. We just want to be left alone!"'
			'You smile to reassure them that you''re not here to mess with them. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you, Feofan being the one to speak up again. "Oh. Okay..." You can tell they''re all wondering who it is you came to speak with.'

			act 'Leave':gt 'pav_commcenter', 'lobby'
			act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
		end
	else
		if nerd_game['game_day'] = daystart and (hour*60+minut < 22*60+30):
			'Upon entering the room, everyone freezes and looks your way. When they see you, they quickly relax but you can tell they''re curious as to why you''re here. The tabel they''re sitting around has all sorts of gaming things spread across it.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Can we help you?"'
			'You smile to reassure them you''re not here to mess with them. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you, Feofan being the one to speak up again. "Can it wait until we finish at 11pm?"'
			'You sigh and check the time.'

			act 'Leave':gt 'pav_commcenter', 'lobby'
			act 'Wait for game to end': minut = 23*60 - (hour*60+minut) & gt 'nerd_game_night', 'nerd_chat'
		else
			'Upon entering the room, everyone freezes and looks your way. When they see you, they quickly relax but you can tell they''re curious as to why you''re here as they continue clearing away their gaming stuff.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Can we help you?"'
			'You smile to reassure them that you''re not here to mess with them. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you, Feofan being the one to speak up again. "Oh. Okay..." You can tell they''re all wondering who it is you came to speak with.'

			act 'Leave':gt 'pav_commcenter', 'lobby'
			act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
		end
	end
end

if $ARGS[0] = 'nerd_chat':
!!need the nerds present to be listed with images like the other chats.
	*clr & cla
	menu_off = 1
	'Feofan, Artem, Petka, Gerasim, Zinaida and Julia have finished packing up their stuff and are getting ready to head out, giving you a chance to talk to one of them before they leave.'
	!!images and links to the chats go here.

	'<center><b><font color="maroon">Chat</font></b></center>'
	'<center><table><tr><td colspan = 6>The nerds are gathered around the table</td></tr>'
	'<tr>'
	'<td width =16.6%><a href="exec: gt ''nerd_game_night'', ''feofan''"><table bgcolor=#FFF8DC><tr><td align=center><img  height="100" src="images/characters/shared/headshots_main/152.jpg"></td></tr><tr><td align=center><<$npc_firstname[''A152'']>></td></tr></table></a></td>'
	'<td width =16.6%><table bgcolor=#FFF8DC><tr><td align=center><a href="exec: gt ''nerd_game_night'', ''artem''"><img  height="100" src="images/characters/shared/headshots_main/2.jpg"></a></td></tr><tr><td align=center><<$npc_firstname[''A2'']>></td></tr></table></td>'
	'<td width =16.6%><table bgcolor=#FFF8DC><tr><td align=center><a href="exec: gt ''nerd_game_night'', ''petka''"><img  height="100" src="images/characters/shared/headshots_main/6.jpg"></a></td></tr><tr><td align=center><<$npc_firstname[''A6'']>></td></tr></table></td>'
	'<td width =16.6%><table bgcolor=#FFF8DC><tr><td align=center><a href="exec: gt ''nerd_game_night'', ''gerasim''"><img  height="100" src="images/characters/shared/headshots_main/153.jpg"></a></td></tr><tr><td align=center><<$npc_firstname[''A153'']>></td></tr></table></td>'
	'<td width =16.6%><table bgcolor=#FFF8DC><tr><td align=center><a href="exec: gt ''nerd_game_night'', ''zinaida''"><img  height="100" src="images/characters/shared/headshots_main/142.jpg"></a></td></tr><tr><td align=center><<$npc_firstname[''A142'']>></td></tr></table></td>'
	'<td width =16.6%><table bgcolor=#FFF8DC><tr><td align=center><a href="exec: gt ''nerd_game_night'', ''julia''"><img  height="100" src="images/characters/shared/headshots_main/12.jpg"></a></td></tr><tr><td align=center><<$npc_firstname[''A12'']>></td></tr></table></td>'
	'</tr></table></center>'
end

if $ARGS[0] = 'artem':
	*clr & cla
	menu_off = 1
	minut += 10
	gs 'exp_gain', 'chrsm', rand(1,2)
	gs 'npc_relationship', 'modify', 'A2', 'like'
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big2.jpg"></center>'
	if fame['pav_slut'] > 175:
		if npc_rel['A153'] >= 50:
			'You try talking to Artem, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but I need to get home." You can tell he''s trying to be nice, but obviously doesn''t want to be seen talking to you in front of his fellow nerds.'
		elseif npc_rel['A153'] <= 20:
			'When he sees you walking over, he gives you a disgusted look. "Get away from me you disgusting slut!" he says as he leaves.'
		else
			'You try talking to Artem, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," he says quietly. "Anyway, I need to get home." He gathers his stuff up and leaves.'
		end
	elseif grupTipe = 3:
		if npc_rel['A153'] >= 50:
			'You greet Artem with a smile and make a point to ask him how the game was. With a shy smile, he tells you in great detail how the game went; he seems to have really enjoyed himself.'
		elseif npc_rel['A153'] <= 20:
			'Artem isn''t really interested in talking to you, but you insist and try to keep up a conversation until he finally stops you. "Hey, I''ve gotta go... I need to be home before it gets too late. I guess I''ll see you later?" he says halfheartedly with an awkward laugh.'
		else
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and talks about it for some time.'
		end
	else
		if npc_rel['A153'] >= 50:
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and tells you in great detail how the game went.'
		elseif npc_rel['A153'] <= 20:
			'You try talking to Artem, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," he says quietly. "Anyway, I need to get home." He gathers his stuff up and leaves.'
		else
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and talks about it for some time.'
		end
	end
	if $loc = 'city_coffee_hole':
		act 'Leave': gt 'city_coffee_hole', 'inner'
	else
		act 'Leave':gt 'pav_commcenter', 'lobby'
	end
end

if $ARGS[0] = 'petka':
	*clr & cla
	menu_off = 1
	minut += 10
	gs 'exp_gain', 'chrsm', rand(1,2)
	gs 'npc_relationship', 'modify', 'A6', 'like'
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big6.jpg"></center>'
	if fame['pav_slut'] > 175:
		if npc_rel['A153'] >= 50:
			'You try talking to Petka, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but I need to get home." You can tell he''s trying to be nice, but obviously doesn''t want to be seen talking to you in front of his fellow nerds.'
		elseif npc_rel['A153'] <= 20:
			'When he sees you walking over, he gives you a disgusted look. "Get away from me you disgusting slut!" he says as he leaves.'
		else
			'You try talking to Petka, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," he says quietly. "Anyway, I need to get home." He gathers his stuff up and leaves.'
		end
	elseif grupTipe = 3:
		if npc_rel['A153'] >= 50:
			'You greet Petka with a smile and make a point to ask him how the game was. With a shy smile, he tells you in great detail how the game went; he seems to have really enjoyed himself.'
		elseif npc_rel['A153'] <= 20:
			'Petka isn''t really interested in talking to you, but you insist and try to keep up a conversation until he finally stops you. "Hey, I''ve gotta go... I need to be home before it gets too late. I guess I''ll see you later?" he says halfheartedly with an awkward laugh.'
		else
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and talks about it for some time.'
		end
	else
		if npc_rel['A153'] >= 50:
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and tells you in great detail how the game went.'
		elseif npc_rel['A153'] <= 20:
			'You try talking to Petka, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," he says quietly. "Anyway, I need to get home." He gathers his stuff up and leaves.'
		else
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and talks about it for some time.'
		end
	end
	if $loc = 'city_coffee_hole':
		act 'Leave': gt 'city_coffee_hole', 'inner'
	else
		act 'Leave':gt 'pav_commcenter', 'lobby'
	end
end

if $ARGS[0] = 'julia':
	*clr & cla
	menu_off = 1
	minut += 10
	gs 'exp_gain', 'chrsm', rand(1,2)
	gs 'npc_relationship', 'modify', 'A12', 'like'
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big12.jpg"></center>'
	if fame['pav_slut'] > 175:
		if npc_rel['A153'] >= 50:
			'You try talking to Julia, but it''s a very one-sided conversation with you doing all of the talking until she finally speaks up. "I don''t want to sound rude, but I need to get home." You can tell she''s trying to be nice, but obviously doesn''t want to be seen talking to you in front of her fellow nerds.'
		elseif npc_rel['A153'] <= 20:
			'When she sees you walking over, she gives you a disgusted look. "Get away from me you disgusting slut!" she says as she leaves.'
		else
			'You try talking to Julia, but it''s a very one-sided conversation with you doing all of the talking until she finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," she says quietly. "Anyway, I need to get home." She gathers her stuff up and leaves.'
		end
	elseif grupTipe = 3:
		if npc_rel['A153'] >= 50:
			'You greet Julia with a smile and make a point to ask her how the game was. With a shy smile, she tells you in great detail how the game went; she seems to have really enjoyed herself.'
		elseif npc_rel['A153'] <= 20:
			'Julia isn''t really interested in talking to you, but you insist and try to keep up a conversation until she finally stops you. "Hey, I''ve gotta go... I need to be home before it gets too late. I guess I''ll see you later?" she says halfheartedly with an awkward laugh.'
		else
			'"Oh hey, <<$pcs_nickname>>," she says with a sheepish smile. You talk to her, mostly asking her about the game she just played; she seems to really enjoy it and talks about it for some time.'
		end
	else
		if npc_rel['A153'] >= 50:
			'"Oh hey, <<$pcs_nickname>>," she says with a sheepish smile. You talk to her, mostly asking her about the game she just played; she seems to really enjoy it and tells you in great detail how the game went.'
		elseif npc_rel['A153'] <= 20:
			'You try talking to Julia, but it''s a very one-sided conversation with you doing all of the talking until she finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," she says quietly. "Anyway, I need to get home." She gathers her stuff up and leaves.'
		else
			'"Oh hey, <<$pcs_nickname>>," she says with a sheepish smile. You talk to her, mostly asking her about the game she just played; she seems to really enjoy it and talks about it for some time.'
		end
	end
	if $loc = 'city_coffee_hole':
		act 'Leave': gt 'city_coffee_hole', 'inner'
	else
		act 'Leave':gt 'pav_commcenter', 'lobby'
	end
end

if $ARGS[0] = 'feofan':
	*clr & cla
	menu_off = 1
	minut += 10
	gs 'exp_gain', 'chrsm', rand(1,2)
	gs 'npc_relationship', 'modify', 'A152', 'like'
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
	if fame['pav_slut'] > 175:
		if npc_rel['A153'] >= 50:
			'You try talking to Feofan, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but I need to get home." You can tell he''s trying to be nice, but obviously doesn''t want to be seen talking to you in front of his fellow nerds.'
		elseif npc_rel['A153'] <= 20:
			'When he sees you walking over, he gives you a disgusted look. "Get away from me you disgusting slut!" he says as he leaves.'
		else
			'You try talking to Feofan, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," he says quietly. "Anyway, I need to get home." He gathers his stuff up and leaves.'
		end
	elseif grupTipe = 3:
		if npc_rel['A153'] >= 50:
			'You greet Feofan with a smile and make a point to ask him how the game was. With a shy smile, he tells you in great detail how the game went; he seems to have really enjoyed himself.'
		elseif npc_rel['A153'] <= 20:
			'Feofan isn''t really interested in talking to you, but you insist and try to keep up a conversation until he finally stops you. "Hey, I''ve gotta go... I need to be home before it gets too late. I guess I''ll see you later?" he says halfheartedly with an awkward laugh.'
		else
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played. He seems to really enjoy it and talks about it for some time.'
		end
	else
		if npc_rel['A153'] >= 50:
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and tells you in great detail how the game went.'
		elseif npc_rel['A153'] <= 20:
			'You try talking to Feofan, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," he says quietly. "Anyway, I need to get home." He gathers his stuff up and leaves.'
		else
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and talks about it for some time.'
		end
	end
	if $loc = 'city_coffee_hole':
		act 'Leave': gt 'city_coffee_hole', 'inner'
	else
		act 'Leave':gt 'pav_commcenter', 'lobby'
	end
end

if $ARGS[0] = 'gerasim':
	*clr & cla
	menu_off = 1
	minut += 10
	gs 'exp_gain', 'chrsm', rand(1,2)
	gs 'npc_relationship', 'modify', 'A153', 'like'
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big153.jpg"></center>'
	if fame['pav_slut'] > 175:
		if npc_rel['A153'] >= 50:
			'You try talking to Gerasim, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but I need to get home." You can tell he''s trying to be nice, but obviously doesn''t want to be seen talking to you in front of his fellow nerds.'
		elseif npc_rel['A153'] <= 20:
			'When he sees you walking over, he gives you a disgusted look. "Get away from me you disgusting slut!" he says as he leaves.'
		else
			'You try talking to Gerasim, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," he says quietly. "Anyway, I need to get home." He gathers his stuff up and leaves.'
		end
	elseif grupTipe = 3:
		if npc_rel['A153'] >= 50:
			'You greet Gerasim with a smile and make a point to ask him how the game was. With a shy smile, he tells you in great detail how the game went; he seems to have really enjoyed himself.'
		elseif npc_rel['A153'] <= 20:
			'Gerasim isn''t really interested in talking to you, but you insist and try to keep up a conversation until he finally stops you. "Hey, I''ve gotta go... I need to be home before it gets too late. I guess I''ll see you later?" he says halfheartedly with an awkward laugh.'
		else
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and talks about it for some time.'
		end
	else
		if npc_rel['A153'] >= 50:
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and tells you in great detail how the game went.'
		elseif npc_rel['A153'] <= 20:
			'You try talking to Gerasim, but it''s a very one-sided conversation with you doing all of the talking until he finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," he says quietly. "Anyway, I need to get home." He gathers his stuff up and leaves.'
		else
			'"Oh hey, <<$pcs_nickname>>," he says with a sheepish smile. You talk to him, mostly asking him about the game he just played; he seems to really enjoy it and talks about it for some time.'
		end
	end
	if $loc = 'city_coffee_hole':
		act 'Leave': gt 'city_coffee_hole', 'inner'
	else
		act 'Leave':gt 'pav_commcenter', 'lobby'
	end
end

if $ARGS[0] = 'zinaida':
	*clr & cla
	menu_off = 1
	minut += 10
	gs 'exp_gain', 'chrsm', rand(1,2)
	gs 'npc_relationship', 'modify', 'A142', 'like'
	gs 'stat'
	'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big142.jpg"></center>'
	if fame['pav_slut'] > 175:
		if npc_rel['A153'] >= 50:
			'You try talking to Zinaida, but it''s a very one-sided conversation with you doing all of the talking until she finally speaks up. "I don''t want to sound rude, but I need to get home." You can tell she''s trying to be nice, but obviously doesn''t want to be seen talking to you in front of her fellow nerds.'
		elseif npc_rel['A153'] <= 20:
			'When she sees you walking over, she gives you a disgusted look. "Get away from me you disgusting slut!" she says as she leaves.'
		else
			'You try talking to Zinaida, but it''s a very one-sided conversation with you doing all of the talking until she finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," she says quietly. "Anyway, I need to get home." She gathers her stuff up and leaves.'
		end
	elseif grupTipe = 3:
		if npc_rel['A153'] >= 50:
			'You greet Zinaida with a smile and make a point to ask her how the game was. With a shy smile, she tells you in great detail how the game went; she seems to have really enjoyed herself.'
		elseif npc_rel['A153'] <= 20:
			'Zinaida isn''t really interested in talking to you, but you insist and try to keep up a conversation until she finally stops you. "Hey, I''ve gotta go... I need to be home before it gets too late. I guess I''ll see you later?" she says halfheartedly with an awkward laugh.'
		else
			'"Oh hey, <<$pcs_nickname>>," she says with a sheepish smile. You talk to her, mostly asking her about the game she just played; she seems to really enjoy it and talks about it for some time.'
		end
	else
		if npc_rel['A153'] >= 50:
			'"Oh hey, <<$pcs_nickname>>," she says with a sheepish smile. You talk to her, mostly asking her about the game she just played; she seems to really enjoy it and tells you in great detail how the game went.'
		elseif npc_rel['A153'] <= 20:
			'You try talking to Zinaida, but it''s a very one-sided conversation with you doing all of the talking until she finally speaks up. "I don''t want to sound rude, but we''re not really friends so I''m not sure why you''d want to talk to me," she says quietly. "Anyway, I need to get home." She gathers her stuff up and leaves.'
		else
			'"Oh hey, <<$pcs_nickname>>," she says with a sheepish smile. You talk to her, mostly asking her about the game she just played; she seems to really enjoy it and talks about it for some time.'
		end
	end
	if $loc = 'city_coffee_hole':
		act 'Leave': gt 'city_coffee_hole', 'inner'
	else
		act 'Leave':gt 'pav_commcenter', 'lobby'
	end
end


if $ARGS[0] = 'summer_invite_sms':
	$SMS_open_receiving = '<table width=80%><tr><td collspan=2 bgcolor="#D4CEF9"><font color=black>'
	$SMS_close_receiving = '</font></td><td width=10%></td></tr></table>'

	!! Open and close sending text
	$SMS_open_sending = '<table width=80%><tr><td width=10%></td><td collspan=2 bgcolor=pink><font color=black>'
	$SMS_close_sending = '</font></td></tr></table>'

	!! Start reply
	$SMS_open_replies = '<table><tr><th> Reply</th></tr><tr><td>'
	$SMS_next_reply = '</td></tr><tr><td>'
	$SMS_close_replies = '</td></tr></table>'
	
	$temp_SMStext = ''

	if $ARGS[1] = 'Add SMS':
		nerd_game['lot'] = func('shortgs', 'rand_pick', '', 12, 13, 14, 23, 24, 34)
		nerd_game['invite_day'] = daystart
	end

	$temp_start_text = ''
	if nerd_game['first_SMS_received'] = 0:
		$temp_start_text = 'Hey <<$pcs_nickname>> this is Feofan. We do a weekly game night, mostly playing Dungeons and Dragons and board games. I was talking to the others and we were wondering if you would like to join us? We have a few nights free this week and were wondering which one works best for you. We can do it either on <<$week[val(mid(nerd_game[''lot''],1,1))]>> or <<$week[val(mid(nerd_game[''lot''],2,1))]>>.'
	else
		$temp_start_text = 'Hey <<$pcs_nickname>>, would you like to join us for our weekly game night? We have a few nights free this week and were wondering which one works best for you. We can do it either on <<$week[val(mid(nerd_game[''lot''],1,1))]>> or <<$week[val(mid(nerd_game[''lot''],2,1))]>>.'
	end
	
	$SMSTree[ '0'] = $temp_start_text

		$SMSTree['a1'] = 'Sorry, but I''m just not interested in stuff like that. Thanks for the invite though.'
			$SMSTree['a2'] = ':-( Oh... okay yeah I get it. Guess we''ll see you around.'

		$SMSTree['b1'] = 'Sure, I can make it on <<$week[val(mid(nerd_game[''lot''],1,1))]>>.'
			$SMSTree['b2'] = ':-) Great! I''ll see you on <<$week[val(mid(nerd_game[''lot''],1,1))]>> at 20:00 in the library then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'

		$SMSTree['c1'] = 'Sure, I can make it on <<$week[val(mid(nerd_game[''lot''],2,1))]>>.'
			$SMSTree['c2'] = ':-) Great! I''ll see you on <<$week[val(mid(nerd_game[''lot''],2,1))]>> at 20:00 in the library then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'
	
	killvar '$temp_start_text'
	
	if $ARGS[1] = 'Add SMS':
		$temp_SMStext += $SMS_open_receiving + $SMSTree[ '0'] + $SMS_close_receiving

		$temp_SMStext += $SMS_open_replies
		$temp_SMStext += '<a href="exec: gs ''nerd_game_night'', ''summer_invite_sms'', ''Choice_a'', telefon[''SMSid'']">' + 'Not interested' + '</a>'
		$temp_SMStext += $SMS_next_reply
		$temp_SMStext += '<a href="exec: gs ''nerd_game_night'', ''summer_invite_sms'', ''Choice_b'', telefon[''SMSid'']">' + '<<$week[val(mid(nerd_game[''lot''],1,1))]>>' + '</a>'
		$temp_SMStext += $SMS_next_reply
		$temp_SMStext += '<a href="exec: gs ''nerd_game_night'', ''summer_invite_sms'', ''Choice_c'', telefon[''SMSid'']">' + '<<$week[val(mid(nerd_game[''lot''],2,1))]>>' + '</a>'
		$temp_SMStext += $SMS_close_replies
		
		gs 'telefon', 'add_sms', 'A152', $temp_SMStext
	
	elseif $ARGS[1] = 'Choice_a':
		!! Add Feofan to the contact list if he isn''t in it yet.
		!! Is here to add it after reading the text.
		if nerd_game['first_SMS_received'] = 0:
			if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', "", "1 = 0", "", "", 0
			nerd_game['first_SMS_received'] = 1
		end

		$temp_SMStext += $SMS_open_receiving + $SMSTree[ '0'] + $SMS_close_receiving
		$temp_SMStext += $SMS_open_sending   + $SMSTree['a1'] + $SMS_close_sending

		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]
		wait 1000

		$temp_SMStext += $SMS_open_receiving + $SMSTree['a2'] + $SMS_close_receiving
		
		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]
!!		nerd_game['invite_day'] = 2147483647 & ! block the event
	
	elseif $ARGS[1] = 'Choice_b':
		!! Add Feofan to the contact list if he isn''t in it yet.
		!! Is here to add it after reading the text.
		if nerd_game['first_SMS_received'] = 0:
			if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', "", "1 = 0", "", "", 0
			nerd_game['first_SMS_received'] = 1
		end

		nerd_game['game_day'] = daystart - week + val(mid(nerd_game['lot'],1,1))

		$temp_SMStext += $SMS_open_receiving + $SMSTree[ '0'] + $SMS_close_receiving
		$temp_SMStext += $SMS_open_sending   + $SMSTree['b1'] + $SMS_close_sending

		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]
		wait 1000

		$temp_SMStext += $SMS_open_receiving + $SMSTree['b2'] + $SMS_close_receiving
		
		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]

	elseif $ARGS[1] = 'Choice_c':
		!! Add Feofan to the contact list if he isn''t in it yet.
		!! Is here to add it after reading the text.
		if nerd_game['first_SMS_received'] = 0:
			if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', "", "1 = 0", "", "", 0
			nerd_game['first_SMS_received'] = 1
		end

		nerd_game['game_day'] = daystart - week + val(mid(nerd_game['lot'],2,1))

		$temp_SMStext += $SMS_open_receiving + $SMSTree[ '0'] + $SMS_close_receiving
		$temp_SMStext += $SMS_open_sending   + $SMSTree['c1'] + $SMS_close_sending

		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]
		wait 1000

		$temp_SMStext += $SMS_open_receiving + $SMSTree['c2'] + $SMS_close_receiving
		
		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]

	end

	killvar '$temp_SMStext'
	killvar '$SMSTree'
end

if $ARGS[0] = 'summer2_invite_sms':
	$SMS_open_receiving = '<table width=80%><tr><td collspan=2 bgcolor="#D4CEF9"><font color=black>'
	$SMS_close_receiving = '</font></td><td width=10%></td></tr></table>'

	!! Open and close sending text
	$SMS_open_sending = '<table width=80%><tr><td width=10%></td><td collspan=2 bgcolor=pink><font color=black>'
	$SMS_close_sending = '</font></td></tr></table>'

	!! Start reply
	$SMS_open_replies = '<table><tr><th> Reply</th></tr><tr><td>'
	$SMS_next_reply = '</td></tr><tr><td>'
	$SMS_close_replies = '</td></tr></table>'
	
	$temp_SMStext = ''


	if $ARGS[1] = 'Add SMS':
		nerd_game['invite_day'] = daystart
	end

	if nerd_game['first_SMS_received'] = 0:
		$temp_start_text = 'Hey <<$pcs_nickname>> this is Feofan. We are doing our weekly game night at the Coffee Hole, coffee shop now. We will mostly be playing Dungeons and Dragons and board games. I was talking to the others and we were wondering if you was going to keep playing with us? We have a few nights free this week and were wondering which night works best for you. We can do it either on Tuesday or Thursday.'
	else
		$temp_start_text = 'Hey <<$pcs_nickname>>, would you like to join us for our weekly game night at the Coffee Hole? We have a few nights free this week and were wondering which night works best for you. We can do it either on Tuesday or Thursday.'
	end

	$SMSTree[ '0'] = $temp_start_text

		$SMSTree['a1']  = 'Sorry, but I''m just not interested in stuff like that anymore. Thanks for the invite though.'
			$SMSTree['a2'] = ':-( Oh... Okay, yeah I get it. Guess we''ll see you around.'

		$SMSTree['b1'] = 'Sure, I can make it on Tuesday.'
			$SMSTree['b2'] = ':-) Great! I''ll see you on Tuesday at 18:00 at the Coffee Hole then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'

		$SMSTree['c1'] = 'Sure, I can make it on Thursday.'
			$SMSTree['c2'] = ':-) Great! I''ll see you on Thursday at 18:00 at the Coffee Hole then! Be ready to get your nerd on, because we''re going to rock it so hard! We also meet for board games on Saturday and Sunday if you want to show up for those.'

	if $ARGS[1] = 'Add SMS':
		$temp_SMStext += $SMS_open_receiving + $SMSTree[ '0'] + $SMS_close_receiving
		
		$temp_SMStext += $SMS_open_replies
		$temp_SMStext += '<a href="exec: gs ''nerd_game_night'', ''summer2_invite_sms'', ''Choice_a'', telefon[''SMSid'']">' + 'Not interested' + '</a>'
		$temp_SMStext += $SMS_next_reply
		$temp_SMStext += '<a href="exec: gs ''nerd_game_night'', ''summer2_invite_sms'', ''Choice_b'', telefon[''SMSid'']">' + 'Tuesday' + '</a>'
		$temp_SMStext += $SMS_next_reply
		$temp_SMStext += '<a href="exec: gs ''nerd_game_night'', ''summer2_invite_sms'', ''Choice_c'', telefon[''SMSid'']">' + 'Thursday' + '</a>'
		$temp_SMStext += $SMS_close_replies
		
		gs 'telefon', 'add_sms', 'A152', $temp_SMStext

	elseif $ARGS[1] = 'Choice_a':
		!! Add Feofan to the contact list if he isn''t in it yet.
		!! Is here to add it after reading the text.
		if nerd_game['first_SMS_received'] = 0:
			if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', "", "1 = 0", "", "", 0
			nerd_game['first_SMS_received'] = 1
		end

		$temp_SMStext += $SMS_open_receiving + $SMSTree[ '0'] + $SMS_close_receiving
		$temp_SMStext += $SMS_open_sending   + $SMSTree['a1'] + $SMS_close_sending
		
		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]
		wait 1000
		
		$temp_SMStext += $SMS_open_receiving + $SMSTree['a2'] + $SMS_close_receiving

		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]
!!		nerd_game['invite_day'] = 2147483647 & ! block the event

	elseif $ARGS[1] = 'Choice_b':
		!! Add Feofan to the contact list if he isn''t in it yet.
		!! Is here to add it after reading the text.
		if nerd_game['first_SMS_received'] = 0:
			if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', "", "1 = 0", "", "", 0
			nerd_game['first_SMS_received'] = 1
		end

		nerd_game['fixed_uni_day'] = 2
		
		$temp_SMStext += $SMS_open_receiving + $SMSTree[ '0'] + $SMS_close_receiving
		$temp_SMStext += $SMS_open_sending   + $SMSTree['b1'] + $SMS_close_sending
		
		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]
		wait 1000
		
		$temp_SMStext += $SMS_open_receiving + $SMSTree['b2'] + $SMS_close_receiving

		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]

	elseif $ARGS[1] = 'Choice_c':
		!! Add Feofan to the contact list if he isn''t in it yet.
		!! Is here to add it after reading the text.
		if nerd_game['first_SMS_received'] = 0:
			if arrpos('$contact', 'A152') = -1: gs 'telefon', 'AddContact', 'A152', 'images/characters/shared/headshots_main/big152.jpg', "", "1 = 0", "", "", 0
			nerd_game['first_SMS_received'] = 1
		end

		nerd_game['fixed_uni_day'] = 4
		
		$temp_SMStext += $SMS_open_receiving + $SMSTree[ '0'] + $SMS_close_receiving
		$temp_SMStext += $SMS_open_sending   + $SMSTree['c1'] + $SMS_close_sending
		
		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]
		wait 1000
		
		$temp_SMStext += $SMS_open_receiving + $SMSTree['c2'] + $SMS_close_receiving

		$SMSMessage[ARGS[2]] = $temp_SMStext
		gs 'telefon', 'show_sms', ARGS[2]

	end

	killvar '$temp_SMStext'
	killvar '$SMSTree'
end

if $ARGS[0] = 'invite_uni':
	if $ARGS[1] = 'exit':
		gs 'uni_lessons', 'schedule'
		act 'Go to the university plaza': gt 'uni_grounds', 'main'
	else
		menu_off = 1
		*clr & cla
		minut += 2
		!! in order to return Sveta to the correct location
		$temp_loc = $ARGS[1]
		!! In order to avoid loops or complex if-else trees a random combination of days (Mon-Thu 1-4) is picked. The first day is set as the first number from the combination, the second day as the second.
		temp = func('shortgs', 'rand_pick', '', 12, 13, 14, 23, 24, 34)
		nerd_game['invite_day'] = daystart
		gs 'stat'
		'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
		'As you leave your last class of the day, Feofan walks over to you and smiles. "Hey <<$pcs_nickname>>, we do a weekly game night where we mostly play Dungeons and Dragons, but we sometimes play some board games. I was talking to the others and we were wondering if you would like to join us? We have a few nights free this week and were wondering which one works best for you. We can do it either on Tuesday or Thursday evening."'
		act 'Not interested <br><font color="red">This will block this story arc.</font>':
			nerd_game['invite_day'] = 2147483647 & ! block the event
			*clr & cla
			minut += 2
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
			'You shake your head. "Sorry, but I''m not interested in stuff like that. Thanks for the invite though."'
			'He looks disappointed "Oh... Okay, yeah I get it. Well, I guess we''ll see you around..." he mumbles before walking away.'
			gs 'nerd_game_night', 'invite_uni', 'exit'
		end
		act 'I have to study':
			*clr & cla
			minut += 2
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
			'You shake your head. "Sorry, but I can''t this week. These classes are killing me and I''m going to have to put in extra studying this week."'
			'He looks disappointed "Oh... Okay, yeah I understand. If you ever get a handle on your class let me know.... Anyway, I''ll go let the others know and maybe you can come next week? Talk to you later." He walks away before you can reply.'
			gs 'nerd_game_night', 'invite_uni', 'exit'
		end
		act 'I''m busy':
			*clr & cla
			minut += 2
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
			'You shake your head. "Sorry, but I can''t this week. I already made plans for those days."'
			'He looks disappointed. "Oh... Okay. I guess you''re turning into a popular girl, huh?" he says with a grin.'
			'You shake your head. "Very funny."'
			'He laughs a little. "Anyway, I''ll let the others know and maybe you can come next week? Talk to you later." He walks away before you can reply.'
			gs 'nerd_game_night', 'invite_uni', 'exit'
		end
		act 'Tuesday':
			*clr & cla
			minut += 2
			nerd_game['fixed_uni_day'] = 2
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
			'"Sure, I can make it on Tuesday," you reply.'
			'He looks excited. "Great! I''ll see you on Tuesday at 18:00 at the Coffee Hole then! Be ready to get your nerd on, because we''re going to rock it so hard!" he says with a cheesy wink and double finger point before walking away.'
			gs 'nerd_game_night', 'invite', 'exit'
		end
		act 'Thursday':
			*clr & cla
			minut += 2
			nerd_game['fixed_uni_day'] =  4
			gs 'stat'
			'<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big152.jpg"></center>'
			'"Sure, I can make it on Thursday," you reply.'
			'He looks excited. "Great! I''ll see you on Thursday at 18:00 at the Coffee Hole then! Be ready to get your nerd on, because we''re going to rock it so hard!" he says with a cheesy wink and double finger point before walking away.'
			gs 'nerd_game_night', 'invite', 'exit'
		end
	end
end

if $ARGS[0] = 'crash_gamenight_uni':
	*clr & cla
	menu_off = 1
	minut += 10
	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/library/events/nerd_game/gamenight.jpg"></center>'
	if grupTipe = 3:
		if nerd_game['game_day'] = daystart and (hour*60+minut < 22*60+30):
			'As you walk over to their table, everyone freezes and looks your way. When they see you, they relax and go back to playing their game.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Hey <<$pcs_nickname>>! We''re almost done, but it''s not too late to join."'
			'You smile and shake your head. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you as Feofan nods. "Okay. Can it wait until we finish at 11pm?"'
			'You sigh and check the time.'
			act 'Leave': gt 'city_coffee_hole', 'inner'
			act 'Wait for game to end': minut = 23*60 - (hour*60+minut) & gt 'nerd_game_night', 'nerd_chat'
		else
			'Upon entering the room, everyone freezes and looks your way. When they see you, they relax and continue putting away their game materials.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Hey <<$pcs_nickname>>! We''re done for the night, but you can always join us another time?"'
			'You smile and shake your head. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you as Feofan nods. "Oh. Okay..." You can tell they''re all wondering who it is you came to speak with.'
			act 'Leave': gt 'city_coffee_hole', 'inner'
			act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
		end
	else
		if nerd_game['game_day'] = daystart and (hour*60+minut < 22*60+30):
			'As you walk over to their table, everyone freezes and looks your way. You can feel the anxious looks from the group sitting around a table that has all sorts of geeky stuff spread across it.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Can we help you?"'
			'You smile to reassure them that you''re not here to mess with them. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you, Feofan being the one to speak up again. "Can it wait until we finish at 11pm?"'
			'You sigh and check the time.'
			act 'Leave': gt 'city_coffee_hole', 'inner'
			act 'Wait for game to end': minut = 23*60 - (hour*60+minut) & gt 'nerd_game_night', 'nerd_chat'
		else
			'As you walk over to their table, everyone freezes and looks your way. You can feel the anxious looks from the group standing around a table packing up all their geeky stuff.'
			'As you''re about to ask what they''re doing, Feofan speaks up. "Can we help you?"'
			'You smile to reassure them that you''re not here to mess with them. "I just wanted to talk to one of you is all."'
			'They all exchange looks and then look back at you, Feofan being the one to speak up again. "Oh. Okay...." You can tell they''re all wondering who it is you came to speak with.'
			act 'Leave': gt 'city_coffee_hole', 'inner'
			act 'Chat with someone': gt 'nerd_game_night', 'nerd_chat'
		end
	end
end

--- nerd_game_night ---------------------------------

