wardrobe.qsrc 44 KB

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