changingroom.tw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. :: changingroom[menu]
  2. <<actCLA 'Leave the changing room'>>
  3. <<gt $location>>
  4. <</actCLA>>
  5. <<if $wardrobe.clothes.type == 'swimwear'>>
  6. <<image `$wardrobe.clothes.image`>>
  7. <p>You are wearing swimwear.</p>
  8. <p>
  9. <<actCLA "Change back into regular clothes">>
  10. <<run $wardrobe.wearLastWorn('swim')>>
  11. <<image `$wardrobe.clothes.image`>>
  12. <<actCLA 'Leave the changing room'>>
  13. <<gt $location>>
  14. <</actCLA>>
  15. <</actCLA>>
  16. </p>
  17. <<else>>
  18. <<itemsOverview 'swimwear' -1 undefined undefined `{replaceMode:true,lastWornSet:'swim',returnPassage:'changingroom_wear_swimsuit'}`>>
  19. <</if>>
  20. :: changingroom_wear_swimsuit
  21. <<image `$wardrobe.clothes.image`>>
  22. <p>You put on swimwear.</p>
  23. <p>
  24. <<actCLA 'Leave the changing room'>>
  25. <<gt $location>>
  26. <</actCLA>>
  27. </p>
  28. :: changingroom_deactivated
  29. <<if $location_var[$here][0] == 'view_swim_list'>>
  30. <<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>>
  31. <center>You do not own any swimwear.</center>
  32. <<elseif $loc == 'fit' or $loc == 'bass' or $loc_arg == 'kathansaunasw1' or $loc_arg == 'kathansaunasw2' or $weather.temperature >= 15>>
  33. <<if !$wardrobe.isWearingSwimwear and $wardrobe.clothingworntype != 'nude'>>
  34. <<setinit $lastwornclothingtype['swim'] = $wardrobe.clothingworntype>>
  35. <<setinit $lastwornclothingnumber['swim'] = $wardrobe.clothingwornnumber>>
  36. <<setinit $lastwornpantytype['swim'] = $wardrobe.pantyworntype>>
  37. <<setinit $lastwornpantynumber['swim'] = $wardrobe.pantywornnumber>>
  38. <<setinit $lastwornbratype['swim'] = $wardrobe.braworntype>>
  39. <<setinit $lastwornbranumber['swim'] = $wardrobe.brawornnumber>>
  40. <</if>>
  41. <<set $i = 1>>
  42. <<warn 'JUMP MARKER ENCOUNTERED: :loopdanilovich_swimsuit'>>
  43. <<if getvar("$danilovich_swimsuit["+$i+"]") == 1 and getvar("$danilovich_swimsuit_s["+$i+"]") == 0 and ($wardrobe.clothingworntype != 'danilovich_swimsuit' or $wardrobe.clothingwornnumber != $i)>>
  44. *p '<<link '<img <<$set_imgh>> src="images/pc/items/danilovich/swimwear/<<i>>.jpg" height="250" />'>><<gt 'changingroom' 'view_swim_item' 'danilovich_swimsuit' <<i>>>><</link>>'
  45. <</if>>
  46. <<set $i += 1>>
  47. <<if $i <= ARRSIZE('danilovich_swimsuit')>>
  48. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopdanilovich_swimsuit'>>
  49. <</if>>
  50. <<set $i = 1>>
  51. <<warn 'JUMP MARKER ENCOUNTERED: :loopscandalicious_swimsuit'>>
  52. <<if getvar("$scandalicious_swimsuit["+$i+"]") == 1 and getvar("$scandalicious_swimsuit_s["+$i+"]") == 0 and ($wardrobe.clothingworntype != 'scandalicious_swimsuit' or $wardrobe.clothingwornnumber != $i)>>
  53. *p '<<link '<img <<$set_imgh>> src="images/pc/items/scandalicious/swim/one/<<i>>.jpg" height="250" />'>><<gt 'changingroom' 'view_swim_item' 'scandalicious_swimsuit' <<i>>>><</link>>'
  54. <</if>>
  55. <<set $i += 1>>
  56. <<if $i <= ARRSIZE('scandalicious_swimsuit')>>
  57. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopscandalicious_swimsuit'>>
  58. <</if>>
  59. <<set $i = 1>>
  60. <<warn 'JUMP MARKER ENCOUNTERED: :loopscandalicious_bikinis'>>
  61. <<if getvar("$scandalicious_bikinis["+$i+"]") == 1 and getvar("$scandalicious_bikinis_s["+$i+"]") == 0 and ($wardrobe.clothingworntype != 'scandalicious_bikinis' or $wardrobe.clothingwornnumber != $i)>>
  62. *p '<<link '<img <<$set_imgh>> src="images/pc/items/scandalicious/swim/two/<<i>>.jpg" height="250" />'>><<gt 'changingroom' 'view_swim_item' 'scandalicious_bikinis' <<i>>>><</link>>'
  63. <</if>>
  64. <<set $i += 1>>
  65. <<if $i <= ARRSIZE('scandalicious_bikinis')>>
  66. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopscandalicious_bikinis'>>
  67. <</if>>
  68. <<set $i = 1>>
  69. <<warn 'JUMP MARKER ENCOUNTERED: :loopallure_swimsuit'>>
  70. <<if getvar("$allure_swimsuit["+$i+"]") == 1 and getvar("$allure_swimsuit_s["+$i+"]") == 0 and ($wardrobe.clothingworntype != 'allure_swimsuit' or $wardrobe.clothingwornnumber != $i)>>
  71. *p '<<link '<img <<$set_imgh>> src="images/pc/items/allure/one/<<i>>.jpg" height="250" />'>><<gt 'changingroom' 'view_swim_item' 'allure_swimsuit' <<i>>>><</link>>'
  72. <</if>>
  73. <<set $i += 1>>
  74. <<if $i <= ARRSIZE('allure_swimsuit')>>
  75. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopallure_swimsuit'>>
  76. <</if>>
  77. <<set $i = 1>>
  78. <<warn 'JUMP MARKER ENCOUNTERED: :loopallure_bikinis'>>
  79. <<if getvar("$allure_bikinis["+$i+"]") == 1 and getvar("$allure_bikinis_s["+$i+"]") == 0 and ($wardrobe.clothingworntype != 'allure_bikinis' or $wardrobe.clothingwornnumber != $i)>>
  80. *p '<<link '<img <<$set_imgh>> src="images/pc/items/allure/two/<<i>>.jpg" height="250" />'>><<gt 'changingroom' 'view_swim_item' 'allure_bikinis' <<i>>>><</link>>'
  81. <</if>>
  82. <<set $i += 1>>
  83. <<if $i <= ARRSIZE('allure_bikinis')>>
  84. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopallure_bikinis'>>
  85. <</if>>
  86. <<set $i = 1>>
  87. <<warn 'JUMP MARKER ENCOUNTERED: :loopnerdvana_swimsuit'>>
  88. <<if getvar("$nerdvana_swimsuit["+$i+"]") == 1 and getvar("$nerdvana_swimsuit_s["+$i+"]") == 0 and ($wardrobe.clothingworntype != 'nerdvana_swimsuit' or $wardrobe.clothingwornnumber != $i)>>
  89. *p '<<link '<img <<$set_imgh>> src="images/pc/items/nerdvana/swim/one/<<i>>.jpg" height="250" />'>><<gt 'changingroom' 'view_swim_item' 'nerdvana_swimsuit' <<i>>>><</link>>'
  90. <</if>>
  91. <<set $i += 1>>
  92. <<if $i <= ARRSIZE('nerdvana_swimsuit')>>
  93. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopnerdvana_swimsuit'>>
  94. <</if>>
  95. <<set $i = 1>>
  96. <<warn 'JUMP MARKER ENCOUNTERED: :loopnerdvana_bikinis'>>
  97. <<if getvar("$nerdvana_bikinis["+$i+"]") == 1 and getvar("$nerdvana_bikinis_s["+$i+"]") == 0 and ($wardrobe.clothingworntype != 'nerdvana_bikinis' or $wardrobe.clothingwornnumber != $i)>>
  98. *p '<<link '<img <<$set_imgh>> src="images/pc/items/nerdvana/swim/two/<<i>>.jpg" height="250" />'>><<gt 'changingroom' 'view_swim_item' 'nerdvana_bikinis' <<i>>>><</link>>'
  99. <</if>>
  100. <<set $i += 1>>
  101. <<if $i <= ARRSIZE('nerdvana_bikinis')>>
  102. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopnerdvana_bikinis'>>
  103. <</if>>
  104. <<if $wardrobe.clothingworntype == 'danilovich_swimsuit' or $wardrobe.clothingworntype == 'scandalicious_swimsuit' or $wardrobe.clothingworntype == 'scandalicious_bikinis' or $wardrobe.clothingworntype == 'allure_swimsuit' or $wardrobe.clothingworntype == 'allure_bikinis' or $wardrobe.clothingworntype == 'nerdvana_swimsuit' or $wardrobe.clothingworntype == 'nerdvana_bikinis'>>
  105. <center>You are wearing swimwear.</center>
  106. <</if>>
  107. <<elseif $weather.temperature < 15>>
  108. <center>It's below 15C - far too cold to get changed into swimwear. You should wait until the weather warms up.</center>
  109. <</if>>
  110. <<actCLA 'Leave'>>
  111. <<gt $location>>
  112. <</actCLA>>
  113. <<if $wardrobe.PCloswimwear == 1>>
  114. <<actCLA 'Put your regular clothes back on'>>
  115. <<run $wardrobe.wear_clothes_legacy('clothes',$lastwornclothingtype['swim'],$lastwornclothingnumber['swim'])>>
  116. <<run $wardrobe.wear(['panties',$lastwornpantytype['swim'],$lastwornpantynumber['swim']])>>
  117. <<run $wardrobe.wear(['bra',$lastwornbratype['swim'],$lastwornbranumber['swim']])>>
  118. <<gt $location>>
  119. <</actCLA>>
  120. <</if>>
  121. <<act 'Choose an outfit'>>
  122. <<gt 'wardrobe' 'main'>>
  123. <</act>>
  124. <</if>>
  125. <<if $location_var[$here][0] == 'view_swim_item'>>
  126. <!-- !! ARGS 0 - view_clothing_item-->
  127. <!-- !! ARGS 1 - clothing type-->
  128. <!-- !! ARGS 2 - clothing index-->
  129. <center><img <<$set_imgh>> src="<<setup.func(''$clothing_image'', $ARGS[1], ARGS[2])>>"></center>
  130. <<$ARGS[1]>> no.<<ARGS[2]>>
  131. <<if $location_var[$here][1] == 'danilovich_swimsuit'>>
  132. setup.func('$attributes_danilovich_swim_one', $ARGS[1], ARGS[2])
  133. $swimwear_description
  134. <<elseif $location_var[$here][1] == 'scandalicious_swimsuit'>>
  135. setup.func('$attributes_scandalicious_swim_one', $ARGS[1], ARGS[2])
  136. $swimwear_description
  137. <<elseif $location_var[$here][1] == 'scandalicious_bikinis'>>
  138. setup.func('$attributes_scandalicious_swim_two', $ARGS[1], ARGS[2])
  139. $swimwear_description
  140. <<elseif $location_var[$here][1] == 'allure_swimsuit'>>
  141. setup.func('$attributes_allure_swim_one', $ARGS[1], ARGS[2])
  142. $swimwear_description
  143. <<elseif $location_var[$here][1] == 'allure_bikinis'>>
  144. setup.func('$attributes_allure_swim_two', $ARGS[1], ARGS[2])
  145. $swimwear_description
  146. <<elseif $location_var[$here][1] == 'nerdvana_swimsuit'>>
  147. setup.func('$attributes_nerdvana_swim_one', $ARGS[1], ARGS[2])
  148. $swimwear_description
  149. <<elseif $location_var[$here][1] == 'nerdvana_bikinis'>>
  150. setup.func('$attributes_nerdvana_swim_two', $ARGS[1], ARGS[2])
  151. $swimwear_description
  152. <</if>>
  153. <<set $result = '(strength '>>
  154. <<set $result += getvar($ARGS[1]+'_h['+$ARGS[2]+']')>>
  155. <<set $result += ')'>>
  156. $result
  157. <<act 'Return'>>
  158. <<gt 'changingroom' 'view_swim_list'>>
  159. <</act>>
  160. <!-- !! if the clothing is worn out-->
  161. <<if State.getVar('$'+$ARGS[1]+'_h['+$ARGS[2]+']') <= 0>>
  162. This item is worn and is not suitable for further wear.
  163. <<actCLA 'Throw it away'>>
  164. <<run State.setVar($ARGS[1]+'['+$ARGS[2]+']',0)>>
  165. <<gt 'changingroom' 'view_swim_list'>>
  166. <</actCLA>>
  167. <<elseif $CloInhibit > $pc.pcs_inhib>>
  168. You don't feel daring enough to wear swimwear this revealing.
  169. <<else>>
  170. <<if $CloInhibit + 10 > $pc.pcs_inhib>>
  171. You find this swimwear to be more revealing than you are completely comfortable with but that makes it quite exciting too.
  172. <</if>>
  173. <<actCLA 'Wear'>>
  174. <<gs 'underwear' 'remove'>>
  175. <<run $wardrobe.wear_clothes_legacy('clothes',$location_var[$here][1],$ARGS[2])>>
  176. <<gt $location>>
  177. <</actCLA>>
  178. <</if>>
  179. <</if>>
  180. <!-- !! following function counts all available swimwear even if being worn currently.-->
  181. <!-- !! you can add 'swim' or 'beach' if you want to count just one of them-->
  182. <!-- !! use setup.func('changingroom','count_swim_item') or setup.func('changingroom','count_swim_item','swim') or setup.func('changingroom','count_swim_item','beach')-->
  183. <<if $location_var[$here][0] == 'count_swim_item'>>
  184. <<warn 'count_swim_item is deprecated, use $wardrobe.ownsSwimmingItem instead'>>
  185. <<set $result = $wardrobe.itemsFiltered({subtype:'swimsuit'}).length + $wardrobe.itemsFiltered({subtype:'bikini'}).length>>
  186. <</if>>