clothing.qsrc 26 KB

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