core_library.qsrc 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. !! alterstrtimg is the mc backstry, mod_ballet[beta] is a test variable to initiate regardless
  12. if alterstrtimg = 13 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 mod_ballet['letter'] = 0) or daystart > 45:
  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 '<font color="#80E656">Get on the bus</font>': gs 'shortgs', 'remove_array_element', 'mod_ballet', 'letter' & 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. if $ARGS[0] = 'corridor':
  76. if frost > 0: frost = 0
  77. music_loop = 0
  78. menu_off = 0
  79. CLOSE ALL
  80. if $location_type = 'private':
  81. elseif $location_type = 'public':
  82. end
  83. end
  84. if $ARGS[0] = 'bathroom':
  85. !! Location facilities
  86. if $location_type = 'private':
  87. '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.'
  88. *nl
  89. '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.'
  90. gs 'din_van', 'private'
  91. elseif $location_type = 'public':
  92. act 'Take a shower':
  93. *clr & cla
  94. pcs_hairbsh = 0
  95. pcs_makeup = 1
  96. minut += 10
  97. pcs_mood += 10
  98. noShampoo = 1
  99. dynamic $showerdin
  100. gs 'stat'
  101. 'You grab a quick shower, but you wish you could stay longer in the shower to let the heat soak into your muscles.'
  102. '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.'
  103. act 'Continue' : gt $loc, $loc_arg
  104. end
  105. elseif $location_type = 'communal':
  106. end
  107. !! Default facilities
  108. dynamic $basin
  109. dynamic $tampon
  110. if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
  111. if deodorant > 0 and deodorant_on = 0:
  112. 'Your deodorant will last you for <b><<deodorant>></b> more '+iif(deodorant = 1, 'application.', 'applications.')
  113. act 'Apply deodorant (0:01)':
  114. *clr & cla
  115. menu_off = 1
  116. minut += 1
  117. deodorant -= 1
  118. gs 'sweat', 'deo'
  119. 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>')
  120. 'You apply deodorant to your armpits. It will keep you feeling fresh and clean for longer.'
  121. act 'Continue': menu_off = 0 & gt $loc, $loc_arg
  122. end
  123. end
  124. end
  125. if $ARGS[0] = 'kitchen':
  126. !! Location facilities
  127. if $location_type = 'private':
  128. !! Home or parents kitchen
  129. dynamic $edasnack
  130. dynamic $sandwich
  131. dynamic $pranik
  132. dynamic $fatdel
  133. dynamic $lekarstvo
  134. dynamic $vitamin
  135. elseif $location_type = 'public_indoors':
  136. !! canteen type location
  137. elseif $location_type = 'communal':
  138. !! shared or communal kitchen
  139. dynamic $edasnack
  140. dynamic $sandwich
  141. dynamic $pranik
  142. dynamic $vitamin
  143. end
  144. !! Default facilities
  145. dynamic $driwater
  146. dynamic $dritea
  147. dynamic $fill_bottle
  148. end
  149. if $ARGS[0] = 'bedroom':
  150. !! Default facilities
  151. if $location_type = 'private':
  152. if pcs_horny >= 50:
  153. act 'Masturbate':gt 'selfplay', 'start'
  154. end
  155. elseif $location_type = 'guest':
  156. elseif $location_type = 'private_shared':
  157. end
  158. act 'Relax on your bed': gt 'bed', 'start'
  159. act 'Open wardrobe': gt 'wardrobe', 'start'
  160. gs 'events', 'read'
  161. gs 'exercise', 'start'
  162. end
  163. --- core_library ---------------------------------