123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- # 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 Wed 18-23)
- !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)
- !locat['A158'] = 20 Home, sleeping getting up in the morning and walking to school.
- !locat['A158'] = 21 At school.
- !locat['A158'] = 23 Out at an unspecified location in Pav.
- !locat['A158'] = 24 Practicing with the band in the garage.
- !locat['A158'] = 25 At the community center disco.
- !locat['A158'] = 30 On tour with the band
- !---------------------------------------------
- !! Standard location is his shared own room which should be set at init
- !locat['A158'] = 6
- ! TODO fix for
- !!Valentin is home Tues and Thurs from 18:00 for rest of night, Sat from 08:00 till 20:00, Sun all day
- if yearstart = 1 and (month < 6 or year = 2016):
- !! Schedule for the first year of the game until just after school ends
- if week < 6:
- if hour < 8:
- locat['A158'] = 20
- elseif hour < 16:
- locat['A158'] = 23
- elseif hour < 20:
- if week = 3:
- locat['A158'] = 24
- else
- locat['A158'] = 23
- end
- elseif hour < 22:
- if week = 3:
- locat['A158'] = 24
- elseif week = 5:
- locat['A158'] = 25
- else
- locat['A158'] = 23
- end
- else
- if week = 5:
- locat['A158'] = 25
- else
- locat['A158'] = 20
- end
- end
- elseif week = 6:
- if hour < 9:
- locat['A158'] = 20
- elseif hour < 20:
- locat['A158'] = 23
- else
- locat['A158'] = 25
- end
- else
- if hour < 9:
- locat['A158'] = 20
- elseif hour < 22:
- locat['A158'] = 23
- else
- locat['A158'] = 20
- end
- end
- elseif yearstart = 1 or (yearstart = 2 and month = 8 and day < 10):
- !! Schedule for the rest of the first year (and a week of the second) She is on tour with the band.
- locat['A158'] = 30
- else
- if week = 1:
- if hour >= 8 and hour < 17:
- locat['A158'] = 9
- elseif hour >= 17 and hour < 23:
- locat['A158'] = 10
- end
- elseif week = 2:
- if hour >= 8 and hour < 17:
- locat['A158'] = 9
- elseif hour >= 18:
- locat['A158'] = 6
- 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
- elseif hour >= 18:
- locat['A158'] = 6
- 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 >= 8 and hour < 20:
- locat['A158'] = 6
- elseif hour >= 20:
- locat['A158'] = 0
- end
- elseif week = 7:
- end
- end
- if locat['A158'] > 0 and locat['A158'] < 8:
- $ValentinLocCity = 'home'
- else
- $ValentinLocCity = 'notHome'
- end
- ! 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:
- $npcLocation['A158'] = 'Valentin not home Fri and Sat 20:00 for rest of night.'
- elseif locat['A158'] = 1:
- $npcLocation['A158'] = 'Valentin in the hallway.'
- elseif locat['A158'] = 2:
- $npcLocation['A158'] = 'Valentin in Anushka''s room.'
- elseif locat['A158'] = 3:
- $npcLocation['A158'] = 'Valentin in Radomir''s room.'
- elseif locat['A158'] = 4:
- $npcLocation['A158'] = 'Valentin in the kitchen.'
- elseif locat['A158'] = 5:
- $npcLocation['A158'] = 'Valentin in the livingroom.'
- elseif locat['A158'] = 6:
- $npcLocation['A158'] = 'Valentin in his and Arkadi''s room.'
- elseif locat['A158'] = 7:
- $npcLocation['A158'] = 'Valentin in the bathroom.'
- elseif locat['A158'] = 8:
- $npcLocation['A158'] = 'Valentin is in the garage with the band.'
- elseif locat['A158'] = 9:
- $npcLocation['A158'] = 'Valentin is at work, mechanic Mon-Fri 8 to 17.'
- elseif locat['A158'] = 10:
- $npcLocation['A158'] = 'Valentin is in the garage working on his bike Mon 17-23.'
- end
- end
- --- valentin_bogdanov_schedule ---------------------------------
|