1
0

clothing.qsrc 33 KB

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