# shop_photography
!! Photography shop in the City Center Mall
!! Variables used:
!! photographyEv = Track shop progression through buying a camera
!!	0 = First visit
!!	1 = Return visitor, but have not bought camera
!!	2 = Bought camera, unlocks portfolio sharing
!! photography_job = Track progression through job events
!! photojob_daystart = Track when job last accepted - only allowed one job per week
!! portfolio_locations[n] for storing which images Sveta has of locations (value of 1 for have)
!! portfolio_people[n] for storing which images Sveta has of people

! The owner of the shop is Branko Volenskii
if $ARGS[0] = 'start':
	$loc = 'shop_photography'
	$loc_arg = 'start'
	$location_type = 'public_indoors'
	cls
	menu_off = 0
	gs 'stat'
	gs 'themes', 'indoors'
	'<center><b><font color="maroon">Camera & Photography Store</font></b></center>'
	'<center><img src="images/locations/city/citycenter/mall/photoshop/shop.jpg"></center>'
	'The shop is dedicated to cameras and is celebrating this fact by displaying a myriad of them along every wall. A singular counter sits just off the adjacent wall with the shopkeeper standing behind it, clearly eager for some trade to enter his shop.'

	if photography_start = 1 and week >= 6 and photography['datecheck'] ! daystart:
		act 'Ask about work':		
			*clr & cla
			minut += 10
			gs 'stat'
			'<center><img src="images/locations/city/citycenter/mall/photoshop/owner.jpg"></center>'

			'You walk up to Branko. "Excuse me Branko, but you said you might have some work for me. Would you happen to have anything?"'
			'He smiles at you. "Yes yes, I remember. You''re <<$pcs_nickname>>, Let me check." He opens a laptop sitting on the counter next to him and taps on the keys before he looks up at you.'
			
			!! Init Job Array
			photography['datecheck'] = daystart
			gs 'photography_work', 'job_init'
			gs 'emp_functions', 'disp_evt', 1
		end
	end
	if photographyEv = 2 and photography_start = 0:
		act 'Show portfolio': gt 'shop_photography' , 'showportfolio'
	end
	act 'Talk to the shop owner':
		*clr & cla
		minut += 10
		gs 'stat'
		if photographyEv = 0:
			!!first time in shop:
			photographyEv = 1
			'<center><img src="images/locations/city/citycenter/mall/photoshop/owner.jpg"></center>'
			'"Hello there! What''s your name?" the friendly man behind the counter asks with a smile.'
			'"<<$pcs_firstname>>." you reply.'
			'"Nice to meet you, <<$pcs_firstname>>. You look like the sort of person who would be interested in a quality camera. In fact, judging by the sort of person I see before me, I have just the camera right here that would be perfect for you, only 20,000₽!"'
			*nl
			'"Well, I''ve been thinking about getting into photography. It might be worth it." you tell him and he launches into a long conversation about the joys you can have with a camera. He talks about what the camera in question can do, along with all it''s features. It does sound like the perfect camera for someone that is serious about getting into photography, but is that you?'
			gs 'shop_photography', 'camera_options', 'first'
		elseif photographyEv = 1:
			!!returning to shop without buying camera:
			'<center><img src="images/locations/city/citycenter/mall/photoshop/owner.jpg"></center>'
			'The owner smiles when he sees you. "Aha! I remember you! <<$pcs_firstname>>! How fantastic it is that you should return to my shop! Have you changed your mind about buying a camera?"'
			gs 'shop_photography', 'camera_options', 'repeat'
		else
			'The owner smiles when he sees you. "Aha! I remember you! <<$pcs_firstname>>! How fantastic it is that you should return to my shop! How are you getting on with your recent purchase? Brilliantly I hope! I know what I see and I see brilliance before me so it can only be that you would get on brilliantly!"'
			act 'Walk away': gt 'shop_photography' , 'start'
		end
	end
	if evt_chk = 1:
		!! We've got an event today, check it's location:
		gs 'emp_functions', 'disp_evt', 3
	end
	act 'Leave':
		*clr & cla
		minut += 3
		gt 'torgcentr'
	end
end

if $ARGS[0] = 'camera_options':
	if money >= 20000:
		act 'Purchase DSLR Camera for 20000₽ (with Cash)' : gt 'shop_photography' , 'buycamera' , 'cash'
	elseif karta >= 20000:
		act 'Purchase DSLR Camera for 20000₽ (with Card)' : gt 'shop_photography' , 'buycamera' , 'card'
	else 
		act 'Can''t afford camera':
			*clr & cla
			minut += rand(1,2)
			gs 'stat'
			'<center><img src="images/locations/city/citycenter/mall/photoshop/owner.jpg"></center>'
			if $ARGS[1] = 'first':
				'You consider it for a moment. You would love to buy it, but you know you don''t have enough money for it right now. "Maybe some other time? I can''t really afford it, but thank you for taking the time to explain things to me though."'
				'He smiles. "It was my pleasure young lady. I hope to see you again soon."'
			else
				'You consider it for a moment. You would love to buy it, but you know you don''t have enough money for it right now. "I would love to, but I still can''t afford it. I''m saving up to buy it though."'
				'He smiles. "Best of luck. Feel free to look around if you like." You spend a little time looking at all the cameras and accessories you can''t really afford.'
			end
			act 'Leave':
				cla
				minut += 3
				gt 'torgcentr'
			end
		end
	end
	act 'Don''t buy camera':
		*clr & cla
		minut += rand(1,2)
		gs 'stat'
		'<center><img src="images/locations/city/citycenter/mall/photoshop/owner.jpg"></center>'
		if $ARGS[1] = 'first':
			'You consider it for a moment, but decide against it. "Maybe some other time, but thank you for taking the time to explain things to me."'
			'He smiles. "It was my pleasure young lady. If you change your mind, you know where to find me."'
		else
			'You still don''t know if you want to get into photography. "Maybe some other time, I just wanted to look around."'
			'He smiles. "Of course of course, look around all you like young lady, but if you change your mind you know where to find me."'
		end
		
		act 'Leave':
			cla
			minut += 3
			gt 'torgcentr'
		end
	end
end

if $ARGS[0] = 'buycamera':
	*clr & cla
	minut += rand(1,2)
	if $ARGS[1] = 'cash':
		money -= 20000
	elseif $ARGS[1] = 'card':
		karta -= 20000
	end
	photographyEv = 2
	gs 'stat'
	'<center><img src="images/locations/city/citycenter/mall/photoshop/owner.jpg"></center>'
	'"You have made a momentous decision with this purchase! Here is your very own DSLR camera to do anything from professional commissioned photography to personal snaps of small events. And now that I have launched your photographic crusade to enlightenment, what are you indeed planning to use this opportunity for in this world of possibility?"'
	*nl
	'"I''m thinking of just building a portfolio of pictures for now; something to test how I can build up my ability to frame a scene. I might start by going around the area and looking for pictures to take to build a catalog of photographs."'
	*nl
	'"Fantastic!  Brilliant! Tell you what; once you''ve completed your portfolio, bring it in as I would love to see it! Now go! I release you into this new world of possibility!"'
	act 'Walk away': gt 'shop_photography' , 'start'
end

if $ARGS[0] = 'showportfolio':
	*clr & cla
	minut += 15
	gs 'stat'
	'<center><img src="images/locations/city/citycenter/mall/photoshop/owner.jpg"></center>'
	if pcs_photoskl <= 35:
		'"Ah, your portfolio, by all means I would love to peruse through it!"'
		'"Mmmm.... not bad. You have some natural talent, but you still need to learn how to use lighting and angles better. Yes yes, you have some raw talent but you need more experience. Come back when you can, I would love to see you grow into the amazing photographer I know you can be."'
		'"Yes yes, when you get more experience I might have a fantastic business opportunity for you! You see, in addition to the shop you see before you, I also have a side business in commissioned photography and from what I''ve seen, you might just be the person I''m looking for; you''ll be paid of course! But first practice, practice practice!"'
		'You frown a little. At least he likes your work. "Okay, I will. I''ll keep practicing and when I feel I''ve improved, I''ll return."'
	elseif pcs_photoskl <= 50:
		photography_start = 1
		'"Ah, your portfolio, by all means I would love to peruse through it!"'
		'"Mmmm.... these photographs are good. You have a real eye! With a little more practice, you will become a very skilled photographer."'
		'"You can call me Branko. I have a fantastic business opportunity for you! You see, in addition to the shop you see before you, I also have a side business in commissioned photography and from what I''ve seen, you''re the perfect person to help me with some additional work. There will be no pressure, just visit my beautiful shop at the weekend and I''ll let you know if there''s any photography jobs you can do for me; you''ll be paid of course!"'
		'"Wow, that sounds interesting. I''ll visit when I can."'
	elseif pcs_photoskl <= 75:
		photography_start = 1
		'"Ah, your portfolio, by all means I would love to peruse through it!"'
		'"Mmmm.... these photographs are terrific. Sensational, absolutely sensational."'
		'"You can call me Branko. I have a fantastic business opportunity for you! You see, in addition to the shop you see before you, I also have a side business in commissioned photography and from what I''ve seen, you''re the perfect person to help me with some additional work. There will be no pressure, just visit my beautiful shop and I''ll let you know if there''s any photography jobs you can do for me; cash in hand of course!"'
		'"Wow, that sounds interesting. I''ll visit when I can."'
	else
		photography_start = 1
		'"Ah, your portfolio, by all means I would love to peruse through it!"'
		'"Mmmm.... My god... These are simply breathtaking my dear, just breathtaking! I don''t think I''ve ever meet anyone with as much potential as you in my life! With a little more seasoning, you could become one of the greatest photographers of our time!"'
		'"You can call me Branko. I have a fantastic business opportunity for you! You see, in addition to the shop you see before you, I also have a side business in commissioned photography and from what I''ve seen, you''re the perfect person to help me with some additional work. There will be no pressure, just visit my beautiful shop and I''ll let you know if there''s any photography jobs you can do for me; you''ll be paid of course!"'
		'"Wow, that sounds interesting. I''ll visit when I can!"'
	end
	act 'Walk away': gt 'shop_photography' , 'start'
end



--- shop_photography ---------------------------------

