1
0

clothing.qsrc 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941
  1. # clothing
  2. menu_off = 1
  3. $clothing_list_line = {
  4. !! a single line in a clothing list (wardrobe, etc)
  5. !! ARGS 0 - action type (wardrobe, sell, resize, store, forsale)
  6. !! ARGS 1 - clothing type
  7. !! ARGS 2 - clothing index
  8. gs 'themes', 'clothing', 1
  9. $RESULT = '<TR bgcolor='+$bgcolor+'>'
  10. if Enable_clothwidth > 0:
  11. clothing_temp = Enable_clothwidth - 1
  12. else
  13. clothing_temp = 150 & !clothing widdefault to 150
  14. end
  15. $RESULT +='<TD><a href="exec:gt ''clothing'', ''view_clothing_item'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>"><img src="<<FUNC(''$clothing_image'', $ARGS[1], ARGS[2])>>" width="<<clothing_temp>>"><p><<$ARGS[1]>> outfit</p></a></TD>'
  16. killvar 'clothing_temp'
  17. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  18. if $ARGS[1] ! 'school' or ARGS[2] ! 6:
  19. $RESULT += '<TD>' + dyneval '$RESULT += <<$ARGS[1]>>H[<<ARGS[2]>>]' + '</TD>'
  20. if $ARGS[1] ! 'exercise' and $ARGS[1] ! 'coat' and CloStyle ! 5:
  21. $RESULT += '<TD>' + dyneval '$RESULT += <<$ARGS[1]>>B[<<ARGS[2]>>]' + '</TD>'
  22. else
  23. $RESULT += '<TD></TD>'
  24. end
  25. else
  26. $RESULT += '<TD colspan="2"></TD>'
  27. end
  28. if $ARGS[1] = 'cheap' and ARGS[2] = 414:
  29. $RESULT += '<TD>A hessian sack the hunters gave you.</TD>'
  30. elseif $ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear':
  31. gs 'clothing_descriptions'
  32. $RESULT += '<TD><<FUNC(''$short_description'', $ARGS[1])>> <<ARGS[2]>><br/><br/><<$description>></TD>'
  33. else
  34. $RESULT += '<TD>' + FUNC('$clothing_name', $ARGS[1], ARGS[2]) + '</TD>'
  35. end
  36. if CloBimbo = 1:
  37. $RESULT += '<TD>Yes</TD>'
  38. else
  39. $RESULT += '<TD>No</TD>'
  40. end
  41. if CloStyle = 4:
  42. $RESULT += '<TD>Yes</TD>'
  43. else
  44. $RESULT += '<TD>No</TD>'
  45. end
  46. $RESULT += '<TD><a href="exec:gt ''clothing'', ''view_clothing_item'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">View</a>'
  47. if $ARGS[0] ! 'sell' and $ARGS[0] ! 'resize':
  48. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and $ARGS[1] = 'school' and ARGS[2] = 6:
  49. $RESULT += ' <a href="exec:gs ''clothing'', ''wear'', ''<<$ARGS[1]>>'', <<ARGS[2]>> & gt ''clothing'', ''view_clothing_list'', ''wardrobe'', ''<<$ward_list_store>>''">Wear</a></TD>'
  50. elseif ($ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear') and dyneval('RESULT = <<$ARGS[1]>>H[<<ARGS[2]>>]') > 0:
  51. if $ARGS[1] ! 'exercise' and CloStyle ! 5 and (dyneval('RESULT = <<$ARGS[1]>>B[<<ARGS[2]>>]') < (pcs_hips - 8) or dyneval('RESULT = <<$ARGS[1]>>B[<<ARGS[2]>>]') > (pcs_hips + 8)) or (ARRPOS('$CloLosTyp', $ARGS[1]) ! -1 and ARRPOS('CloLosNum',ARGS[2]) ! -1):
  52. $RESULT += '</TD>'
  53. else
  54. $RESULT += ' <a href="exec:gs ''clothing'', ''wear'', ''<<$ARGS[1]>>'', <<ARGS[2]>> & gt ''clothing'', ''view_clothing_list'', ''wardrobe'', ''<<$ward_list_store>>''">Wear</a></TD>'
  55. end
  56. else
  57. $RESULT += '</TD>'
  58. end
  59. $RESULT += '<TD>'
  60. if cloc ! 1:$RESULT += ' <a href="exec:gt ''clothing'', ''dest1'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>> ">Storage</a><BR>'
  61. if cloc ! 0:$RESULT += ' <a href="exec:gt ''clothing'', ''dest0'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>> ">Wardrobe</a><BR>'
  62. if $ARGS[1] ! 'school' or ARGS[2] ! 6:
  63. if cloc ! 2:$RESULT += ' <a href="exec:gt ''clothing'', ''dest2'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>> ">Unwanted</a>'
  64. end
  65. $RESULT += '</TD>'
  66. end
  67. }
  68. !!cloc, 0 = wardrobe, 1 = storage, 2 = unwanted
  69. if $ARGS[0] = 'dest0':
  70. *clr
  71. dynamic '<<$ARGS[2]>>S[<<ARGS[3]>>] = 0'
  72. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  73. end
  74. if $ARGS[0] = 'dest1':
  75. *clr
  76. dynamic '<<$ARGS[2]>>S[<<ARGS[3]>>] = 1'
  77. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  78. end
  79. if $ARGS[0] = 'dest2':
  80. *clr
  81. dynamic '<<$ARGS[2]>>S[<<ARGS[3]>>] = 2'
  82. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  83. end
  84. if $ARGS[0] = 'view_clothing_list':
  85. !! ARGS 0 - view_clothing_list
  86. !! ARGS 1 - action type (wardrobe, sell, resize, store, unwanted)
  87. !! ARGS 2 - Shop name (kats, moncheri, gm, fashionista, sexshop, exhibitshop, dolls, sports)
  88. if $pursepantytype ! '' or $pursebratype ! '' and $ARGS[1] ! 'resize' and $ARGS[1] ! 'sell':
  89. '<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>'
  90. killvar '$pursepantytype' & killvar 'pursepantynumber'
  91. killvar '$pursebratype' & killvar 'pursebranumber'
  92. end
  93. if $ARGS[1] = 'wardrobe':
  94. $ward_list_page = $ARGS[1]
  95. '<h3><center><b><font color="maroon">Wardrobe list</font></b></center></h3>'
  96. elseif $ARGS[1] = 'store':
  97. $ward_list_page = $ARGS[1]
  98. '<h3><center><b><font color="maroon">Stored clothing list</font></b></center></h3>'
  99. elseif $ARGS[1] = 'unwanted':
  100. $ward_list_page = $ARGS[1]
  101. '<h3><center><b><font color="maroon">Unwanted clothing list</font></b></center></h3>'
  102. elseif $ARGS[1] = 'sell':
  103. $ward_list_page = $ARGS[1]
  104. '<h3><center><b><font color="maroon">Choose an item to sell</font></b></center></h3>'
  105. end
  106. if $ARGS[2] = 'gm' or $ARGS[2] = 'gm_cheap' or $ARGS[2] = 'gm_office' or $ARGS[2] = 'gm_school' or $ARGS[2] = 'gm_uniform':
  107. !'<center><b><font color="maroon">Viewing clothes from G&M</font></b></center>'
  108. '<center><img src="images/locations/city/citycenter/mall/gm.png"></center>'
  109. elseif $ARGS[2] = 'kats':
  110. !'<center><b><font color="maroon">Viewing clothes from PussyKats</font></b></center>'
  111. '<center><img src="images/locations/city/citycenter/mall/pussycat.png"></center>'
  112. elseif $ARGS[2] = 'fashionista':
  113. !'<center><b><font color="maroon">Viewing clothes from Fashionista</font></b></center>'
  114. '<center><img src="images/locations/city/citycenter/mall/fashionistat.png"></center>'
  115. elseif $ARGS[2] = 'moncheri':
  116. !'<center><b><font color="maroon">Viewing clothes from Mon Cheri</font></b></center>'
  117. '<center><img src="images/locations/city/citycenter/mall/moncheri.png"></center>'
  118. elseif $ARGS[2] = 'sexshop':
  119. !'<center><b><font color="maroon">Viewing clothes from the sex shop</font></b></center>'
  120. '<center><img src="images/locations/city/citycenter/sexshop/shop_name.png"></center>'
  121. elseif $ARGS[2] = 'exhibitshop':
  122. !'<center><b><font color="maroon">Viewing clothes from the Exhibitionist shop</font></b></center>'
  123. '<center><img src="images/locations/oldtown/exhibitshop/shop_name.png"></center>'
  124. elseif $ARGS[2] = 'dolls':
  125. !'<center><b><font color="maroon">Viewing clothes from Patchwork Dolls</font></b></center>'
  126. '<center><img src="images/locations/city/island/dolls.png"></center>'
  127. elseif $ARGS[2] = 'sports':
  128. !'<center><b><font color="maroon">Viewing sportswear from Danilovich</font></b></center>'
  129. '<center><img src="images/locations/city/citycenter/mall/sports.png"></center>'
  130. else
  131. '<center><b><font color="maroon">Click on a shop name to view clothes from that shop</font></b></center>'
  132. if $wloc = 'wardrobe':
  133. act 'Return': killvar '$ward_list_store' & gt 'wardrobe', 'start'
  134. elseif $ARGS[1] = 'sell' or $ARGS[1] = 'resize':
  135. act 'Leave': killvar '$ward_list_store' & gt $loc, $metka
  136. else
  137. act 'Leave': killvar '$ward_list_store' & gt $loc, $metka
  138. end
  139. end
  140. *nl
  141. if $ARGS[1] ! 'sell':
  142. $clothing_header = '<center><table border=1>'
  143. if $ARGS[1] ! 'wardrobe': $clothing_header += '<TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''wardrobe'', ''<<$ward_list_store>>''">Switch to wardrobe list</a></TH>'
  144. $clothing_header += '<TH><a href="exec:gt ''clothing_QV'', ''list'', ''<<$ward_list_store>>''">Switch to icons</a></TH>'
  145. if $ARGS[1] ! 'store': $clothing_header += '<TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''store'', ''<<$ward_list_store>>''">Switch to stored clothing list</a></TH>'
  146. if $ARGS[1] ! 'unwanted': $clothing_header += '<TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''unwanted'', ''<<$ward_list_store>>''">Switch to unwanted clothing list</a></TH></center>'
  147. $clothing_header
  148. if $ARGS[1] = 'wardrobe':
  149. '<center>These are the clothes that are currently available for you to wear.</center><br>'
  150. elseif $ARGS[1] = 'store':
  151. '<center>These are the clothes you have stored that do not show up in your wardrobe list and cannot be sold at the market.</center><br>'
  152. elseif $ARGS[1] = 'unwanted':
  153. '<center>These are the clothes you''ve marked to be sold at the market.</center><br>'
  154. end
  155. end
  156. if $ARGS[2] = '':
  157. '<center><a href="exec:$ward_list_store = ''gm'' & gt ''clothing'', ''view_clothing_list'', ''<<$ARGS[1]>>'', ''gm''"><img src="images/locations/city/citycenter/mall/gm.png"></a></center>'
  158. if ARRSIZE('average') > 0:'<center><a href="exec:$ward_list_store = ''kats'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''kats''"><img src="images/locations/city/citycenter/mall/pussycat.png"></a></center>'
  159. if ARRSIZE('expensive') > 0:'<center><a href="exec:$ward_list_store = ''fashionista'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''fashionista''"><img src="images/locations/city/citycenter/mall/fashionistat.png"></a></center>'
  160. if ARRSIZE('formal') > 0:'<center><a href="exec:$ward_list_store = ''moncheri'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''moncheri''"><img src="images/locations/city/citycenter/mall/moncheri.png"></a></center>'
  161. if ARRSIZE('fetish') > 0 or ARRSIZE('burlesque') > 0:'<center><a href="exec:$ward_list_store = ''sexshop'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''sexshop''"><img src="images/locations/city/citycenter/sexshop/shop_name.png"></a></center>'
  162. if ARRSIZE('exhibit') > 0:'<center><a href="exec:$ward_list_store = ''exhibitshop'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''exhibitshop''"><img src="images/locations/oldtown/exhibitshop/shop_name.png"></a></center>'
  163. if ARRSIZE('alternative') > 0:'<center><a href="exec:$ward_list_store = ''dolls'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''dolls''"><img src="images/locations/city/island/dolls.png"></a></center>'
  164. if ARRSIZE('exercise') > 0:'<center><a href="exec:$ward_list_store = ''sports'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''sports''"><img src="images/locations/city/citycenter/mall/sports.png"></a></center>'
  165. else
  166. $bgcolor='#f3f4ee'
  167. if $ARGS[1] = 'sell':
  168. '<table border=0 cellspacing=0 cellpadding=5><TH></TH><TH>Strength</TH><TH>Hip size</TH><TH>Description</TH><TH>Bimbo</TH><TH>Prostitute</TH><TH>Actions</TH>'
  169. else
  170. '<table border=0 cellspacing=0 cellpadding=5><TH></TH><TH>Strength</TH><TH>Hip size</TH><TH>Description</TH><TH>Bimbo</TH><TH>Prostitute</TH><TH>Actions</TH><TH>Move to</TH>'
  171. end
  172. if $ARGS[1] = 'store':
  173. cloc = 1
  174. elseif $ARGS[1] = 'unwanted':
  175. cloc = 2
  176. else
  177. cloc = 0
  178. end
  179. if $ARGS[2] = 'gm':
  180. if ARRSIZE('cheap') > 0:'<center><a href="exec:$ward_list_store = ''gm_cheap'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''gm_cheap''">Regular G&M clothing</a></center>'
  181. if ARRSIZE('office') > 0:'<center><a href="exec:$ward_list_store = ''gm_office'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''gm_office''">Office wear</a></center>'
  182. if ARRSIZE('school') > 0:'<center><a href="exec:$ward_list_store = ''gm_school'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''gm_school''">School uniforms</a></center>'
  183. if ARRSIZE('uniform') > 0:'<center><a href="exec:$ward_list_store = ''gm_uniform'' & gt ''clothing'', ''view_clothing_list'', ''<<$ward_list_page>>'', ''gm_uniform''">Work uniforms</a></center>'
  184. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  185. end
  186. if $ARGS[2] = 'gm_cheap':
  187. $ward_list_store = $ARGS[2]
  188. i = 1
  189. :loopcheap
  190. if cheap[i] = 1 and cheapS[i] = cloc and ($clothingworntype ! 'cheap' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'cheap', i)
  191. i += 1
  192. if i <= ARRSIZE('cheap'):jump 'loopcheap'
  193. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  194. gs 'clothing', 'clothwidth'
  195. end
  196. if $ARGS[2] = 'gm_office':
  197. $ward_list_store = $ARGS[2]
  198. i = 1
  199. :loopoffice
  200. if office[i] = 1 and officeS[i] = cloc and ($clothingworntype ! 'office' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'office', i)
  201. i += 1
  202. if i <= ARRSIZE('office'):jump 'loopoffice'
  203. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  204. gs 'clothing', 'clothwidth'
  205. end
  206. if $ARGS[2] = 'gm_school':
  207. $ward_list_store = $ARGS[2]
  208. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and schoolS[6] = cloc and ($clothingworntype ! 'school' or clothingwornnumber ! 6):*P dyneval($clothing_list_line, $ARGS[1], 'school', 6)
  209. i = 1
  210. :loopschool
  211. if school[i] = 1 and schoolS[i] = cloc and ($clothingworntype ! 'school' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'school', i)
  212. i += 1
  213. if i = 6: i = 7
  214. if i <= ARRSIZE('school'):jump 'loopschool'
  215. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  216. gs 'clothing', 'clothwidth'
  217. end
  218. if $ARGS[2] = 'gm_uniform':
  219. $ward_list_store = $ARGS[2]
  220. i = 1
  221. :loopuniform
  222. if uniform[i] = 1 and uniformS[i] = cloc and ($clothingworntype ! 'uniform' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'uniform', i)
  223. i += 1
  224. if i <= ARRSIZE('uniform'):jump 'loopuniform'
  225. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  226. gs 'clothing', 'clothwidth'
  227. end
  228. if $ARGS[2] = 'kats':
  229. $ward_list_store = $ARGS[2]
  230. i = 1
  231. :loopaverage
  232. if average[i] = 1 and averageS[i] = cloc and ($clothingworntype ! 'average' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'average', i)
  233. i += 1
  234. if i <= ARRSIZE('average'):jump 'loopaverage'
  235. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  236. gs 'clothing', 'clothwidth'
  237. end
  238. if $ARGS[2] = 'fashionista':
  239. $ward_list_store = $ARGS[2]
  240. i = 1
  241. :loopexpensive
  242. if expensive[i] = 1 and expensiveS[i] = cloc and ($clothingworntype ! 'expensive' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'expensive', i)
  243. i += 1
  244. if i <= ARRSIZE('expensive'):jump 'loopexpensive'
  245. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  246. gs 'clothing', 'clothwidth'
  247. end
  248. if $ARGS[2] = 'moncheri':
  249. $ward_list_store = $ARGS[2]
  250. i = 1
  251. :loopformal
  252. if formal[i] = 1 and formalS[i] = cloc and ($clothingworntype ! 'formal' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'formal', i)
  253. i += 1
  254. if i <= ARRSIZE('formal'):jump 'loopformal'
  255. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  256. gs 'clothing', 'clothwidth'
  257. end
  258. if $ARGS[2] = 'sexshop':
  259. $ward_list_store = $ARGS[2]
  260. i = 1
  261. :loopfetish
  262. if fetish[i] = 1 and fetishS[i] = cloc and ($clothingworntype ! 'fetish' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'fetish', i)
  263. i += 1
  264. if i <= ARRSIZE('fetish'):jump 'loopfetish'
  265. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  266. gs 'clothing', 'clothwidth'
  267. i = 1
  268. :loopburlesque
  269. if burlesque[i] = 1 and burlesqueS[i] = cloc and ($clothingworntype ! 'burlesque' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'burlesque', i)
  270. i += 1
  271. if i <= ARRSIZE('burlesque'):jump 'loopburlesque'
  272. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  273. gs 'clothing', 'clothwidth'
  274. end
  275. if $ARGS[2] = 'exhibitshop':
  276. $ward_list_store = $ARGS[2]
  277. i = 1
  278. :loopexhibit
  279. if exhibit[i] = 1 and exhibitS[i] = cloc and ($clothingworntype ! 'exhibit' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exhibit', i)
  280. i += 1
  281. if i <= ARRSIZE('exhibit'):jump 'loopexhibit'
  282. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  283. gs 'clothing', 'clothwidth'
  284. end
  285. if $ARGS[2] = 'dolls':
  286. cla
  287. $ward_list_store = $ARGS[2]
  288. i = 1
  289. :loopalternative
  290. if alternative[i] = 1 and alternativeS[i] = cloc and ($clothingworntype ! 'alternative' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'alternative', i)
  291. i += 1
  292. if i <= ARRSIZE('alternative'):jump 'loopalternative'
  293. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  294. gs 'clothing', 'clothwidth'
  295. end
  296. if $ARGS[2] = 'sports':
  297. $ward_list_store = $ARGS[2]
  298. i = 1
  299. :loopexercise
  300. if exercise[i] = 1 and exerciseS[i] = cloc and ($clothingworntype ! 'exercise' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exercise', i)
  301. i += 1
  302. if i <= ARRSIZE('exercise'):jump 'loopexercise'
  303. i = 1
  304. :loopswimwear
  305. if swimwear[i] = 1 and swimwearS[i] = cloc :*P dyneval($clothing_list_line, $ARGS[1], 'swimwear', i)
  306. i += 1
  307. if i <= ARRSIZE('swimwear'):jump 'loopswimwear'
  308. act 'Return': killvar '$ward_list_store' & gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  309. gs 'clothing', 'clothwidth'
  310. end
  311. '</table>'
  312. end
  313. end
  314. if $ARGS[0] = 'clothwidth':
  315. act 'Set image size for this view':
  316. Enable_clothwidth = input("Enter height in pixels you want for images on this page <br>(Default 150, min 50, max 500)")
  317. if Enable_clothwidth < 50:
  318. Enable_clothwidth = 50
  319. elseif Enable_clothwidth > 500:
  320. Enable_clothwidth = 500
  321. end
  322. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  323. end
  324. end
  325. if $ARGS[0] = 'view_clothing_item':
  326. !! ARGS 0 - view_clothing_item
  327. !! ARGS 1 = action type (wardrobe, shop, sell, resize)
  328. !! ARGS 2 - clothing type
  329. !! ARGS 3 - clothing index
  330. !! ARGS 4 - price for shop
  331. cla
  332. '<center><img src="<<FUNC(''$clothing_image'', $ARGS[2], ARGS[3])>>"></center>'
  333. gs 'clothing_attributes', $ARGS[2], ARGS[3]
  334. $RESULT = FUNC('$short_description', $ARGS[2], CloStyle2)
  335. $RESULT += '<<ARGS[3]>>'
  336. '<<$RESULT>>'
  337. if $ARGS[1] = 'cheap' and ARGS[2] = 414:
  338. 'A hessian sack the hunters gave you.'
  339. elseif $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  340. gs 'clothing_descriptions'
  341. '<<$description>>'
  342. else
  343. FUNC('$clothing_name', $ARGS[2], ARGS[3])
  344. end
  345. if CloBimbo = 1 and cheatbimbo = 0:'This item is considered bimbo clothing.'
  346. if CloStyle = 4:'This outfit can be used for prostitution.'
  347. if CloInhibit + 10 > pcs_inhib and CloInhibit <= pcs_inhib: 'You find this outfit more revealing than you are completely comfortable with but that makes it quite exciting too.'
  348. if $ARGS[2] = 'uniform':
  349. if CloStyle2 = 1:
  350. 'This outfit is considered to be a maid uniform.'
  351. elseif CloStyle2 = 3:
  352. 'This is a stripper outfit.'
  353. else
  354. 'This outfit is a server uniform, suitable for jobs that require one.'
  355. end
  356. end
  357. if CloStyle2 = 4:
  358. if CloInhibit <= 10:
  359. '<font color="blue">This uniform is very conservative. Only the nerds would approve of you wearing it.</font>'
  360. elseif CloSkirt < 5 and CloThinness < 5 and CloBra = 0:
  361. if CloQuality = 4:
  362. '<font color="blue">This uniform complies with the regulations and is of good quality. It would certainly help you with your standing with the cool kids and jocks.</font>'
  363. else
  364. '<font color="blue">This uniform complies with the school regulations on skirt length. Nobody in school would be offended by you wearing it.</font>'
  365. end
  366. elseif CloSkirt = 5 and CloThinness < 5 and CloBra = 0:
  367. if CloQuality = 4:
  368. '<font color="blue">This uniform slightly breaches the school regulations on skirt length and is of good quality. Everybody apart from the nerds would approve of you wearing it.</font>'
  369. else
  370. '<font color="blue">This uniform slightly breaches the school regulations on skirt length. The gopnik would approve of you wearing it.</font>'
  371. end
  372. else
  373. '<font color="red">This uniform makes a mockery of the school uniform regulations. Everybody in school apart from the gopniks will think that you''re a slut.</font>'
  374. end
  375. end
  376. if $ARGS[1] ! 'shop' and ($ARGS[2] ! 'school' or ARGS[3] ! 6):
  377. $RESULT = '(strength '
  378. dynamic '$RESULT += <<$ARGS[2]>>H[<<ARGS[3]>>]'
  379. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  380. $RESULT += ', hip size '
  381. dynamic '$RESULT += <<$ARGS[2]>>B[<<ARGS[3]>>]'
  382. end
  383. $RESULT += ')'
  384. '<<$RESULT>>'
  385. end
  386. if $ARGS[1] = 'shop':
  387. if dyneval('RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]') = 1:
  388. 'You already own this item.'
  389. act 'Leave': gt $loc, $metka
  390. else
  391. if $ARGS[2] = 'coat' and ARGS[3] = 5:
  392. price = ARGS[4]
  393. else
  394. price = ('<<ARGS[4]>>' * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[3]]) * 3 / 2
  395. price = price / 50 * 50
  396. end
  397. 'Price: <<price>> <b>₽</b>'
  398. act 'Leave': gt $loc, $metka
  399. if CloInhibit > pcs_inhib:
  400. 'You don''t feel daring enough to wear an outfit this revealing and can''t bring yourself to buy it.'
  401. elseif karta + bankDebtLimit < Price and money < Price:
  402. 'You cannot afford this outfit.'
  403. else
  404. if money >= Price:
  405. act 'Buy (cash)':
  406. h = 0
  407. if CloStyle = 2:h = 10
  408. if CloStyle = 5:h = 20
  409. h += (3 * CloQuality)
  410. money -= price
  411. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 1'
  412. if $ARGS[2] = 'cheap' or $ARGS[2] = 'office':
  413. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 70 + <<h>>'
  414. elseif $ARGS[2] = 'average':
  415. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 90 + <<h>>'
  416. elseif $ARGS[2] = 'formal':
  417. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 15 + <<h>>'
  418. elseif $ARGS[2] = 'fetish' or $ARGS[2] = 'exhibit' or $ARGS[2] = 'burlesque':
  419. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 35 + <<h>>'
  420. elseif $ARGS[2] = 'school' or $ARGS[2] = 'uniform':
  421. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 120 + <<h>>'
  422. elseif $ARGS[2] = 'exercise':
  423. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 100 + <<h>>'
  424. elseif $ARGS[2] = 'coat':
  425. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 250 + <<h>>'
  426. else
  427. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 60 + <<h>>'
  428. end
  429. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  430. dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
  431. gs 'stat'
  432. gt $loc, $metka
  433. end
  434. end
  435. if karta + bankDebtLimit >= Price:
  436. act 'Buy (card)':
  437. h = 0
  438. if CloStyle = 2:h = 10
  439. if CloStyle = 5:h = 20
  440. h += (3 * CloQuality)
  441. karta -= price
  442. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 1'
  443. if $ARGS[2] = 'cheap' or $ARGS[2] = 'office':
  444. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 70 + <<h>>'
  445. elseif $ARGS[2] = 'average':
  446. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 90 + <<h>>'
  447. elseif $ARGS[2] = 'formal':
  448. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 15 + <<h>>'
  449. elseif $ARGS[2] = 'fetish' or $ARGS[2] = 'exhibit' or $ARGS[2] = 'burlesque':
  450. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 35 + <<h>>'
  451. elseif $ARGS[2] = 'school' or $ARGS[2] = 'uniform':
  452. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 120 + <<h>>'
  453. elseif $ARGS[2] = 'exercise':
  454. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 100 + <<h>>'
  455. elseif $ARGS[2] = 'coat':
  456. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 250 + <<h>>'
  457. else
  458. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 60 + <<h>>'
  459. end
  460. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  461. dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
  462. gs 'stat'
  463. gt $loc, $metka
  464. end
  465. end
  466. end
  467. end
  468. elseif $ARGS[1] = 'wardrobe':
  469. act 'Return':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  470. if $ARGS[2] ! 'school' or ARGS[3] ! 6:
  471. !! if the clothing is worn out
  472. if dyneval('RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]') <= 0:
  473. 'This item is worn and is not suitable for further wear.'
  474. if pcs_sewng >= 60 and tkan > 0:
  475. cla
  476. 'You can repair this thanks to your sewing skill.'
  477. act 'Repair item':
  478. if rand (1, 100) < 30:
  479. cla
  480. tkan -= 1
  481. minut += 30
  482. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] += 30'
  483. 'You spend 30 minutes fixing the outfit.'
  484. act 'Return':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  485. else
  486. cla
  487. tkan += 3
  488. minut += 30
  489. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 0'
  490. 'Despite your skill with a needle, this outfit has proved beyond repair. All that is left of it is only good for your cloth pile.'
  491. act 'Return':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>'
  492. end
  493. end
  494. act 'Return': gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  495. end
  496. exit
  497. end
  498. !! if the clothing is a type that checks for hip size
  499. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  500. !! if the hipsize is too far from your hipsize
  501. dynamic 'RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]'
  502. if RESULT < pcs_hips - 8 or RESULT > pcs_hips + 8:
  503. if RESULT < pcs_hips:
  504. 'This item is too small for you to wear.'
  505. else
  506. 'This item is too large for you to wear.'
  507. end
  508. if pcs_sewng >= 60 and tkan > 0:
  509. cla
  510. 'You can resize this thanks to your sewing skill.'
  511. act 'Resize item':
  512. cla
  513. tkan -= 1
  514. minut += 30
  515. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  516. 'You spend 30 minutes resizing the outfit.'
  517. act 'Return':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  518. end
  519. act 'Return': gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  520. end
  521. exit
  522. end
  523. end
  524. end
  525. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  526. if CloInhibit > pcs_inhib:
  527. 'You don''t feel daring enough to wear an outfit this revealing.'
  528. elseif ARRPOS('$CloLosTyp', $ARGS[2]) ! -1 and ARRPOS('CloLosNum',ARGS[3]) ! -1 :
  529. 'You lost these clothes somewhere, maybe you can find them again?.'
  530. else
  531. act 'Wear':
  532. gs 'clothing', 'wear', $ARGS[2], ARGS[3]
  533. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  534. end
  535. end
  536. end
  537. elseif $ARGS[1] = 'store' or $ARGS[1] = 'unwanted':
  538. act 'Return':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  539. if $ARGS[2] ! 'coat':
  540. act 'Move back to wardrobe':
  541. dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
  542. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  543. end
  544. end
  545. elseif $ARGS[1] = 'sell':
  546. $ward_list_page = $ARGS[1]
  547. act 'Keep item':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  548. !! value is based on the strength remaining
  549. dynamic 'RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]'
  550. if RESULT > 45:
  551. 'You can sell this item for 500 <b>₽</b>.'
  552. act 'Sell':
  553. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  554. money += 500
  555. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  556. end
  557. elseif RESULT > 30:
  558. 'You can sell this item for 300 <b>₽</b>.'
  559. act 'Sell':
  560. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  561. money += 300
  562. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  563. end
  564. elseif RESULT > 0:
  565. 'You can sell this item for 100 <b>₽</b>.'
  566. act 'Sell':
  567. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  568. money += 100
  569. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  570. end
  571. else
  572. 'This item is too worn to have any sale value.'
  573. act 'Throw it away':
  574. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  575. gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  576. end
  577. end
  578. elseif $ARGS[1] = 'resize':
  579. act 'Leave item alone':gt 'clothing', 'view_clothing_list', '<<$ward_list_page>>', '<<$ward_list_store>>'
  580. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  581. if dyneval('RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]') ! pcs_hips and money >= 500:
  582. 'You can have this resized for 500 <b>₽</b>.'
  583. act 'Resize':
  584. money -= 500
  585. dynamic '<<$ARGS[2]>>B[<<ARGS[3]>>] = pcs_hips'
  586. gt 'clothing', 'view_clothing_list', 'resize'
  587. end
  588. end
  589. end
  590. end
  591. end
  592. if $ARGS[0] = 'strip':
  593. !$ARGS[1] = location when stripping outdoors
  594. if $clothingworntype = 'nude': exit
  595. cumspclnt = 6
  596. gs 'cum_cleanup'
  597. if cloth_vid = 1:
  598. last_vid = 1
  599. else
  600. last_vid = 0
  601. end
  602. if PCloStyle2 = 4:
  603. $schbrand = $clothingworntype
  604. schtype = clothingwornnumber
  605. end
  606. if $ARGS[1] ! '' :
  607. DYNAMIC '$CloLos<<$clothingworntype>>[<<clothingwornnumber>>]=<<$ARGS[1]>>'
  608. $CloLosLoc[] = $ARGS[1]
  609. $CloLosTyp[$ARGS[1]] = $clothingworntype
  610. CloLosNum[$ARGS[1]] = clothingwornnumber
  611. CloLosDay[$ARGS[1]] = daystart
  612. KILLVAR '$lastwornclothingtype'
  613. KILLVAR 'lastwornclothingnumber'
  614. else
  615. $lastwornclothingtype = $clothingworntype
  616. lastwornclothingnumber = clothingwornnumber
  617. end
  618. $clothingworntype = 'nude'
  619. clothingwornnumber = 0
  620. CloQuality = 0
  621. CloThinness = 0
  622. CloTopCut = 0
  623. CloBra = 0
  624. CloPantsShortness = 0
  625. CloSkirtShortness = 0
  626. CloPanties = 0
  627. CloStyle = 0
  628. CloStyle2 = 0
  629. CloBimbo = 0
  630. CloOnePiece = 0
  631. PShoQuaility = 0
  632. PShoCut = 0
  633. PShoHeels = 0
  634. PShoStyle = 0
  635. PCloQuality = 0
  636. PCloThinness = 0
  637. PCloTopCut = 0
  638. PCloPants = 0
  639. PCloSkirt = 0
  640. PCloStyle = 0
  641. PCloStyle2 = 0
  642. PCloBimbo = 0
  643. PCloInhibit = 0
  644. PCloOnePiece = 0
  645. PXCloThinness = 0
  646. PXCloTopCut = 0
  647. PXCloBottomShortness = 0
  648. glamur = 0
  649. sport = 0
  650. ski = 0
  651. ofclo = 0
  652. sexual = 0
  653. odevnesh = 0
  654. ! WD: Bimbo look
  655. cloth_vid = 0
  656. exhibiHideNewCloth = 0
  657. end
  658. if $ARGS[0] = 'recover_lost_clothes':
  659. !$ARGS[1] = location
  660. !ARGS[2] = 1 : wear the clothes, ARGS[2] = 2 : Return to shop (lost FOREVAH!)
  661. $cloLoc = $ARGS[1]
  662. cloAction = ARGS[2]
  663. $clothType = $CloLosTyp[$cloLoc]
  664. clothNumber = CloLosNum[$cloLoc]
  665. dayLost = CloLosDay[$cloLoc]
  666. DYNAMIC 'KILLVAR ''$CloLos<<$clothingworntype>>'', <<clothingwornnumber>>'
  667. findLocInd = ARRPOS('$CloLosTyp', $clothType)
  668. KILLVAR '$CloLosTyp', findLocInd
  669. findLocInd = ARRPOS('CloLosNum', clothNumber)
  670. KILLVAR 'CloLosNum', findLocInd
  671. findLocInd = ARRPOS('CloLosDay', CloLosDay[$cloLoc])
  672. KILLVAR 'CloLosDay', findLocInd
  673. findLocInd = ARRPOS('$CloLosLoc', $cloLoc)
  674. KILLVAR '$CloLosLoc', findLocInd
  675. KILLVAR 'findLocInd'
  676. if cloAction = 1:
  677. gs 'clothing', 'wear', $clothType, clothNumber
  678. elseif cloAction = 2 :
  679. dynamic $clothType + 'S[<<clothNumber>>] = 1'
  680. end
  681. KILLVAR '$cloLoc'
  682. KILLVAR 'cloAction'
  683. KILLVAR '$clothType'
  684. KILLVAR 'clothNumber'
  685. end
  686. if $ARGS[0] = 'wear':
  687. !! ARGS 0 - action
  688. !! ARGS 1 - clothing type name
  689. !! ARGS 2 - clothing index
  690. gs 'clothing', 'strip'
  691. $clothingworntype = $ARGS[1]
  692. clothingwornnumber = ARGS[2]
  693. dynamic $ARGS[1] + 'W[<<ARGS[2]>>] = 1'
  694. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  695. dynamic '<<$ARGS[1]>>S[<<ARGS[2]>>] = 0'
  696. PCloQuality = CloQuality
  697. PCloThinness = CloThinness
  698. PCloTopCut = CloTopCut
  699. PCloBra = CloBra
  700. PCloOnePiece = CloOnePiece
  701. PCloPants = CloPantsShortness
  702. PCloSkirt = CloSkirtShortness
  703. PCloPanties = CloPanties
  704. PCloStyle = CloStyle
  705. PCloStyle2 = CloStyle2
  706. PCloInhibit = CloInhibit
  707. if cheatbimbo = 0:
  708. PCloBimbo = CloBimbo
  709. if CloBimbo = 1: bimbocl = 1
  710. if CloBimbo = 0: bimbocl = 0
  711. else
  712. PCloBimbo = 0
  713. CloBimbo = 0
  714. bimbocl = 0
  715. end
  716. if PCloTopCut > 1:
  717. if tits = 2 or tits = 3: PCloTopCut += 1
  718. if tits >= 4: PCloTopCut += 2
  719. if PCloTopCut > 2 and tits >=6: PCloTopCut += 1
  720. end
  721. !Calculations for clothing beauty, multiplied by natural beauty
  722. if PCloThinness > 0:
  723. if PCloThinness = 1:
  724. PXCloThinness = 25
  725. elseif PCloThinness = 2:
  726. PXCloThinness = 50
  727. elseif PCloThinness = 3:
  728. PXCloThinness = 100
  729. elseif PCloThinness = 4:
  730. PXCloThinness = 200
  731. elseif PCloThinness = 5:
  732. PXCloThinness = 300
  733. elseif PCloThinness = 6:
  734. PXCloThinness = 400
  735. end
  736. end
  737. if PCloTopCut > 0:
  738. if PCloTopCut = 1:
  739. PXCloTopCut = 25
  740. elseif PCloTopCut = 2:
  741. PXCloTopCut = 50
  742. elseif PCloTopCut = 3:
  743. PXCloTopCut = 100
  744. elseif PCloTopCut = 4:
  745. PXCloTopCut = 150
  746. elseif PCloTopCut = 5:
  747. PXCloTopCut = 200
  748. elseif PCloTopCut = 6:
  749. PXCloTopCut = 300
  750. elseif PCloTopCut >= 7:
  751. PXCloTopCut = 400
  752. end
  753. end
  754. if PCloBra = 1:
  755. PXCloTopCut = 400
  756. $braworntype = 'none'
  757. elseif PCloBra = 2:
  758. PXCloTopCut = 500
  759. end
  760. if PCloSkirt > 0:
  761. if PCloSkirt = 1:
  762. PXCloBottomShortness = 25
  763. elseif PCloSkirt = 2:
  764. PXCloBottomShortness = 50
  765. elseif PCloSkirt = 3:
  766. PXCloBottomShortness = 100
  767. elseif PCloSkirt = 4:
  768. PXCloBottomShortness = 150
  769. elseif PCloSkirt = 5:
  770. PXCloBottomShortness = 200
  771. elseif PCloSkirt = 6:
  772. PXCloBottomShortness = 300
  773. elseif PCloSkirt >= 7:
  774. PXCloBottomShortness = 400
  775. end
  776. end
  777. if PCloPants > 0:
  778. if PCloPants = 1:
  779. PXCloBottomShortness = 25
  780. elseif PCloPants = 2:
  781. PXCloBottomShortness = 50
  782. elseif PCloPants = 3:
  783. PXCloBottomShortness = 100
  784. elseif PCloPants = 4:
  785. PXCloBottomShortness = 150
  786. elseif PCloPants = 5:
  787. PXCloBottomShortness = 200
  788. elseif PCloPants = 6:
  789. PXCloBottomShortness = 300
  790. elseif PCloPants >= 7:
  791. PXCloBottomShortness = 400
  792. end
  793. end
  794. if PCloPanties = 1: PXCloBottomShortness = 400
  795. end
  796. if $ARGS[0] = 'wear_last_worn':
  797. !!contingency
  798. if $lastwornclothingtype = '': $lastwornclothingtype = 'nude'
  799. gs 'clothing', 'wear', $lastwornclothingtype, lastwornclothingnumber
  800. end
  801. if $ARGS[0] = 'swamp_clothes':
  802. if ARGS[1] = 1:
  803. !hessian clothing to owned, sets size and equipped.
  804. cheap[414] = 1
  805. cheapS[414] = 0
  806. cheapH[414] = 100
  807. cheapB[414] = pcs_hips
  808. swamp_clothes = 1
  809. gs 'clothing', 'wear', 'cheap', 414
  810. end
  811. if ARGS[1] = 0:
  812. !hessian clothing no longer owned, but not unequipped.
  813. cheap[414] = 0
  814. swamp_clothes = 0
  815. end
  816. end
  817. --- clothing ---------------------------------