changingroom.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. # changingroom
  2. $locclass = 'changingroom'
  3. if $ARGS[0] = 'view_swim_list':
  4. menu_off = 1
  5. gs 'stat'
  6. !! ARGS[1] - Ignore Inhibition
  7. !! 0: no
  8. !! 1: Partially, overcome through willpower
  9. !! 2: Fully
  10. if ARRSIZE('danilovich_swimsuit') = 0 and ARRSIZE('scandalicious_swimsuit') = 0 and ARRSIZE('scandalicious_bikinis') = 0 and ARRSIZE('allure_swimsuit') = 0 and ARRSIZE('allure_bikinis') = 0 and ARRSIZE('nerdvana_swimsuit') = 0 and ARRSIZE('nerdvana_bikinis') = 0:
  11. '<center>You do not own any swimwear.</center>'
  12. elseif $loc = 'havana' or $loc = 'havana_pool' or $loc = 'pav_pool' or $loc_arg = 'kathansaunasw1' or $loc_arg = 'kathansaunasw2' or temper >= 15:
  13. if PCloswimwear = 0 and $clothingworntype ! 'nude':
  14. $lastwornclothingtype['swim'] = $clothingworntype
  15. lastwornclothingnumber['swim'] = clothingwornnumber
  16. $lastwornpantytype['swim'] = $pantyworntype
  17. lastwornpantynumber['swim'] = pantywornnumber
  18. $lastwornbratype['swim'] = $braworntype
  19. lastwornbranumber['swim'] = brawornnumber
  20. end
  21. i = 1
  22. !!StartLoop
  23. :loopdanilovich_swimsuit
  24. if danilovich_swimsuit[i] = 1 and danilovich_swimsuit_s[i] = 0 and ($clothingworntype ! 'danilovich_swimsuit' or clothingwornnumber ! i):
  25. *p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''danilovich_swimsuit'', <<i>>, <<ARGS[1]>>"><img <<$set_imgh>> src="images/pc/items/danilovich/swimwear/<<i>>.jpg" height="250" /></a>'
  26. end
  27. i += 1
  28. if i <= ARRSIZE('danilovich_swimsuit'): jump 'loopdanilovich_swimsuit'
  29. !!EndLoop
  30. *nl
  31. !!StartLoop
  32. i = 1
  33. :loopscandalicious_swimsuit
  34. if scandalicious_swimsuit[i] = 1 and scandalicious_swimsuit_s[i] = 0 and ($clothingworntype ! 'scandalicious_swimsuit' or clothingwornnumber ! i):
  35. *p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''scandalicious_swimsuit'', <<i>>, <<ARGS[1]>>"><img <<$set_imgh>> src="images/pc/items/scandalicious/swim/one/<<i>>.jpg" height="250" /></a>'
  36. end
  37. i += 1
  38. if i <= ARRSIZE('scandalicious_swimsuit'): jump 'loopscandalicious_swimsuit'
  39. !!EndLoop
  40. *nl
  41. !!StartLoop
  42. i = 1
  43. :loopscandalicious_bikinis
  44. if scandalicious_bikinis[i] = 1 and scandalicious_bikinis_s[i] = 0 and ($clothingworntype ! 'scandalicious_bikinis' or clothingwornnumber ! i):
  45. *p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''scandalicious_bikinis'', <<i>>, <<ARGS[1]>>"><img <<$set_imgh>> src="images/pc/items/scandalicious/swim/two/<<i>>.jpg" height="250" /></a>'
  46. end
  47. i += 1
  48. if i <= ARRSIZE('scandalicious_bikinis'): jump 'loopscandalicious_bikinis'
  49. !!EndLoop
  50. *nl
  51. !!StartLoop
  52. i = 1
  53. :loopallure_swimsuit
  54. if allure_swimsuit[i] = 1 and allure_swimsuit_s[i] = 0 and ($clothingworntype ! 'allure_swimsuit' or clothingwornnumber ! i):
  55. *p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''allure_swimsuit'', <<i>>, <<ARGS[1]>>"><img <<$set_imgh>> src="images/pc/items/allure/one/<<i>>.jpg" height="250" /></a>'
  56. end
  57. i += 1
  58. if i <= ARRSIZE('allure_swimsuit'): jump 'loopallure_swimsuit'
  59. !!EndLoop
  60. *nl
  61. !!StartLoop
  62. i = 1
  63. :loopallure_bikinis
  64. if allure_bikinis[i] = 1 and allure_bikinis_s[i] = 0 and ($clothingworntype ! 'allure_bikinis' or clothingwornnumber ! i):
  65. *p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''allure_bikinis'', <<i>>, <<ARGS[1]>>"><img <<$set_imgh>> src="images/pc/items/allure/two/<<i>>.jpg" height="250" /></a>'
  66. end
  67. i += 1
  68. if i <= ARRSIZE('allure_bikinis'): jump 'loopallure_bikinis'
  69. !!EndLoop
  70. *nl
  71. !!StartLoop
  72. i = 1
  73. :loopnerdvana_swimsuit
  74. if nerdvana_swimsuit[i] = 1 and nerdvana_swimsuit_s[i] = 0 and ($clothingworntype ! 'nerdvana_swimsuit' or clothingwornnumber ! i):
  75. *p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''nerdvana_swimsuit'', <<i>>, <<ARGS[1]>>"><img <<$set_imgh>> src="images/pc/items/nerdvana/swim/one/<<i>>.jpg" height="250" /></a>'
  76. end
  77. i += 1
  78. if i <= ARRSIZE('nerdvana_swimsuit'): jump 'loopnerdvana_swimsuit'
  79. !!EndLoop
  80. *nl
  81. !!StartLoop
  82. i = 1
  83. :loopnerdvana_bikinis
  84. if nerdvana_bikinis[i] = 1 and nerdvana_bikinis_s[i] = 0 and ($clothingworntype ! 'nerdvana_bikinis' or clothingwornnumber ! i):
  85. *p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''nerdvana_bikinis'', <<i>>, <<ARGS[1]>>"><img <<$set_imgh>> src="images/pc/items/nerdvana/swim/two/<<i>>.jpg" height="250" /></a>'
  86. end
  87. i += 1
  88. if i <= ARRSIZE('nerdvana_bikinis'):jump 'loopnerdvana_bikinis'
  89. !!EndLoop
  90. *nl
  91. if $clothingworntype = 'danilovich_swimsuit' or $clothingworntype = 'scandalicious_swimsuit' or $clothingworntype = 'scandalicious_bikinis' or $clothingworntype = 'allure_swimsuit' or $clothingworntype = 'allure_bikinis' or $clothingworntype = 'nerdvana_swimsuit' or $clothingworntype = 'nerdvana_bikinis':
  92. '<center>You are wearing swimwear.</center>'
  93. end
  94. elseif temper < 15:
  95. '<center>It''s below 15C - far too cold to get changed into swimwear. You should wait until the weather warms up.</center>'
  96. end
  97. act 'Leave':gt $loc, $loc_arg
  98. if PCloswimwear = 1:
  99. act 'Put your regular clothes back on':
  100. gs 'clothing', 'wear', $lastwornclothingtype['swim'], lastwornclothingnumber['swim']
  101. gs 'panties', 'wear', $lastwornpantytype['swim'], lastwornpantynumber['swim']
  102. gs 'bras', 'wear', $lastwornbratype['swim'], lastwornbranumber['swim']
  103. gt $loc, $loc_arg
  104. end
  105. end
  106. act 'Choose an outfit': gt 'wardrobe', 'main'
  107. end
  108. if $ARGS[0] = 'view_swim_item':
  109. menu_off = 1
  110. gs 'stat'
  111. !! ARGS 0 - view_clothing_item
  112. !! $ARGS 1 - clothing type
  113. !! ARGS 2 - clothing index
  114. !! ARGS 3 - ignore inhibition
  115. !! 0: No
  116. !! 1: Partially, overcome through willpower
  117. !! 2: Fully
  118. cla
  119. '<center><img <<$set_imgh>> src="<<FUNC(''$clothing_image'', $ARGS[1], ARGS[2])>>"></center>'
  120. '<<$ARGS[1]>> no.<<ARGS[2]>>'
  121. if $ARGS[1] = 'danilovich_swimsuit':
  122. FUNC('$attributes_danilovich_swim_one', $ARGS[1], ARGS[2])
  123. $swimwear_description
  124. elseif $ARGS[1] = 'scandalicious_swimsuit':
  125. FUNC('$attributes_scandalicious_swim_one', $ARGS[1], ARGS[2])
  126. $swimwear_description
  127. elseif $ARGS[1] = 'scandalicious_bikinis':
  128. FUNC('$attributes_scandalicious_swim_two', $ARGS[1], ARGS[2])
  129. $swimwear_description
  130. elseif $ARGS[1] = 'allure_swimsuit':
  131. FUNC('$attributes_allure_swim_one', $ARGS[1], ARGS[2])
  132. $swimwear_description
  133. elseif $ARGS[1] = 'allure_bikinis':
  134. FUNC('$attributes_allure_swim_two', $ARGS[1], ARGS[2])
  135. $swimwear_description
  136. elseif $ARGS[1] = 'nerdvana_swimsuit':
  137. FUNC('$attributes_nerdvana_swim_one', $ARGS[1], ARGS[2])
  138. $swimwear_description
  139. elseif $ARGS[1] = 'nerdvana_bikinis':
  140. FUNC('$attributes_nerdvana_swim_two', $ARGS[1], ARGS[2])
  141. $swimwear_description
  142. end
  143. $RESULT = '(strength '
  144. dynamic '$RESULT += <<$ARGS[1]>>_h[<<ARGS[2]>>]'
  145. $RESULT += ')'
  146. '<<$RESULT>>'
  147. act 'Return':gt 'changingroom', 'view_swim_list'
  148. !! if the clothing is worn out
  149. if dyneval('RESULT = <<$ARGS[1]>>_h[<<ARGS[2]>>]') <= 0:
  150. 'This item is worn and is not suitable for further wear.'
  151. act 'Throw it away':
  152. dynamic '<<$ARGS[1]>>[<<ARGS[2]>>] = 0'
  153. gt 'changingroom', 'view_swim_list'
  154. end
  155. elseif pcs_inhib < CloInhibit:
  156. if ARGS[3] = 1:
  157. 'You don''t feel daring enough to wear swimwear this revealing, but if you want to go into the water, you''re going to have to brave it.'
  158. gs 'willpower', 'exhib', 'self', 'easy'
  159. if will_cost <= pcs_willpwr:
  160. act 'Put it on (<<will_cost>> Willpower)':
  161. gs 'willpower', 'pay', 'self'
  162. gs 'underwear', 'remove'
  163. gs 'clothing', 'wear', $ARGS[1], ARGS[2]
  164. gt $loc, $loc_arg
  165. end
  166. else
  167. act 'Put it on (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  168. end
  169. elseif ARGS[3] = 2:
  170. 'You don''t feel daring enough to wear swimwear this revealing, but if you want to go into the water, you''re going to have to brave it.'
  171. act 'Wear':
  172. gs 'underwear', 'remove'
  173. gs 'clothing', 'wear', $ARGS[1], ARGS[2]
  174. gt $loc, $loc_arg
  175. end
  176. else
  177. 'You don''t feel daring enough to wear swimwear this revealing.'
  178. end
  179. else
  180. if pcs_inhib < (CloInhibit + 10):
  181. 'You find this swimwear to be more revealing than you are completely comfortable with but that makes it quite exciting too.'
  182. end
  183. act 'Wear':
  184. gs 'underwear', 'remove'
  185. gs 'clothing', 'wear', $ARGS[1], ARGS[2]
  186. gt $loc, $loc_arg
  187. end
  188. end
  189. end
  190. !! following function counts all available swimwear even if being worn currently.
  191. !! you can add 'swim' or 'beach' if you want to count just one of them
  192. !! use func('changingroom','count_swim_item') or func('changingroom','count_swim_item','swim') or func('changingroom','count_swim_item','beach')
  193. if $ARGS[0] = 'count_swim_item':
  194. h = 0
  195. if $ARGS[1] = 'danilovich_swimsuit' or $ARGS[1] = '':
  196. i = 1
  197. :loopcount_danilovich_swimsuit
  198. if danilovich_swimsuit[i] = 1 and danilovich_swimsuit_s[i] = 0:
  199. h += 1
  200. end
  201. i += 1
  202. if i <= ARRSIZE('danilovich_swimsuit'): jump 'loopcount_danilovich_swimsuit'
  203. end
  204. if $ARGS[1] = 'scandalicious_swimsuit' or $ARGS[1] = '':
  205. i = 1
  206. :loopcount_scandalicious_swimsuit
  207. if scandalicious_swimsuit[i] = 1 and scandalicious_swimsuit_s[i] = 0:
  208. h += 1
  209. end
  210. i += 1
  211. if i <= ARRSIZE('scandalicious_swimsuit'): jump 'loopcount_scandalicious_swimsuit'
  212. end
  213. if $ARGS[1] = 'scandalicious_bikinis' or $ARGS[1] = '':
  214. i = 1
  215. :loopcount_scandalicious_bikinis
  216. if scandalicious_bikinis[i] = 1 and scandalicious_bikinis_s[i] = 0:
  217. h += 1
  218. end
  219. i += 1
  220. if i <= ARRSIZE('scandalicious_bikinis'): jump 'loopcount_scandalicious_bikinis'
  221. end
  222. if $ARGS[1] = 'allure_swimsuit' or $ARGS[1] = '':
  223. i = 1
  224. :loopcount_allure_swimsuit
  225. if allure_swimsuit[i] = 1 and allure_swimsuit_s[i] = 0:
  226. h += 1
  227. end
  228. i += 1
  229. if i <= ARRSIZE('allure_swimsuit'): jump 'loopcount_allure_swimsuit'
  230. end
  231. if $ARGS[1] = 'allure_bikinis' or $ARGS[1] = '':
  232. i = 1
  233. :loopcount_allure_bikinis
  234. if allure_bikinis[i] = 1 and allure_bikinis_s[i] = 0:
  235. h += 1
  236. end
  237. i += 1
  238. if i <= ARRSIZE('allure_bikinis'): jump 'loopcount_allure_bikinis'
  239. end
  240. if $ARGS[1] = 'nerdvana_swimsuit' or $ARGS[1] = '':
  241. i = 1
  242. :loopcount_nerdvana_swimsuit
  243. if nerdvana_swimsuit[i] = 1 and nerdvana_swimsuit_s[i] = 0:
  244. h += 1
  245. end
  246. i += 1
  247. if i <= ARRSIZE('nerdvana_swimsuit'): jump 'loopcount_nerdvana_swimsuit'
  248. end
  249. if $ARGS[1] = 'nerdvana_bikinis' or $ARGS[1] = '':
  250. i = 1
  251. :loopcount_nerdvana_bikinis
  252. if nerdvana_bikinis[i] = 1 and nerdvana_bikinis_s[i] = 0:
  253. h += 1
  254. end
  255. i += 1
  256. if i <= ARRSIZE('nerdvana_bikinis'): jump 'loopcount_nerdvana_bikinis'
  257. end
  258. result = h
  259. killvar 'i'
  260. killvar 'h'
  261. end
  262. --- changingroom ---------------------------------