core_library.qsrc 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. !!
  8. !! Ballet School Initiator - This class is to act as a gateway to the various locations for the ballet school
  9. if $ARGS[0] = 'init':
  10. !! Summer School
  11. !! $start_type['cat'] is the mc backstry, mod_ballet[beta] is a test variable to initiate regardless
  12. if $start_type['cat'] = 'dancer' or mod_ballet['beta'] = 1:
  13. if daystart = 1:
  14. mod_ballet['blocker'] = 1
  15. end
  16. !! Parents Home Triggers
  17. if $loc = 'kuhrPar':
  18. if daystart < 6 and mod_ballet['blocker'] = 1:
  19. gs 'pushkin_ballet_init', 'init'
  20. end
  21. if ((daystart >= 6 and daystart <= 14) and mod_ballet['letter'] = 0) or (daystart >= 45 and balletqw['school'] > 1):
  22. gs 'pushkin_ballet_init', 'start'
  23. end
  24. end
  25. !! Pavlovsk
  26. if $loc = 'gdksport':
  27. !! Close down Starlets
  28. if mod_ballet['letter'] = 1 and (month = 7 or (month = 6 and day > 6)):
  29. if AlbinaQW['StarletsJoined'] > 0 and AlbinaQW['StarletsShutDown'] = 0 and npc_pregtalk['A23'] = 0 and AlbinaQW['startletsday'] ! daystart:
  30. if hour = 15 and starlets_on = 1:
  31. act 'Tell Albina about the letter' : gt 'pushkin_ballet_evt', 'starlets'
  32. end
  33. end
  34. end
  35. !! Dance job?
  36. end
  37. if $loc = 'pav_commcenter':
  38. if month = 7 and day = 3 and (hour >= 16 and hour < 17) and mod_ballet['letter'] = 1:
  39. ! Pre-flight - travel to school dorms
  40. act 'Get on the bus': gt 'pushkin_ballet_res', 'start'
  41. end
  42. end
  43. !! Pushkin
  44. !! Theatre
  45. !! Other Events
  46. end
  47. end
  48. !! --- Generic shared Locations and classes ---
  49. !! like SetLoc, to reduce code bloat and memorisation of header title and images.
  50. !! Project: allow for scene changes on the fly rather than static content based on story?
  51. !! Set two var, third if you need to change the ext.:
  52. !! $setloc[''StageTitle'']: Var to set up $loc h1 header
  53. !! $setloc[''StageImage'']: Var to set up $loc image - set 1 to randomise
  54. if $ARGS[0] = 'stage_title':
  55. if $ARGS[1] = '1':
  56. $temp_StageExt = 'gif'
  57. elseif $ARGS[1] = '2':
  58. $temp_StageExt = 'mp4'
  59. else
  60. $temp_StageExt = 'jpg'
  61. end
  62. if $ARGS[2] = '2':
  63. !! Randomise header image
  64. !!dummyr
  65. end
  66. *clr & cla
  67. '<center><h2><<$setloc[''StageTitle'']>></h2></center>'
  68. '<center><img <<$set_imgh>> src="images/<<$setloc[''StageImage'']>>.<<$temp_StageExt>>"></center>'
  69. !! Clean up
  70. killvar '$temp_StageExt'
  71. !! set indoor or outdoor location specific variables
  72. !! set standardised location variables such as kitchen, bathroom, personal bedroom
  73. !! npc location tracker - if tracking npc locations add them here.
  74. end
  75. !! clothing_status - fnct to determine clothing status
  76. if $ARGS[0] = 'clothing_status':
  77. if $clothingworntype = 'nude': $apparel['status'] = 'nude'
  78. if $clothingworntype = 'danilovich_outfits' and $shoeworntype = 'danilovich': $apparel['status'] = 'sport'
  79. if $clothingworntype = 'ballet_secrets' and $shoeworntype = 'ballet_secrets': $apparel['status'] = 'dance'
  80. end
  81. if $ARGS[0] = 'corridor':
  82. if frost > 0: frost = 0
  83. music_loop = 0
  84. menu_off = 0
  85. CLOSE ALL
  86. if $location_type = 'private':
  87. elseif $location_type = 'public':
  88. end
  89. end
  90. if $ARGS[0] = 'bathroom':
  91. !! Location facilities
  92. if $location_type = 'private':
  93. '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.'
  94. *nl
  95. '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.'
  96. gs 'din_van', 'private'
  97. elseif $location_type = 'public':
  98. act 'Take a shower':
  99. *clr & cla
  100. pcs_hairbsh = 0
  101. pcs_makeup = 1
  102. minut += 10
  103. pcs_mood += 10
  104. noShampoo = 1
  105. dynamic $showerdin
  106. gs 'stat'
  107. 'You grab a quick shower, but you wish you could stay longer in the shower to let the heat soak into your muscles.'
  108. act 'Continue' : gt $loc, $loc_arg
  109. end
  110. '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.'
  111. elseif $location_type = 'communal':
  112. end
  113. !! Default facilities
  114. dynamic $basin
  115. dynamic $tampon
  116. if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
  117. if deodorant > 0 and deodorant_on = 0:
  118. 'Your deodorant will last you for <b><<deodorant>></b> more '+iif(deodorant = 1, 'application.', 'applications.')
  119. act 'Apply deodorant (0:01)':
  120. *clr & cla
  121. menu_off = 1
  122. minut += 1
  123. deodorant -= 1
  124. gs 'sweat', 'deo'
  125. 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>')
  126. 'You apply deodorant to your armpits. It will keep you feeling fresh and clean for longer.'
  127. act 'Continue': menu_off = 0 & gt $loc, $loc_arg
  128. end
  129. end
  130. end
  131. if $ARGS[0] = 'kitchen':
  132. !! Location facilities
  133. if $location_type = 'private':
  134. !! Home or parents kitchen
  135. dynamic $edasnack
  136. dynamic $sandwich
  137. dynamic $pranik
  138. dynamic $fatdel
  139. dynamic $lekarstvo
  140. dynamic $vitamin
  141. elseif $location_type = 'public_indoors':
  142. !! canteen type location
  143. elseif $location_type = 'communal':
  144. !! shared or communal kitchen
  145. dynamic $edasnack
  146. dynamic $sandwich
  147. dynamic $pranik
  148. dynamic $vitamin
  149. end
  150. !! Default facilities
  151. dynamic $driwater
  152. dynamic $dritea
  153. dynamic $fill_bottle
  154. end
  155. if $ARGS[0] = 'bedroom':
  156. !! Default facilities
  157. if $location_type = 'private':
  158. if pcs_horny >= 50:
  159. act 'Masturbate':gt 'selfplay', 'start'
  160. end
  161. elseif $location_type = 'guest':
  162. elseif $location_type = 'private_shared':
  163. end
  164. act 'Relax on your bed': gt 'bed', 'start'
  165. act 'Open wardrobe': gt 'wardrobe', 'start'
  166. gs 'events', 'read'
  167. gs 'exercise', 'start'
  168. end
  169. --- core_library ---------------------------------