clothing 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  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 - brothel flag (brothel)
  89. act 'Leave':gt $loc, $metka
  90. if $ARGS[1] ! 'sell' :'<center><table border=1><TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''wardrobe''">Wardrobe </a></TH><TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''store''">Storage</a></TH><TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''unwanted''">Unwanted</a></TH><TH><a href="exec:gt ''clothing_QV'', ''list''">Pick something to wear</a></TH></center>'
  91. $bgcolor='#f3f4ee'
  92. if $ARGS[1] = 'sell':
  93. '<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>'
  94. else
  95. '<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>'
  96. end
  97. if $ARGS[1] = 'wardrobe':
  98. cloc = 0
  99. if $clothingworntype ! 'nude':act 'Strip':gs 'clothing', 'strip' & gt $loc, $metka
  100. end
  101. if $ARGS[1] = 'store':
  102. cloc = 1
  103. end
  104. if $ARGS[1] = 'unwanted':
  105. cloc = 2
  106. end
  107. 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)
  108. i = 1
  109. :loopcheap
  110. if cheap[i] = 1 and cheapS[i] = cloc and ($clothingworntype ! 'cheap' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'cheap', i)
  111. i += 1
  112. if i <= ARRSIZE('cheap'):jump 'loopcheap'
  113. i = 1
  114. :loopaverage
  115. if average[i] = 1 and averageS[i] = cloc and ($clothingworntype ! 'average' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'average', i)
  116. i += 1
  117. if i <= ARRSIZE('average'):jump 'loopaverage'
  118. i = 1
  119. :loopexpensive
  120. if expensive[i] = 1 and expensiveS[i] = cloc and ($clothingworntype ! 'expensive' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'expensive', i)
  121. i += 1
  122. if i <= ARRSIZE('expensive'):jump 'loopexpensive'
  123. i = 1
  124. :loopformal
  125. if formal[i] = 1 and formalS[i] = cloc and ($clothingworntype ! 'formal' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'formal', i)
  126. i += 1
  127. if i <= ARRSIZE('formal'):jump 'loopformal'
  128. i = 1
  129. :loopoffice
  130. if office[i] = 1 and officeS[i] = cloc and ($clothingworntype ! 'office' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'office', i)
  131. i += 1
  132. if i <= ARRSIZE('office'):jump 'loopoffice'
  133. i = 1
  134. :loopschool
  135. if school[i] = 1 and schoolS[i] = cloc and ($clothingworntype ! 'school' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'school', i)
  136. i += 1
  137. if i = 6: i = 7
  138. if i <= ARRSIZE('school'):jump 'loopschool'
  139. i = 1
  140. :loopexercise
  141. if exercise[i] = 1 and exerciseS[i] = cloc and ($clothingworntype ! 'exercise' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exercise', i)
  142. i += 1
  143. if i <= ARRSIZE('exercise'):jump 'loopexercise'
  144. i = 1
  145. :loopfetish
  146. if fetish[i] = 1 and fetishS[i] = cloc and ($clothingworntype ! 'fetish' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'fetish', i)
  147. i += 1
  148. if i <= ARRSIZE('fetish'):jump 'loopfetish'
  149. i = 1
  150. :loopexhibit
  151. if exhibit[i] = 1 and exhibitS[i] = cloc and ($clothingworntype ! 'exhibit' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exhibit', i)
  152. i += 1
  153. if i <= ARRSIZE('exhibit'):jump 'loopexhibit'
  154. i = 1
  155. :loopuniform
  156. if uniform[i] = 1 and uniformS[i] = cloc and ($clothingworntype ! 'uniform' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'uniform', i)
  157. i += 1
  158. if i <= ARRSIZE('uniform'):jump 'loopuniform'
  159. i = 1
  160. :loopburlesque
  161. if burlesque[i] = 1 and burlesqueS[i] = cloc and ($clothingworntype ! 'burlesque' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'burlesque', i)
  162. i += 1
  163. if i <= ARRSIZE('burlesque'):jump 'loopburlesque'
  164. i = 1
  165. :loopswimwear
  166. if swimwear[i] = 1 and swimwearS[i] = cloc :*P dyneval($clothing_list_line, $ARGS[1], 'swimwear', i)
  167. i += 1
  168. if i <= ARRSIZE('swimwear'):jump 'loopswimwear'
  169. i = 1
  170. :loopalternative
  171. if alternative[i] = 1 and alternativeS[i] = cloc and ($clothingworntype ! 'alternative' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'alternative', i)
  172. i += 1
  173. if i <= ARRSIZE('alternative'):jump 'loopalternative'
  174. '</table>'
  175. end
  176. if $ARGS[0] = 'view_clothing_item':
  177. !! ARGS 0 - view_clothing_item
  178. !! ARGS 1 = action type (wardrobe, shop, sell, resize)
  179. !! ARGS 2 - clothing type
  180. !! ARGS 3 - clothing index
  181. !! ARGS 4 - price for shop
  182. cla
  183. '<center><img src="<<FUNC(''$clothing_image'', $ARGS[2], ARGS[3])>>"></center>'
  184. gs 'clothing_attributes', $ARGS[2], ARGS[3]
  185. $RESULT = FUNC('$short_description', $ARGS[2], CloStyle2)
  186. $RESULT += '<<ARGS[3]>>'
  187. '<<$RESULT>>'
  188. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  189. gs 'clothing_descriptions'
  190. '<<$description>>'
  191. else
  192. FUNC('$clothing_name', $ARGS[2], ARGS[3])
  193. end
  194. if CloBimbo = 1:'This item is considered bimbo clothing.'
  195. if CloStyle = 4:'This outfit can be used for prostitution.'
  196. if CloExhibit + 10 > pcs_exhibition: 'You find this outfit more revealing than you are completely comfortable with but that makes it quite exciting too.'
  197. if $ARGS[2] = 'uniform':
  198. if CloStyle2 = 1:
  199. 'This outfit is considered to be a maid uniform.'
  200. elseif CloStyle2 = 3:
  201. 'This is a stripper outfit.'
  202. else
  203. 'This outfit is a server uniform, suitable for jobs that require one.'
  204. end
  205. end
  206. if $ARGS[2] = 'school':
  207. if CloSkirtShortness < 5 and CloThinness < 5 and CloBra = 0:
  208. '<font color="blue">This uniform complies with the school regulations on skirt length.</font>'
  209. elseif CloSkirtShortness = 5 and CloThinness < 5 and CloBra = 0:
  210. '<font color="blue">This uniform slightly breaches the school regulations on skirt length.</font>'
  211. else
  212. '<font color="red">This uniform makes a mockery of the school uniform regulations.</font>'
  213. end
  214. end
  215. if $ARGS[1] ! 'shop' and ($ARGS[2] ! 'school' or ARGS[3] ! 6):
  216. $RESULT = '(strength '
  217. dynamic '$RESULT += <<$ARGS[2]>>H[<<ARGS[3]>>]'
  218. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  219. $RESULT += ', hip size '
  220. dynamic '$RESULT += <<$ARGS[2]>>B[<<ARGS[3]>>]'
  221. end
  222. $RESULT += ')'
  223. '<<$RESULT>>'
  224. end
  225. if $ARGS[1] = 'shop':
  226. if dyneval('RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]') = 1:
  227. 'You already own this item.'
  228. act 'Leave': gt $loc, $metka
  229. else
  230. if $ARGS[2] = 'coat' and ARGS[3] = 5:
  231. price = ARGS[4]
  232. else
  233. price = ('<<ARGS[4]>>' * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[3]]) * 3 / 2
  234. price = price / 50 * 50
  235. end
  236. 'Price: <<price>> <b>₽</b>'
  237. act 'Leave': gt $loc, $metka
  238. if CloExhibit > pcs_exhibition:
  239. 'You don''t feel daring enough to wear an outfit this revealing and can''t bring yourself to buy it.'
  240. elseif money >= Price:
  241. act 'Buy':
  242. h = 0
  243. if CloStyle = 2:h = 10
  244. if CloStyle = 5:h = 20
  245. h += (3 * CloQuality)
  246. money -= price
  247. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 1'
  248. if $ARGS[2] = 'cheap' or $ARGS[2] = 'office':
  249. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 70 + <<h>>'
  250. elseif $ARGS[2] = 'average':
  251. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 90 + <<h>>'
  252. elseif $ARGS[2] = 'formal':
  253. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 15 + <<h>>'
  254. elseif $ARGS[2] = 'fetish' or $ARGS[2] = 'exhibit' or $ARGS[2] = 'burlesque':
  255. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 35 + <<h>>'
  256. elseif $ARGS[2] = 'school' or $ARGS[2] = 'uniform':
  257. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 120 + <<h>>'
  258. elseif $ARGS[2] = 'exercise':
  259. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 100 + <<h>>'
  260. elseif $ARGS[2] = 'coat':
  261. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 250 + <<h>>'
  262. else
  263. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 60 + <<h>>'
  264. end
  265. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  266. dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
  267. gt $loc, $metka
  268. end
  269. else
  270. 'You cannot afford this outfit.'
  271. end
  272. end
  273. elseif $ARGS[1] = 'wardrobe':
  274. act 'Leave in closet':gt 'clothing', 'view_clothing_list', $ARGS[1]
  275. if $ARGS[2] ! 'school' or ARGS[3] ! 6:
  276. !! if the clothing is worn out
  277. if dyneval('RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]') <= 0:
  278. 'This item is worn and is not suitable for further wear.'
  279. if pcs_sewng >= 60 and tkan > 0:
  280. cla
  281. 'You can repair this thanks to your sewing skill.'
  282. act 'Repair item':
  283. if rand (1, 100) < 30:
  284. cla
  285. tkan -= 1
  286. minut += 30
  287. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] += 30'
  288. 'You spend 30 minutes fixing the outfit.'
  289. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  290. else
  291. cla
  292. tkan += 3
  293. minut += 30
  294. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 0'
  295. '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.'
  296. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  297. end
  298. end
  299. act 'Leave in closet': gt 'clothing', 'view_clothing_list', $ARGS[1]
  300. end
  301. exit
  302. end
  303. !! if the clothing is a type that checks for hip size
  304. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  305. !! if the hipsize is too far from your hipsize
  306. dynamic 'RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]'
  307. if RESULT < pcs_hips - 8 or RESULT > pcs_hips + 8:
  308. if RESULT < pcs_hips:
  309. 'This item is too small for you to wear.'
  310. else
  311. 'This item is too large for you to wear.'
  312. end
  313. if pcs_sewng >= 60 and tkan > 0:
  314. cla
  315. 'You can resize this thanks to your sewing skill.'
  316. act 'Resize item':
  317. cla
  318. tkan -= 1
  319. minut += 30
  320. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  321. 'You spend 30 minutes resizing the outfit.'
  322. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  323. end
  324. act 'Leave in closet': gt 'clothing', 'view_clothing_list', $ARGS[1]
  325. end
  326. exit
  327. end
  328. end
  329. end
  330. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  331. if CloExhibit > pcs_exhibition:
  332. 'You don''t feel daring enough to wear an outfit this revealing.'
  333. elseif ARRPOS('$CloLosTyp', $ARGS[2]) ! -1 and ARRPOS('CloLosNum',ARGS[3]) ! -1 :
  334. 'You lost these clothes somewhere, maybe you can find them again?.'
  335. else
  336. act 'Wear':
  337. gs 'clothing', 'wear', $ARGS[2], ARGS[3]
  338. dynamic $ARGS[2] + 'W[<<ARGS[3]>>] = 1'
  339. $clotype = $ARGS[2]
  340. gs 'shoes', 'setup'
  341. gs 'shoes', 'wear', $shoeworntype, shoewornnumber
  342. gt 'clothing', 'view_clothing_list', $ARGS[1]
  343. end
  344. end
  345. end
  346. elseif $ARGS[1] = 'store' or $ARGS[1] = 'unwanted':
  347. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  348. if $ARGS[2] ! 'coat':
  349. act 'Move back to wardrobe':
  350. dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
  351. gt 'clothing', 'view_clothing_list', $ARGS[1]
  352. end
  353. end
  354. elseif $ARGS[1] = 'sell':
  355. act 'Keep item':gt 'clothing', 'view_clothing_list', $ARGS[1]
  356. !! value is based on the strength remaining
  357. dynamic 'RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]'
  358. if RESULT > 45:
  359. 'You can sell this item for 500 <b>₽</b>.'
  360. act 'Sell':
  361. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  362. money += 500
  363. gt 'clothing', 'view_clothing_list', $ARGS[1]
  364. end
  365. elseif RESULT > 30:
  366. 'You can sell this item for 300 <b>₽</b>.'
  367. act 'Sell':
  368. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  369. money += 300
  370. gt 'clothing', 'view_clothing_list', $ARGS[1]
  371. end
  372. elseif RESULT > 0:
  373. 'You can sell this item for 100 <b>₽</b>.'
  374. act 'Sell':
  375. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  376. money += 100
  377. gt 'clothing', 'view_clothing_list', $ARGS[1]
  378. end
  379. else
  380. 'This item is too worn to have any sale value.'
  381. act 'Throw it away':
  382. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  383. gt 'clothing', 'view_clothing_list', $ARGS[1]
  384. end
  385. end
  386. elseif $ARGS[1] = 'resize':
  387. act 'Leave item alone':gt 'clothing', 'view_clothing_list', $ARGS[1]
  388. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  389. if dyneval('RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]') ! pcs_hips and money >= 500:
  390. 'You can have this resized for 500 <b>₽</b>.'
  391. act 'Resize':
  392. money -= 500
  393. dynamic '<<$ARGS[2]>>B[<<ARGS[3]>>] = pcs_hips'
  394. gt 'clothing', 'view_clothing_list', $ARGS[1]
  395. end
  396. end
  397. end
  398. end
  399. end
  400. if $ARGS[0] = 'strip':
  401. !$ARGS[1] = location when stripping outdoors
  402. if $clothingworntype = 'nude': exit
  403. cumspclnt = 6
  404. gs 'cum_cleanup'
  405. if cloth_vid = 1:
  406. last_vid = 1
  407. else
  408. last_vid = 0
  409. end
  410. if $clothingworntype = 'school':schtype = clothingwornnumber
  411. if $ARGS[1] ! '' :
  412. DYNAMIC '$CloLos<<$clothingworntype>>[<<clothingwornnumber>>]=<<$ARGS[1]>>'
  413. $CloLosLoc[] = $ARGS[1]
  414. $CloLosTyp[$ARGS[1]] = $clothingworntype
  415. CloLosNum[$ARGS[1]] = clothingwornnumber
  416. CloLosDay[$ARGS[1]] = daystart
  417. KILLVAR '$lastwornclothingtype'
  418. KILLVAR 'lastwornclothingnumber'
  419. else
  420. $lastwornclothingtype = $clothingworntype
  421. lastwornclothingnumber = clothingwornnumber
  422. end
  423. $clothingworntype = 'nude'
  424. clothingwornnumber = 0
  425. $shoeworntype = 'none'
  426. shoewornnumber = 0
  427. CloQuality = 0
  428. CloThinness = 0
  429. CloTopCut = 0
  430. CloBra = 0
  431. CloPantsShortness = 0
  432. CloSkirtShortness = 0
  433. CloPanties = 0
  434. CloStyle = 0
  435. CloStyle2 = 0
  436. CloBimbo = 0
  437. PShoQuaility = 0
  438. PShoCut = 0
  439. PShoHeels = 0
  440. PShoStyle = 0
  441. PCloQuality = 0
  442. PCloThinness = 0
  443. PCloTopCut = 0
  444. PCloPants = 0
  445. PCloSkirt = 0
  446. PCloStyle = 0
  447. PCloStyle2 = 0
  448. PCloBimbo = 0
  449. PCloExhibit = 0
  450. PXCloThinness = 0
  451. PXCloTopCut = 0
  452. PXCloSkirtShortness = 0
  453. PXCloPantsShortness = 0
  454. glamur = 0
  455. sport = 0
  456. ski = 0
  457. ofclo = 0
  458. sexual = 0
  459. odevnesh = 0
  460. ! WD: Bimbo look
  461. cloth_vid = 0
  462. exhibiHideNewCloth = 0
  463. end
  464. if $ARGS[0] = 'recover_lost_clothes':
  465. !$ARGS[1] = location
  466. !ARGS[2] = 1 : wear the clothes, ARGS[2] = 2 : Return to shop (lost FOREVAH!)
  467. $cloLoc = $ARGS[1]
  468. cloAction = ARGS[2]
  469. $clothType = $CloLosTyp[$cloLoc]
  470. clothNumber = CloLosNum[$cloLoc]
  471. dayLost = CloLosDay[$cloLoc]
  472. DYNAMIC 'KILLVAR ''$CloLos<<$clothingworntype>>'', <<clothingwornnumber>>'
  473. findLocInd = ARRPOS('$CloLosTyp', $clothType)
  474. KILLVAR '$CloLosTyp', findLocInd
  475. findLocInd = ARRPOS('CloLosNum', clothNumber)
  476. KILLVAR 'CloLosNum', findLocInd
  477. findLocInd = ARRPOS('CloLosDay', CloLosDay[$cloLoc])
  478. KILLVAR 'CloLosDay', findLocInd
  479. findLocInd = ARRPOS('$CloLosLoc', $cloLoc)
  480. KILLVAR '$CloLosLoc', findLocationIndex
  481. KILLVAR 'findLocInd'
  482. if cloAction = 1:
  483. gs 'clothing', 'wear', $clothType, clothNumber
  484. elseif cloAction = 2 :
  485. dynamic $clothType + 'S[<<clothNumber>>] = 1'
  486. end
  487. KILLVAR '$cloLoc'
  488. KILLVAR 'cloAction'
  489. KILLVAR '$clothType'
  490. KILLVAR 'clothNumber'
  491. end
  492. if $ARGS[0] = 'wear':
  493. !! ARGS 0 - action
  494. !! ARGS 1 - clothing type name
  495. !! ARGS 2 - clothing index
  496. gs 'clothing', 'strip'
  497. $clothingworntype = $ARGS[1]
  498. clothingwornnumber = ARGS[2]
  499. $clotype = $ARGS[1]
  500. gs 'shoes', 'setup'
  501. gs 'shoes', 'wear', $shoeworntype, shoewornnumber
  502. if $ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear':
  503. gs 'clothing_descriptions'
  504. else
  505. FUNC('$clothing_name', $ARGS[1], ARGS[2])
  506. end
  507. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  508. dynamic '<<$ARGS[1]>>S[<<ARGS[2]>>] = 0'
  509. PCloQuality = CloQuality
  510. PCloThinness = CloThinness
  511. PCloTopCut = CloTopCut
  512. PCloBra = CloBra
  513. PCloPants = CloPantsShortness
  514. PCloSkirt = CloSkirtShortness
  515. PCloPanties = CloPanties
  516. PCloStyle = CloStyle
  517. PCloStyle2 = CloStyle2
  518. PCloExhibit = CloExhibit
  519. PCloBimbo = CloBimbo
  520. if CloBimbo = 1:bimbocl = 1
  521. if PCloTopCut > 1:
  522. if tits = 2 or tits = 3:PCloTopCut += 1
  523. if tits = 4 or tits = 5:PCloTopCut += 2
  524. if tits >= 6:PCloTopCut += 3
  525. end
  526. !Calculations for clothing beauty, multiplied by natural beauty
  527. if PCloThinness > 0:
  528. if PCloThinness = 1:
  529. PXCloThinness = 25
  530. elseif PCloThinness = 2:
  531. PXCloThinness = 50
  532. elseif PCloThinness = 3:
  533. PXCloThinness = 100
  534. elseif PCloThinness = 4:
  535. PXCloThinness = 150
  536. elseif PCloThinness = 5:
  537. PXCloThinness = 200
  538. elseif PCloThinness = 6:
  539. PXCloThinness = 300
  540. elseif PCloThinness >= 7:
  541. PXCloThinness = 400
  542. end
  543. end
  544. if PCloTopCut > 0:
  545. if PCloTopCut = 1:
  546. PXCloTopCut = 25
  547. elseif PCloTopCut = 2:
  548. PXCloTopCut = 50
  549. elseif PCloTopCut = 3:
  550. PXCloTopCut = 100
  551. elseif PCloTopCut = 4:
  552. PXCloTopCut = 150
  553. elseif PCloTopCut = 5:
  554. PXCloTopCut = 200
  555. elseif PCloTopCut = 6:
  556. PXCloTopCut = 300
  557. elseif PCloTopCut >= 7:
  558. PXCloTopCut = 400
  559. end
  560. end
  561. if PCloBra = 1:
  562. PXCloTopCut = 400
  563. elseif PCloBra = 2:
  564. PXCloTopCut = 500
  565. end
  566. if PCloSkirt > 0:
  567. if PCloSkirt = 1:
  568. PXCloSkirtShortness = 25
  569. elseif PCloSkirt = 2:
  570. PXCloSkirtShortness = 50
  571. elseif PCloSkirt = 3:
  572. PXCloSkirtShortness = 100
  573. elseif PCloSkirt = 4:
  574. PXCloSkirtShortness = 150
  575. elseif PCloSkirt = 5:
  576. PXCloSkirtShortness = 200
  577. elseif PCloSkirt = 6:
  578. PXCloSkirtShortness = 300
  579. elseif PCloSkirt >= 7:
  580. PXCloSkirtShortness = 400
  581. end
  582. end
  583. if PCloPants > 0:
  584. if PCloPants = 1:
  585. PXCloPantsShortness = 25
  586. elseif PCloPants = 2:
  587. PXCloPantsShortness = 50
  588. elseif PCloPants = 3:
  589. PXCloPantsShortness = 100
  590. elseif PCloPants = 4:
  591. PXCloPantsShortness = 150
  592. elseif PCloPants = 5:
  593. PXCloPantsShortness = 200
  594. elseif PCloPants = 6:
  595. PXCloPantsShortness = 300
  596. elseif PCloPants >= 7:
  597. PXCloPantsShortness = 400
  598. end
  599. end
  600. if PCloPanties = 1: PXCloPantsShortness = 400
  601. end
  602. if $ARGS[0] = 'wear_last_worn':
  603. gs 'clothing', 'wear', $lastwornclothingtype, lastwornclothingnumber
  604. end
  605. --- clothing ---------------------------------