wardrobe.qsrc 35 KB

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