wardrobe.qsrc 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147
  1. # wardrobe
  2. if $ARGS[0] = 'start':
  3. if $wardrobeDefaultPagePref = '': $wardrobeDefaultPagePref = 'default1'
  4. killvar 'clothingfilter'
  5. '<center><font color="maroon">Please select an option</font></center>'
  6. *nl
  7. *nl
  8. *nl
  9. !! current outfit
  10. '<center><a href="exec:gt ''wardrobe'', ''main''"><img src="images/system/icons/clothing/clothes.png" height="150"></a></center>'
  11. *nl
  12. *nl
  13. *nl
  14. !! Clothing sets
  15. '<center><a href="exec:gt ''wardrobe'', $wloc"><img src="images/system/icons/clothing/default.png" height="150"></a></center>'
  16. *nl
  17. *nl
  18. *nl
  19. !! outfit list
  20. '<center><a href="exec:gt ''clothing'', ''view_clothing_list'', ''wardrobe''"><img src="images/system/icons/clothing/organize.png" height="150"></a></center>'
  21. if $pursepantytype ! '' or $pursebratype ! '':
  22. '<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>'
  23. killvar '$pursepantytype' & killvar 'pursepantynumber'
  24. killvar '$pursebratype' & killvar 'pursebranumber'
  25. end
  26. if $wardrobeDefaultPagePref = 'currentOutfit':
  27. gt 'wardrobe', 'main'
  28. elseif $wardrobeDefaultPagePref = 'viewClothing':
  29. gt 'clothing', 'view_clothing_list', 'wardrobe'
  30. elseif $wardrobeDefaultPagePref ! '':
  31. gt 'wardrobe', $wardrobeDefaultPagePref
  32. end
  33. act 'Return': gt $loc, $loc_arg
  34. act 'Current outfit': gt 'wardrobe', 'main'
  35. act 'Saved outfit sets':
  36. if $wardrobeDefaultPagePref ! 'currentOutfit' and $wardrobeDefaultPagePref ! 'viewClothing':
  37. gt 'wardrobe', $wardrobeDefaultPagePref
  38. else
  39. gt 'wardrobe', $wloc
  40. end
  41. end
  42. act 'Open wardrobe': gt 'clothing', 'view_clothing_list'
  43. end
  44. if $ARGS[0] = 'main':
  45. if $wloc = '': $wloc = 'default1'
  46. PShoQuality = ShoQuality
  47. PShoHeels = ShoHeels
  48. PShoCut = ShoCut
  49. PShoStyle = ShoStyle
  50. menu_off = 1
  51. gs 'stat'
  52. if CloBra = 1: gs 'bras', 'remove'
  53. if CloPanties = 1: gs 'panties','remove'
  54. if $sports_clothing_name = '':$sports_clothing_name = 'default sports outfit'
  55. if $clothingworntype = 'misc_outfits' and clothingwornnumber = '1':
  56. gs 'clothing', 'gad_swamp_clothes', 0
  57. gs 'clothing', 'strip'
  58. end
  59. if ward_img_hgt = 0:ward_img_hgt = 150
  60. '<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>'
  61. if $wardrobeDefaultPagePref = 'currentOutfit':
  62. $wardrobeSetDefault = '<a href="exec: killvar ''$wardrobeDefaultPagePref'' & gt ''wardrobe'', ''main''">Remove saved default wardrobe page</a>'
  63. else
  64. $wardrobeSetDefault = '<a href="exec: $wardrobeDefaultPagePref = ''currentOutfit'' & gt ''wardrobe'', ''main''">Set here as default wardrobe page</a>'
  65. end
  66. '<center><<$wardrobeSetDefault>></center>'
  67. killvar '$wardrobeSetDefault'
  68. if $pursepantytype ! '' or $pursebratype ! '':
  69. '<center>You put the '+iif($pursepantytype ! '','panties','')+iif($pursepantytype ! '' and $pursebratype ! '',' and ','')+iif($pursebratype ! '','bra','')+' from your purse back in the wardrobe.</center><br>'
  70. killvar '$pursepantytype' & killvar 'pursepantynumber'
  71. killvar '$pursebratype' & killvar 'pursebranumber'
  72. end
  73. '<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>'
  74. if underwear['type'] = 0:
  75. *p '<TH>Bra worn</TH><TH>Outfit worn</TH><TH>Coat (only worn outside when cold)</TH>'
  76. *P '<TR><TD><center><a href="exec:gt ''wardrobe'', ''underwear_options'', ''bra''"><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>'
  77. else
  78. *p '<TH>Bodysuit worn</TH><TH>Outfit worn</TH><TH>Coat (only worn outside when cold)</TH>'
  79. *P '<TR><TD ROWSPAN=4><center><a href="exec:gt ''wardrobe'', ''underwear_options'', ''full''"><img Height = <<ward_img_hgt>>*2 src="<<FUNC(''$body_image'',''bodysuit'')>>"></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>'
  80. end
  81. if $coatworntype = 'none':
  82. '<a href="exec:gt ''coats'', ''view_coat_list'', ''wardrobe''">Search the wardrobe</a>'
  83. else
  84. '<a href="exec:gt ''coats'', ''view_coat_list'', ''wardrobe''"><img Height = <<ward_img_hgt * 2>> src="<<FUNC(''$body_image'', ''coat'')>>"></a>'
  85. end
  86. if underwear['type'] = 0:
  87. '</center></TD><TR><TD><center>'
  88. if $braworntype ! 'none':
  89. '<a href="exec:gs ''bras'', ''remove'' & gt ''wardrobe'', ''main''">Remove</a>'
  90. else
  91. 'Remove'
  92. end
  93. '</center></TD><TD><center>'
  94. else
  95. '</center></TD><TR><TD><center>'
  96. end
  97. if $clothingworntype ! 'nude':
  98. '<a href="exec:gs ''clothing'', ''strip'' & gt ''wardrobe'', ''main''">Remove</a>'
  99. else
  100. 'Remove'
  101. end
  102. '</center></TD><TD><center>'
  103. if $coatworntype ! 'none':
  104. '<a href="exec:gs ''coats'', ''remove'' & gt ''wardrobe'', ''main''">Remove</a>'
  105. else
  106. 'Remove'
  107. end
  108. '</center></TD>'
  109. if underwear['type'] = 0:
  110. *p '<TR><TH>Panties worn</TH><TH>Shoes (Only worn outside)</TH><TH>Purse worn</TH>'
  111. *P '<TR><TD><center><a href="exec:gt ''wardrobe'', ''underwear_options'', ''panties''"><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>'
  112. else
  113. *p '<TR><TH>Shoes (Only worn outside)</TH><TH>Purse worn</TH>'
  114. *P '<TR><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>'
  115. end
  116. if bag = 1:
  117. '<a href="exec:gt ''purses'', ''view_purse_list'',''wardrobe''"><img Height = <<ward_img_hgt>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></a>'
  118. else
  119. '<a href="exec:gt ''purses'', ''view_purse_list'',''wardrobe''">Search the wardrobe</a>'
  120. end
  121. if underwear['type'] = 0:
  122. '</center></TD><TR><TD><center>'
  123. if $pantyworntype ! 'none':
  124. '<a href="exec:gs ''panties'', ''remove'' & gt ''wardrobe'', ''main''">Remove</a>'
  125. else
  126. 'Remove'
  127. end
  128. '</center></TD><TD><center>'
  129. else
  130. '</center></TD><TR><TD><center>'
  131. '<a href="exec:gs ''underwear_bodysuits'', ''remove'' & underwear[''type''] = 0 & gt ''wardrobe'', ''main''">Remove</a>'
  132. '</center></TD><TD><center>'
  133. end
  134. if $shoeworntype ! 'none':
  135. '<a href="exec:gs ''shoes'', ''strip'' & gt ''wardrobe'', ''main''">Remove</a>'
  136. else
  137. 'Remove'
  138. end
  139. '</center></TD><TD><center>'
  140. if bag = 1:
  141. '<a href="exec:gs ''purses'', ''remove'' & gt ''wardrobe'', ''main''">Remove</a>'
  142. else
  143. 'Remove'
  144. end
  145. '</center></TD><TR><TD><TD><center>'
  146. if ($clothingworntype ! 'nude' and ($coatworntype ! 'none' or bag > 0)) or ($coatworntype ! 'none' and bag > 0):
  147. '<a href="exec:gs ''wardrobe'', ''removeall'' & gt ''wardrobe'', ''main''">Remove all items</a>'
  148. else
  149. 'Remove all items'
  150. end
  151. *nl
  152. '<center><font color="grey">Save/load outfits with "Managed saved clothing sets".</font></center>'
  153. '<TD></center></TD></table></center>'
  154. act 'Close wardrobe': gt $loc, $loc_arg
  155. act 'Strip all clothing':
  156. gs 'bras', 'remove'
  157. gs 'clothing', 'strip'
  158. gs 'panties', 'remove'
  159. gs 'shoes', 'strip'
  160. gt 'wardrobe', 'main'
  161. end
  162. act 'Set image size for this view':
  163. ward_img_hgt = input("Enter height in pixels you want for images on this page <br>(Default 150, min 50, max 500)")
  164. if ward_img_hgt < 50:
  165. ward_img_hgt = 50
  166. elseif ward_img_hgt > 500:
  167. ward_img_hgt = 500
  168. end
  169. gt 'wardrobe', 'main'
  170. end
  171. end
  172. if $ARGS[0] = 'underwear_options':
  173. '<center><font color="maroon">Please select an option</font></center>'
  174. *nl
  175. *nl
  176. *nl
  177. '<center><a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_list'', ''wardrobe''"><img src="images/system/icons/clothing/bodysuits.png" height="150"></a></center>'
  178. if $ARGS[1] = 'bra' or $ARGS[1] = 'full':
  179. *nl
  180. *nl
  181. *nl
  182. '<center><a href="exec:gt ''bras'', ''view_bra_list'', ''wardrobe''"><img src="images/system/icons/clothing/bras.png" height="150"></a></center>'
  183. end
  184. if $ARGS[1] = 'panties' or $ARGS[1] = 'full':
  185. *nl
  186. *nl
  187. *nl
  188. '<center><a href="exec:gt ''panties'', ''view_panty_list'', ''wardrobe''"><img src="images/system/icons/clothing/panties.png" height="150"></a></center>'
  189. end
  190. act 'Return': gt 'wardrobe', 'main'
  191. end
  192. if $ARGS[0] = 'removeall':
  193. gs 'bras', 'remove'
  194. gs 'clothing', 'strip'
  195. gs 'panties', 'remove'
  196. gs 'shoes', 'strip'
  197. gs 'purses', 'remove'
  198. gs 'coats', 'remove'
  199. end
  200. !!---------------------------Oufit stuff----------------------------------
  201. $default_clothing_suma = {
  202. RESULT = defclothingnumber[ARGS[0]]+ defbranumber[ARGS[0]] + defpantynumber[ARGS[0]] + defshoenumber[ARGS[0]] + defpursenumber[ARGS[0]] + defcoatnumber[ARGS[0]]
  203. }
  204. $default_clothing_line = {
  205. !! a single line in a clothing list (wardrobe, etc)
  206. !! ARGS 0 - action type (wardrobe, sell, resize, store, forsale)
  207. !! ARGS 1 - clothing type
  208. !! ARGS 2 - clothing index
  209. gs 'themes', 'clothing'
  210. $RESULT = '<TR bgcolor='+$temp_bcolor+'>'
  211. $RESULT +='<TD><b><<$def_clothing_name[default_entry]>></b></TD>'
  212. gs 'clothing_attributes', $defclothingtype[default_entry], defclothingnumber[default_entry]
  213. if defclothingnumber[default_entry] = 0:
  214. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  215. else
  216. $RESULT +='<TD><img width="100" src="<<FUNC(''$clothing_image'', $defclothingtype[default_entry], defclothingnumber[default_entry])>>"></TD>'
  217. end
  218. if defunderwear[default_entry] = 2:
  219. gs 'underwear_attributes', $defbodysuittype[default_entry]+'_bodysuits', defbodysuitnumber[default_entry]
  220. if defbodysuitnumber[default_entry] = 0:
  221. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  222. else
  223. $RESULT +='<TD><img width="100" src="<<FUNC(''$pcs_outfit_image'', $defbodysuittype[default_entry]+''_bodysuits'', defbodysuitnumber[default_entry])>>"></TD>'
  224. end
  225. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  226. else
  227. gs 'underwear_attributes', $defbratype[default_entry]+'_bras', defbranumber[default_entry]
  228. if defbranumber[default_entry] = 0:
  229. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  230. else
  231. $RESULT +='<TD><img width="100" src="<<FUNC(''$bra_image'', $defbratype[default_entry], defbranumber[default_entry])>>"></TD>'
  232. end
  233. gs 'underwear_attributes', $defpantytype[default_entry]+'_panties', defpantynumber[default_entry]
  234. if defpantynumber[default_entry] = 0:
  235. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  236. else
  237. $RESULT +='<TD><img width="100" src="<<FUNC(''$panty_image'', $defpantytype[default_entry], defpantynumber[default_entry])>>"></TD>'
  238. end
  239. end
  240. gs 'shoe_attributes', $defshoetype[default_entry], defshoenumber[default_entry]
  241. if defshoenumber[default_entry] = 0:
  242. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  243. else
  244. $RESULT +='<TD><img width="100" src="<<FUNC(''$shoe_image'', $defshoetype[default_entry], defshoenumber[default_entry])>>"></TD>'
  245. end
  246. gs 'coat_attributes', $defcoattype[default_entry], defcoatnumber[default_entry]
  247. if defcoatnumber[default_entry] = 0:
  248. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  249. else
  250. $RESULT +='<TD><img width="100" src="<<FUNC(''$coat_image'', $defcoattype[default_entry], defcoatnumber[default_entry])>>"</TD>'
  251. end
  252. if defpursenumber[default_entry] = 0:
  253. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  254. else
  255. $RESULT +='<TD><img width="100" src="<<FUNC(''$purse_image'', $defpursetype[default_entry], defpursenumber[default_entry])>>"></TD>'
  256. end
  257. $RESULT +='<TD><a href="exec:gs ''wardrobe'', ''default_entry_wear'', <<default_entry>>"><img src="images/system/icons/clothing/wear.png"></a></TD>'
  258. $RESULT +='<TD><a href="exec:gs ''wardrobe'', ''default_entry_set'', <<default_entry>>"><img src="images/system/icons/clothing/overwrite.png"></a></TD>'
  259. $RESULT +='<TD><a href="exec:gs ''wardrobe'', ''default_entry_rename'', <<default_entry>>"><img src="images/system/icons/clothing/rename.png"></a></TD>'
  260. $RESULT +='<TD><a href="exec:gs ''wardrobe'', ''default_entry_delete'', <<default_entry>>"><img src="images/system/icons/clothing/delete_on.png"></a></TD>'
  261. if ShoStyle2 = 2 and CloStyle2 = 6:
  262. if default_sport_number ! default_entry:
  263. $RESULT += '<TD><a href="exec:gs ''wardrobe'', ''default_sport_set'', <<default_entry>>"><img src="images/system/icons/clothing/sport_off.png"></a></TD><TR>'
  264. else
  265. $RESULT += '<TD><img src="images/system/icons/clothing/sport.png"></TD><TR>'
  266. end
  267. elseif SchoolAtestat = 0 and CloStyle2 = 4:
  268. if default_school_number ! default_entry:
  269. $RESULT += '<TD><a href="exec:gs ''wardrobe'', ''default_school_set'', <<default_entry>>"><img src="images/system/icons/clothing/school_off.png"></a></TD><TR>'
  270. else
  271. $RESULT += '<TD><img src="images/system/icons/clothing/school.png"></TD><TR>'
  272. end
  273. else
  274. $RESULT += '<TD></TD><TR>'
  275. end
  276. }
  277. if $ARGS[0] = 'default_name_initialise':
  278. if $clothing_default_page[1] = '':$clothing_default_page[1] = 'Set 1'
  279. if $clothing_default_page[2] = '':$clothing_default_page[2] = 'Set 2'
  280. if $clothing_default_page[3] = '':$clothing_default_page[3] = 'Set 3'
  281. if $clothing_default_page[4] = '':$clothing_default_page[4] = 'Set 4'
  282. if $clothing_default_page[5] = '':$clothing_default_page[5] = 'Set 5'
  283. if $clothing_default_page[6] = '':$clothing_default_page[6] = 'Set 6'
  284. if $clothing_default_page[7] = '':$clothing_default_page[7] = 'Set 7'
  285. if $clothing_default_page[8] = '':$clothing_default_page[8] = 'Set 8'
  286. if $clothing_default_page[9] = '':$clothing_default_page[9] = 'Set 9'
  287. if $clothing_default_page[10] = '':$clothing_default_page[10] = 'Set 10'
  288. end
  289. if $ARGS[0] = 'default_template':
  290. killvar '$temp1'
  291. killvar 'temp2'
  292. clothing_default_page = ARGS[1]
  293. gs 'wardrobe', 'default_name_initialise'
  294. gs 'stat'
  295. '<center><table><tr><td><a href="exec:gt ''wardrobe'', ''main''"><img src="images/system/icons/clothing/clothes.png" height="50"></a></td><td><center><B>Current set: <<$default_entry[2]>></B><br><a href="exec: gs ''wardrobe'', ''default_set_name''">Rename set</a></center></td><td><a href="exec:gt ''clothing'', ''view_clothing_list'', ''wardrobe''"><img src="images/system/icons/clothing/organize.png" height="50"></a></td></tr><TR><TD></TD></table></center>'
  296. if $wardrobeDefaultPagePref = $wloc:
  297. $wardrobeSetDefault = '<a href="exec: killvar ''$wardrobeDefaultPagePref'' & gt ''wardrobe'', ''<<$wloc>>''">Remove saved default wardrobe page</a>'
  298. else
  299. $wardrobeSetDefault = '<a href="exec: $wardrobeDefaultPagePref = $wloc & gt ''wardrobe'', ''<<$wloc>>''">Set here as default wardrobe page</a>'
  300. end
  301. '<center><<$wardrobeSetDefault>></center>'
  302. killvar '$wardrobeSetDefault'
  303. '<center><table><TH>Name</TH><TH>Outfit</TH><TH>Bra/Bodysuit</TH><TH>Panties</TH><TH>Shoes</TH><TH>Coat</TH><TH>Purse</TH><TH></TH><TH></TH><TH></TH><TH></TH><TH></TH><TR>'
  304. temp = default_entry
  305. :loopdefault_entry_set
  306. if dyneval($default_clothing_suma,default_entry) ! 0: *p dyneval($default_clothing_line)
  307. default_entry += 1
  308. if default_entry <= default_entry[1]:jump 'loopdefault_entry_set'
  309. default_entry = temp
  310. :loopdefault_entry_empty
  311. if dyneval($default_clothing_suma,default_entry) = 0: *p dyneval($default_clothing_line)
  312. default_entry += 1
  313. if default_entry <= default_entry[1]:jump 'loopdefault_entry_empty'
  314. '</table></center>'
  315. killvar '$temp_bcolor'
  316. end
  317. if $ARGS[0] = 'default_set_name':
  318. *clr & cla
  319. $clothing_default_page[clothing_default_page] = input('Enter new name for this set')
  320. gt 'wardrobe', 'default<<clothing_default_page>>'
  321. end
  322. if $ARGS[0] = 'default_actions':
  323. act 'Return': gt $loc, $loc_arg
  324. act 'Select outfit to wear':
  325. cla
  326. act 'Return': gt 'wardrobe', $wardrobeDefaultPagePref
  327. gs 'wardrobe', 'default_actions_wear'
  328. end
  329. act 'Choose another page':
  330. cla
  331. act 'Return': gt 'wardrobe', $wardrobeDefaultPagePref
  332. gs 'wardrobe', 'default_actions_page'
  333. end
  334. act 'Rename this set': gs 'wardrobe', 'default_set_name'
  335. end
  336. if $ARGS[0] = 'default_actions_page':
  337. if ARGS[1] ! 1: act 'See <<$clothing_default_page[1]>> set': gt 'wardrobe', 'default1'
  338. if ARGS[1] ! 2: act 'See <<$clothing_default_page[2]>> set': gt 'wardrobe', 'default2'
  339. if ARGS[1] ! 3: act 'See <<$clothing_default_page[3]>> set': gt 'wardrobe', 'default3'
  340. if ARGS[1] ! 4: act 'See <<$clothing_default_page[4]>> set': gt 'wardrobe', 'default4'
  341. if ARGS[1] ! 5: act 'See <<$clothing_default_page[5]>> set': gt 'wardrobe', 'default5'
  342. if ARGS[1] ! 6: act 'See <<$clothing_default_page[6]>> set': gt 'wardrobe', 'default6'
  343. if ARGS[1] ! 7: act 'See <<$clothing_default_page[7]>> set': gt 'wardrobe', 'default7'
  344. if ARGS[1] ! 8: act 'See <<$clothing_default_page[8]>> set': gt 'wardrobe', 'default8'
  345. if ARGS[1] ! 9: act 'See <<$clothing_default_page[9]>> set': gt 'wardrobe', 'default9'
  346. if ARGS[1] ! 10: act 'See <<$clothing_default_page[10]>> set': gt 'wardrobe', 'default10'
  347. end
  348. if $ARGS[0] = 'default_actions_wear':
  349. default_entry -= 10
  350. i = default_entry
  351. :loop_default_actions_wear
  352. if dyneval($default_clothing_suma, i) ! 0:
  353. $var_default_actions_wear = dyneval('$result = "act ''Wear <<$def_clothing_name[i]>>'': gs ''wardrobe'', ''default_entry_wear'', <<i>>"')
  354. dynamic $var_default_actions_wear
  355. end
  356. i += 1
  357. if i <= default_entry[1]: jump 'loop_default_actions_wear'
  358. killvar 'i'
  359. killvar '$var_default_actions_wear'
  360. end
  361. if $ARGS[0] = 'default1':
  362. $wloc = 'default1'
  363. default_entry = 1
  364. default_entry[1] = 10
  365. $default_entry[2] = $clothing_default_page[1]
  366. !! gs default_actions *before* gs default_template
  367. !! as default_template modifies variable default_entry.
  368. gs 'wardrobe', 'default_actions', 1
  369. gs 'wardrobe', 'default_template', 1
  370. end
  371. if $ARGS[0] = 'default2':
  372. $wloc = 'default2'
  373. default_entry = 11
  374. default_entry[1] = 20
  375. $default_entry[2] = $clothing_default_page[2]
  376. gs 'wardrobe', 'default_actions', 2
  377. gs 'wardrobe', 'default_template', 2
  378. end
  379. if $ARGS[0] = 'default3':
  380. $wloc = 'default3'
  381. default_entry = 21
  382. default_entry[1] = 30
  383. $default_entry[2] = $clothing_default_page[3]
  384. gs 'wardrobe', 'default_actions', 3
  385. gs 'wardrobe', 'default_template', 3
  386. end
  387. if $ARGS[0] = 'default4':
  388. $wloc = 'default4'
  389. default_entry = 31
  390. default_entry[1] = 40
  391. $default_entry[2] = $clothing_default_page[4]
  392. gs 'wardrobe', 'default_actions', 4
  393. gs 'wardrobe', 'default_template', 4
  394. end
  395. if $ARGS[0] = 'default5':
  396. $wloc = 'default5'
  397. default_entry = 41
  398. default_entry[1] = 50
  399. $default_entry[2] = $clothing_default_page[5]
  400. gs 'wardrobe', 'default_actions', 5
  401. gs 'wardrobe', 'default_template', 5
  402. end
  403. if $ARGS[0] = 'default6':
  404. $wloc = 'default6'
  405. default_entry = 51
  406. default_entry[1] = 60
  407. $default_entry[2] = $clothing_default_page[6]
  408. gs 'wardrobe', 'default_actions', 6
  409. gs 'wardrobe', 'default_template', 6
  410. end
  411. if $ARGS[0] = 'default7':
  412. $wloc = 'default7'
  413. default_entry = 61
  414. default_entry[1] = 70
  415. $default_entry[2] = $clothing_default_page[7]
  416. gs 'wardrobe', 'default_actions', 7
  417. gs 'wardrobe', 'default_template', 7
  418. end
  419. if $ARGS[0] = 'default8':
  420. $wloc = 'default8'
  421. default_entry = 71
  422. default_entry[1] = 80
  423. $default_entry[2] = $clothing_default_page[8]
  424. gs 'wardrobe', 'default_actions', 8
  425. gs 'wardrobe', 'default_template', 8
  426. end
  427. if $ARGS[0] = 'default9':
  428. $wloc = 'default9'
  429. default_entry = 81
  430. default_entry[1] = 90
  431. $default_entry[2] = $clothing_default_page[9]
  432. gs 'wardrobe', 'default_actions', 9
  433. gs 'wardrobe', 'default_template', 9
  434. end
  435. if $ARGS[0] = 'default10':
  436. $wloc = 'default10'
  437. default_entry = 91
  438. default_entry[1] = 100
  439. $default_entry[2] = $clothing_default_page[10]
  440. gs 'wardrobe', 'default_actions', 10
  441. gs 'wardrobe', 'default_template', 10
  442. end
  443. if $ARGS[0] = 'default_entry_wear':
  444. gs 'stat'
  445. default_entry = ARGS[1]
  446. $temp1 = $defclothingtype[default_entry]
  447. temp2 = defclothingnumber[default_entry]
  448. gs 'clothing_attributes', $temp1, temp2
  449. if ARRPOS('$CloLosTyp', $temp1) ! -1 and ARRPOS('CloLosNum', temp2) ! -1:
  450. 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>'
  451. gt 'wardrobe', $wloc
  452. else
  453. gs 'clothing', 'wear', $temp1, temp2
  454. end
  455. if defunderwear[default_entry] = 2:
  456. if hypnoPanty = 1 or hypnoBra = 1:
  457. !! removal of underwear from set if therapist has prohibited it
  458. $defbodysuittype[default_entry] = 'none' & defbodysuitnumber[default_entry] = 0
  459. defunderwear[default_entry] = 0
  460. msg '<center>You feel like something about this set has changed but you cannot workout what it is.</center>'
  461. elseif dyneval('RESULT = <<$defbodysuittype[default_entry]>>_bodysuits[<<defbodysuitnumber[default_entry]>>]') = 0:
  462. $defbodysuittype[default_entry] = 'none' & defbodysuitnumber[default_entry] = 0
  463. end
  464. if $defbodysuittype[default_entry] = 'none':
  465. if $bodysuitworntype ! 'none': gs 'underwear_bodysuits', 'remove'
  466. else
  467. gs 'underwear_bodysuits', 'wear2', $defbodysuittype[default_entry], defbodysuitnumber[default_entry]
  468. end
  469. end
  470. if defunderwear[default_entry] = 0:
  471. if dyneval('RESULT = <<$defpantytype[default_entry]>>_panties[<<defpantynumber[default_entry]>>]') = 0:
  472. $defpantytype[default_entry] = 'none' & defpantynumber[default_entry] = 0
  473. end
  474. if $defpantytype[default_entry] = 'none':
  475. if $pantyworntype ! 'none': gs 'panties', 'remove'
  476. else
  477. gs 'panties', 'wear', $defpantytype[default_entry], defpantynumber[default_entry]
  478. end
  479. if dyneval('RESULT = <<$defbratype[default_entry]>>_bras[<<defbranumber[default_entry]>>]') = 0:
  480. $defbratype[default_entry] = 'none' & defbranumber[default_entry] = 0
  481. end
  482. if $defbratype[default_entry] = 'none':
  483. if $braworntype ! 'none': gs 'bras', 'remove'
  484. else
  485. gs 'bras', 'wear', $defbratype[default_entry], defbranumber[default_entry]
  486. end
  487. if (hypnoPanty = 1 and $pantyworntype ! 'none') or (hypnoBra = 1 and $braworntype ! 'none'):
  488. !! removal of underwear from set if therapist has prohibited it
  489. if hypnoPanty = 1 and $pantyworntype ! 'none': $defpantytype[default_entry] = 'none' & defpantynumber[default_entry] = 0
  490. if hypnoBra = 1 and $braworntype ! 'none': $defbratype[default_entry] = 'none' & defbranumber[default_entry] = 0
  491. msg '<center>You feel like something about this set has changed but you cannot workout what it is.</center>'
  492. end
  493. end
  494. if dyneval('RESULT = <<$defshoetype[default_entry]>>_shoe[<<defshoenumber[default_entry]>>]') = 0:
  495. $defshoetype[default_entry] = 'none' & defshoenumber[default_entry] = 0
  496. else
  497. gs 'shoes', 'wear', $defshoetype[default_entry], defshoenumber[default_entry]
  498. end
  499. if dyneval('RESULT = <<$defpursetype[default_entry]>>_purses[<<defpursenumber[default_entry]>>]') = 0:
  500. $defpursetype[default_entry] = 'none' & defpursenumber[default_entry] = 0
  501. else
  502. $currentpursetype = $defpursetype[default_entry]
  503. currentpursenumber = defpursenumber[default_entry]
  504. end
  505. if $currentpursetype = '' or $currentpursetype = 'none':
  506. bag = 0
  507. else
  508. bag = 1
  509. end
  510. if dyneval('RESULT = <<$defcoattype[default_entry]>>_coats[<<defcoatnumber[default_entry]>>]') = 0:
  511. $defcoattype[default_entry] = 'none' & defcoatnumber[default_entry] = 0
  512. else
  513. gs 'coats', 'wear', $defcoattype[default_entry], defcoatnumber[default_entry]
  514. end
  515. !checks for suitable clothing if therapist is forcing revealing outfits
  516. if hypnoClothes = 1:
  517. temp3 = 0
  518. if $temp1 = 'salacious_outfits' or $temp1 = 'salacious_dress':
  519. temp3 = 1
  520. elseif CloThinness >= 6:
  521. temp3 = 1
  522. elseif CloStyle2 = 6 and CloThinness >= 5:
  523. temp3 = 1
  524. elseif ($temp1 = 'eroto_outfits' or $temp1 = 'eroto_dress' or $temp1 = 'eroto_strip') and CloThinness >= 3:
  525. temp3 = 1
  526. elseif CloStyle2 = 4:
  527. temp3 = 1
  528. end
  529. end
  530. !! default school girl uniform is always allowed to be worn if still in school
  531. if $start_type['loc'] = 'sg' and SchoolAtestat = 0 and SchoolBlock = 0 and $temp1 = 'gm_school' and temp2 = 6:
  532. cla & *clr
  533. '<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
  534. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  535. act 'Return': gt 'wardrobe', $wloc
  536. !! do not own this clothing anymore
  537. elseif dyneval('RESULT = <<$temp1>>[<<temp2>>]') = 0 and temp2 ! 0:
  538. cla & *clr
  539. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/school/strip/strip2.jpg"></center>'
  540. '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.'
  541. act 'Return': gt 'wardrobe', $wloc
  542. !! strength of clothing is less than or equal to 0
  543. elseif dyneval('RESULT = <<$temp1>>_h[<<temp2>>]') <= 0 and $temp1 ! 'nude':
  544. cla & *clr
  545. '<center><video autoplay loop src="images/characters/pavlovsk/school/girl/vicky/event/vika_game_strip16.mp4"></video></center>'
  546. '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.'
  547. act 'Strip out of worn out clothing':
  548. cla
  549. gs 'clothing', 'strip'
  550. gs 'wardrobe', 'default_entry_delete'
  551. gs 'stat'
  552. act 'Return': gt 'wardrobe', $wloc
  553. end
  554. !!Therapist force exhibitionist clothing check
  555. elseif hypnoClothes > 0 and temp3 = 0:
  556. cla & *clr
  557. '<center><video autoplay loop src="images/locations/pavlovsk/trainstation/bimbo.strip6.mp4"/></center>'
  558. 'You pick up the outfit and think about trying them on... but you don''t really like wearing these type of outfits'
  559. gs 'willpower', 'misc', 'resist', 'easy'
  560. will_cost += hypnoTime
  561. if will_cost <= pcs_willpwr:
  562. act 'Put them on anyways (<<will_cost>> Willpower)':
  563. gs 'willpower', 'pay', 'resist'
  564. gt 'wardrobe', $wloc
  565. end
  566. else
  567. act 'Put them on anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  568. end
  569. act 'Strip out of restrictive clothing':
  570. gs 'clothing', 'strip'
  571. gs 'stat'
  572. gt 'wardrobe', $wloc
  573. end
  574. !! clothing exhibition is greater than player exhibition
  575. elseif CloInhibit > pcs_inhib:
  576. cla & *clr
  577. '<center><video autoplay loop src="images/locations/pavlovsk/trainstation/bimbo.strip6.mp4"></video></center>'
  578. '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.'
  579. act 'Strip out of revealing clothing':
  580. cla
  581. gs 'clothing', 'strip'
  582. gs 'stat'
  583. act 'Return': gt 'wardrobe', $wloc
  584. end
  585. !! not exercise clothing, and not loose fitting
  586. elseif CloStyle2 ! 6 and CloStyle ! 5 and $temp1 ! 'nude':
  587. !! check for if the hipsize is too far from your hipsize
  588. dynamic 'RESULT = <<$temp1>>_b[<<temp2>>]'
  589. if RESULT < pcs_hips - 8 or RESULT > pcs_hips + 8:
  590. cla & *clr
  591. 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>')
  592. '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.'
  593. act 'Strip out of ill-fitting clothing':
  594. cla
  595. gs 'clothing', 'strip'
  596. gs 'stat'
  597. act 'Return': gt 'wardrobe', $wloc
  598. end
  599. !! clothing ok to wear after passing hip check
  600. else
  601. cla & *clr
  602. '<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
  603. 'You put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  604. act 'Return': gt 'wardrobe', $wloc
  605. end
  606. !! clothing ok to wear without needing hip check and passing all other checks
  607. else
  608. cla & *clr
  609. '<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
  610. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  611. act 'Return': gt 'wardrobe', $wloc
  612. end
  613. killvar '$temp1'
  614. killvar 'temp2'
  615. killvar 'temp3'
  616. end
  617. if $ARGS[0] = 'default_entry_set':
  618. gs 'stat'
  619. i = ARGS[1]
  620. $defclothingtype[i] = $clothingworntype
  621. defclothingnumber[i] = clothingwornnumber
  622. defunderwear[i] = underwear['type']
  623. if underwear['type'] = 2:
  624. $defbodysuittype[i] = $bodysuitworntype
  625. defbodysuitnumber[i] = bodysuitwornnumber
  626. else
  627. $defbratype[i] = $braworntype
  628. defbranumber[i] = brawornnumber
  629. $defpantytype[i] = $pantyworntype
  630. defpantynumber[i] = pantywornnumber
  631. end
  632. $defshoetype[i] = $shoeworntype
  633. defshoenumber[i] = shoewornnumber
  634. if bag = 1:
  635. $defpursetype[i] = $currentpursetype
  636. defpursenumber[i] = currentpursenumber
  637. else
  638. $defpursetype[i] = 'none'
  639. end
  640. $defcoattype[i] = $coatworntype
  641. defcoatnumber[i] = coatwornnumber
  642. $def_clothing_temp = $def_clothing_name[i]
  643. $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>')
  644. if $def_clothing_name[i] = '' and $def_clothing_temp = '':
  645. $def_clothing_name[i] = 'Custom <<i>>'
  646. elseif $def_clothing_name[i] = '':
  647. $def_clothing_name[i] = $def_clothing_temp
  648. end
  649. gt 'wardrobe', $wloc
  650. end
  651. if $ARGS[0] = 'default_entry_rename':
  652. gs 'stat'
  653. i = ARGS[1]
  654. $def_clothing_temp = $def_clothing_name[i]
  655. $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>')
  656. if $def_clothing_name[i] = '' and $def_clothing_temp = '':
  657. $def_clothing_name[i] = 'Custom <<i>>'
  658. elseif $def_clothing_name[i] = '':
  659. $def_clothing_name[i] = $def_clothing_temp
  660. end
  661. gt 'wardrobe', $wloc
  662. end
  663. if $ARGS[0] = 'default_entry_up':
  664. gs 'stat'
  665. i = ARGS[1]
  666. if i = 0:
  667. j = ARRSIZE('defclothingnumber') - 1
  668. else
  669. j = i - 1
  670. end
  671. $tempclothingworntype = $defclothingtype[i]
  672. tempclothingwornnumber = defclothingnumber[i]
  673. if underwear['type'] = 2:
  674. $tempbodysuittype[i] = $defbodysuittype[i]
  675. tempbodysuitnumber[i] = defbodysuitnumber[i]
  676. else
  677. $tempbraworntype = $defbratype[i]
  678. tempbrawornnumber = defbranumber[i]
  679. $temppantyworntype = $defpantytype[i]
  680. temppantywornnumber = defpantynumber[i]
  681. end
  682. $tempshoeworntype = $defshoetype[i]
  683. tempshoewornnumber = defshoenumber[i]
  684. $tempcurrentpursetype = $defpursetype[i]
  685. tempcurrentpursenumber = defpursenumber[i]
  686. $tempcurrentcoattype = $defcoattype[i]
  687. tempcurrentcoatnumber = defcoatnumber[i]
  688. $def_clothing_temp = $def_clothing_name[i]
  689. $defclothingtype[i] = $defclothingtype[j]
  690. defclothingnumber[i] = defclothingnumber[j]
  691. if underwear['type'] = 2:
  692. $defbodysuittype[i] = $defbodysuittype[j]
  693. defbodysuitnumber[i] = defbodysuitnumber[j]
  694. else
  695. $defbratype[i] = $defbratype[j]
  696. defbranumber[i] = defbranumber[j]
  697. $defpantytype[i] = $defpantytype[j]
  698. defpantynumber[i] = defpantynumber[j]
  699. end
  700. $defbratype[i] = $defbratype[j]
  701. defbranumber[i] = defbranumber[j]
  702. $defpantytype[i] = $defpantytype[j]
  703. defpantynumber[i] = defpantynumber[j]
  704. $defshoetype[i] = $defshoetype[j]
  705. defshoenumber[i] = defshoenumber[j]
  706. $defpursetype[i] = $defpursetype[j]
  707. defpursenumber[i] = defpursenumber[j]
  708. $defcoattype[i] = $defcoattype[j]
  709. defcoatnumber[i] = defcoatnumber[j]
  710. $def_clothing_name[i] = $def_clothing_name[j]
  711. $defclothingtype[j] = $tempclothingworntype
  712. defclothingnumber[j] = tempclothingwornnumber
  713. if underwear['type'] = 2:
  714. $defbodysuittype[j] = $tempbodysuittype
  715. defbodysuitnumber[j] = tempbodysuitnumber
  716. else
  717. $defbratype[j] = $tempbraworntype
  718. defbranumber[j] = tempbrawornnumber
  719. $defpantytype[j] = $temppantyworntype
  720. defpantynumber[j] = temppantywornnumber
  721. end
  722. $defshoetype[j] = $tempshoeworntype
  723. defshoenumber[j] = tempshoewornnumber
  724. $defpursetype[j] = $tempcurrentpursetype
  725. defpursenumber[j] = tempcurrentpursenumber
  726. $defcoattype[j] = $tempcurrentcoattype
  727. defcoatnumber[j] = tempcurrentcoatnumber
  728. $def_clothing_name[j] = $def_clothing_temp
  729. gt 'wardrobe', $wloc
  730. end
  731. if $ARGS[0] = 'default_entry_down':
  732. gs 'stat'
  733. i = ARGS[1]
  734. if i = ARRSIZE('defclothingnumber') - 1:
  735. j = 0
  736. else
  737. j = i + 1
  738. end
  739. $tempclothingworntype = $defclothingtype[i]
  740. tempclothingwornnumber = defclothingnumber[i]
  741. $tempbraworntype = $defbratype[i]
  742. tempbrawornnumber = defbranumber[i]
  743. $temppantyworntype = $defpantytype[i]
  744. temppantywornnumber = defpantynumber[i]
  745. $tempshoeworntype = $defshoetype[i]
  746. tempshoewornnumber = defshoenumber[i]
  747. $tempcurrentpursetype = $defpursetype[i]
  748. tempcurrentpursenumber = defpursenumber[i]
  749. $tempcurrentcoattype = $defcoattype[i]
  750. tempcurrentcoatnumber = defcoatnumber[i]
  751. $def_clothing_temp = $def_clothing_name[i]
  752. $defclothingtype[i] = $defclothingtype[j]
  753. defclothingnumber[i] = defclothingnumber[j]
  754. $defbratype[i] = $defbratype[j]
  755. defbranumber[i] = defbranumber[j]
  756. $defpantytype[i] = $defpantytype[j]
  757. defpantynumber[i] = defpantynumber[j]
  758. $defshoetype[i] = $defshoetype[j]
  759. defshoenumber[i] = defshoenumber[j]
  760. $defpursetype[i] = $defpursetype[j]
  761. defpursenumber[i] = defpursenumber[j]
  762. $defcoattype[i] = $defcoattype[j]
  763. defcoatnumber[i] = defcoatnumber[j]
  764. $def_clothing_name[i] = $def_clothing_name[j]
  765. $defclothingtype[j] = $tempclothingworntype
  766. defclothingnumber[j] = tempclothingwornnumber
  767. $defbratype[j] = $tempbraworntype
  768. defbranumber[j] = tempbrawornnumber
  769. $defpantytype[j] = $temppantyworntype
  770. defpantynumber[j] = temppantywornnumber
  771. $defshoetype[j] = $tempshoeworntype
  772. defshoenumber[j] = tempshoewornnumber
  773. $defpursetype[j] = $tempcurrentpursetype
  774. defpursenumber[j] = tempcurrentpursenumber
  775. $defcoattype[j] = $tempcurrentcoattype
  776. defcoatnumber[j] = tempcurrentcoatnumber
  777. $def_clothing_name[j] = $def_clothing_temp
  778. gt 'wardrobe', $wloc
  779. end
  780. if $ARGS[0] = 'default_entry_delete':
  781. gs 'stat'
  782. i = ARGS[1]
  783. $defclothingtype[i] = ''
  784. defclothingnumber[i] = 0
  785. defunderwear[i] = 0
  786. $defbodysuittype[i] = ''
  787. defbodysuitnumber[i] = 0
  788. $defbratype[i] = ''
  789. defbranumber[i] = 0
  790. $defpantytype[i] = ''
  791. defpantynumber[i] = 0
  792. $defshoetype[i] = ''
  793. defshoenumber[i] = 0
  794. $defpursetype[i] = ''
  795. defpursenumber[i] = 0
  796. $defcoattype[i] = ''
  797. defcoatnumber[i] = 0
  798. $def_clothing_name[i] = ''
  799. if default_sport_number = i: default_sport_number = 0
  800. if default_school_number = i: default_school_number = 0
  801. gt 'wardrobe', $wloc
  802. end
  803. if $ARGS[0] = 'default_sport_set':
  804. gs 'stat'
  805. default_sport_number = ARGS[1]
  806. gt 'wardrobe', $wloc
  807. end
  808. if $ARGS[0] = 'default_school_set':
  809. gs 'stat'
  810. default_school_number = ARGS[1]
  811. gt 'wardrobe', $wloc
  812. end
  813. if $ARGS[0] = 'school_outfit':
  814. ! if no outfit set in wardrobe they use the default
  815. if default_school_number = 0:
  816. gs 'clothing', 'wear', 'gm_school', 6
  817. gs 'panties', 'wear', $lastwornpantytype['bed'], lastwornpantynumber['bed']
  818. gs 'bras', 'wear', $lastwornbratype['bed'], lastwornbranumber['bed']
  819. if $bed['shoetype'] ! 'none':
  820. gs 'shoes', 'wear', $bed['shoetype'], bed['shoenumber']
  821. end
  822. else
  823. gs 'wardrobe', 'default_entry_wear', default_school_number
  824. end
  825. end
  826. if $ARGS[0] = 'default_clothing_options':
  827. if default_sport_number = 0: '<font color = "red">🗴</font> You have no default sports clothing set, you can set this in your wardrobe.'
  828. if default_school_number = 0: '<font color = "red">🗴</font> You have no default school uniform set, you can set this in your wardrobe.'
  829. !!checks to see if either full outfit is currently being worn
  830. gs 'wardrobe', 'is_school'
  831. gs 'wardrobe', 'is_sport'
  832. if default_school_number[2] = 5:
  833. act 'Change into your regular clothes from your school uniform':
  834. gs 'wardrobe', 'back_to_regular_clothes'
  835. if func('prostitution_functions', 'is_default') ! 0: gs 'wardrobe', 'back_to_regular_clothes'
  836. gt $loc, $loc_arg
  837. end
  838. act 'Put on your sports clothes':
  839. if func('prostitution_functions', 'is_default') ! 0: gs 'wardrobe', 'back_to_regular_clothes'
  840. $lastwornclothingtype['sport'] = $lastwornclothingtype['school']
  841. lastwornclothingnumber['sport'] = lastwornclothingnumber['school']
  842. lastwornunderwear['sport'] = 0
  843. lastwornunderwear['sport'] = lastwornunderwear['school']
  844. if lastwornunderwear['sport'] = 2:
  845. $lastwornbodysuittype['sport'] = $lastwornbodysuittype['school']
  846. lastwornbodysuitnumber['sport'] = lastwornbodysuitnumber['school']
  847. else
  848. $lastwornpantytype['sport'] = $lastwornpantytype['school']
  849. lastwornpantynumber['sport'] = lastwornpantynumber['school']
  850. $lastwornbratype['sport'] = $lastwornbratype['school']
  851. lastwornbranumber['sport'] = lastwornbranumber['school']
  852. end
  853. $lastwornshoetype['sport'] = $lastwornshoetype['school']
  854. lastwornshoenumber['sport'] = lastwornshoenumber['school']
  855. $lastwornpursetype['sport'] = $lastwornpursetype['school']
  856. lastwornpursenumber['sport'] = lastwornpursenumber['school']
  857. $lastworncoattype['sport'] = $lastworncoattype['school']
  858. lastworncoatnumber['sport'] = lastworncoatnumber['school']
  859. gs 'wardrobe', 'default_entry_wear', default_sport_number
  860. gt $loc, $loc_arg
  861. end
  862. elseif default_sport_number[2] = 5:
  863. act 'Change into your regular clothes from your sportswear':
  864. gs 'wardrobe', 'back_to_regular_clothes'
  865. if func('prostitution_functions', 'is_default') ! 0: gs 'wardrobe', 'back_to_regular_clothes'
  866. gt $loc, $loc_arg
  867. end
  868. else
  869. if default_sport_number ! 0:
  870. !! check to see if sports outfit is worn out
  871. if dyneval('RESULT = <<$defclothingtype[default_sport_number]>>_h[<<defclothingnumber[default_sport_number]>>]') <= 0:
  872. act 'Put on your sports clothes': msg '<font color="red">Unavailable as outfit is worn out!</font>'
  873. !! check to see that player is not wearing default sports outfit
  874. elseif default_sport_number[2] ! 5:
  875. act 'Put on your sports clothes':
  876. if func('prostitution_functions', 'is_default') ! 0: gs 'wardrobe', 'back_to_regular_clothes'
  877. $lastwornclothingtype['sport'] = $clothingworntype
  878. lastwornclothingnumber['sport'] = clothingwornnumber
  879. lastwornunderwear['sport'] = 0
  880. if underwear['type'] = 2:
  881. lastwornunderwear['sport'] = 2
  882. $lastwornbodysuittype['sport'] = $bodysuitworntype
  883. lastwornbodysuitnumber['sport'] = bodysuitwornnumber
  884. else
  885. $lastwornpantytype['sport'] = $pantyworntype
  886. lastwornpantynumber['sport'] = pantywornnumber
  887. $lastwornbratype['sport'] = $braworntype
  888. lastwornbranumber['sport'] = brawornnumber
  889. end
  890. $lastwornshoetype['sport'] = $shoeworntype
  891. lastwornshoenumber['sport'] = shoewornnumber
  892. $lastwornpursetype['sport'] = $currentpursetype
  893. lastwornpursenumber['sport'] = currentpursenumber
  894. $lastworncoattype['sport'] = $coatworntype
  895. lastworncoatnumber['sport'] = coatwornnumber
  896. gs 'wardrobe', 'default_entry_wear', default_sport_number
  897. gt $loc, $loc_arg
  898. end
  899. end
  900. end
  901. if (default_school_number ! 0 and SchoolAtestat = 0):
  902. !! If using the default uniform as their default
  903. if $defclothingtype[default_school_number] = 'gm_school' and defclothingnumber[default_school_number] = 6:
  904. act 'Put on your school uniform': gs 'wardrobe', 'default_school_wear'
  905. !! check to see if schools outfit is worn out
  906. elseif dyneval('RESULT = <<$defclothingtype[default_school_number]>>_h[<<defclothingnumber[default_school_number]>>]') <= 0:
  907. act 'Put on your school uniform': msg '<font color="red">Unavailable as outfit is worn out!</font>'
  908. !! check to see that player is not wearing default schools outfit
  909. elseif default_school_number[2] ! 5:
  910. act 'Put on your school uniform': gs 'wardrobe', 'default_school_wear'
  911. end
  912. end
  913. end
  914. end
  915. if $ARGS[0] = 'default_school_wear':
  916. if func('prostitution_functions', 'is_default') ! 0: gs 'wardrobe', 'back_to_regular_clothes'
  917. $lastwornclothingtype['school'] = $clothingworntype
  918. lastwornclothingnumber['school'] = clothingwornnumber
  919. lastwornunderwear['school'] = 0
  920. if underwear['type'] = 2:
  921. lastwornunderwear['school'] = 2
  922. $lastwornbodysuittype['school'] = $bodysuitworntype
  923. lastwornbodysuitnumber['school'] = bodysuitwornnumber
  924. else
  925. $lastwornpantytype['school'] = $pantyworntype
  926. lastwornpantynumber['school'] = pantywornnumber
  927. $lastwornbratype['school'] = $braworntype
  928. lastwornbranumber['school'] = brawornnumber
  929. end
  930. $lastwornshoetype['school'] = $shoeworntype
  931. lastwornshoenumber['school'] = shoewornnumber
  932. $lastwornpursetype['school'] = $currentpursetype
  933. lastwornpursenumber['school'] = currentpursenumber
  934. $lastworncoattype['school'] = $coatworntype
  935. lastworncoatnumber['school'] = coatwornnumber
  936. gs 'wardrobe', 'default_entry_wear', default_school_number
  937. gt $loc, $loc_arg
  938. end
  939. if $ARGS[0] = 'is_sport':
  940. !! checks to see if player is wearing the default sports set using default_sport_number[2]
  941. default_sport_number[2] = 0
  942. if $clothingworntype = $defclothingtype[default_sport_number] and clothingwornnumber = defclothingnumber[default_sport_number]: default_sport_number[2] += 1
  943. if defunderwear[default_sport_number] = 2:
  944. if $bodysuitworntype = $defbodysuittype[default_sport_number] and bodysuitwornnumber = defbodysuitnumber[default_sport_number]: default_sport_number[2] += 1
  945. else
  946. if $pantyworntype = $defpantytype[default_sport_number] and pantywornnumber = defpantynumber[default_sport_number] and $braworntype = $defbratype[default_sport_number] and brawornnumber = defbranumber[default_sport_number]: default_sport_number[2] += 1
  947. end
  948. if $shoeworntype = $defshoetype[default_sport_number] and shoewornnumber = defshoenumber[default_sport_number]: default_sport_number[2] += 1
  949. if $currentpursetype = $defpursetype[default_sport_number] and currentpursenumber = defpursenumber[default_sport_number]: default_sport_number[2] += 1
  950. if $coatworntype = $defcoattype[default_sport_number] and coatwornnumber = defcoatnumber[default_sport_number]: default_sport_number[2] += 1
  951. end
  952. if $ARGS[0] = 'is_school':
  953. !! checks to see if player is wearing the default school set using default_school_number[2]
  954. default_school_number[2] = 0
  955. if $clothingworntype = $defclothingtype[default_school_number] and clothingwornnumber = defclothingnumber[default_school_number]: default_school_number[2] += 1
  956. if defunderwear[default_school_number] = 2:
  957. if $bodysuitworntype = $defbodysuittype[default_school_number] and bodysuitwornnumber = defbodysuitnumber[default_school_number]: default_school_number[2] += 1
  958. else
  959. if $pantyworntype = $defpantytype[default_school_number] and pantywornnumber = defpantynumber[default_school_number] and $braworntype = $defbratype[default_school_number] and brawornnumber = defbranumber[default_school_number]: default_school_number[2] += 1
  960. end
  961. if $shoeworntype = $defshoetype[default_school_number] and shoewornnumber = defshoenumber[default_school_number]: default_school_number[2] += 1
  962. if $currentpursetype = $defpursetype[default_school_number] and currentpursenumber = defpursenumber[default_school_number]: default_school_number[2] += 1
  963. if $coatworntype = $defcoattype[default_school_number] and coatwornnumber = defcoatnumber[default_school_number]: default_school_number[2] += 1
  964. end
  965. if $ARGS[0] = 'back_to_regular_clothes':
  966. !! wearing prostitute outfit
  967. if func('prostitution_functions', 'is_default') ! 0:
  968. if $lastwornclothingtype['prostitute'] = '':
  969. gs 'clothing', 'wear_last_worn'
  970. gs 'underwear', 'wear', 'wear_last_worn'
  971. gs 'shoes', 'wear', 'last_worn'
  972. gs 'purses', 'wear', 'last_worn'
  973. gs 'coats', 'wear', 'last_worn'
  974. else
  975. !!-- Clothing
  976. gs 'clothing', 'wear', $lastwornclothingtype['prostitute'], lastwornclothingnumber['prostitute']
  977. !!-- Underwear
  978. if lastwornunderwear['prostitute'] = 2:
  979. gs 'underwear_bodysuits', 'wear', $lastwornbodysuittype['prostitute'], lastwornbodysuitnumber['prostitute']
  980. else
  981. gs 'panties', 'wear', $lastwornpantytype['prostitute'], lastwornpantynumber['prostitute']
  982. gs 'bras', 'wear', $lastwornbratype['prostitute'], lastwornbranumber['prostitute']
  983. end
  984. !!-- Shoes
  985. gs 'shoes', 'wear', $lastwornshoetype['prostitute'], lastwornshoenumber['prostitute']
  986. gs 'purses', 'wear', $lastwornpursetype['prostitute'], lastwornpursenumber['prostitute']
  987. gs 'coats', 'wear', $lastworncoattype['prostitute'], lastworncoatnumber['prostitute']
  988. end
  989. gs 'prostitution_functions', 'work_clothes'
  990. if prostitute['changed_for_work']: prostitute['changed_for_work'] = 0
  991. !! wearing sport outfit
  992. elseif default_sport_number[2] >= 5:
  993. if $lastwornclothingtype['sport'] = '':
  994. gs 'clothing', 'wear_last_worn'
  995. gs 'underwear', 'wear', 'wear_last_worn'
  996. gs 'shoes', 'wear', 'last_worn'
  997. gs 'purses', 'wear', 'last_worn'
  998. gs 'coats', 'wear', 'last_worn'
  999. else
  1000. gs 'clothing', 'wear', $lastwornclothingtype['sport'], lastwornclothingnumber['sport']
  1001. if lastwornunderwear['sport'] = 2:
  1002. gs 'underwear_bodysuits', 'wear', $lastwornbodysuittype['sport'], lastwornbodysuitnumber['sport']
  1003. else
  1004. gs 'panties', 'wear', $lastwornpantytype['sport'], lastwornpantynumber['sport']
  1005. gs 'bras', 'wear', $lastwornbratype['sport'], lastwornbranumber['sport']
  1006. end
  1007. gs 'shoes', 'wear', $lastwornshoetype['sport'], lastwornshoenumber['sport']
  1008. gs 'purses', 'wear', $lastwornpursetype['sport'], lastwornpursenumber['sport']
  1009. gs 'coats', 'wear', $lastworncoattype['sport'], lastworncoatnumber['sport']
  1010. end
  1011. default_sport_number[2] = 0
  1012. !! wearing school uniform
  1013. elseif default_school_number[2] >= 5:
  1014. if $lastwornclothingtype['school'] = '':
  1015. gs 'clothing', 'wear_last_worn'
  1016. gs 'underwear', 'wear', 'wear_last_worn'
  1017. gs 'shoes', 'wear', 'last_worn'
  1018. gs 'purses', 'wear', 'last_worn'
  1019. gs 'coats', 'wear', 'last_worn'
  1020. else
  1021. gs 'clothing', 'wear', $lastwornclothingtype['school'], lastwornclothingnumber['school']
  1022. if lastwornunderwear['school'] = 2:
  1023. gs 'underwear_bodysuits', 'wear', $lastwornbodysuittype['school'], lastwornbodysuitnumber['school']
  1024. else
  1025. gs 'panties', 'wear', $lastwornpantytype['school'], lastwornpantynumber['school']
  1026. gs 'bras', 'wear', $lastwornbratype['school'], lastwornbranumber['school']
  1027. end
  1028. gs 'shoes', 'wear', $lastwornshoetype['school'], lastwornshoenumber['school']
  1029. gs 'purses', 'wear', $lastwornpursetype['school'], lastwornpursenumber['school']
  1030. gs 'coats', 'wear', $lastworncoattype['school'], lastworncoatnumber['school']
  1031. end
  1032. default_school_number[2] = 0
  1033. end
  1034. end
  1035. --- wardrobe ---------------------------------