wakeup.qsrc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # wakeup
  2. !! Deals with all the triggers that happen when waking up.
  3. !!
  4. !! Moved here from sleep or sleep_events
  5. !! When done: Move to wakeup_events
  6. if $ARGS[0] = 'start' or $ARGS[0] = 'wake' or $ARGS[0] = '':
  7. menu_off = 1
  8. InSleep = 1
  9. gs 'stat'
  10. SleepVars['no_sleep_loss'] = 1
  11. xgt 'wakeup', 'mod_sleeptriggers'
  12. end
  13. if $ARGS[0] = 'mod_sleeptriggers':
  14. !! This location is here to allow mods to hook into the system.
  15. !! Check for: if $ARGS[0] = 'pre_sleep' and $ARGS[1] = 'mod_sleeptriggers'
  16. !!
  17. !! This is NOT for events!!
  18. gs 'LOCA', 'wakeup', 'mod_sleeptriggers'
  19. xgt 'wakeup_events', 'start'
  20. end
  21. if $ARGS[0] = 'get_out':
  22. menu_off = 1
  23. sleepVars['time_now'] = daystart * 1440 + hour * 60 + minut
  24. if sleepVars['slept_in'] = 1:
  25. 'You wake up at <<func(''alarmclock'', ''alarm_display'', hour, minut)>>, after sleeping-in a little longer than planned, but at least you''ve had plenty of sleep.'
  26. elseif pcs_sleep >= 100 and alarmVars['alarmOn'] = 1 and sleepVars['time_now'] >= sleepVars['alarm_time']:
  27. 'You wake up at <<func(''alarmclock'', ''alarm_display'', hour, minut)>>, just before your alarm goes off. You''ve had plenty of sleep.'
  28. elseif pcs_sleep >= 100:
  29. 'You wake up at <<func(''alarmclock'', ''alarm_display'', hour, minut)>> no longer tired and ready to start the day with plenty of sleep.'
  30. elseif alarmVars['alarmOn'] = 1 and sleepVars['time_now'] = sleepVars['alarm_time']:
  31. pcs_mood -= 10
  32. 'Your alarm goes off at <<func(''alarmclock'', ''alarm_display'', hour, minut)>>, '+iif(pcs_sleep < 90, 'but you could do with some extra sleep.', 'and you''ve had plenty of sleep.')+''
  33. gs 'wakeup', 'snooze_alarm'
  34. else
  35. !! I do not think that it could go here
  36. ''
  37. end
  38. if kanikuli = 0 and mid($start_type,1,2) = 'sg' and SchoolAtestat = 0 and SchoolBlock = 0 and week < 6 and hour >= 4 and hour < 9:
  39. act 'Get out of bed and get dressed for school (0:15)':
  40. minut += 15
  41. gs 'wardrobe', 'school_outfit'
  42. xgt 'bed_get_out', 'start'
  43. end
  44. end
  45. if strip_here = 1:
  46. act 'Get out of bed and get dressed (0:15)':
  47. minut += 15
  48. gs 'clothing', 'wear', $lastwornclothingtype['bed'], lastwornclothingnumber['bed']
  49. gs 'panties', 'wear', $lastwornpantytype['bed'], lastwornpantynumber['bed']
  50. gs 'bras', 'wear', $lastwornbratype['bed'], lastwornbranumber['bed']
  51. if $bed['shoetype'] ! 'none':
  52. gs 'shoes', 'wear', $bed['shoetype'], bed['shoenumber']
  53. end
  54. xgt 'bed_get_out', 'start'
  55. end
  56. end
  57. if cheatVars['full_morning_rout'] = 1 and hour >= 4 and hour < 12:
  58. act 'Full morning routine (01:00)':
  59. minut += 15
  60. fullmorrout = 1
  61. gs 'clothing', 'wear', $lastwornclothingtype['bed'], lastwornclothingnumber['bed']
  62. gs 'panties', 'wear', $lastwornpantytype['bed'], lastwornpantynumber['bed']
  63. gs 'bras', 'wear', $lastwornbratype['bed'], lastwornbranumber['bed']
  64. if $bed['shoetype'] ! 'none':
  65. gs 'shoes', 'wear', $bed['shoetype'], bed['shoenumber']
  66. end
  67. xgt 'bed_get_out', 'start'
  68. end
  69. if kanikuli = 0 and mid($start_type,1,2) = 'sg' and SchoolAtestat = 0 and SchoolBlock = 0 and week < 6 and hour >= 4 and hour < 9 and suspended['on'] ! 1:
  70. act 'Full morning routine for School (01:00)':
  71. fullmorrout = 1
  72. minut += 15
  73. gs 'wardrobe', 'school_outfit'
  74. xgt 'bed_get_out', 'start'
  75. end
  76. end
  77. end
  78. act 'Get out of bed (0:10)':
  79. minut += 10
  80. sleepVars['slept_in'] = 0
  81. xgt 'bed_get_out', 'start'
  82. end
  83. end
  84. if $ARGS[0] = 'snooze_alarm':
  85. act '"Snooze" a few minutes more...':
  86. menu_off = 1
  87. sleepVars['slept_in'] = 1
  88. gs 'stat'
  89. gt 'sleep', 'start'
  90. end
  91. end
  92. --- wakeup ---------------------------------