pre_sleep.qsrc 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. # pre_sleep
  2. !! Deals with all the triggers that happen to prepare to for the sleep cycle, before the dream events start.
  3. !!
  4. !! Moved here from pre_sleep_events
  5. !! When done: Move to dream_events
  6. if $ARGS[0] = 'start' or $ARGS[0] = '':
  7. menu_off = 1
  8. sleepVars['slept_in'] = 0
  9. gt 'pre_sleep_events', 'start'
  10. end
  11. if $ARGS[0] = 'pre_sleep2':
  12. menu_off = 1
  13. if clo_flag['bed'] = 0:
  14. clo_flag['bed'] = 1
  15. $lastwornclothingtype['bed'] = $clothingworntype
  16. lastwornclothingnumber['bed'] = clothingwornnumber
  17. $lastwornpantytype['bed'] = $pantyworntype
  18. lastwornpantynumber['bed'] = pantywornnumber
  19. $lastwornbratype['bed'] = $braworntype
  20. lastwornbranumber['bed'] = brawornnumber
  21. end
  22. if sleepVars['bedPanty'] = 2:
  23. gs 'underwear', 'remove'
  24. elseif sleepVars['bedPanty'] = 1:
  25. gs 'underwear', 'wear'
  26. end
  27. if $clothingworntype ! 'nude':
  28. strip_here = 1
  29. gs 'clothing', 'strip'
  30. end
  31. gt 'pre_sleep', 'prepare_sleep'
  32. end
  33. if $ARGS[0] = 'prepare_sleep':
  34. menu_off = 1
  35. if $clothingworntype ! 'nude':
  36. '<center><img <<$set_imgh>> src="images/shared/home/bed.jpg"></center>'
  37. else
  38. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/son.jpg"></center>'
  39. end
  40. gs 'stat'
  41. *nl
  42. if alarmVars['alarmOn'] = 1:
  43. if alarmVars['alarm_holiday'] = 1 and kanikuli ! 0 or ((hour => alarmVars['timerEndH'] and (week = 5 or week = 6)) or (hour < alarmVars['timerEndH'] and (week = 6 or week = 7))):
  44. 'You run through your regular nightly routine, setting your alarm for <<func(''alarmclock'', ''get_weekend_display'')>>, you undress, and prepare for sleep:'
  45. else
  46. 'You run through your regular nightly routine, setting your alarm for <<func(''alarmclock'', ''get_week_display'')>>, you undress, and prepare for sleep:'
  47. end
  48. else
  49. 'You run through your regular nightly routine, not bothering to setting your alarm, you undress, and prepare for sleep:'
  50. end
  51. pcs_hairbsh = 0
  52. pain['killer'] = 0
  53. if mid($start_type, 1, 2) = 'sg' and $loc ! 'bedrPar' and SchoolAtestat = 0:
  54. sleepVars['notathomesleep'] += 1
  55. else
  56. sleepVars['notathomesleep'] = 0
  57. end
  58. if succubusflag = 1 and sucwalkday <= daystart and (succhungry < (0 - 1 - succublvl) or pcs_willpwr < ((succublvl * willpowermax) / 13) or sucpowzeroed >= 3): gs 'succubus', 'sucwalkinginit'
  59. if analplugIN = 1 and vibratorIN = 1:
  60. *nl
  61. if sleepVars['bedAnal'] = 1 and sleepVars['bedVibrator'] = 1:
  62. analplugIN = 0 & analplugout = 0
  63. vibratorIN = 0
  64. gs 'stat'
  65. 'Before going to bed, you take out your butt plug and vibrator and give it a quick wash.'
  66. elseif sleepVars['bedAnal'] = 1 and sleepVars['bedVibrator'] = 0:
  67. vibratorIN = 0
  68. gs 'stat'
  69. 'Before going to bed, you take out your vibrator and give it a quick wash.'
  70. 'You decide to leave your butt plug in.'
  71. elseif sleepVars['bedAnal'] = 0 and sleepVars['bedVibrator'] = 1:
  72. analplugIN = 0 & analplugout = 0
  73. gs 'stat'
  74. 'Before going to bed, you take out your butt plug and give it a quick wash.'
  75. 'You decide to leave your vibrator in.'
  76. else
  77. 'You decide to leave your butt plug and vibrator in.'
  78. end
  79. elseif analplugIN = 1 and vibratorIN = 0:
  80. *nl
  81. if sleepVars['bedAnal'] = 1:
  82. analplugIN = 0 & analplugout = 0
  83. gs 'stat'
  84. 'Before going to bed, you take out your butt plug and give it a quick wash.'
  85. else
  86. *nl
  87. 'You decide to leave your butt plug in.'
  88. end
  89. elseif analplugIN = 0 and vibratorIN = 1:
  90. *nl
  91. if sleepVars['bedVibrator'] = 1:
  92. vibratorIN = 0
  93. 'Before going to bed, you take out your vibrator and give it a quick wash.'
  94. else
  95. 'You decide to leave your vibrator in.'
  96. end
  97. end
  98. if $shoeworntype = 'none':
  99. $bed['shoetype'] = 'none'
  100. else
  101. $bed['shoetype'] = $shoeworntype
  102. bed['shoenumber'] = shoewornnumber
  103. !! gs 'shoes', 'strip'
  104. end
  105. *nl
  106. if sleepVars['bedPanty'] = 1:
  107. if $pantyworntype = 'none' and $braworntype = 'none':
  108. 'You put on your bra and panties.'
  109. elseif $pantyworntype ! 'none' and $braworntype = 'none':
  110. 'You put on your bra.'
  111. elseif $pantyworntype ! 'none' and $braworntype ! 'none':
  112. 'You put on your panties.'
  113. else
  114. 'You change your bra and panties.'
  115. end
  116. elseif sleepVars['bedPanty'] = 2:
  117. if $pantyworntype ! 'none' or $braworntype ! 'none':
  118. 'You remove your bra and panties.'
  119. elseif $pantyworntype ! 'none' and $braworntype = 'none':
  120. 'You remove your panties.'
  121. elseif $braworntype ! 'none':
  122. 'You remove your bra.'
  123. end
  124. else
  125. 'You were too tired to worry about your underwear, so for tonight you left it as is.'
  126. end
  127. *nl
  128. if $hairstyle ! '':
  129. $hairstyle
  130. else
  131. 'Your hair is loose and free.'
  132. end
  133. if pcs_makeup > 1 and cosmetic_tattoo = 0:
  134. pcs_makeup = 0
  135. vidageday -= 1
  136. gs 'body', 'SkinLoss', 'MakeUpSleep'
  137. *nl
  138. 'You went to bed wearing your makeup, which will smear your face as you sleep; your skin will age faster from this!'
  139. end
  140. if fat > 5 and stringimplant = 1: bodyVars['bust_silicone'] += 1 & fat -= 5
  141. xgt 'pre_sleep', 'mod_sleeptriggers'
  142. end
  143. if $ARGS[0] = 'mod_sleeptriggers':
  144. !! This location is here to allow mods to hook into the system.
  145. !! Either check for: if $ARGS[0] = 'pre_sleep' and $ARGS[1] = 'mod_triggers'
  146. !!
  147. !! This is NOT for events!!
  148. gs 'LOCA', 'pre_sleep', 'mod_sleeptriggers'
  149. xgt 'pre_sleep', 'end'
  150. end
  151. if $ARGS[0] = 'end':
  152. act 'Sleep...':
  153. !!flag to stop autosave breaking my awesome clothing thingy
  154. clo_flag['bed'] = 0
  155. InSleep = 1
  156. gs 'stat'
  157. gt 'sleep', 'start'
  158. end
  159. end
  160. --- pre_sleep ---------------------------------