core_library.qsrc 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. *clr & cla
  56. '<center><h2><<$setloc[''StageTitle'']>></h2></center>'
  57. '<center><img <<$set_imgh>> src="images/<<$setloc[''StageImage'']>>"></center>'
  58. !! set indoor or outdoor location specific variables
  59. !! set standardised location variables such as kitchen, bathroom, personal bedroom
  60. !! npc location tracker - if tracking npc locations add them here.
  61. end
  62. !! clothing_status - fnct to determine clothing status
  63. if $ARGS[0] = 'clothing_status':
  64. if $pantyworntype = 'none': $apparel['panty'] = 'pantyless'
  65. if $braworntype = 'none': $apparel['bra'] = 'braless'
  66. if $clothingworntype = 'nude': $apparel['status'] = 'nude'
  67. if $clothingworntype = 'danilovich_outfits' and $shoeworntype = 'danilovich': $apparel['status'] = 'sport'
  68. if $clothingworntype = 'ballet_secrets' and $shoeworntype = 'ballet_secrets': $apparel['status'] = 'dance'
  69. end
  70. if $ARGS[0] = 'corridor':
  71. if frost > 0: frost = 0
  72. music_loop = 0
  73. menu_off = 0
  74. CLOSE ALL
  75. if $location_type = 'private':
  76. elseif $location_type = 'public':
  77. end
  78. end
  79. if $ARGS[0] = 'bathroom':
  80. !! Location facilities
  81. if $location_type = 'private':
  82. '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.'
  83. *nl
  84. '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.'
  85. gs 'din_van', 'private'
  86. elseif $location_type = 'public':
  87. act 'Take a shower':
  88. *clr & cla
  89. pcs_hairbsh = 0
  90. pcs_makeup = 1
  91. minut += 10
  92. pcs_mood += 10
  93. noShampoo = 1
  94. dynamic $showerdin
  95. gs 'stat'
  96. 'You grab a quick shower, but you wish you could stay longer in the shower to let the heat soak into your muscles.'
  97. act 'Continue' : gt $loc, $loc_arg
  98. end
  99. '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.'
  100. elseif $location_type = 'communal':
  101. end
  102. !! Default facilities
  103. dynamic $basin
  104. dynamic $tampon
  105. if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
  106. if deodorant > 0 and deodorant_on = 0:
  107. 'Your deodorant will last you for <b><<deodorant>></b> more '+iif(deodorant = 1, 'application.', 'applications.')
  108. act 'Apply deodorant (0:01)':
  109. *clr & cla
  110. menu_off = 1
  111. minut += 1
  112. deodorant -= 1
  113. gs 'sweat', 'deo'
  114. 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>')
  115. 'You apply deodorant to your armpits. It will keep you feeling fresh and clean for longer.'
  116. act 'Continue': menu_off = 0 & gt $loc, $loc_arg
  117. end
  118. end
  119. end
  120. if $ARGS[0] = 'kitchen':
  121. !! Location facilities
  122. if $location_type = 'private':
  123. !! Home or parents kitchen
  124. dynamic $edasnack
  125. dynamic $sandwich
  126. dynamic $pranik
  127. dynamic $fatdel
  128. dynamic $lekarstvo
  129. dynamic $vitamin
  130. elseif $location_type = 'public_indoors':
  131. !! canteen type location
  132. elseif $location_type = 'communal':
  133. !! shared or communal kitchen
  134. dynamic $edasnack
  135. dynamic $sandwich
  136. dynamic $pranik
  137. dynamic $vitamin
  138. end
  139. !! Default facilities
  140. dynamic $driwater
  141. dynamic $dritea
  142. dynamic $fill_bottle
  143. end
  144. if $ARGS[0] = 'bedroom':
  145. !! Default facilities
  146. if $location_type = 'private':
  147. if pcs_horny >= 50:
  148. act 'Masturbate':gt 'selfplay', 'start'
  149. end
  150. elseif $location_type = 'guest':
  151. elseif $location_type = 'private_shared':
  152. end
  153. act 'Relax on your bed': gt 'bed', 'start'
  154. act 'Open wardrobe': gt 'wardrobe', 'start'
  155. gs 'events', 'read'
  156. gs 'exercise', 'start'
  157. end
  158. --- core_library ---------------------------------