wardrobe.qsrc 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. # wardrobe
  2. if $ARGS[0] = 'start':
  3. PShoQuality = ShoQuality
  4. PShoHeels = ShoHeels
  5. PShoCut = ShoCut
  6. PShoStyle = ShoStyle
  7. $wloc = 'wardrobe'
  8. menu_off = 1
  9. gs 'stat'
  10. if CloBra = 1: gs 'bras', 'remove'
  11. if CloPanties = 1: gs 'panties','remove'
  12. if $sports_clothing_name = '':$sports_clothing_name = 'default sports outfit'
  13. if $clothingworntype = 'misc_outfits' and clothingwornnumber = '1':
  14. gs 'clothing', 'swamp_clothes', 0
  15. gs 'clothing', 'strip'
  16. end
  17. if ward_img_hgt = 0:ward_img_hgt = 150
  18. '<h3><center><b><font color="maroon">Wardrobe overview</b></h3>'
  19. if $pursepantytype ! '' or $pursebratype ! '':
  20. '<center>You put the '+iif($pursepantytype ! '','panties','')+iif($pursepantytype ! '' and $pursebratype ! '',' and ','')+iif($pursebratype ! '','bra','')+' from your purse back in the wardrobe.</center><br>'
  21. killvar '$pursepantytype' & killvar 'pursepantynumber'
  22. killvar '$pursebratype' & killvar 'pursebranumber'
  23. end
  24. '<center><font color="maroon">These are the clothes you are currently wearing - Click on an item to change it</font></center><center><table border=0 cellspacing=<<ward_img_hgt/25>> cellpadding=5>'
  25. *p '<TH>Bra worn</TH><TH>Outfit worn</TH><TH>Coat (only worn outside when cold)</TH>'
  26. *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>'
  27. if $coatworntype = 'none':
  28. '<a href="exec:gt ''coats'', ''view_coat_list'', ''wardrobe''">Search the wardrobe</a>'
  29. else
  30. '<a href="exec:gt ''coats'', ''view_coat_list'', ''wardrobe''"><img Height = <<ward_img_hgt * 2>> src="<<FUNC(''$body_image'', ''coat'')>>"></a>'
  31. end
  32. '</center></TD><TR><TD><center>'
  33. if $braworntype ! 'none':
  34. '<a href="exec:gs ''bras'', ''remove'' & gt ''wardrobe'', ''start''">Remove</a>'
  35. else
  36. 'Remove'
  37. end
  38. '</center></TD><TD><center>'
  39. if $clothingworntype ! 'nude':
  40. '<a href="exec:gs ''clothing'', ''strip'' & gt ''wardrobe'', ''start''">Remove</a>'
  41. else
  42. 'Remove'
  43. end
  44. '</center></TD><TD><center>'
  45. if $coatworntype ! 'none':
  46. '<a href="exec:gs ''coats'', ''remove'' & gt ''wardrobe'', ''start''">Remove</a>'
  47. else
  48. 'Remove'
  49. end
  50. '</center></TD>'
  51. *p '<TR><TH>Panties worn</TH><TH>Shoes (Only worn outside)</TH><TH>Purse worn</TH>'
  52. *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>'
  53. if bag = 1:
  54. '<a href="exec:gt ''purses'', ''view_purse_list'',''wardrobe''"><img Height = <<ward_img_hgt>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></a>'
  55. else
  56. '<a href="exec:gt ''purses'', ''view_purse_list'',''wardrobe''">Search the wardrobe</a>'
  57. end
  58. '</center></TD><TR><TD><center>'
  59. if $pantyworntype ! 'none':
  60. '<a href="exec:gs ''panties'', ''remove'' & gt ''wardrobe'', ''start''">Remove</a>'
  61. else
  62. 'Remove'
  63. end
  64. '</center></TD><TD><center>'
  65. if $shoeworntype ! 'none':
  66. '<a href="exec:gs ''shoes'', ''strip'' & gt ''wardrobe'', ''start''">Remove</a>'
  67. else
  68. 'Remove'
  69. end
  70. '</center></TD><TD><center>'
  71. if bag = 1:
  72. '<a href="exec:gs ''purses'', ''remove'' & gt ''wardrobe'', ''start''">Remove</a>'
  73. else
  74. 'Remove'
  75. end
  76. '</center></TD><TR><TD><TD><center>'
  77. if ($clothingworntype ! 'nude' and ($coatworntype ! 'none' or bag > 0)) or ($coatworntype ! 'none' and bag > 0):
  78. '<a href="exec:gs ''wardrobe'', ''removeall'' & gt ''wardrobe'', ''start''">Remove all items</a>'
  79. else
  80. 'Remove all items'
  81. end
  82. *nl
  83. '<center><font color="grey">Save/load outfits with "Managed saved clothing sets".</font></center>'
  84. '<TD></center></TD></table></center>'
  85. act 'Close wardrobe': killvar '$wloc' & gt $loc, $loc_arg
  86. act 'Strip all clothing':
  87. gs 'bras', 'remove'
  88. gs 'clothing', 'strip'
  89. gs 'panties', 'remove'
  90. gs 'shoes', 'strip'
  91. gt 'wardrobe', 'start'
  92. end
  93. act 'Organise your wardrobe': org_loc = 1 & gt 'clothing', 'view_clothing_list', 'wardrobe'
  94. act 'Manage saved clothing sets': gt 'wardrobe', 'default'
  95. act 'Set image size for this view':
  96. ward_img_hgt = input("Enter height in pixels you want for images on this page <br>(Default 150, min 50, max 500)")
  97. if ward_img_hgt < 50:
  98. ward_img_hgt = 50
  99. elseif ward_img_hgt > 500:
  100. ward_img_hgt = 500
  101. end
  102. gt 'wardrobe', 'start'
  103. end
  104. end
  105. if $ARGS[0] = 'removeall':
  106. gs 'bras', 'remove'
  107. gs 'clothing', 'strip'
  108. gs 'panties', 'remove'
  109. gs 'shoes', 'strip'
  110. gs 'purses', 'remove'
  111. gs 'coats', 'remove'
  112. end
  113. !!---------------------------Oufit stuff----------------------------------
  114. if $ARGS[0] = 'default':
  115. gs 'stat'
  116. '<center><b>Default outfits</b></center>'
  117. '<center><font color="grey">You can overwrite and rename default outfits, but you cannot delete a default outfit.</font></center>'
  118. *nl
  119. '<center><table width="600">'
  120. '<tr><td>'
  121. '<b><<$sports_clothing_name>>:</b> <a href="exec:gs ''wardrobe'', ''sports_entry_wear''">Wear</a> | <a href="exec:gs ''wardrobe'', ''sports_entry_set''">Overwrite</a> | <a href="exec:$sports_clothing_name = ''default sports outfit'' & gt ''wardrobe'', ''default''">Reset name</a>'
  122. '</td></tr>'
  123. '</table></center>'
  124. '<center><b>Custom outfits</b></center>'
  125. '<center><font color="grey">Choose your clothing, then select "Add as a new custom set" to save your clothing choice</font></center>'
  126. *nl
  127. '<center><table width="600">'
  128. '<tr><td>'
  129. if ARRSIZE('defclothingnumber') > 0:
  130. i = 0
  131. :loopdefclothing
  132. '<b><<$def_clothing_name[i]>>:</b> <a href="exec:gs ''wardrobe'', ''default_entry_wear'', <<i>>">Wear</a> | <a href="exec:gs ''wardrobe'', ''default_entry_set'', <<i>>">Overwrite</a> | <a href="exec:gs ''wardrobe'', ''default_entry_rename'', <<i>>">Rename</a> | <a href="exec:gs ''wardrobe'', ''default_entry_delete'', <<i>>">Delete</a> | <a href="exec:gs ''wardrobe'', ''default_entry_up'', <<i>>">↑</a> | <a href="exec:gs ''wardrobe'', ''default_entry_down'', <<i>>">↓</a>'
  133. i += 1
  134. if i < ARRSIZE('defclothingnumber'):jump 'loopdefclothing'
  135. end
  136. '</td></tr>'
  137. '</table></center>'
  138. act 'Return':
  139. if quick_dress = 1:
  140. killvar '$wloc'
  141. killvar 'quick_dress'
  142. gt $loc, $loc_arg
  143. else
  144. gt 'wardrobe', 'start'
  145. end
  146. end
  147. act 'Add as a new custom set': gt 'wardrobe', 'default_entry_set', ARRSIZE('defclothingnumber')
  148. '<center>Note: Selecting an outfit will show the bonus for equipped shoes, this is only applied when outside.</center>'
  149. '<center><table width="600">'
  150. if quickdress = 0:'Display clothing set shortcuts: Currently OFF - <a href="exec:quickdress = 1 & gt ''wardrobe'', ''default''">Turn ON</a>'
  151. if quickdress = 1:'Display clothing set shortcuts: Currently ON - <a href="exec:quickdress = 0 & gt ''wardrobe'', ''default''">Turn OFF</a>'
  152. '</table></center>'
  153. end
  154. if $ARGS[0] = 'default_entry_wear':
  155. gs 'stat'
  156. default_entry = ARGS[1]
  157. gs 'clothing_attributes', $defclothingtype[default_entry], defclothingnumber[default_entry]
  158. if ARRPOS('$CloLosTyp', $defclothingtype[default_entry]) ! -1 and ARRPOS('CloLosNum', defclothingnumber[default_entry]) ! -1:
  159. msg '<center>You''ve lost part of this set, and are unable to wear all items.<br>Maybe you can find the missing clothes somewhere?</center>'
  160. else
  161. gs 'clothing', 'wear', $defclothingtype[default_entry], defclothingnumber[default_entry]
  162. end
  163. if dyneval('RESULT = <<$defbratype[default_entry]>>_bras[<<defbranumber[default_entry]>>]') = 0:
  164. $defbratype[default_entry] = 'none' & defbranumber[default_entry] = 0
  165. end
  166. if $defbratype[default_entry] = 'none':
  167. if $braworntype ! 'none': gs 'bras', 'remove'
  168. else
  169. gs 'bras', 'wear', $defbratype[default_entry], defbranumber[default_entry]
  170. end
  171. if dyneval('RESULT = <<$defpantytype[default_entry]>>_panties[<<defpantynumber[default_entry]>>]') = 0:
  172. $defpantytype[default_entry] = 'none' & defpantynumber[default_entry] = 0
  173. end
  174. if $defpantytype[default_entry] = 'none':
  175. if $pantyworntype ! 'none': gs 'panties', 'remove'
  176. else
  177. gs 'panties', 'wear', $defpantytype[default_entry], defpantynumber[default_entry]
  178. end
  179. if dyneval('RESULT = <<$defshoetype[default_entry]>>_shoe[<<defshoenumber[default_entry]>>]') = 0:
  180. $defshoetype[default_entry] = 'none' & defshoenumber[default_entry] = 0
  181. else
  182. gs 'shoes', 'wear', $defshoetype[default_entry], defshoenumber[default_entry]
  183. end
  184. if dyneval('RESULT = <<$defpursetype[default_entry]>>_purses[<<defpursenumber[default_entry]>>]') = 0:
  185. $defpursetype[default_entry] = 'none' & defpursenumber[default_entry] = 0
  186. else
  187. $currentpursetype = $defpursetype[default_entry]
  188. currentpursenumber = defpursenumber[default_entry]
  189. end
  190. if $currentpursetype = 'none':
  191. bag = 0
  192. else
  193. bag = 1
  194. end
  195. if dyneval('RESULT = <<$defcoattype[default_entry]>>[<<defcoatnumber[default_entry]>>]') = 0:
  196. $defcoattype[default_entry] = 'none' & defcoatnumber[default_entry] = 0
  197. else
  198. gs 'coats', 'wear', $defcoattype[default_entry], defcoatnumber[default_entry]
  199. end
  200. !! default school girl uniform is always allowed to be worn if still in school
  201. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and $defclothingtype[default_entry] = 'gm_school' and defclothingnumber[default_entry] = 6:
  202. cls
  203. '<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
  204. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  205. act 'Return':
  206. if $wloc = 'wardrobe':
  207. gt 'wardrobe', 'start'
  208. elseif $wloc = 'workout':
  209. gt 'exercise', 'workout'
  210. else
  211. gt $loc, $loc_arg
  212. end
  213. end
  214. !! do not own this clothing anymore
  215. elseif dyneval('RESULT = <<$defclothingtype[default_entry]>>[<<defclothingnumber[default_entry]>>]') = 0:
  216. cls
  217. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/school/strip/strip2.jpg"></center>'
  218. '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.'
  219. act 'Return to wardrobe':
  220. gs 'clothing', 'strip'
  221. killvar 'default_entry'
  222. gs 'stat'
  223. gt 'wardrobe', 'start'
  224. end
  225. !! strength of clothing is less than or equal to 0
  226. elseif dyneval('RESULT = <<$defclothingtype[default_entry]>>_h[<<defclothingnumber[default_entry]>>]') <= 0:
  227. cls
  228. '<center><video autoplay loop src="images/characters/pavlovsk/school/girl/vicky/event/vika_game_strip16.mp4"></video></center>'
  229. '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.'
  230. act 'Strip out of worn out clothing':
  231. gs 'clothing', 'strip'
  232. killvar 'default_entry'
  233. gs 'stat'
  234. gt 'wardrobe', 'start'
  235. end
  236. !! clothing exhibition is greater than player exhibition
  237. elseif CloInhibit > pcs_inhib:
  238. cls
  239. '<center><video autoplay loop src="images/locations/pavlovsk/trainstation/bimbo.strip6.mp4"></video></center>'
  240. '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.'
  241. act 'Strip out of revealing clothing':
  242. gs 'clothing', 'strip'
  243. killvar 'default_entry'
  244. gs 'stat'
  245. gt 'wardrobe', 'start'
  246. end
  247. !! not exercise clothing, and not loose fitting
  248. elseif $defclothingtype[default_entry] ! 'danilovich_outfits' and CloStyle ! 5:
  249. !! check for if the hipsize is too far from your hipsize
  250. dynamic 'RESULT = <<$defclothingtype[default_entry]>>_b[<<defclothingnumber[default_entry]>>]'
  251. if RESULT < pcs_hips - 8 or RESULT > pcs_hips + 8:
  252. cls
  253. 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>')
  254. '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.'
  255. act 'Strip out of ill-fitting clothing':
  256. gs 'clothing', 'strip'
  257. killvar 'default_entry'
  258. gs 'stat'
  259. gt 'wardrobe', 'start'
  260. end
  261. !! clothing ok to wear after passing hip check
  262. else
  263. cls
  264. '<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
  265. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  266. act 'Return':
  267. if $wloc = 'wardrobe':
  268. gt 'wardrobe', 'start'
  269. elseif $wloc = 'workout':
  270. gt 'exercise', 'workout'
  271. else
  272. gt $loc, $loc_arg
  273. end
  274. end
  275. end
  276. !! clothing ok to wear without needing hip check and passing all other checks
  277. else
  278. cls
  279. '<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
  280. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  281. act 'Return':
  282. if $wloc = 'wardrobe':
  283. gt 'wardrobe', 'start'
  284. elseif $wloc = 'workout':
  285. gt 'exercise', 'workout'
  286. else
  287. gt $loc, $loc_arg
  288. end
  289. end
  290. end
  291. end
  292. if $ARGS[0] = 'default_entry_set':
  293. gs 'stat'
  294. i = ARGS[1]
  295. $defclothingtype[i] = $clothingworntype
  296. defclothingnumber[i] = clothingwornnumber
  297. $defbratype[i] = $braworntype
  298. defbranumber[i] = brawornnumber
  299. $defpantytype[i] = $pantyworntype
  300. defpantynumber[i] = pantywornnumber
  301. $defshoetype[i] = $shoeworntype
  302. defshoenumber[i] = shoewornnumber
  303. if bag = 1:
  304. $defpursetype[i] = $currentpursetype
  305. defpursenumber[i] = currentpursenumber
  306. else
  307. $defpursetype[i] = 'none'
  308. end
  309. $defcoattype[i] = $coatworntype
  310. defcoatnumber[i] = coatwornnumber
  311. $def_clothing_temp = '<<$def_clothing_name[i]>>'
  312. $def_clothing_name[i] = input ('<center>Enter a name for this outfit set<br><font color="grey">Leaving blank will reuse current name.</font></center>')
  313. if $def_clothing_name[i] = '' and $def_clothing_temp = '':
  314. $def_clothing_name[i] = 'Custom <<i>>'
  315. elseif $def_clothing_name[i] = '':
  316. $def_clothing_name[i] = '<<$def_clothing_temp>>'
  317. end
  318. gt 'wardrobe', 'default'
  319. end
  320. if $ARGS[0] = 'default_entry_rename':
  321. gs 'stat'
  322. i = ARGS[1]
  323. $def_clothing_temp = '<<$def_clothing_name[i]>>'
  324. $def_clothing_name[i] = input ('<center>Enter a name for this outfit set<br><font color="grey">Leaving blank will reuse current name.</font></center>')
  325. if $def_clothing_name[i] = '' and $def_clothing_temp = '':
  326. $def_clothing_name[i] = 'Custom <<i>>'
  327. elseif $def_clothing_name[i] = '':
  328. $def_clothing_name[i] = '<<$def_clothing_temp>>'
  329. end
  330. gt 'wardrobe', 'default'
  331. end
  332. if $ARGS[0] = 'default_entry_up':
  333. gs 'stat'
  334. i = ARGS[1]
  335. if i = 0:
  336. j = ARRSIZE('defclothingnumber') - 1
  337. else
  338. j = i - 1
  339. end
  340. $tempclothingworntype = $defclothingtype[i]
  341. tempclothingwornnumber = defclothingnumber[i]
  342. $tempbraworntype = $defbratype[i]
  343. tempbrawornnumber = defbranumber[i]
  344. $temppantyworntype = $defpantytype[i]
  345. temppantywornnumber = defpantynumber[i]
  346. $tempshoeworntype = $defshoetype[i]
  347. tempshoewornnumber = defshoenumber[i]
  348. $tempcurrentpursetype = $defpursetype[i]
  349. tempcurrentpursenumber = defpursenumber[i]
  350. $tempcurrentcoattype = $defcoattype[i]
  351. tempcurrentcoatnumber = defcoatnumber[i]
  352. $def_clothing_temp = '<<$def_clothing_name[i]>>'
  353. $defclothingtype[i] = $defclothingtype[j]
  354. defclothingnumber[i] = defclothingnumber[j]
  355. $defbratype[i] = $defbratype[j]
  356. defbranumber[i] = defbranumber[j]
  357. $defpantytype[i] = $defpantytype[j]
  358. defpantynumber[i] = defpantynumber[j]
  359. $defshoetype[i] = $defshoetype[j]
  360. defshoenumber[i] = defshoenumber[j]
  361. $defpursetype[i] = $defpursetype[j]
  362. defpursenumber[i] = defpursenumber[j]
  363. $defcoattype[i] = $defcoattype[j]
  364. defcoatnumber[i] = defcoatnumber[j]
  365. $def_clothing_name[i] = '<<$def_clothing_name[j]>>'
  366. $defclothingtype[j] = $tempclothingworntype
  367. defclothingnumber[j] = tempclothingwornnumber
  368. $defbratype[j] = $tempbraworntype
  369. defbranumber[j] = tempbrawornnumber
  370. $defpantytype[j] = $temppantyworntype
  371. defpantynumber[j] = temppantywornnumber
  372. $defshoetype[j] = $tempshoeworntype
  373. defshoenumber[j] = tempshoewornnumber
  374. $defpursetype[j] = $tempcurrentpursetype
  375. defpursenumber[j] = tempcurrentpursenumber
  376. $defcoattype[j] = $tempcurrentcoattype
  377. defcoatnumber[j] = tempcurrentcoatnumber
  378. $def_clothing_name[j] = '<<$def_clothing_temp>>'
  379. gt 'wardrobe', 'default'
  380. end
  381. if $ARGS[0] = 'default_entry_down':
  382. gs 'stat'
  383. i = ARGS[1]
  384. if i = ARRSIZE('defclothingnumber') - 1:
  385. j = 0
  386. else
  387. j = i + 1
  388. end
  389. $tempclothingworntype = $defclothingtype[i]
  390. tempclothingwornnumber = defclothingnumber[i]
  391. $tempbraworntype = $defbratype[i]
  392. tempbrawornnumber = defbranumber[i]
  393. $temppantyworntype = $defpantytype[i]
  394. temppantywornnumber = defpantynumber[i]
  395. $tempshoeworntype = $defshoetype[i]
  396. tempshoewornnumber = defshoenumber[i]
  397. $tempcurrentpursetype = $defpursetype[i]
  398. tempcurrentpursenumber = defpursenumber[i]
  399. $tempcurrentcoattype = $defcoattype[i]
  400. tempcurrentcoatnumber = defcoatnumber[i]
  401. $def_clothing_temp = '<<$def_clothing_name[i]>>'
  402. $defclothingtype[i] = $defclothingtype[j]
  403. defclothingnumber[i] = defclothingnumber[j]
  404. $defbratype[i] = $defbratype[j]
  405. defbranumber[i] = defbranumber[j]
  406. $defpantytype[i] = $defpantytype[j]
  407. defpantynumber[i] = defpantynumber[j]
  408. $defshoetype[i] = $defshoetype[j]
  409. defshoenumber[i] = defshoenumber[j]
  410. $defpursetype[i] = $defpursetype[j]
  411. defpursenumber[i] = defpursenumber[j]
  412. $defcoattype[i] = $defcoattype[j]
  413. defcoatnumber[i] = defcoatnumber[j]
  414. $def_clothing_name[i] = '<<$def_clothing_name[j]>>'
  415. $defclothingtype[j] = $tempclothingworntype
  416. defclothingnumber[j] = tempclothingwornnumber
  417. $defbratype[j] = $tempbraworntype
  418. defbranumber[j] = tempbrawornnumber
  419. $defpantytype[j] = $temppantyworntype
  420. defpantynumber[j] = temppantywornnumber
  421. $defshoetype[j] = $tempshoeworntype
  422. defshoenumber[j] = tempshoewornnumber
  423. $defpursetype[j] = $tempcurrentpursetype
  424. defpursenumber[j] = tempcurrentpursenumber
  425. $defcoattype[j] = $tempcurrentcoattype
  426. defcoatnumber[j] = tempcurrentcoatnumber
  427. $def_clothing_name[j] = '<<$def_clothing_temp>>'
  428. gt 'wardrobe', 'default'
  429. end
  430. if $ARGS[0] = 'default_entry_delete':
  431. gs 'stat'
  432. i = ARGS[1]
  433. killvar 'defclothingtype', i
  434. killvar 'defclothingnumber', i
  435. killvar 'defbratype', i
  436. killvar 'defbranumber', i
  437. killvar 'defpantytype', i
  438. killvar 'defpantynumber', i
  439. killvar 'defshoetype', i
  440. killvar 'defshoenumber', i
  441. killvar 'defpursetype', i
  442. killvar 'defpursenumber', i
  443. killvar 'defcoattype', i
  444. killvar 'defcoatnumber', i
  445. killvar 'def_clothing_name', i
  446. gt 'wardrobe', 'default'
  447. end
  448. !!-- sports outfit stuff
  449. if $ARGS[0] = 'sports_entry_set':
  450. gs 'stat'
  451. if $clothingworntype ! 'danilovich_outfits' OR $shoeworntype ! 'danilovich':
  452. MSG 'The sports outfit needs to include exercise clothes and training shoes'
  453. gt 'wardrobe', 'start'
  454. else
  455. gs 'stat'
  456. $sportsclothingtype = $clothingworntype
  457. sportsclothingnumber = clothingwornnumber
  458. $sportsbratype = $braworntype
  459. sportsbranumber = brawornnumber
  460. $sportspantytype = $pantyworntype
  461. sportspantynumber = pantywornnumber
  462. $sportsshoetype = $shoeworntype
  463. sportsshoenumber = shoewornnumber
  464. $sportspursetype = $currentpursetype
  465. sportspursenumber = currentpursenumber
  466. $sportscoattype = $coatworntype
  467. sportscoatnumber = coatwornnumber
  468. $sports_clothing_temp = '<<$sports_clothing_name>>'
  469. $sports_clothing_name = input ('<center>Enter a name for this outfit set<br><font color="grey">Leaving blank will reuse current name.</font></center>')
  470. if $sports_clothing_name = '' and $sports_clothing_temp = '':
  471. $sports_clothing_name = 'default sports outfit'
  472. elseif $sports_clothing_name = '':
  473. $sports_clothing_name = '<<$sports_clothing_temp>>'
  474. end
  475. gt 'wardrobe', 'default'
  476. end
  477. end
  478. if $ARGS[0] = 'sports_entry_wear':
  479. gs 'stat'
  480. !gs 'wardrobe', 'prev_entry_set' this does not exist
  481. gs 'clothing_attributes', 'danilovich_outfits', sportsclothingnumber
  482. if ARRPOS('$CloLosTyp', 'danilovich_outfits') ! -1 and ARRPOS('CloLosNum', sportsclothingnumber) ! -1:
  483. msg '<center>You''ve lost part of this set, and are unable to wear all items.<br>Maybe you can find the missing clothes somewhere?</center>'
  484. else
  485. gs 'clothing', 'wear', 'danilovich_outfits', sportsclothingnumber
  486. end
  487. if dyneval('RESULT = <<$sportsbratype>>_bras[<<sportsbranumber>>]') = 0: $sportsbratype = 'none' & sportsbranumber = 0
  488. gs 'bras', 'wear', $sportsbratype, sportsbranumber
  489. if dyneval('RESULT = <<$sportspantytype>>_panties[<<sportspantynumber>>]') = 0: $sportspantytype = 'none' & sportspantynumber = 0
  490. gs 'panties', 'wear', $sportspantytype, sportspantynumber
  491. gs 'shoes', 'wear', 'danilovich', sportsshoenumber
  492. minut += 2
  493. gs 'stat'
  494. !! do not own this clothing anymore
  495. if dyneval('RESULT = danilovich_outfits[<<sportsclothingnumber>>]') = 0:
  496. cls
  497. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/school/strip/strip2.jpg"></center>'
  498. '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.'
  499. !gs 'wardrobe', 'prev_entry_set' this does not exist
  500. gs 'clothing', 'strip'
  501. gs 'stat'
  502. !! strength of clothing is less than or equal to 0
  503. elseif dyneval('RESULT = danilovich_outfits_h[<<sportsclothingnumber>>]') <= 0:
  504. cls
  505. '<center><video autoplay loop src="images/characters/pavlovsk/school/girl/vicky/event/vika_game_strip16.mp4"></video></center>'
  506. 'Your sports outfit has worn out and can''t be used anymore. Guess you will have to find something else to wear.'
  507. !gs 'wardrobe', 'prev_entry_set' this does not exist
  508. gs 'clothing', 'strip'
  509. gs 'stat'
  510. !! clothing exhibition is greater than player exhibition
  511. elseif CloInhibit > pcs_inhib:
  512. cls
  513. '<center><video autoplay loop src="images/locations/pavlovsk/trainstation/bimbo.strip6.mp4"></video></center>'
  514. '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.'
  515. !gs 'wardrobe', 'prev_entry_set' this does not exist
  516. gs 'clothing', 'strip'
  517. gs 'stat'
  518. !! clothing ok to wear without needing hip check and passing all other checks
  519. else
  520. cls
  521. '<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
  522. 'You put on your sports outfit without any problems.'
  523. end
  524. act 'Return':
  525. if $wloc = 'wardrobe':
  526. gt 'wardrobe', 'start'
  527. elseif $wloc = 'workout':
  528. gt 'exercise', 'workout'
  529. else
  530. gt $loc, $loc_arg
  531. end
  532. end
  533. end
  534. if $ARGS[0] = 'sports_outfit':
  535. gs 'stat'
  536. if $clothingworntype ! 'danilovich_outfits' or $shoeworntype ! 'danilovich':
  537. act 'Change into: <<$sports_clothing_name>>': gs 'wardrobe', 'sports_entry_wear'
  538. end
  539. end
  540. if $ARGS[0] = 'school_outfit':
  541. ! check to see if player has created a school uniform outfit
  542. if ARRSIZE('defclothingnumber') > 0:
  543. SchoolOutfitLoop = 0
  544. :FindSchoolOutfit
  545. gs 'clothing_attributes', $defclothingtype[SchoolOutfitLoop], defclothingnumber[SchoolOutfitLoop]
  546. ! found an outfit that includes a school uniform
  547. if CloStyle2 = 4:
  548. tempSchtype = 0
  549. ! if they have worn a uniform recently we will use that rather than the one in the outfit
  550. if schtype <> 0:
  551. tempSchtype = schtype
  552. $tempSchbrand = $schbrand
  553. end
  554. ! put the outfit on
  555. gs 'wardrobe', 'default_entry_wear', SchoolOutfitLoop
  556. !over ride the uniform with the most recent one used if there was one
  557. if tempSchtype <> 0:
  558. clothingwornnumber = tempSchtype
  559. $clothingworntype = $tempSchbrand
  560. schtype = clothingwornnumber
  561. $schbrand = $clothingworntype
  562. end
  563. jump 'FoundSchoolOutfit'
  564. end
  565. SchoolOutfitLoop += 1
  566. if SchoolOutfitLoop < ARRSIZE('defclothingnumber'):jump 'FindSchoolOutfit'
  567. :FoundSchoolOutfit
  568. killvar 'SchoolOutfitLoop'
  569. killvar 'tempSchtype'
  570. killvar '$tempSchbrand'
  571. end
  572. ! if no uniform found or the one selected is worn out, use the default one
  573. if schtype = 0 or dyneval('RESULT = <<$schbrand>>_h[<<schtype>>]') <= 0:
  574. schtype = 6
  575. $schbrand = 'gm_school'
  576. end
  577. gs 'clothing', 'wear', $schbrand, schtype
  578. end
  579. !!-- quickdress
  580. if $ARGS[0] = 'quickdress':
  581. if quickdress = 1:
  582. '<table width="600">'
  583. '<tr><td>'
  584. 'You can access your <a href="exec: quick_dress = 1 & gt ''wardrobe'', ''default''">default clothing</a> options directly.'
  585. '<b><<$sports_clothing_name>>:</b> <a href="exec:gs ''wardrobe'', ''sports_entry_wear''">Wear</a>'
  586. if ARRSIZE('defclothingnumber') > 0:
  587. i = 0
  588. :loopdefclothing
  589. '<b><<$def_clothing_name[i]>>:</b> <a href="exec:gs ''wardrobe'', ''default_entry_wear'', <<i>>">Wear</a>'
  590. i += 1
  591. if i < ARRSIZE('defclothingnumber'):jump 'loopdefclothing'
  592. end
  593. '</td></tr>'
  594. '</table>'
  595. else:
  596. 'You can access your <a href="exec: quick_dress = 1 & gt ''wardrobe'', ''default''">default clothing</a> options directly.'
  597. end
  598. end
  599. --- wardrobe ---------------------------------