wardrobe.qsrc 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040
  1. !! SKIP:1
  2. # wardrobe
  3. if $ARGS[0] = 'start':
  4. if $wardrobeDefaultPagePref = '': $wardrobeDefaultPagePref = 'default1'
  5. killvar 'clothingfilter'
  6. '<center><font color="maroon">Please select an option</font></center>'
  7. *nl
  8. *nl
  9. *nl
  10. !! current outfit
  11. '<center><a href="exec:gt ''wardrobe'', ''main''"><img src="images/system/icons/clothing/clothes.png" height="150"></a></center>'
  12. *nl
  13. *nl
  14. *nl
  15. !! Clothing sets
  16. '<center><a href="exec:gt ''wardrobe'', $wloc"><img src="images/system/icons/clothing/default.png" height="150"></a></center>'
  17. *nl
  18. *nl
  19. *nl
  20. !! outfit list
  21. '<center><a href="exec:gt ''clothing'', ''view_clothing_list'', ''wardrobe''"><img src="images/system/icons/clothing/organize.png" height="150"></a></center>'
  22. if $pursepantytype ! '' or $pursebratype ! '':
  23. '<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>'
  24. killvar '$pursepantytype' & killvar 'pursepantynumber'
  25. killvar '$pursebratype' & killvar 'pursebranumber'
  26. end
  27. if $wardrobeDefaultPagePref = 'currentOutfit':
  28. gt 'wardrobe', 'main'
  29. elseif $wardrobeDefaultPagePref = 'viewClothing':
  30. gt 'clothing', 'view_clothing_list', 'wardrobe'
  31. elseif $wardrobeDefaultPagePref ! '':
  32. gt 'wardrobe', $wardrobeDefaultPagePref
  33. end
  34. act 'Return': gt $loc, $loc_arg
  35. act 'Current outfit': gt 'wardrobe', 'main'
  36. act 'Saved outfit sets':
  37. if $wardrobeDefaultPagePref ! 'currentOutfit' and $wardrobeDefaultPagePref ! 'viewClothing':
  38. gt 'wardrobe', $wardrobeDefaultPagePref
  39. else
  40. gt 'wardrobe', $wloc
  41. end
  42. end
  43. act 'Open wardrobe': gt 'clothing', 'view_clothing_list'
  44. end
  45. if $ARGS[0] = 'main':
  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', '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. gs 'clothing_attributes', $defclothingtype[default_entry], defclothingnumber[default_entry]
  211. $RESULT = '<TR bgcolor='+$temp_bcolor+'>'
  212. $RESULT +='<TD><b><<$def_clothing_name[default_entry]>></b></TD>'
  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. if defbodysuitnumber[default_entry] = 0:
  220. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  221. else
  222. $RESULT +='<TD><img width="100" src="<<FUNC(''$pcs_outfit_image'', $defbodysuittype[default_entry]+''_bodysuits'', defbodysuitnumber[default_entry])>>"></TD>'
  223. end
  224. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  225. else
  226. if defbranumber[default_entry] = 0:
  227. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  228. else
  229. $RESULT +='<TD><img width="100" src="<<FUNC(''$bra_image'', $defbratype[default_entry], defbranumber[default_entry])>>"></TD>'
  230. end
  231. if defpantynumber[default_entry] = 0:
  232. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  233. else
  234. $RESULT +='<TD><img width="100" src="<<FUNC(''$panty_image'', $defpantytype[default_entry], defpantynumber[default_entry])>>"></TD>'
  235. end
  236. end
  237. if defshoenumber[default_entry] = 0:
  238. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  239. else
  240. $RESULT +='<TD><img width="100" src="<<FUNC(''$shoe_image'', $defshoetype[default_entry], defshoenumber[default_entry])>>"></TD>'
  241. end
  242. if defcoatnumber[default_entry] = 0:
  243. $RESULT +='<TD><img width="100" src="images/pc/items/blank.jpg"></TD>'
  244. else
  245. $RESULT +='<TD><img width="100" src="<<FUNC(''$coat_image'', $defcoattype[default_entry], defcoatnumber[default_entry])>>"</TD>'
  246. end
  247. if defpursenumber[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(''$purse_image'', $defpursetype[default_entry], defpursenumber[default_entry])>>"></TD>'
  251. end
  252. $RESULT +='<TD><a href="exec:gs ''wardrobe'', ''default_entry_wear'', <<default_entry>>"><img src="images/system/icons/clothing/wear.png"></a></TD>'
  253. $RESULT +='<TD><a href="exec:gs ''wardrobe'', ''default_entry_set'', <<default_entry>>"><img src="images/system/icons/clothing/overwrite.png"></a></TD>'
  254. $RESULT +='<TD><a href="exec:gs ''wardrobe'', ''default_entry_rename'', <<default_entry>>"><img src="images/system/icons/clothing/rename.png"></a></TD>'
  255. $RESULT +='<TD><a href="exec:gs ''wardrobe'', ''default_entry_delete'', <<default_entry>>"><img src="images/system/icons/clothing/delete_on.png"></a></TD>'
  256. if $defshoetype[default_entry] = 'danilovich' and $defclothingtype[default_entry] = 'danilovich_outfits':
  257. if default_sport_number ! default_entry:
  258. $RESULT += '<TD><a href="exec:gs ''wardrobe'', ''default_sport_set'', <<default_entry>>"><img src="images/system/icons/clothing/sport_off.png"></a></TD><TR>'
  259. else
  260. $RESULT += '<TD><img src="images/system/icons/clothing/sport.png"></TD><TR>'
  261. end
  262. elseif SchoolAtestat = 0 and CloStyle2 = 4:
  263. if default_school_number ! default_entry:
  264. $RESULT += '<TD><a href="exec:gs ''wardrobe'', ''default_school_set'', <<default_entry>>"><img src="images/system/icons/clothing/school_off.png"></a></TD><TR>'
  265. else
  266. $RESULT += '<TD><img src="images/system/icons/clothing/school.png"></TD><TR>'
  267. end
  268. else
  269. $RESULT += '<TD></TD><TR>'
  270. end
  271. }
  272. if $ARGS[0] = 'default_name_initialise':
  273. if $clothing_default_page[1] = '':$clothing_default_page[1] = 'Set 1'
  274. if $clothing_default_page[2] = '':$clothing_default_page[2] = 'Set 2'
  275. if $clothing_default_page[3] = '':$clothing_default_page[3] = 'Set 3'
  276. if $clothing_default_page[4] = '':$clothing_default_page[4] = 'Set 4'
  277. if $clothing_default_page[5] = '':$clothing_default_page[5] = 'Set 5'
  278. if $clothing_default_page[6] = '':$clothing_default_page[6] = 'Set 6'
  279. if $clothing_default_page[7] = '':$clothing_default_page[7] = 'Set 7'
  280. if $clothing_default_page[8] = '':$clothing_default_page[8] = 'Set 8'
  281. if $clothing_default_page[9] = '':$clothing_default_page[9] = 'Set 9'
  282. if $clothing_default_page[10] = '':$clothing_default_page[10] = 'Set 10'
  283. end
  284. if $ARGS[0] = 'default_template':
  285. killvar '$temp1'
  286. killvar 'temp2'
  287. clothing_default_page = ARGS[1]
  288. gs 'wardrobe', 'default_name_initialise'
  289. gs 'stat'
  290. '<center><table><tr><td><a href="exec:gt ''wardrobe'', ''main''"><img src="images/system/icons/clothing/clothes.png" height="50"></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"></td></tr><TR><TD></TD></table></center>'
  291. if $wardrobeDefaultPagePref = $wloc:
  292. $wardrobeSetDefault = '<a href="exec: killvar ''$wardrobeDefaultPagePref'' & gt ''wardrobe'', ''<<$wloc>>''">Remove saved default wardrobe page</a>'
  293. else
  294. $wardrobeSetDefault = '<a href="exec: $wardrobeDefaultPagePref = $wloc & gt ''wardrobe'', ''<<$wloc>>''">Set here as default wardrobe page</a>'
  295. end
  296. '<center><<$wardrobeSetDefault>></center>'
  297. killvar '$wardrobeSetDefault'
  298. '<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>'
  299. temp = default_entry
  300. :loopdefault_entry_set
  301. if dyneval($default_clothing_suma,default_entry) ! 0: *p dyneval($default_clothing_line)
  302. default_entry += 1
  303. if default_entry <= default_entry[1]:jump 'loopdefault_entry_set'
  304. default_entry = temp
  305. :loopdefault_entry_empty
  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_empty'
  309. '</table></center>'
  310. killvar '$temp_bcolor'
  311. end
  312. if $ARGS[0] = 'default_set_name':
  313. *clr & cla
  314. $clothing_default_page[clothing_default_page] = input('Enter new name for this set')
  315. gt 'wardrobe', 'default<<clothing_default_page>>'
  316. end
  317. if $ARGS[0] = 'default_actions':
  318. act 'Return': gt $loc, $loc_arg
  319. act 'Select outfit to wear':
  320. cla
  321. act 'Return': gt 'wardrobe', $wardrobeDefaultPagePref
  322. gs 'wardrobe', 'default_actions_wear'
  323. end
  324. act 'Choose another page':
  325. cla
  326. act 'Return': gt 'wardrobe', $wardrobeDefaultPagePref
  327. gs 'wardrobe', 'default_actions_page'
  328. end
  329. act 'Rename this set': gs 'wardrobe', 'default_set_name'
  330. end
  331. if $ARGS[0] = 'default_actions_page':
  332. if ARGS[1] ! 1: act 'See <<$clothing_default_page[1]>> set': gt 'wardrobe', 'default1'
  333. if ARGS[1] ! 2: act 'See <<$clothing_default_page[2]>> set': gt 'wardrobe', 'default2'
  334. if ARGS[1] ! 3: act 'See <<$clothing_default_page[3]>> set': gt 'wardrobe', 'default3'
  335. if ARGS[1] ! 4: act 'See <<$clothing_default_page[4]>> set': gt 'wardrobe', 'default4'
  336. if ARGS[1] ! 5: act 'See <<$clothing_default_page[5]>> set': gt 'wardrobe', 'default5'
  337. if ARGS[1] ! 6: act 'See <<$clothing_default_page[6]>> set': gt 'wardrobe', 'default6'
  338. if ARGS[1] ! 7: act 'See <<$clothing_default_page[7]>> set': gt 'wardrobe', 'default7'
  339. if ARGS[1] ! 8: act 'See <<$clothing_default_page[8]>> set': gt 'wardrobe', 'default8'
  340. if ARGS[1] ! 9: act 'See <<$clothing_default_page[9]>> set': gt 'wardrobe', 'default9'
  341. if ARGS[1] ! 10: act 'See <<$clothing_default_page[10]>> set': gt 'wardrobe', 'default10'
  342. end
  343. if $ARGS[0] = 'default_actions_wear':
  344. default_entry -= 10
  345. i = default_entry
  346. :loop_default_actions_wear
  347. if dyneval($default_clothing_suma, i) ! 0:
  348. $var_default_actions_wear = dyneval('$result = "act ''Wear <<$def_clothing_name[i]>>'': gs ''wardrobe'', ''default_entry_wear'', <<i>>"')
  349. dynamic $var_default_actions_wear
  350. end
  351. i += 1
  352. if i <= default_entry[1]: jump 'loop_default_actions_wear'
  353. killvar 'i'
  354. killvar '$var_default_actions_wear'
  355. end
  356. if $ARGS[0] = 'default1':
  357. $wloc = 'default1'
  358. default_entry = 1
  359. default_entry[1] = 10
  360. $default_entry[2] = $clothing_default_page[1]
  361. !! gs default_actions *before* gs default_template
  362. !! as default_template modifies variable default_entry.
  363. gs 'wardrobe', 'default_actions', 1
  364. gs 'wardrobe', 'default_template', 1
  365. end
  366. if $ARGS[0] = 'default2':
  367. $wloc = 'default2'
  368. default_entry = 11
  369. default_entry[1] = 20
  370. $default_entry[2] = $clothing_default_page[2]
  371. gs 'wardrobe', 'default_actions', 2
  372. gs 'wardrobe', 'default_template', 2
  373. end
  374. if $ARGS[0] = 'default3':
  375. $wloc = 'default3'
  376. default_entry = 21
  377. default_entry[1] = 30
  378. $default_entry[2] = $clothing_default_page[3]
  379. gs 'wardrobe', 'default_actions', 3
  380. gs 'wardrobe', 'default_template', 3
  381. end
  382. if $ARGS[0] = 'default4':
  383. $wloc = 'default4'
  384. default_entry = 31
  385. default_entry[1] = 40
  386. $default_entry[2] = $clothing_default_page[4]
  387. gs 'wardrobe', 'default_actions', 4
  388. gs 'wardrobe', 'default_template', 4
  389. end
  390. if $ARGS[0] = 'default5':
  391. $wloc = 'default5'
  392. default_entry = 41
  393. default_entry[1] = 50
  394. $default_entry[2] = $clothing_default_page[5]
  395. gs 'wardrobe', 'default_actions', 5
  396. gs 'wardrobe', 'default_template', 5
  397. end
  398. if $ARGS[0] = 'default6':
  399. $wloc = 'default6'
  400. default_entry = 51
  401. default_entry[1] = 60
  402. $default_entry[2] = $clothing_default_page[6]
  403. gs 'wardrobe', 'default_actions', 6
  404. gs 'wardrobe', 'default_template', 6
  405. end
  406. if $ARGS[0] = 'default7':
  407. $wloc = 'default7'
  408. default_entry = 61
  409. default_entry[1] = 70
  410. $default_entry[2] = $clothing_default_page[7]
  411. gs 'wardrobe', 'default_actions', 7
  412. gs 'wardrobe', 'default_template', 7
  413. end
  414. if $ARGS[0] = 'default8':
  415. $wloc = 'default8'
  416. default_entry = 71
  417. default_entry[1] = 80
  418. $default_entry[2] = $clothing_default_page[8]
  419. gs 'wardrobe', 'default_actions', 8
  420. gs 'wardrobe', 'default_template', 8
  421. end
  422. if $ARGS[0] = 'default9':
  423. $wloc = 'default9'
  424. default_entry = 81
  425. default_entry[1] = 90
  426. $default_entry[2] = $clothing_default_page[9]
  427. gs 'wardrobe', 'default_actions', 9
  428. gs 'wardrobe', 'default_template', 9
  429. end
  430. if $ARGS[0] = 'default10':
  431. $wloc = 'default10'
  432. default_entry = 91
  433. default_entry[1] = 100
  434. $default_entry[2] = $clothing_default_page[10]
  435. gs 'wardrobe', 'default_actions', 10
  436. gs 'wardrobe', 'default_template', 10
  437. end
  438. if $ARGS[0] = 'default_entry_wear':
  439. gs 'stat'
  440. default_entry = ARGS[1]
  441. $temp1 = $defclothingtype[default_entry]
  442. temp2 = defclothingnumber[default_entry]
  443. gs 'clothing_attributes', $temp1, temp2
  444. if ARRPOS('$CloLosTyp', $temp1) ! -1 and ARRPOS('CloLosNum', temp2) ! -1:
  445. 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>'
  446. gt 'wardrobe', $wloc
  447. else
  448. gs 'clothing', 'wear', $temp1, temp2
  449. end
  450. if defunderwear[default_entry] = 2:
  451. if hypnoPanty = 1 or hypnoBra = 1:
  452. !! removal of underwear from set if therapist has prohibited it
  453. $defbodysuittype[default_entry] = 'none' & defbodysuitnumber[default_entry] = 0
  454. defunderwear[default_entry] = 0
  455. msg '<center>You feel like something about this set has changed but you cannot workout what it is.</center>'
  456. elseif dyneval('RESULT = <<$defbodysuittype[default_entry]>>_bodysuits[<<defbodysuitnumber[default_entry]>>]') = 0:
  457. $defbodysuittype[default_entry] = 'none' & defbodysuitnumber[default_entry] = 0
  458. end
  459. if $defbodysuittype[default_entry] = 'none':
  460. if $bodysuitworntype ! 'none': gs 'underwear_bodysuits', 'remove'
  461. else
  462. gs 'underwear_bodysuits', 'wear2', $defbodysuittype[default_entry], defbodysuitnumber[default_entry]
  463. end
  464. end
  465. if defunderwear[default_entry] = 0:
  466. if dyneval('RESULT = <<$defpantytype[default_entry]>>_panties[<<defpantynumber[default_entry]>>]') = 0:
  467. $defpantytype[default_entry] = 'none' & defpantynumber[default_entry] = 0
  468. end
  469. if $defpantytype[default_entry] = 'none':
  470. if $pantyworntype ! 'none': gs 'panties', 'remove'
  471. else
  472. gs 'panties', 'wear', $defpantytype[default_entry], defpantynumber[default_entry]
  473. end
  474. if dyneval('RESULT = <<$defbratype[default_entry]>>_bras[<<defbranumber[default_entry]>>]') = 0:
  475. $defbratype[default_entry] = 'none' & defbranumber[default_entry] = 0
  476. end
  477. if $defbratype[default_entry] = 'none':
  478. if $braworntype ! 'none': gs 'bras', 'remove'
  479. else
  480. gs 'bras', 'wear', $defbratype[default_entry], defbranumber[default_entry]
  481. end
  482. if (hypnoPanty = 1 and $pantyworntype ! 'none') or (hypnoBra = 1 and $braworntype ! 'none'):
  483. !! removal of underwear from set if therapist has prohibited it
  484. if hypnoPanty = 1 and $pantyworntype ! 'none': $defpantytype[default_entry] = 'none' & defpantynumber[default_entry] = 0
  485. if hypnoBra = 1 and $braworntype ! 'none': $defbratype[default_entry] = 'none' & defbranumber[default_entry] = 0
  486. msg '<center>You feel like something about this set has changed but you cannot workout what it is.</center>'
  487. end
  488. end
  489. if dyneval('RESULT = <<$defshoetype[default_entry]>>_shoe[<<defshoenumber[default_entry]>>]') = 0:
  490. $defshoetype[default_entry] = 'none' & defshoenumber[default_entry] = 0
  491. else
  492. gs 'shoes', 'wear', $defshoetype[default_entry], defshoenumber[default_entry]
  493. end
  494. if dyneval('RESULT = <<$defpursetype[default_entry]>>_purses[<<defpursenumber[default_entry]>>]') = 0:
  495. $defpursetype[default_entry] = 'none' & defpursenumber[default_entry] = 0
  496. else
  497. $currentpursetype = $defpursetype[default_entry]
  498. currentpursenumber = defpursenumber[default_entry]
  499. end
  500. if $currentpursetype = '' or $currentpursetype = 'none':
  501. bag = 0
  502. else
  503. bag = 1
  504. end
  505. if dyneval('RESULT = <<$defcoattype[default_entry]>>_coats[<<defcoatnumber[default_entry]>>]') = 0:
  506. $defcoattype[default_entry] = 'none' & defcoatnumber[default_entry] = 0
  507. else
  508. gs 'coats', 'wear', $defcoattype[default_entry], defcoatnumber[default_entry]
  509. end
  510. !checks for suitable clothing if therapist is forcing revealing outfits
  511. if hypnoClothes = 1:
  512. temp3 = 0
  513. if $temp1 = 'salacious_outfits' or $temp1 = 'salacious_dress':
  514. temp3 = 1
  515. elseif CloThinness >= 6:
  516. temp3 = 1
  517. elseif $temp1 = 'danilovich_outfits' and CloThinness >= 5:
  518. temp3 = 1
  519. elseif ($temp1 = 'eroto_outfits' or $temp1 = 'eroto_dress' or $temp1 = 'eroto_strip') and CloThinness >= 3:
  520. temp3 = 1
  521. elseif CloStyle2 = 4:
  522. temp3 = 1
  523. end
  524. end
  525. !! default school girl uniform is always allowed to be worn if still in school
  526. if mid($start_type,1,2) = 'sg' and SchoolAtestat = 0 and SchoolBlock = 0 and $temp1 = 'gm_school' and temp2 = 6:
  527. cls
  528. '<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
  529. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  530. act 'Return': gt 'wardrobe', $wloc
  531. !! do not own this clothing anymore
  532. elseif dyneval('RESULT = <<$temp1>>[<<temp2>>]') = 0 and temp2 ! 0:
  533. cls
  534. '<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/niko/nikoev/school/strip/strip2.jpg"></center>'
  535. '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.'
  536. act 'Return': gt 'wardrobe', $wloc
  537. !! strength of clothing is less than or equal to 0
  538. elseif dyneval('RESULT = <<$temp1>>_h[<<temp2>>]') <= 0 and $temp1 ! 'nude':
  539. cls
  540. '<center><video autoplay loop src="images/characters/pavlovsk/school/girl/vicky/event/vika_game_strip16.mp4"></video></center>'
  541. '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.'
  542. act 'Strip out of worn out clothing':
  543. cla
  544. gs 'clothing', 'strip'
  545. gs 'wardrobe', 'default_entry_delete'
  546. gs 'stat'
  547. act 'Return': gt 'wardrobe', $wloc
  548. end
  549. !!Therapist force exhibitionist clothing check
  550. elseif hypnoClothes > 0 and temp3 = 0:
  551. cla & *clr
  552. '<center><video autoplay loop src="images/locations/pavlovsk/trainstation/bimbo.strip6.mp4"/></center>'
  553. 'You pick up the outfit and think about trying them on... but you don''t really like wearing these type of outfits'
  554. gs 'willpower', 'misc', 'resist', 'easy'
  555. will_cost += hypnoTime
  556. if will_cost <= pcs_willpwr:
  557. act 'Put them on anyways (<<will_cost>> Willpower)':
  558. gs 'willpower', 'pay', 'resist'
  559. gt 'wardrobe', $wloc
  560. end
  561. else
  562. 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>'
  563. end
  564. act 'Strip out of restrictive clothing':
  565. gs 'clothing', 'strip'
  566. gs 'stat'
  567. gt 'wardrobe', $wloc
  568. end
  569. !! clothing exhibition is greater than player exhibition
  570. elseif CloInhibit > pcs_inhib:
  571. cls
  572. '<center><video autoplay loop src="images/locations/pavlovsk/trainstation/bimbo.strip6.mp4"></video></center>'
  573. '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.'
  574. act 'Strip out of revealing clothing':
  575. cla
  576. gs 'clothing', 'strip'
  577. gs 'stat'
  578. act 'Return': gt 'wardrobe', $wloc
  579. end
  580. !! not exercise clothing, and not loose fitting
  581. elseif $temp1 ! 'danilovich_outfits' and CloStyle ! 5:
  582. !! check for if the hipsize is too far from your hipsize
  583. dynamic 'RESULT = <<$temp1>>_b[<<temp2>>]'
  584. if RESULT < pcs_hips - 8 or RESULT > pcs_hips + 8:
  585. cls
  586. 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>')
  587. '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.'
  588. act 'Strip out of ill-fitting clothing':
  589. cla
  590. gs 'clothing', 'strip'
  591. gs 'stat'
  592. act 'Return': gt 'wardrobe', $wloc
  593. end
  594. !! clothing ok to wear after passing hip check
  595. else
  596. cls
  597. '<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
  598. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  599. act 'Return': gt 'wardrobe', $wloc
  600. end
  601. !! clothing ok to wear without needing hip check and passing all other checks
  602. else
  603. cls
  604. '<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
  605. 'Your put on your <<$def_clothing_name[default_entry]>> outfit without any problems.'
  606. act 'Return': gt 'wardrobe', $wloc
  607. end
  608. killvar '$temp1'
  609. killvar 'temp2'
  610. killvar 'temp3'
  611. end
  612. if $ARGS[0] = 'default_entry_set':
  613. gs 'stat'
  614. i = ARGS[1]
  615. $defclothingtype[i] = $clothingworntype
  616. defclothingnumber[i] = clothingwornnumber
  617. defunderwear[i] = underwear['type']
  618. if underwear['type'] = 2:
  619. $defbodysuittype[i] = $bodysuitworntype
  620. defbodysuitnumber[i] = bodysuitwornnumber
  621. else
  622. $defbratype[i] = $braworntype
  623. defbranumber[i] = brawornnumber
  624. $defpantytype[i] = $pantyworntype
  625. defpantynumber[i] = pantywornnumber
  626. end
  627. $defshoetype[i] = $shoeworntype
  628. defshoenumber[i] = shoewornnumber
  629. if bag = 1:
  630. $defpursetype[i] = $currentpursetype
  631. defpursenumber[i] = currentpursenumber
  632. else
  633. $defpursetype[i] = 'none'
  634. end
  635. $defcoattype[i] = $coatworntype
  636. defcoatnumber[i] = coatwornnumber
  637. $def_clothing_temp = '<<$def_clothing_name[i]>>'
  638. $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>')
  639. if $def_clothing_name[i] = '' and $def_clothing_temp = '':
  640. $def_clothing_name[i] = 'Custom <<i>>'
  641. elseif $def_clothing_name[i] = '':
  642. $def_clothing_name[i] = '<<$def_clothing_temp>>'
  643. end
  644. gt 'wardrobe', $wloc
  645. end
  646. if $ARGS[0] = 'default_entry_rename':
  647. gs 'stat'
  648. i = ARGS[1]
  649. $def_clothing_temp = '<<$def_clothing_name[i]>>'
  650. $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>')
  651. if $def_clothing_name[i] = '' and $def_clothing_temp = '':
  652. $def_clothing_name[i] = 'Custom <<i>>'
  653. elseif $def_clothing_name[i] = '':
  654. $def_clothing_name[i] = '<<$def_clothing_temp>>'
  655. end
  656. gt 'wardrobe', $wloc
  657. end
  658. if $ARGS[0] = 'default_entry_up':
  659. gs 'stat'
  660. i = ARGS[1]
  661. if i = 0:
  662. j = ARRSIZE('defclothingnumber') - 1
  663. else
  664. j = i - 1
  665. end
  666. $tempclothingworntype = $defclothingtype[i]
  667. tempclothingwornnumber = defclothingnumber[i]
  668. if underwear['type'] = 2:
  669. $tempbodysuittype[i] = $defbodysuittype[i]
  670. tempbodysuitnumber[i] = defbodysuitnumber[i]
  671. else
  672. $tempbraworntype = $defbratype[i]
  673. tempbrawornnumber = defbranumber[i]
  674. $temppantyworntype = $defpantytype[i]
  675. temppantywornnumber = defpantynumber[i]
  676. end
  677. $tempshoeworntype = $defshoetype[i]
  678. tempshoewornnumber = defshoenumber[i]
  679. $tempcurrentpursetype = $defpursetype[i]
  680. tempcurrentpursenumber = defpursenumber[i]
  681. $tempcurrentcoattype = $defcoattype[i]
  682. tempcurrentcoatnumber = defcoatnumber[i]
  683. $def_clothing_temp = '<<$def_clothing_name[i]>>'
  684. $defclothingtype[i] = $defclothingtype[j]
  685. defclothingnumber[i] = defclothingnumber[j]
  686. if underwear['type'] = 2:
  687. $defbodysuittype[i] = $defbodysuittype[j]
  688. defbodysuitnumber[i] = defbodysuitnumber[j]
  689. else
  690. $defbratype[i] = $defbratype[j]
  691. defbranumber[i] = defbranumber[j]
  692. $defpantytype[i] = $defpantytype[j]
  693. defpantynumber[i] = defpantynumber[j]
  694. end
  695. $defbratype[i] = $defbratype[j]
  696. defbranumber[i] = defbranumber[j]
  697. $defpantytype[i] = $defpantytype[j]
  698. defpantynumber[i] = defpantynumber[j]
  699. $defshoetype[i] = $defshoetype[j]
  700. defshoenumber[i] = defshoenumber[j]
  701. $defpursetype[i] = $defpursetype[j]
  702. defpursenumber[i] = defpursenumber[j]
  703. $defcoattype[i] = $defcoattype[j]
  704. defcoatnumber[i] = defcoatnumber[j]
  705. $def_clothing_name[i] = '<<$def_clothing_name[j]>>'
  706. $defclothingtype[j] = $tempclothingworntype
  707. defclothingnumber[j] = tempclothingwornnumber
  708. if underwear['type'] = 2:
  709. $defbodysuittype[j] = $tempbodysuittype
  710. defbodysuitnumber[j] = tempbodysuitnumber
  711. else
  712. $defbratype[j] = $tempbraworntype
  713. defbranumber[j] = tempbrawornnumber
  714. $defpantytype[j] = $temppantyworntype
  715. defpantynumber[j] = temppantywornnumber
  716. end
  717. $defshoetype[j] = $tempshoeworntype
  718. defshoenumber[j] = tempshoewornnumber
  719. $defpursetype[j] = $tempcurrentpursetype
  720. defpursenumber[j] = tempcurrentpursenumber
  721. $defcoattype[j] = $tempcurrentcoattype
  722. defcoatnumber[j] = tempcurrentcoatnumber
  723. $def_clothing_name[j] = '<<$def_clothing_temp>>'
  724. gt 'wardrobe', $wloc
  725. end
  726. if $ARGS[0] = 'default_entry_down':
  727. gs 'stat'
  728. i = ARGS[1]
  729. if i = ARRSIZE('defclothingnumber') - 1:
  730. j = 0
  731. else
  732. j = i + 1
  733. end
  734. $tempclothingworntype = $defclothingtype[i]
  735. tempclothingwornnumber = defclothingnumber[i]
  736. $tempbraworntype = $defbratype[i]
  737. tempbrawornnumber = defbranumber[i]
  738. $temppantyworntype = $defpantytype[i]
  739. temppantywornnumber = defpantynumber[i]
  740. $tempshoeworntype = $defshoetype[i]
  741. tempshoewornnumber = defshoenumber[i]
  742. $tempcurrentpursetype = $defpursetype[i]
  743. tempcurrentpursenumber = defpursenumber[i]
  744. $tempcurrentcoattype = $defcoattype[i]
  745. tempcurrentcoatnumber = defcoatnumber[i]
  746. $def_clothing_temp = '<<$def_clothing_name[i]>>'
  747. $defclothingtype[i] = $defclothingtype[j]
  748. defclothingnumber[i] = defclothingnumber[j]
  749. $defbratype[i] = $defbratype[j]
  750. defbranumber[i] = defbranumber[j]
  751. $defpantytype[i] = $defpantytype[j]
  752. defpantynumber[i] = defpantynumber[j]
  753. $defshoetype[i] = $defshoetype[j]
  754. defshoenumber[i] = defshoenumber[j]
  755. $defpursetype[i] = $defpursetype[j]
  756. defpursenumber[i] = defpursenumber[j]
  757. $defcoattype[i] = $defcoattype[j]
  758. defcoatnumber[i] = defcoatnumber[j]
  759. $def_clothing_name[i] = '<<$def_clothing_name[j]>>'
  760. $defclothingtype[j] = $tempclothingworntype
  761. defclothingnumber[j] = tempclothingwornnumber
  762. $defbratype[j] = $tempbraworntype
  763. defbranumber[j] = tempbrawornnumber
  764. $defpantytype[j] = $temppantyworntype
  765. defpantynumber[j] = temppantywornnumber
  766. $defshoetype[j] = $tempshoeworntype
  767. defshoenumber[j] = tempshoewornnumber
  768. $defpursetype[j] = $tempcurrentpursetype
  769. defpursenumber[j] = tempcurrentpursenumber
  770. $defcoattype[j] = $tempcurrentcoattype
  771. defcoatnumber[j] = tempcurrentcoatnumber
  772. $def_clothing_name[j] = '<<$def_clothing_temp>>'
  773. gt 'wardrobe', $wloc
  774. end
  775. if $ARGS[0] = 'default_entry_delete':
  776. gs 'stat'
  777. i = ARGS[1]
  778. $defclothingtype[i] = ''
  779. defclothingnumber[i] = ''
  780. defunderwear[i] = ''
  781. $defbodysuittype[i] = ''
  782. defbodysuitnumber[i] = ''
  783. $defbratype[i] = ''
  784. defbranumber[i] = ''
  785. $defpantytype[i] = ''
  786. defpantynumber[i] = ''
  787. $defshoetype[i] = ''
  788. defshoenumber[i] = ''
  789. $defpursetype[i] = ''
  790. defpursenumber[i] = ''
  791. $defcoattype[i] = ''
  792. defcoatnumber[i] = ''
  793. $def_clothing_name[i] = ''
  794. if default_sport_number = i:
  795. default_sport_number = 0
  796. end
  797. gt 'wardrobe', $wloc
  798. end
  799. if $ARGS[0] = 'default_sport_set':
  800. gs 'stat'
  801. default_sport_number = ARGS[1]
  802. gt 'wardrobe', $wloc
  803. end
  804. if $ARGS[0] = 'default_school_set':
  805. gs 'stat'
  806. default_school_number = ARGS[1]
  807. gt 'wardrobe', $wloc
  808. end
  809. if $ARGS[0] = 'school_outfit':
  810. ! if they have worn a uniform recently we will use that rather than the one in the outfit
  811. if default_school_number = 0:
  812. clothingwornnumber = schtype
  813. $clothingworntype = $schbrand
  814. gs 'wardrobe', 'school_outfit_end'
  815. else
  816. gs 'wardrobe', 'default_entry_wear', default_school_number
  817. end
  818. end
  819. if $ARGS[0] = 'school_outfit_end':
  820. ! if no uniform found or the one selected is worn out, use the default one
  821. if schtype = 0 or dyneval('RESULT = <<$schbrand>>_h[<<schtype>>]') <= 0:
  822. schtype = 6
  823. $schbrand = 'gm_school'
  824. end
  825. gs 'clothing', 'wear', $schbrand, schtype
  826. gs 'panties', 'wear', $lastwornpantytype['bed'], lastwornpantynumber['bed']
  827. gs 'bras', 'wear', $lastwornbratype['bed'], lastwornbranumber['bed']
  828. if $bed['shoetype'] ! 'none':
  829. gs 'shoes', 'wear', $bed['shoetype'], bed['shoenumber']
  830. end
  831. end
  832. if $ARGS[0] = 'default_sport_options':
  833. if default_sport_number = 0:
  834. 'You have no default sports clothing set, you can set this in your wardrobe.'
  835. else
  836. gs 'wardrobe', 'is_sport'
  837. !! check to see if sports outfit is worn out
  838. if dyneval('RESULT = <<$defclothingtype[default_sport_number]>>_h[<<defclothingnumber[default_sport_number]>>]') <= 0:
  839. act 'Put on your sports clothes': msg '<font color="red">Unavailable as outfit is worn out!</font>'
  840. !! check to see that player is not wearing default sports outfit
  841. elseif default_sport_number[2] ! 5:
  842. act 'Put on your sports clothes':
  843. if func('prostitution_functions', 'is_default') ! 0: gs 'wardrobe', 'back_to_regular_clothes'
  844. $lastwornclothingtype['sport'] = $clothingworntype
  845. lastwornclothingnumber['sport'] = clothingwornnumber
  846. lastwornunderwear['sport'] = 0
  847. if underwear['type'] = 2:
  848. lastwornunderwear['sport'] = 2
  849. $lastwornbodysuittype['sport'] = $bodysuitworntype
  850. lastwornbodysuitnumber['sport'] = bodysuitwornnumber
  851. else
  852. $lastwornpantytype['sport'] = $pantyworntype
  853. lastwornpantynumber['sport'] = pantywornnumber
  854. $lastwornbratype['sport'] = $braworntype
  855. lastwornbranumber['sport'] = brawornnumber
  856. end
  857. $lastwornshoetype['sport'] = $shoeworntype
  858. lastwornshoenumber['sport'] = shoewornnumber
  859. $lastwornpursetype['sport'] = $currentpursetype
  860. lastwornpursenumber['sport'] = currentpursenumber
  861. $lastworncoattype['sport'] = $coatworntype
  862. lastworncoatnumber['sport'] = coatwornnumber
  863. gs 'wardrobe', 'default_entry_wear', default_sport_number
  864. gt $loc, $loc_arg
  865. end
  866. else
  867. act 'Change into your regular clothes':
  868. gs 'wardrobe', 'back_to_regular_clothes'
  869. if func('prostitution_functions', 'is_default') ! 0: gs 'wardrobe', 'back_to_regular_clothes'
  870. gt $loc, $loc_arg
  871. end
  872. end
  873. end
  874. end
  875. if $ARGS[0] = 'is_sport':
  876. !! checks to see if player is wearing the default sports set using default_sport_number[2]
  877. default_sport_number[2] = 0
  878. if $clothingworntype = $defclothingtype[default_sport_number] and clothingwornnumber = defclothingnumber[default_sport_number]: default_sport_number[2] += 1
  879. if defunderwear[default_sport_number] = 2:
  880. if $bodysuitworntype = $defbodysuittype[default_sport_number] and bodysuitwornnumber = defbodysuitnumber[default_sport_number]: default_sport_number[2] += 1
  881. else
  882. 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
  883. end
  884. if $shoeworntype = $defshoetype[default_sport_number] and shoewornnumber = defshoenumber[default_sport_number]: default_sport_number[2] += 1
  885. if $currentpursetype = $defpursetype[default_sport_number] and currentpursenumber = defpursenumber[default_sport_number]: default_sport_number[2] += 1
  886. if $coatworntype = $defcoattype[default_sport_number] and coatwornnumber = defcoatnumber[default_sport_number]: default_sport_number[2] += 1
  887. end
  888. if $ARGS[0] = 'back_to_regular_clothes':
  889. !! wearing prostitute outfit
  890. if func('prostitution_functions', 'is_default') ! 0:
  891. if $lastwornclothingtype['prostitute'] = '':
  892. gs 'clothing', 'wear_last_worn'
  893. gs 'underwear', 'wear', 'wear_last_worn'
  894. gs 'shoes', 'wear', 'last_worn'
  895. gs 'purses', 'wear', 'last_worn'
  896. gs 'coats', 'wear', 'last_worn'
  897. else
  898. !!-- Clothing
  899. gs 'clothing', 'wear', $lastwornclothingtype['prostitute'], lastwornclothingnumber['prostitute']
  900. !!-- Underwear
  901. if lastwornunderwear['prostitute'] = 2:
  902. gs 'underwear_bodysuits', 'wear', $lastwornbodysuittype['prostitute'], lastwornbodysuitnumber['prostitute']
  903. else
  904. gs 'panties', 'wear', $lastwornpantytype['prostitute'], lastwornpantynumber['prostitute']
  905. gs 'bras', 'wear', $lastwornbratype['prostitute'], lastwornbranumber['prostitute']
  906. end
  907. !!-- Shoes
  908. gs 'shoes', 'wear', $lastwornshoetype['prostitute'], lastwornshoenumber['prostitute']
  909. gs 'purses', 'wear', $lastwornpursetype['prostitute'], lastwornpursenumber['prostitute']
  910. gs 'coats', 'wear', $lastworncoattype['prostitute'], lastworncoatnumber['prostitute']
  911. end
  912. gs 'prostitution_functions', 'work_clothes'
  913. if prostitute['changed_for_work']: prostitute['changed_for_work'] = 0
  914. !! wearing sport outfit
  915. elseif default_sport_number[2] >= 5:
  916. if $lastwornclothingtype['sport'] = '':
  917. gs 'clothing', 'wear_last_worn'
  918. gs 'underwear', 'wear', 'wear_last_worn'
  919. gs 'shoes', 'wear', 'last_worn'
  920. gs 'purses', 'wear', 'last_worn'
  921. gs 'coats', 'wear', 'last_worn'
  922. else
  923. gs 'clothing', 'wear', $lastwornclothingtype['sport'], lastwornclothingnumber['sport']
  924. if lastwornunderwear['sport'] = 2:
  925. gs 'underwear_bodysuits', 'wear', $lastwornbodysuittype['sport'], lastwornbodysuitnumber['sport']
  926. else
  927. gs 'panties', 'wear', $lastwornpantytype['sport'], lastwornpantynumber['sport']
  928. gs 'bras', 'wear', $lastwornbratype['sport'], lastwornbranumber['sport']
  929. end
  930. gs 'shoes', 'wear', $lastwornshoetype['sport'], lastwornshoenumber['sport']
  931. gs 'purses', 'wear', $lastwornpursetype['sport'], lastwornpursenumber['sport']
  932. gs 'coats', 'wear', $lastworncoattype['sport'], lastworncoatnumber['sport']
  933. end
  934. default_sport_number[2] = 0
  935. end
  936. end
  937. --- wardrobe ---------------------------------