clothing 21 KB

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