bed2.qsrc 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # bed2
  2. !! Lying in bed hub. From here PC can take various actions, including going to sleep.
  3. !!
  4. !! Moved here from bed_events
  5. !! Going to sleep: move to pre_sleep_events
  6. if $ARGS[0] = 'bed2' or $ARGS[0] = 'start' or $ARGS[0] = '':
  7. $menu_loc = 'bed2'
  8. $alarmloc = 'bed2'
  9. $menu_arg = 'start'
  10. $alarmarg = 'start'
  11. menu_off = 0
  12. if clo_flag['bed'] = 1:
  13. clo_flag['bed'] = 0
  14. gs 'clothing', 'wear', $lastwornclothingtype['bed'], lastwornclothingnumber['bed']
  15. gs 'panties', 'wear', $lastwornpantytype['bed'], lastwornpantynumber['bed']
  16. gs 'bras', 'wear', $lastwornbratype['bed'], lastwornbranumber['bed']
  17. end
  18. gs 'stat'
  19. gt 'bed2', 'mod_sleeptriggers'
  20. end
  21. if $ARGS[0] = 'mod_sleeptriggers':
  22. !! This location is here to allow mods to hook into the system.
  23. !! Either check for: if $ARGS[0] = 'bed2' and $ARGS[1] = 'mod_sleeptriggers'
  24. !!
  25. !! This is NOT for events!!
  26. gs 'LOCA', 'bed2', 'mod_sleeptriggers'
  27. gt 'bed2', 'main'
  28. end
  29. if $ARGS[0] = 'main':
  30. $menu_loc = 'bed2'
  31. $alarmloc = 'bed2'
  32. $menu_arg = 'main'
  33. $alarmarg = 'main'
  34. menu_off = 0
  35. if pcs_makeup ! 1 and cosmetic_tattoo = 0: *nl '<b><font color="red">You need to wash off your makeup before going to bed.</font></b>'
  36. if $clothingworntype ! 'nude':
  37. '<center><img <<$set_imgh>> src="images/shared/home/bed.jpg"></center>'
  38. else
  39. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/son.jpg"></center>'
  40. end
  41. *nl
  42. 'Your <a href="exec:gt ''alarmclock'', ''start''">alarm clock</a> is set to <<func(''alarmclock'', ''alarm_display'', alarmVars[''timerH''], alarmVars[''timerM''])>> during the week and <<func(''alarmclock'', ''alarm_display'', alarmVars[''timerEndH''], alarmVars[''timerEndM''])>> during the weekend. It is currently turned ' + iif(alarmVars['alarmOn'] = 0, '<a href="exec: alarmVars[''alarmOn''] = 1 & gt ''bed2'', ''main''">OFF</a>.', '<a href="exec: alarmVars[''alarmOn''] = 0 & gt ''bed2'', ''main''">ON</a>.')
  43. *nl
  44. gs 'bed2', 'wear_panties_decider'
  45. *nl
  46. gs 'bed2', 'wear_buttplug_decider'
  47. gs 'bed2', 'wear_vibe_decider'
  48. if pcs_sleep <= 80:
  49. if $clothingworntype = 'nude':
  50. act 'Go to bed': gs 'shortgs', 'autosave' & gt 'pre_sleep', 'start'
  51. else
  52. act 'Undress and go to bed': gs 'shortgs', 'autosave' & gt 'pre_sleep', 'start'
  53. end
  54. end
  55. act 'Get out of bed': gt 'bed_get_out', 'start'
  56. act 'Take a nap (1:00)': gs 'sleep_simple', 'nap_bed'
  57. gs 'events', 'read'
  58. if $loc ! 'bedrPar' or locat['Anya_inroom'] = 0 or locat['Anya'] = 1 or locat['Anya'] = 26:
  59. if mc_inventory['mag_porn'] > 0: gs 'events', 'read_porn'
  60. if (pcs_horny > 75 and pcs_inhib >= 60) or (pcs_horny > 50 and (fame['pav_slut'] >= 150 or (fame['pav_slut'] >= 50 and pcs_inhib >= 60))):
  61. act 'Masturbate':
  62. InSleep = 0
  63. gt 'selfplay', 'start'
  64. end
  65. end
  66. end
  67. end
  68. if $ARGS[0] = 'wear_panties_decider':
  69. if hypnoPanty <= 0:
  70. if sleepVars['bedPanty'] = 0:
  71. 'Will you always wear your underwear to bed? Currently - <a href="exec:sleepVars[''bedPanty''] = 1 & gs ''stat'' & gt ''bed2'', ''main''">AS IS</a>.'
  72. elseif sleepVars['bedPanty'] = 1:
  73. 'Will you always wear your underwear to bed? Currently - <a href="exec:sleepVars[''bedPanty''] = 2 & gs ''stat'' & gt ''bed2'', ''main''">YES</a>.'
  74. elseif sleepVars['bedPanty'] = 2:
  75. 'Will you always wear your underwear to bed? Currently - <a href="exec:sleepVars[''bedPanty''] = 0 & gs ''stat'' & gt ''bed2'', ''main''">NO</a>.'
  76. end
  77. end
  78. end
  79. if $ARGS[0] = 'wear_buttplug_decider':
  80. if mc_inventory['buttplug'] = 1:
  81. if sleepVars['bedAnal'] = 0:
  82. 'Should you always remove your anal plug before bed? Currently - <a href="exec:sleepVars[''bedAnal''] = 1 & gs ''stat'' & gt ''bed2'', ''main''">NO</a>.'
  83. elseif sleepVars['bedAnal'] = 1:
  84. 'Should you always remove your anal plug before bed? Currently - <a href="exec:sleepVars[''bedAnal''] = 0 & gs ''stat'' & gt ''bed2'', ''main''">YES</a>.'
  85. end
  86. end
  87. end
  88. if $ARGS[0] = 'wear_vibe_decider':
  89. if mc_inventory['vibe'] = 1 and cheatVars['sleep_vib'] = 1:
  90. if sleepVars['bedVibrator'] = 0:
  91. 'Should you always remove your vibrator before bed? Currently - <a href="exec:sleepVars[''bedVibrator''] = 1 & gs ''stat'' & gt ''bed2'', ''main''">NO</a>.'
  92. elseif sleepVars['bedVibrator'] = 1:
  93. 'Should you always remove your vibrator before bed? Currently - <a href="exec:sleepVars[''bedVibrator''] = 0 & gs ''stat'' & gt ''bed2'', ''main''">YES</a>.'
  94. end
  95. end
  96. end
  97. if $ARGS[0] = 'fin':
  98. if strpos('bedr,bedr2x,korr,korr2x',$loc) > 0: gt 'bedr'
  99. if $loc = 'uni_dorm': gt 'uni_dorm', 'dorm_room'
  100. if $loc = 'nichBedroomServant': gt 'nichBedroomServant'
  101. end
  102. --- bed2 ---------------------------------