wardrobe.qsrc 35 KB

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