changingroom.qsrc 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. # changingroom
  2. menu_off = 1
  3. if $ARGS[0] = 'view_swim_list':
  4. 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:
  5. '<center>You do not own any swimwear.</center>'
  6. elseif $loc = 'fit' or $loc = 'bass' or temper >= 15:
  7. if PCloswimwear = 0:
  8. if $clothingworntype = 'nude':
  9. if PCloswimwear = 0:
  10. $normalclothingworntype = $lastwornclothingtype
  11. normalclothingwornno = lastwornclothingnumber
  12. end
  13. else
  14. $normalclothingworntype = $clothingworntype
  15. normalclothingwornno = clothingwornnumber
  16. end
  17. end
  18. i = 1
  19. :loopdanilovich_swimsuit
  20. if danilovich_swimsuit[i] = 1 and danilovich_swimsuit_s[i] = 0 and ($clothingworntype ! 'danilovich_swimsuit' or clothingwornnumber ! i):*p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''danilovich_swimsuit'', <<i>>"><img <<$set_imgh>> src="images/pc/items/danilovich/swimwear/<<i>>.jpg" height="250" /></a>'
  21. i += 1
  22. if i <= ARRSIZE('danilovich_swimsuit'):jump 'loopdanilovich_swimsuit'
  23. *nl
  24. i = 1
  25. :loopscandalicious_swimsuit
  26. if scandalicious_swimsuit[i] = 1 and scandalicious_swimsuit_s[i] = 0 and ($clothingworntype ! 'scandalicious_swimsuit' or clothingwornnumber ! i):*p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''scandalicious_swimsuit'', <<i>>"><img <<$set_imgh>> src="images/pc/items/scandalicious/swim/one/<<i>>.jpg" height="250" /></a>'
  27. i += 1
  28. if i <= ARRSIZE('scandalicious_swimsuit'):jump 'loopscandalicious_swimsuit'
  29. *nl
  30. i = 1
  31. :loopscandalicious_bikinis
  32. if scandalicious_bikinis[i] = 1 and scandalicious_bikinis_s[i] = 0 and ($clothingworntype ! 'scandalicious_bikinis' or clothingwornnumber ! i):*p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''scandalicious_bikinis'', <<i>>"><img <<$set_imgh>> src="images/pc/items/scandalicious/swim/two/<<i>>.jpg" height="250" /></a>'
  33. i += 1
  34. if i <= ARRSIZE('scandalicious_bikinis'):jump 'loopscandalicious_bikinis'
  35. if $clothingworntype = 'swimwear' or $clothingworntype = 'scandalicious_swimsuit' or $clothingworntype = 'scandalicious_bikinis': '<center>You are wearing swimwear.</center>'
  36. *nl
  37. i = 1
  38. :loopallure_swimsuit
  39. if allure_swimsuit[i] = 1 and allure_swimsuit_s[i] = 0 and ($clothingworntype ! 'allure_swimsuit' or clothingwornnumber ! i):*p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''allure_swimsuit'', <<i>>"><img <<$set_imgh>> src="images/pc/items/allure/one/<<i>>.jpg" height="250" /></a>'
  40. i += 1
  41. if i <= ARRSIZE('allure_swimsuit'):jump 'loopallure_swimsuit'
  42. *nl
  43. i = 1
  44. :loopallure_bikinis
  45. if allure_bikinis[i] = 1 and allure_bikinis_s[i] = 0 and ($clothingworntype ! 'allure_bikinis' or clothingwornnumber ! i):*p '<a href="exec:gt ''changingroom'', ''view_swim_item'', ''allure_bikinis'', <<i>>"><img <<$set_imgh>> src="images/pc/items/allure/two/<<i>>.jpg" height="250" /></a>'
  46. i += 1
  47. if i <= ARRSIZE('allure_bikinis'):jump 'loopallure_bikinis'
  48. if $clothingworntype = 'swimwear' or $clothingworntype = 'scandalicious_swimsuit' or $clothingworntype = 'scandalicious_bikinis': '<center>You are wearing swimwear.</center>'
  49. elseif temper < 15:
  50. '<center>It''s below 15C - far too cold to get changed into swimwear. You should wait until the weather warms up.</center>'
  51. end
  52. act 'Leave':gt $loc, $loc_arg
  53. if PCloswimwear = 1:
  54. act 'Put your regular clothes back on':
  55. gs 'underwear', 'wear'
  56. gs 'clothing', 'wear', $normalclothingworntype, normalclothingwornno
  57. gt $loc, $loc_arg
  58. end
  59. end
  60. act 'Choose an outfit': gt 'wardrobe', 'start'
  61. end
  62. if $ARGS[0] = 'view_swim_item':
  63. !! ARGS 0 - view_clothing_item
  64. !! ARGS 1 - clothing type
  65. !! ARGS 2 - clothing index
  66. cla
  67. '<center><img <<$set_imgh>> src="<<FUNC(''$clothing_image'', $ARGS[1], ARGS[2])>>"></center>'
  68. '<<$ARGS[1]>> no.<<ARGS[2]>>'
  69. if $ARGS[1] = 'danilovich_swimsuit':
  70. FUNC('$attributes_danilovich_swim_one', $ARGS[1], ARGS[2])
  71. $swimwear_description
  72. elseif $ARGS[1] = 'scandalicious_swimsuit':
  73. FUNC('$attributes_scandalicious_swim_one', $ARGS[1], ARGS[2])
  74. $swimwear_description
  75. elseif $ARGS[1] = 'scandalicious_bikinis':
  76. FUNC('$attributes_scandalicious_swim_two', $ARGS[1], ARGS[2])
  77. $swimwear_description
  78. elseif $ARGS[1] = 'allure_swimsuit':
  79. FUNC('$attributes_allure_swim_one', $ARGS[1], ARGS[2])
  80. $swimwear_description
  81. elseif $ARGS[1] = 'allure_bikinis':
  82. FUNC('$attributes_allure_swim_two', $ARGS[1], ARGS[2])
  83. $swimwear_description
  84. end
  85. $RESULT = '(strength '
  86. dynamic '$RESULT += <<$ARGS[1]>>_h[<<ARGS[2]>>]'
  87. $RESULT += ')'
  88. '<<$RESULT>>'
  89. act 'Return':gt 'changingroom', 'view_swim_list'
  90. !! if the clothing is worn out
  91. if dyneval('RESULT = <<$ARGS[1]>>_h[<<ARGS[2]>>]') <= 0:
  92. 'This item is worn and is not suitable for further wear.'
  93. act 'Throw it away':
  94. dynamic '<<$ARGS[1]>>[<<ARGS[2]>>] = 0'
  95. gt 'changingroom', 'view_swim_list'
  96. end
  97. elseif CloInhibit > pcs_inhib:
  98. 'You don''t feel daring enough to wear swimwear this revealing.'
  99. else
  100. if CloInhibit + 10 > pcs_inhib: 'You find this swimwear to be more revealing than you are completely comfortable with but that makes it quite exciting too.'
  101. act 'Wear':
  102. gs 'underwear', 'remove'
  103. gs 'clothing', 'wear', $ARGS[1], ARGS[2]
  104. gt $loc, $loc_arg
  105. end
  106. end
  107. end
  108. !! following function counts all available swimwear even if being worn currently.
  109. !! you can add 'swim' or 'beach' if you want to count just one of them
  110. !! use func('changingroom','count_swim_item') or func('changingroom','count_swim_item','swim') or func('changingroom','count_swim_item','beach')
  111. if $ARGS[0] = 'count_swim_item':
  112. h = 0
  113. if $ARGS[1] = 'danilovich_swimsuit' or $ARGS[1] = '':
  114. i = 1
  115. :loopcount_danilovich_swimsuit
  116. if danilovich_swimsuit[i] = 1 and danilovich_swimsuit_s[i] = 0 :h += 1
  117. i += 1
  118. if i <= ARRSIZE('danilovich_swimsuit'):jump 'loopcount_danilovich_swimsuit'
  119. end
  120. if $ARGS[1] = 'scandalicious_swimsuit' or $ARGS[1] = '':
  121. i = 1
  122. :loopcount_scandalicious_swimsuit
  123. if scandalicious_swimsuit[i] = 1 and scandalicious_swimsuit_s[i] = 0 :h += 1
  124. i += 1
  125. if i <= ARRSIZE('scandalicious_swimsuit'):jump 'loopcount_scandalicious_swimsuit'
  126. end
  127. if $ARGS[1] = 'scandalicious_bikinis' or $ARGS[1] = '':
  128. i = 1
  129. :loopcount_scandalicious_bikinis
  130. if scandalicious_bikinis[i] = 1 and scandalicious_bikinis_s[i] = 0 :h += 1
  131. i += 1
  132. if i <= ARRSIZE('scandalicious_bikinis'):jump 'loopcount_scandalicious_bikinis'
  133. end
  134. if $ARGS[1] = 'allure_swimsuit' or $ARGS[1] = '':
  135. i = 1
  136. :loopcount_allure_swimsuit
  137. if allure_swimsuit[i] = 1 and allure_swimsuit_s[i] = 0 :h += 1
  138. i += 1
  139. if i <= ARRSIZE('allure_swimsuit'):jump 'loopcount_allure_swimsuit'
  140. end
  141. if $ARGS[1] = 'allure_bikinis' or $ARGS[1] = '':
  142. i = 1
  143. :loopcount_allure_bikinis
  144. if allure_bikinis[i] = 1 and allure_bikinis_s[i] = 0 :h += 1
  145. i += 1
  146. if i <= ARRSIZE('allure_bikinis'):jump 'loopcount_allure_bikinis'
  147. end
  148. result = h
  149. killvar 'i'
  150. killvar 'h'
  151. end
  152. --- changingroom ---------------------------------