1
0

core_library.qsrc 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. # core_library
  2. !! Date Created: 17th Sept, 2022
  3. !! Modified date:
  4. !! Version: .01 - initial release
  5. !! Version: .02 - refactoring to streamline content start, new standardised locations function for kitchen and bathroom test code
  6. !! Author: Hooded Silence
  7. !! Ballet School Initiator - This class is to act as a gateway to the various locations for the ballet school
  8. if $ARGS[0] = 'init':
  9. !! Summer School
  10. !! $start_type['cat'] is the mc backstry, mod_ballet[beta] is a test variable to initiate regardless
  11. if $start_type['cat'] = 'dancer':
  12. !! Parents Home Triggers
  13. if $loc = 'kuhrPar':
  14. if ((daystart >= 158 and daystart <= 198) and mod_ballet['letter'] = 0) or (daystart >= 198 and balletqw['school'] > 1):
  15. gs 'pushkin_ballet_init', 'start'
  16. end
  17. end
  18. !! Pavlovsk
  19. if $loc = 'gdksport':
  20. !! Close down Starlets
  21. if mod_ballet['letter'] = 1 and (month = 7 or (month = 6 and day > 6)):
  22. if AlbinaQW['StarletsJoined'] > 0 and AlbinaQW['StarletsShutDown'] = 0 and npc_pregtalk['A23'] = 0 and AlbinaQW['startletsday'] ! daystart:
  23. if hour = 15 and starlets_on = 1:
  24. act 'Tell Albina about the letter' : gt 'pushkin_ballet_evt', 'starlets'
  25. end
  26. end
  27. end
  28. !! Dance job?
  29. end
  30. if $loc = 'pav_commcenter':
  31. if month = 7 and day = 3 and (hour >= 16 and hour < 17) and mod_ballet['letter'] = 1:
  32. ! Pre-flight - travel to school dorms
  33. act '<b>Travel to the ballet school</b>': gt 'pushkin_ballet_res', 'start'
  34. end
  35. end
  36. !! Pushkin
  37. !! Theatre
  38. !! Other Events
  39. end
  40. end
  41. !! --- Generic shared Locations and classes ---
  42. !! like SetLoc, to reduce code bloat and memorisation of header title and images.
  43. !! Project: allow for scene changes on the fly rather than static content based on story?
  44. !! Set two var, third if you need to change the ext.:
  45. !! $setloc[''StageTitle'']: Var to set up $loc h1 header
  46. !! $setloc[''StageImage'']: Var to set up $loc image - set 1 to randomise
  47. if $ARGS[0] = 'stage_title':
  48. *clr & cla
  49. '<center><h2><<$setloc[''StageTitle'']>></h2></center>'
  50. '<center><img <<$set_imgh>> src="images/<<$setloc[''StageImage'']>>"></center>'
  51. end
  52. if $ARGS[0] = 'corridor':
  53. if frost > 0: frost = 0
  54. music_loop = 0
  55. menu_off = 0
  56. CLOSE ALL
  57. gs 'themes', 'indoors'
  58. if $location_type = 'private':
  59. elseif $location_type = 'public':
  60. end
  61. end
  62. if $ARGS[0] = 'bathroom':
  63. !! Location facilities
  64. if $location_type = 'private':
  65. 'Your accommodation for the week has the luxury of a private shower and a bath. There''s a poster on the wall promoting the health benefits of ice baths and other advice on looking after your body.'
  66. *nl
  67. 'There is a shower, toilet, sink, and a <a href="exec:gt ''mirror'',''start''">mirror</a> where you can ' + iif(pcs_hairbsh = 0,'<a href="exec:gt ''mirror'',''brush''">brush</a>','brush') + ' your hair.'
  68. gs 'din_van', 'private'
  69. elseif $location_type = 'public':
  70. act 'Take a shower':
  71. *clr & cla
  72. pcs_hairbsh = 0
  73. pcs_makeup = 1
  74. minut += 10
  75. pcs_mood += 10
  76. noshampoo = 1
  77. dynamic $showerdin
  78. gs 'stat'
  79. 'You grab a quick shower, but you wish you could stay longer in the shower to let the heat soak into your muscles.'
  80. act 'Continue' : gt $loc, $loc_arg
  81. end
  82. 'There is a shower and <a href="exec:gt ''mirror'',''start''">mirrors</a> where you can ' + iif(pcs_hairbsh = 0,'<a href="exec:gt ''mirror'',''brush''">brush</a>','brush') + ' your hair.'
  83. elseif $location_type = 'communal':
  84. end
  85. !! Default facilities
  86. dynamic $basin
  87. dynamic $tampon
  88. if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
  89. if deodorant > 0 and deodorant_on = 0:
  90. 'Your deodorant will last you for <b><<deodorant>></b> more '+iif(deodorant = 1, 'application.', 'applications.')
  91. act 'Apply deodorant (0:01)':
  92. *clr & cla
  93. menu_off = 1
  94. minut += 1
  95. deodorant -= 1
  96. gs 'sweat', 'deo'
  97. iif(func('body_din','pregnancyVisibility') = 1, '<center><img <<$set_imgh>> src="images/shared/home/bathroom/deodorant_preg.jpg"></center>', '<center><img <<$set_imgh>> src="images/shared/home/bathroom/deodorant.jpg"></center>')
  98. 'You apply deodorant to your armpits. It will keep you feeling fresh and clean for longer.'
  99. act 'Continue': menu_off = 0 & gt $loc, $loc_arg
  100. end
  101. end
  102. end
  103. if $ARGS[0] = 'kitchen':
  104. !! Location facilities
  105. if $location_type = 'private':
  106. !! Home or parents kitchen
  107. dynamic $edasnack
  108. dynamic $sandwich
  109. dynamic $pranik
  110. dynamic $fatdel
  111. dynamic $lekarstvo
  112. dynamic $vitamin
  113. elseif $location_type = 'public_indoors':
  114. !! canteen type location
  115. elseif $location_type = 'communal':
  116. !! shared or communal kitchen
  117. dynamic $edasnack
  118. dynamic $sandwich
  119. dynamic $pranik
  120. dynamic $vitamin
  121. end
  122. !! Default facilities
  123. dynamic $driwater
  124. dynamic $dritea
  125. dynamic $fill_bottle
  126. end
  127. if $ARGS[0] = 'bedroom':
  128. !! Default facilities
  129. if $location_type = 'private':
  130. if pcs_horny >= 50:
  131. act 'Masturbate':gt 'selfplay', 'start'
  132. end
  133. elseif $location_type = 'guest':
  134. elseif $location_type = 'private_shared':
  135. end
  136. act 'Relax on your bed': gt 'bed', 'start'
  137. act 'Open wardrobe': gt 'wardrobe', 'start'
  138. gs 'library_functions', 'set_home_read_acts'
  139. gs 'exercise', 'start'
  140. end
  141. --- core_library ---------------------------------