clothing 20 KB

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