wardrobe.qsrc 31 KB

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