Browse Source

First commit of a separated schedule. Mainly showcasing.

HotMike 11 months ago
parent
commit
30830b4b9d

+ 6 - 1
glife.qproj

@@ -546,13 +546,16 @@
 		<Location name="anushkaev1"/>
 		<Location name="anushkaev2"/>
 		<Location name="anushapt"/>
-		<Location name="anushapt_city"/>
 		<Location name="anush_bedroom"/>
 		<Location name="anush_bedroom_city"/>
 		<Location name="anushaptbr"/> 
 		<Location name="anushkachat"/>
 		<Location name="anushkachat_city"/>
 		<Location name="anushkamaksim"/>
+		<Location name="anushka_konstantinov_schedule"/>
+		<Location name="valentin_bogdanov_schedule" />
+		<Location name="radomir_popov_schedule" />
+		<Location name="arkadi_fyodorov_schedule" />
 	</Folder>
 	<Folder name="Sonia">
 		<Location name="soniadisco"/>
@@ -1001,6 +1004,8 @@
 		<Location name="shop_nerdvana"/>
 		<Location name="shop_flamingos"/>
 		<Location name="city_coffee_hole"/>
+		<Location name="anushapt_city"/>
+		<Location name="anushapt_city_schedule"/>
 	</Folder>
 	<Folder name="University">
 		<Location name="uni_grounds"/>

+ 4 - 2
locations/anushapt_city.qsrc

@@ -88,12 +88,14 @@ if $ARGS[0] = 'home':
 	$location_type = 'private'	
 	gs 'themes', 'indoors'
 	gs 'stat'
+!!! Probably we should have an init call here that sets all the locations, depending on time. Then those locations get updated when other locations are entered.
+	gs 'anushapt_city_schedule'
+	! First time here, progress the Quest
 	if anushkaQW['home_day'] ! daystart:
 		anushkaQW['home_day'] = daystart
 		locat['A144'] = 0
 	end
-!!! Probably we should have an init call here that sets all the locations, depending on time. Then those locations get updated when other locations are entered.
-	
+
 !!notes about when each person is home by default.
 !!Anushka is home Mon from 18:00 for rest of night, Tues and Thurs from 15:00 till 18:00, Fri from 16:00 till 20:00, Sat from 08:00 till 20:00 (first Sat each month from 16:00 till 20:00), Sun from 08:00 till 17:00
 !!Radomir is home Mon-Tues and Thurs from 18:00 for rest of night, Sat from 08:00 till 20:00, Sun all day

+ 15 - 0
locations/anushapt_city_schedule.qsrc

@@ -0,0 +1,15 @@
+# anushapt_city_schedule
+!! 2023-05-26
+
+! We call the NPCs that live in the apartment from here
+gs 'anushka_konstantinov_schedule'
+gs 'valentin_bogdanov_schedule'
+gs 'arkadi_fyodorov_schedule'
+gs 'radomir_popov_schedule'
+
+
+! Additional settings go here
+
+
+
+--- anushapt_city_schedule ---------------------------------

+ 126 - 0
locations/anushka_konstantinov_schedule.qsrc

@@ -0,0 +1,126 @@
+# anushka_konstantinov_schedule
+!! 2023-05-26
+
+!! Her schedule:
+!AnushkaLocCity tells us where Anvushka is located
+!----------------------------------------------
+!locat['A144'] = 0 (Anushka not home Fri and Sat 20:00 for rest of night)
+!locat['A144'] = 1 (Anushka in the hallway)
+!locat['A144'] = 2 (Anushka in her room)
+!locat['A144'] = 3 (Anushka in Radomir''s room)
+!locat['A144'] = 4 (Anushka in the kitchen)
+!locat['A144'] = 5 (Anushka in the livingroom)
+!locat['A144'] = 6 (Anushka in Valentin and Arkadi''s room)
+!locat['A144'] = 7 (Anushka in the bathroom)
+!locat['A144'] = 8 (Anushka is in the garage with the band Wed 18-23)
+!locat['A144'] = 9 (Anushka is at the Coffee Hole working (week = 2 or week = 4 or week = 7) and hour >= 18) or (week = 5 and hour >= 10 and hour < 16))
+!locat['A144'] = 10 (Anushka is at the University classes 09:00 to 15:00)
+!locat['A144'] = 11 (Anushka is at the modeling studio First Sat of each month 8 to 16:00)
+!locat['A144'] = 12 (Anushka is at the University Library Mon and Wed from 15:00 till 18:00)
+!---------------------------------------------
+
+! City schedule
+! Standard location is not at home
+locat['A144'] = 0
+!!Anushka is home Mon from 18:00 for rest of night, Tues and Thurs from 15:00 till 18:00, Fri from 16:00 till 20:00, Sat from 08:00 till 20:00 (first Sat each month from 16:00 till 20:00), Sun from 08:00 till 17:00
+
+!! Home is located in her bedroom (2)
+! TODO: randomize the location inside home?
+
+if week = 1:
+	! Monday
+	if hour >= 9 and hour < 15:
+		! Need an additional check: is the university open?
+		locat['A144'] = 10
+	elseif hour >= 15 and hour < 18:
+		locat['A144'] = 12
+	elseif hour >= 18 and hour <= 23:
+		locat['A144'] = 2
+	end
+elseif week = 2:
+	if hour >= 9 and hour < 15:
+		locat['A144'] = 10
+	elseif hour >= 15 and hour < 18:
+		locat['A144'] = 2
+	elseif hour >= 18 and hour <23:
+		locat['A144'] = 9
+	end
+elseif week = 3:
+	if hour >= 9 and hour < 15:
+		locat['A144'] = 10
+	elseif hour >= 15 and hour < 18:
+		locat['A144'] = 12
+	elseif hour >= 18 and hour < 23:
+		locat['A144'] = 8
+	end
+elseif week = 4:
+	if hour >= 9 and hour < 15:
+		locat['A144'] = 10
+	elseif hour >= 18 and hour <23:
+		locat['A144'] = 9
+	end
+elseif week = 5:
+	if hour >= 9 and hour < 15:
+		locat['A144'] = 10
+	elseif hour >= 10 and hour <16:
+		locat['A144'] = 9
+	elseif hour >= 16 and hour <20:
+		locat['A144'] = 2
+	elseif hour >= 20:
+		locat['A144'] = 0
+	end
+elseif week = 6:
+	!(first Sat each month from 16:00 till 20:00)
+	if day <= 7:
+		if hour >= 8 and hour < 16:
+			locat['A144'] = 11
+		elseif hour >= 16 and hour < 20:
+			locat['A144'] = 2
+		end
+	else
+		if hour <= 8: and hour < 20:
+			locat['A144'] = 2
+		elseif hour >= 20:
+			locat['A144'] = 0
+		end
+	end
+else
+	if hour >= 18 and hour <23:
+		locat['A144'] = 9
+	end
+end
+
+! Use this in the calendar app on Zveta's phone Loop over an array there that holds NPC IDs she is allowed to see there, and for each ID call this function.
+if $ARGS[0] = 'getLocation':
+	!Set the text for the current NPC ID
+	if locat['A144'] = 0:
+		npcLocation['A144'] = 'Anushka not home Fri and Sat 20:00 for rest of night'
+	elseif locat['A144'] = 1: 
+		npcLocation['A144'] = 'Anushka in the hallway at her city apartment'
+	elseif locat['A144'] = 2:
+		npcLocation['A144'] = 'Anushka in her room at her city apartment'
+	elseif locat['A144'] = 3:
+		npcLocation['A144'] = 'Anushka in Radomir''s room at her city apartment'
+	elseif locat['A144'] = 4:
+		npcLocation['A144'] = 'Anushka in the kitchen at her city apartment'
+	elseif locat['A144'] = 5:
+		npcLocation['A144'] = 'Anushka in the livingroom at her city apartment'
+	elseif locat['A144'] = 6: 
+		npcLocation['A144'] = 'Anushka in Valentin and Arkadi''s room'
+	elseif locat['A144'] = 7:
+		npcLocation['A144'] = 'Anushka in the bathroom'
+	elseif locat['A144'] = 8:
+		npcLocation['A144'] = 'Anushka is in the garage with the band Wed 18-23'
+	elseif locat['A144'] = 9:
+		npcLocation['A144'] = 'Anushka is at her job at the The Coffee Hole'
+	elseif locat['A144'] = 10:
+		npcLocation['A144'] = 'Anushka is at the University classes 09:00 to 15:00'
+	elseif locat['A144'] = 11:
+		npcLocation['A144'] = 'Anushka is at the modeling studio First Sat of each month 8:00 to 16:00'
+	elseif locat['A144'] = 12:
+		npcLocation['A144'] = 'Anushka is at the University Library Mon and Wed from 15:00 till 18:00'
+	end
+end
+
+
+--- anushka_konstantinov_schedule ---------------------------------

+ 23 - 0
locations/arkadi_fyodorov_schedule.qsrc

@@ -0,0 +1,23 @@
+# arkadi_fyodorov_schedule
+!! 2023-05-26
+
+!! His schedule:
+!ArkadiLocCity tells us where Arkadi is located
+!locat['A156'] =
+!----------------------------------------------
+!locat['A156'] = 0 (Arkadi not home Fri and Sat 20:00 for rest of night)
+!locat['A156'] = 1 (Arkadi in the hallway)
+!locat['A156'] = 2 (Arkadi in Anushka''s room)
+!locat['A156'] = 3 (Arkadi in Radomir''s room)
+!locat['A156'] = 4 (Arkadi in the kitchen)
+!locat['A156'] = 5 (Arkadi in the livingroom)
+!locat['A156'] = 6 (Arkadi in his and Valentin''s room)
+!locat['A156'] = 7 (Arkadi in the bathroom)
+!locat['A156'] = 8 (Arkadi is in the garage with the band Wed 18-23)
+!locat['A156'] = 9 (Arkadi is at work, factory Mon-Fri 8 to 17)
+!---------------------------------------------
+
+
+
+
+--- arkadi_fyodorov_schedule ---------------------------------

+ 26 - 0
locations/radomir_popov_schedule.qsrc

@@ -0,0 +1,26 @@
+# radomir_popov_schedule
+!! 2023-05-26
+
+!! His schedule:
+!RadomirLocCity tells us where Radomir is located
+! TODO. Later on in this file the schedule is described as:
+! !!Radomir is home Mon-Tues and Thurs from 18:00 for rest of night, Sat from 08:00 till 20:00, Sun all day
+! Which one is correct?
+!locat['A154']
+!----------------------------------------------
+!locat['A154'] = 0 (Radomir not home Fri and Sat 20:00 for rest of night)
+!locat['A154'] = 1 (Radomir in the hallway)
+!locat['A154'] = 2 (Radomir in Anushka''s room)
+!locat['A154'] = 3 (Radomir in his room)
+!locat['A154'] = 4 (Radomir in the kitchen)
+!locat['A154'] = 5 (Radomir in the livingroom)
+!locat['A154'] = 6 (Radomir in Valentin and Arkadi''s room)
+!locat['A154'] = 7 (Radomir in the bathroom)
+!locat['A154'] = 8 (Radomir is in the garage with the band Wed 18-23)
+!locat['A154'] = 9 (Radomir is at work at music store in mall Mon-Fri 8 to 17)
+!---------------------------------------------
+
+
+
+
+--- radomir_popov_schedule ---------------------------------

+ 24 - 0
locations/valentin_bogdanov_schedule.qsrc

@@ -0,0 +1,24 @@
+# valentin_bogdanov_schedule
+!! 2023-05-26
+
+!! His schedule:
+!ValentinLocCity tells us where Valentin is located
+!locat['A158']
+!----------------------------------------------
+!locat['A158'] = 0 (Valentin not home Fri and Sat 20:00 for rest of night)
+!locat['A158'] = 1 (Valentin in the hallway)
+!locat['A158'] = 2 (Valentin in Anushka''s room)
+!locat['A158'] = 3 (Valentin in Radomir''s room)
+!locat['A158'] = 4 (Valentin in the kitchen)
+!locat['A158'] = 5 (Valentin in the livingroom)
+!locat['A158'] = 6 (Valentin in his and Arkadi''s room)
+!locat['A158'] = 7 (Valentin in the bathroom)
+!locat['A158'] = 8 (Valentin is in the garage with the band)
+!locat['A158'] = 9 (Valentin is at work, mechanic Mon-Fri 8 to 17)
+!locat['A158'] = 10 (Valentin is in the garage working on his bike Mon 17-23)
+!---------------------------------------------
+
+
+
+
+--- valentin_bogdanov_schedule ---------------------------------