wardrobe.qsrc 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. # wardrobe
  2. if $ARGS[0] = 'start':
  3. $wloc = 'wardrobe'
  4. if ward_img_hgt = 0:ward_img_hgt = 250
  5. '<h3><center><b><font color="maroon">Wardrobe overview</b></h3><br><center><font color="maroon">These are the clothes you are currently wearing - Click on an item to change it</font></center>'
  6. '<br><center><table border=0 cellspacing=<<ward_img_hgt/25>> cellpadding=5>'
  7. *p '<TH>Bra worn</TH><TH>Outfit worn</TH><TH>Coat (only worn outside when cold)</TH>'
  8. *P '<TR><TD><center><a href="exec:gt ''bras'', ''view_bra_list'', ''wardrobe''"><img Height = <<ward_img_hgt>> src="<<FUNC(''$body_image'',''bra'')>>"></a></center></TD><TD><center><a href="exec:gt ''clothing_QV'', ''list''"><img Height = <<ward_img_hgt * 2>> src="<<FUNC(''$body_image'',''clothes'')>>"></a></center></TD><TD><center>'
  9. if defaultcoat = 0:
  10. '<a href="exec:gt ''cloakroom'', ''view_coat_list''"><img Height = <<ward_img_hgt * 2>> src="images/pc/noitemdh.png"></a>'
  11. else
  12. '<a href="exec:gt ''cloakroom'', ''view_coat_list''"><img Height = <<ward_img_hgt * 2>> src="<<FUNC(''$body_image'', ''coat'')>>"></a>'
  13. end
  14. '</center></TD>'
  15. '<TR><TD><center>'
  16. if $braworntype ! 'none':
  17. '<a href="exec:gs ''bras'', ''remove'' & gt ''wardrobe'', ''start''">Remove</a>'
  18. else
  19. 'Remove'
  20. end
  21. '</center></TD><TD><center>'
  22. if $clothingworntype ! 'nude':
  23. '<a href="exec:gs ''clothing'', ''strip'' & gt ''wardrobe'', ''start''">Remove</a>'
  24. else
  25. 'Remove'
  26. end
  27. '</center></TD><TD><center>'
  28. if defaultcoat ! 0:
  29. '<a href="exec:defaultcoat_warmth = 0 & defaultcoat = 0 & gt ''wardrobe'', ''start''">Remove</a>'
  30. else
  31. 'Remove'
  32. end
  33. '</center></TD>'
  34. *p '<TR><TH>Panties worn</TH><TH>Shoes (Only worn outside)</TH><TH>Purse worn</TH>'
  35. *P '<TR><TD><center><a href="exec:gt ''panties'', ''view_panty_list'', ''wardrobe''"><img Height = <<ward_img_hgt>> src="<<FUNC(''$body_image'',''panties'')>>"></a></center></TD><TD><center><a href="exec:gt ''shoes'', ''view_shoe_list'', ''wardrobe''"><img Height = <<ward_img_hgt>> src="<<FUNC(''$body_image'', ''shoes'')>>"></a></center></TD><TD><center>'
  36. if bag = 1:
  37. '<a href="exec:gt ''purses'', ''view_purse_list''"><img Height = <<ward_img_hgt>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></a>'
  38. else
  39. '<a href="exec:gt ''purses'', ''view_purse_list''"><img Height = <<ward_img_hgt>> src="images/pc/noitem.png"></a>'
  40. end
  41. '</center></TD>'
  42. '<TR><TD><center>'
  43. if $pantyworntype ! 'none':
  44. '<a href="exec:gs ''panties'', ''remove'' & gt ''wardrobe'', ''start''">Remove</a>'
  45. else
  46. 'Remove'
  47. end
  48. '</center></TD><TD><center>'
  49. if $shoeworntype ! 'none':
  50. '<a href="exec:gs ''shoes'', ''strip'' & gt ''wardrobe'', ''start''">Remove</a>'
  51. else
  52. 'Remove'
  53. end
  54. '</center></TD><TD><center>'
  55. if bag = 1:
  56. '<a href="exec:gs ''purses'', ''remove'' & gt ''wardrobe'', ''start''">Remove</a>'
  57. else
  58. 'Remove'
  59. end
  60. '</center></TD>'
  61. '<TR><TD><TD><center>'
  62. if ($clothingworntype ! 'nude' and (defaultcoat > 0 or bag > 0)) or (defaultcoat > 0 and bag > 0):
  63. '<a href="exec:gs ''wardrobe'', ''removeall'' & gt ''wardrobe'', ''start''">Remove all items</a>'
  64. else
  65. 'Remove all items'
  66. end
  67. '</center></TD>'
  68. '</table></center>'
  69. act 'Return': killvar '$wloc' & gt $loc, $metka
  70. act 'Strip all clothing':
  71. gs 'bras', 'remove'
  72. gs 'clothing', 'strip'
  73. gs 'panties', 'remove'
  74. gs 'shoes', 'strip'
  75. gt 'wardrobe', 'start'
  76. end
  77. act 'Set a default outfit': gt 'wardrobe', 'default_set'
  78. act 'Choose a default outfit': gt 'wardrobe', 'default'
  79. act 'Organise stored clothing': gt 'clothing', 'view_clothing_list', 'store'
  80. act 'Set image height for this view':
  81. ward_img_hgt = input("Enter height in pixels you want for images on this page <br>(Default 250, min 100, max 500)")
  82. if ward_img_hgt < 100:
  83. ward_img_hgt = 250
  84. elseif ward_img_hgt > 500:
  85. ward_img_hgt = 500
  86. end
  87. gt 'wardrobe', 'start'
  88. end
  89. end
  90. if $ARGS[0] = 'removeall':
  91. gs 'bras', 'remove'
  92. gs 'clothing', 'strip'
  93. gs 'panties', 'remove'
  94. gs 'shoes', 'strip'
  95. gs 'purses', 'remove'
  96. defaultcoat = 0
  97. end
  98. !!---------------------------Oufit stuff----------------------------------
  99. if $ARGS[0] = 'default':
  100. gs 'stat'
  101. 'Default sports outfit <a href="exec:gs ''wardrobe'', ''sports_entry_wear''">Wear this default outfit</a>'
  102. if ARRSIZE('defclothingnumber') > 0:
  103. i = 0
  104. :loopdefclothing
  105. '<<$def_clothing_name[i]>> <a href="exec:gs ''wardrobe'', ''default_entry_wear'', <<i>>">Wear this default outfit</a> <a href="exec:gs ''wardrobe'', ''default_entry_delete'', <<i>>">Delete this default outfit</a>'
  106. i += 1
  107. if i < ARRSIZE('defclothingnumber'):jump 'loopdefclothing'
  108. end
  109. act 'Return': gt 'wardrobe', 'start'
  110. end
  111. if $ARGS[0] = 'default_entry_wear':
  112. default_entry = ARGS[1]
  113. gs 'clothing_attributes', $defclothingtype[default_entry], defclothingnumber[default_entry]
  114. gs 'clothing', 'wear', $defclothingtype[default_entry], defclothingnumber[default_entry]
  115. if dyneval('RESULT = <<$defbratype[default_entry]>>_bras[<<defbranumber[default_entry]>>]') = 0: $defbratype[default_entry] = 'none' & defbranumber[default_entry] = 0
  116. gs 'bras', 'wear', $defbratype[default_entry], defbranumber[default_entry]
  117. if dyneval('RESULT = <<$defpantytype[default_entry]>>_panties[<<defpantynumber[default_entry]>>]') = 0: $defpantytype[default_entry] = 'none' & defpantynumber[default_entry] = 0
  118. gs 'panties', 'wear', $defpantytype[default_entry], defpantynumber[default_entry]
  119. if dyneval('RESULT = s<<$defshoetype[default_entry]>>[<<defshoenumber[default_entry]>>]') = 0: $defshoetype[default_entry] = 'none' & defshoenumber[default_entry] = 0
  120. gs 'shoes', 'wear', $defshoetype[default_entry], defshoenumber[default_entry]
  121. if dyneval('RESULT = <<$defpursetype[default_entry]>>_purses[<<defpursenumber[default_entry]>>]') = 0:
  122. $defpursetype[default_entry] = 'none' & defpursenumber[default_entry]
  123. end
  124. $currentpursetype = $defpursetype[default_entry]
  125. currentpursenumber = defpursenumber[default_entry]
  126. if $currentpursetype = 'none':
  127. bag = 0
  128. else
  129. bag = 1
  130. end
  131. if menu_option = 1:dynamic $menu_addoldmenu
  132. if menu_option = 0:gs 'obj_din', 'new'
  133. if dyneval('RESULT = coat[<<defcoat[default_entry]>>]') = 0: defcoat[default_entry] = 0
  134. defaultcoat = defcoat[default_entry]
  135. !! default school girl uniform is always allowed to be worn if still in school
  136. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and $defclothingtype[default_entry] = 'school' and defclothingnumber[default_entry] = 6:
  137. cls
  138. '<center><video autoplay loop src="images/locations/city/citycenter/photo/dress.mp4"></video></center>'
  139. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  140. act 'Return to wardrobe':
  141. killvar 'default_entry'
  142. gs 'stat'
  143. gt 'wardrobe', 'start'
  144. end
  145. !! do not own this clothing anymore
  146. elseif dyneval('RESULT = <<$defclothingtype[default_entry]>>[<<defclothingnumber[default_entry]>>]') = 0:
  147. cls
  148. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/school/strip/strip2.jpg"></center>'
  149. 'As you go to pull your <<$def_clothing_name[default_entry]>> outfit out of your wardrobe you remember you don''t own that piece of clothing anymore. Maybe you should buy it again? Guess you will have to find something else to wear.'
  150. act 'Return to wardrobe':
  151. gs 'clothing', 'strip'
  152. killvar 'default_entry'
  153. gs 'stat'
  154. gt 'wardrobe', 'start'
  155. end
  156. !! strength of clothing is less than or equal to 0
  157. elseif dyneval('RESULT = <<$defclothingtype[default_entry]>>H[<<defclothingnumber[default_entry]>>]') <= 0:
  158. cls
  159. '<center><video autoplay loop src="images/characters/pavlovsk/school/girl/vicky/event/vika_game_strip16.mp4"></video></center>'
  160. 'Your <<$def_clothing_name[default_entry]>> outfit has worn out and can''t be used anymore. Guess you will have to find something else to wear.'
  161. act 'Strip out of worn out clothing':
  162. gs 'clothing', 'strip'
  163. killvar 'default_entry'
  164. gs 'stat'
  165. gt 'wardrobe', 'start'
  166. end
  167. !! clothing exhibition is greater than player exhibition
  168. elseif CloInhibit > pcs_inhib:
  169. cls
  170. '<center><video autoplay loop src="images/locations/pavlovsk/trainstation/bimbo.strip6.mp4"></video></center>'
  171. 'You don''t feel daring enough to wear your <<$def_clothing_name[default_entry]>> outfit. Maybe you will be confident enough in the future? Guess you will have to find something else to wear.'
  172. act 'Strip out of revealing clothing':
  173. gs 'clothing', 'strip'
  174. killvar 'default_entry'
  175. gs 'stat'
  176. gt 'wardrobe', 'start'
  177. end
  178. !! not exercise clothing, not coat, and not loose fitting
  179. elseif $defclothingtype[default_entry] ! 'exercise' and $defclothingtype[default_entry] ! 'coat' and CloStyle ! 5:
  180. !! check for if the hipsize is too far from your hipsize
  181. dynamic 'RESULT = <<$defclothingtype[default_entry]>>B[<<defclothingnumber[default_entry]>>]'
  182. if RESULT < pcs_hips - 8 or RESULT > pcs_hips + 8:
  183. cls
  184. iif(RESULT < pcs_hips - 8,'<center><video autoplay loop src="images/locations/pavlovsk/clinic/therapist/dressup.mp4"></video></center>','<center><video autoplay loop src="images/locations/pavlovsk/clinic/therapist/stripping1.mp4"></video></center>')
  185. 'As you put on your <<$def_clothing_name[default_entry]>> outfit you notice it doesn''t fit correctly anymore. It''s ' + iif(RESULT < pcs_hips - 8,'unbearably tight and uncomfortable to wear.','extremely loose and won''t stay in place no matter how hard you try.') + ' You must have ' + iif(RESULT < pcs_hips - 8,'gained','lost') + ' some weight since this was purchased or last tailored. You will have to get this clothing resized before you can wear it again.'
  186. act 'Strip out of ill-fitting clothing':
  187. gs 'clothing', 'strip'
  188. killvar 'default_entry'
  189. gs 'stat'
  190. gt 'wardrobe', 'start'
  191. end
  192. !! clothing ok to wear after passing hip check
  193. else
  194. cls
  195. '<center><video autoplay loop src="images/locations/city/citycenter/photo/dress.mp4"></video></center>'
  196. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  197. act 'Return to wardrobe':
  198. killvar 'default_entry'
  199. gs 'stat'
  200. gt 'wardrobe', 'start'
  201. end
  202. end
  203. !! clothing ok to wear without needing hip check and passing all other checks
  204. else
  205. cls
  206. '<center><video autoplay loop src="images/locations/city/citycenter/photo/dress.mp4"></video></center>'
  207. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  208. act 'Return to wardrobe':
  209. killvar 'default_entry'
  210. gs 'stat'
  211. gt 'wardrobe', 'start'
  212. end
  213. end
  214. end
  215. if $ARGS[0] = 'default_set':
  216. gs 'stat'
  217. 'sports outfit <a href="exec:gs ''wardrobe'', ''sports_entry_set'', <<i>>">Overwrite this</a>'
  218. if ARRSIZE('defclothingnumber') ! 0:
  219. i = 0
  220. :loopdefclothing_set
  221. '<<$def_clothing_name[i]>> <a href="exec:gs ''wardrobe'', ''default_entry_set'', <<i>>">Overwrite this</a>'
  222. i += 1
  223. if i < ARRSIZE('defclothingnumber'):jump 'loopdefclothing_set'
  224. end
  225. act 'Add as new default': gt 'wardrobe', 'default_entry_set', ARRSIZE('defclothingnumber')
  226. act 'Return': gt 'wardrobe', 'start'
  227. end
  228. if $ARGS[0] = 'default_entry_set':
  229. gs 'stat'
  230. i = ARGS[1]
  231. $defclothingtype[i] = $clothingworntype
  232. defclothingnumber[i] = clothingwornnumber
  233. $defbratype[i] = $braworntype
  234. defbranumber[i] = brawornnumber
  235. $defpantytype[i] = $pantyworntype
  236. defpantynumber[i] = pantywornnumber
  237. $defshoetype[i] = $shoeworntype
  238. defshoenumber[i] = shoewornnumber
  239. $defpursetype[i] = $currentpursetype
  240. defpursenumber[i] = currentpursenumber
  241. defcoat[i] = defaultcoat
  242. $def_clothing_name[i] = input ('Enter name for for this outfit (Leave blank for default)')
  243. if $def_clothing_name[i] = '': $def_clothing_name[i] = 'default <<i>>'
  244. gt 'wardrobe', 'default_set'
  245. end
  246. if $ARGS[0] = 'default_entry_delete':
  247. gs 'stat'
  248. i = ARGS[1]
  249. killvar 'defclothingtype', i
  250. killvar 'defclothingnumber', i
  251. killvar 'defbratype', i
  252. killvar 'defbranumber', i
  253. killvar 'defpantytype', i
  254. killvar 'defpantynumber', i
  255. killvar 'defshoetype', i
  256. killvar 'defshoenumber', i
  257. killvar 'defpursetype', i
  258. killvar 'defpursenumber', i
  259. killvar 'defcoat', i
  260. killvar 'def_clothing_name', i
  261. gt 'wardrobe', 'default_set'
  262. end
  263. !!-- sports outfit stuff
  264. if $ARGS[0] = 'sports_entry_wear':
  265. gs 'wardrobe', 'prev_entry_set'
  266. gs 'clothing_attributes', 'exercise', sportsclothingnumber
  267. gs 'clothing', 'wear', 'exercise', sportsclothingnumber
  268. if dyneval('RESULT = <<$sportsbratype>>_bras[<<sportsbranumber>>]') = 0: $sportsbratype = 'none' & sportsbranumber = 0
  269. gs 'bras', 'wear', $sportsbratype, sportsbranumber
  270. if dyneval('RESULT = <<$sportspantytype>>_panties[<<sportspantynumber>>]') = 0: $sportspantytype = 'none' & sportspantynumber = 0
  271. gs 'panties', 'wear', $sportspantytype, sportspantynumber
  272. gs 'shoes', 'wear', 'trainers', sportsshoenumber
  273. if $sportspursetype = '' AND sportspursenumber = 0:
  274. $sportspursetype = 'none' & sportspursenumber = 0
  275. elseif dyneval('RESULT = <<$sportspursetype>>_purses[<<sportspursenumber>>]') = 0:
  276. $sportspursetype = 'none' & sportspursenumber = 0
  277. end
  278. $currentpursetype = $sportspursetype
  279. currentpursenumber = sportspursenumber
  280. if $currentpursetype = 'none':
  281. bag = 0
  282. else
  283. bag = 1
  284. end
  285. if dyneval('RESULT = coat[<<sportscoat>>]') = 0: sportscoat = 0
  286. defaultcoat = sportscoat
  287. gs 'stat'
  288. !! do not own this clothing anymore
  289. if dyneval('RESULT = exercise[<<sportsclothingnumber>>]') = 0:
  290. cls
  291. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/school/strip/strip2.jpg"></center>'
  292. 'As you go to pull your sports outfit out of your wardrobe you remember you don''t own that piece of clothing anymore. Maybe you should buy it again? Guess you will have to find something else to wear.'
  293. gs 'wardrobe', 'prev_entry_set'
  294. !! strength of clothing is less than or equal to 0
  295. elseif dyneval('RESULT = exerciseH[<<sportsclothingnumber>>]') <= 0:
  296. cls
  297. '<center><video autoplay loop src="images/characters/pavlovsk/school/girl/vicky/event/vika_game_strip16.mp4"></video></center>'
  298. 'Your sports outfit has worn out and can''t be used anymore. Guess you will have to find something else to wear.'
  299. gs 'wardrobe', 'prev_entry_set'
  300. !! clothing exhibition is greater than player exhibition
  301. elseif CloInhibit > pcs_inhib:
  302. cls
  303. '<center><video autoplay loop src="images/locations/pavlovsk/trainstation/bimbo.strip6.mp4"></video></center>'
  304. 'You don''t feel daring enough to wear your sports outfit. Maybe you will be confident enough in the future? Guess you will have to find something else to wear.'
  305. gs 'wardrobe', 'prev_entry_set'
  306. !! clothing ok to wear without needing hip check and passing all other checks
  307. else
  308. cls
  309. '<center><video autoplay loop src="images/locations/city/citycenter/photo/dress.mp4"></video></center>'
  310. 'You put on your sports outfit without any problems.'
  311. end
  312. act 'Return':
  313. if $wloc = 'wardrobe':
  314. gt 'wardrobe', 'start'
  315. elseif $wloc = 'workout':
  316. gt 'exercise', 'workout'
  317. else
  318. gt $loc, $metka
  319. end
  320. end
  321. end
  322. if $ARGS[0] = 'sports_entry_set':
  323. if $clothingworntype ! 'exercise' OR $shoeworntype ! 'trainers':
  324. MSG 'The sports outfit needs to include exercise clothes and training shoes'
  325. act 'Return to wardrobe': gt 'wardrobe', 'start'
  326. else
  327. gs 'stat'
  328. sportsclothingnumber = clothingwornnumber
  329. $sportsbratype = $braworntype
  330. sportsbranumber = brawornnumber
  331. $sportspantytype = $pantyworntype
  332. sportspantynumber = pantywornnumber
  333. sportsshoenumber = shoewornnumber
  334. $sportspursetype = $currentpursetype
  335. sportspursenumber = currentpursenumber
  336. sportscoat = defaultcoat
  337. gt 'wardrobe', 'default_set'
  338. end
  339. end
  340. if $ARGS[0] = 'prev_entry_set':
  341. $prevsportsclothingtype = $clothingworntype
  342. prevsportsclothingnumber = clothingwornnumber
  343. $prevsportsbratype = $braworntype
  344. prevsportsbranumber = brawornnumber
  345. $prevsportspantytype = $pantyworntype
  346. prevsportspantynumber = pantywornnumber
  347. $prevsportsshoetype = $shoeworntype
  348. prevsportsshoenumber = shoewornnumber
  349. $prevsportspursetype = $currentpursetype
  350. prevsportspursenumber = currentpursenumber
  351. prevsportscoat = defaultcoat
  352. end
  353. if $ARGS[0] = 'prev_entry_wear':
  354. cls
  355. '<center><video autoplay loop src="images/locations/city/citycenter/photo/dress.mp4"></video></center>'
  356. 'You take off your sports outfit and put on the previous clothes'
  357. $clothingworntype = $prevsportsclothingtype
  358. clothingwornnumber = prevsportsclothingnumber
  359. $braworntype = $prevsportsbratype
  360. brawornnumber = prevsportsbranumber
  361. $pantyworntype = $prevsportspantytype
  362. pantywornnumber = prevsportspantynumber
  363. $shoeworntype = $prevsportsshoetype
  364. shoewornnumber = prevsportsshoenumber
  365. $currentpursetype = $prevsportspursetype
  366. currentpursenumber = prevsportspursenumber
  367. defaultcoat = prevsportscoat
  368. gs 'stat'
  369. act 'Return':
  370. if $wloc = 'wardrobe':
  371. gt 'wardrobe', 'start'
  372. elseif $wloc = 'workout':
  373. gt 'exercise', 'workout'
  374. else
  375. gt $loc, $metka
  376. end
  377. end
  378. end
  379. if $ARGS[0] = 'sports_outfit_option':
  380. if $ARGS[1] = 'workout':
  381. $wloc = 'workout'
  382. else
  383. killvar '$wloc'
  384. end
  385. if $clothingworntype = 'exercise' AND $shoeworntype = 'trainers' AND sportsclothingnumber = clothingwornnumber AND $sportsbratype = $braworntype AND sportsbranumber = brawornnumber AND $sportspantytype = $pantyworntype AND sportspantynumber = pantywornnumber AND sportsshoenumber = shoewornnumber:
  386. act 'Wear previous outfit': gs 'wardrobe', 'prev_entry_wear'
  387. else
  388. act 'Wear sports outfit': gs 'wardrobe', 'sports_entry_wear'
  389. end
  390. end
  391. --- wardrobe ---------------------------------