core_library.qsrc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # core_library
  2. !! Date Created: 17th Sept, 2022
  3. !! Modified date:
  4. !! Version: .01 - initial release
  5. !! Author: Hooded Silence
  6. !!
  7. !! like SetLoc, to reduce code bloat and memorisation of header title and images.
  8. !! Project: allow for scene changes on the fly rather than static content based on story?
  9. !! Set two var, third if you need to change the ext.:
  10. !! $setloc[''StageTitle'']: Var to set up $loc h1 header
  11. !! $setloc[''StageImage'']: Var to set up $loc image - set 1 to randomise
  12. if $ARGS[0] = 'stage_title':
  13. if $ARGS[1] = 1:
  14. $temp_StageExt = 'gif'
  15. elseif $ARGS[1] = 2:
  16. $temp_StageExt = 'mp4'
  17. else
  18. $temp_StageExt = 'jpg'
  19. end
  20. if $ARGS[2] = 2:
  21. !! Randomise header image
  22. !!dummyr
  23. end
  24. *clr & cla
  25. '<center><h2><<$setloc[''StageTitle'']>></h2></center>'
  26. '<center><img <<$set_imgh>> src="mod/img_ballet/<<><<$setloc[''StageImage>'']>.<<><<$setloc['temp_StageExt>>"></center>'
  27. !! Clean up
  28. killvar '$setloc'
  29. !! set indoor or outdoor location specific variables
  30. !!
  31. !! set standardised location variables such as kitchen, bathroom, personal bedroom
  32. !! npc location tracker - if tracking npc locations add them here.
  33. end
  34. if $ARGS[0] = 'bathroom':
  35. !! Location facilities
  36. if $location_type = 'private':
  37. gs 'din_van', 'private'
  38. elseif $location_type = 'public'
  39. act 'Take a shower':
  40. *clr & cla
  41. pcs_hairbsh = 0
  42. pcs_makeup = 1
  43. minut += 10
  44. pcs_mood += 10
  45. noShampoo = 1
  46. dynamic $showerdin
  47. gs 'stat'
  48. 'You grab a quick shower, but you wish you could stay longer in the shower to let the heat soak into your muscles.'
  49. act 'Continue' : gt $loc, $loc_arg
  50. end
  51. elseif $location_type = 'communal':
  52. end
  53. !! Default facilities
  54. dynamic $basin
  55. dynamic $tampon
  56. if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
  57. if deodorant > 0 and deodorant_on = 0:
  58. 'Your deodorant will last you for <b><<deodorant>></b> more '+iif(deodorant = 1, 'application.', 'applications.')
  59. act 'Apply deodorant (0:01)':
  60. *clr & cla
  61. menu_off = 1
  62. minut += 1
  63. deodorant -= 1
  64. gs 'sweat', 'deo'
  65. 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>')
  66. 'You apply deodorant to your armpits. It will keep you feeling fresh and clean for longer.'
  67. act 'Continue': menu_off = 0 & gt $loc, $loc_arg
  68. end
  69. end
  70. end
  71. if $ARGS[0] = 'kitchen'
  72. !! Location facilities
  73. if $location_type = 'private':
  74. !! Home or parents kitchen
  75. dynamic $edasnack
  76. dynamic $sandwich
  77. dynamic $driwater
  78. dynamic $dritea
  79. dynamic $fill_bottle
  80. dynamic $pranik
  81. dynamic $fatdel
  82. dynamic $lekarstvo
  83. dynamic $vitamin
  84. elseif $location_type = 'public_indoors':
  85. !! canteen type location
  86. dynamic $driwater
  87. dynamic $dritea
  88. dynamic $fill_bottle
  89. elseif $location_type = 'communal':
  90. !! shared or communal kitchen
  91. dynamic $edasnack
  92. dynamic $sandwich
  93. dynamic $driwater
  94. dynamic $dritea
  95. dynamic $fill_bottle
  96. dynamic $pranik
  97. dynamic $vitamin
  98. end
  99. !! Default facilities
  100. end
  101. if $ARGS[0] = 'bedroom':
  102. !! Default facilities
  103. if $location_type = 'private':
  104. act 'Relax on your bed': gt 'bed', 'start'
  105. act 'Open wardrobe': gt 'wardrobe', 'start'
  106. if pcs_horny >= 50:
  107. act 'Masturbate':gt 'selfplay', 'start'
  108. end
  109. gs 'events', 'read'
  110. gs 'exercise', 'start'
  111. elseif $location_type = 'guest':
  112. elseif $location_type = 'private_shared':
  113. act 'Relax on your bed': gt 'bed', 'start'
  114. act 'Open wardrobe': gt 'wardrobe', 'start'
  115. if pcs_horny >= 50:
  116. act 'Masturbate':gt 'selfplay', 'start'
  117. end
  118. gs 'events', 'read'
  119. gs 'exercise', 'start'
  120. end
  121. end
  122. --- core_library ---------------------------------