Quellcode durchsuchen

Add standard Radomir schedule. Should be adjusted probably, need input of writer.

HotMike vor 1 Jahr
Ursprung
Commit
4fa4ff5bf4

+ 1 - 1
locations/anushka_konstantinov_schedule.qsrc

@@ -90,7 +90,7 @@ else
 	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.
+! Use this in the calendar app on Sveta''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:

+ 60 - 0
locations/radomir_popov_schedule.qsrc

@@ -20,7 +20,67 @@
 !locat['A154'] = 9 (Radomir is at work at music store in mall Mon-Fri 8 to 17)
 !---------------------------------------------
 
+locat['A158'] = 3
 
+!! For the moment based on the standard schedule. Should be adjusted to City schedule.
+
+if week = 1:
+	if hour >= 8 and hour < 17:
+		locat['A158'] = 9
+	end
+elseif week = 2:
+	if hour >= 8 and hour < 17:
+		locat['A158'] = 9
+	end
+elseif week = 3:
+	if hour >= 8 and hour < 17:
+		locat['A158'] = 9
+	elseif hour >= 18 and hour < 23:
+		locat['A158'] = 8
+	end
+elseif week = 4:
+	if hour >= 8 and hour < 17:
+		locat['A158'] = 9
+	end
+elseif week = 5:
+	if hour >= 8 and hour < 17:
+		locat['A158'] = 9
+	elseif hour >= 20:
+		locat['A158'] = 0
+	end
+elseif week = 6:
+	if hour >= 20:
+		locat['A158'] = 0
+	end
+elseif week = 7:
+end
+
+if $ARGS[0] = 'getLocation':
+	!Set the text for the current NPC ID
+	if locat['A158'] = 0:
+		npcLocation['A144'] = 'Radomir not home Fri and Sat 20:00 for rest of night.'
+	elseif locat['A158'] = 1:
+		npcLocation['A144'] = 'Radomir in the hallway.'
+	elseif locat['A158'] = 2:
+		npcLocation['A144'] = 'Radomir in Anushka''s room.'
+	elseif locat['A158'] = 3:
+		npcLocation['A144'] = 'Radomir in Radomir''s room.'
+	elseif locat['A158'] = 4:
+		npcLocation['A144'] = 'Radomir in the kitchen.'
+	elseif locat['A158'] = 5:
+		npcLocation['A144'] = 'Radomir in the livingroom.'
+	elseif locat['A158'] = 6:
+		npcLocation['A144'] = 'Radomir in Valentin''s and Arkadi''s room.'
+	elseif locat['A158'] = 7:
+		npcLocation['A144'] = 'Radomir in the bathroom.'
+	elseif locat['A158'] = 8: 
+		npcLocation['A144'] = 'Radomir is in the garage with the band.'
+	elseif locat['A158'] = 9:
+		npcLocation['A144'] = 'Radomir is at work, mechanic Mon-Fri 8 to 17.'
+	elseif locat['A158'] = 10:
+		npcLocation['A144'] = 'Radomir is in the garage working on his bike Mon 17-23.'
+	end
+end
 
 
 --- radomir_popov_schedule ---------------------------------

+ 1 - 1
locations/valentin_bogdanov_schedule.qsrc

@@ -55,7 +55,7 @@ elseif week = 7:
 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.
+! Use this in the calendar app on Sveta''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['A158'] = 0: