clothing 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  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. gs 'clothing_attributes', $ARGS[2], ARGS[3]
  179. $RESULT = FUNC('$short_description', $ARGS[2], CloStyle2)
  180. $RESULT += '<<ARGS[3]>>'
  181. '<<$RESULT>>'
  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 CloExhibit + 10 > pcs_exhibition: 'You find this outfit more revealing than you are completely comfortable with but that makes it quite exciting too.'
  191. if $ARGS[2] = 'uniform':
  192. if CloStyle2 = 1:
  193. 'This outfit is considered to be a maid uniform.'
  194. elseif CloStyle2 = 3:
  195. 'This is a stripper outfit.'
  196. else
  197. 'This outfit is a server uniform, suitable for jobs that require one.'
  198. end
  199. end
  200. if $ARGS[2] = 'school':
  201. if CloSkirtShortness < 5 and CloThinness < 5 and CloBra = 0:
  202. '<font color="blue">This uniform complies with the school regulations on skirt length.</font>'
  203. elseif CloSkirtShortness = 5 and CloThinness < 5 and CloBra = 0:
  204. '<font color="blue">This uniform slightly breaches the school regulations on skirt length.</font>'
  205. else
  206. '<font color="red">This uniform makes a mockery of the school uniform regulations.</font>'
  207. end
  208. end
  209. if $ARGS[1] ! 'shop' and ($ARGS[2] ! 'school' or ARGS[3] ! 6):
  210. $RESULT = '(strength '
  211. dynamic '$RESULT += <<$ARGS[2]>>H[<<ARGS[3]>>]'
  212. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  213. $RESULT += ', hip size '
  214. dynamic '$RESULT += <<$ARGS[2]>>B[<<ARGS[3]>>]'
  215. end
  216. $RESULT += ')'
  217. '<<$RESULT>>'
  218. end
  219. if $ARGS[1] = 'shop':
  220. if dyneval('RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]') = 1:
  221. 'You already own this item.'
  222. act 'Leave': gt $loc, $metka
  223. else
  224. if $ARGS[2] = 'coat' and ARGS[3] = 5:
  225. price = ARGS[4]
  226. else
  227. price = ('<<ARGS[4]>>' * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[3]]) * 3 / 2
  228. price = price / 50 * 50
  229. end
  230. 'Price: <<price>> <b>₽</b>'
  231. act 'Leave': gt $loc, $metka
  232. if CloExhibit > pcs_exhibition:
  233. 'You don''t feel daring enough to wear an outfit this revealing and can''t bring yourself to buy it.'
  234. elseif money >= Price:
  235. act 'Buy':
  236. h = 0
  237. if CloStyle = 2:h = 10
  238. if CloStyle = 5:h = 20
  239. h += (3 * CloQuality)
  240. money -= price
  241. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 1'
  242. if $ARGS[2] = 'cheap' or $ARGS[2] = 'office':
  243. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 70 + <<h>>'
  244. elseif $ARGS[2] = 'average':
  245. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 90 + <<h>>'
  246. elseif $ARGS[2] = 'formal':
  247. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 15 + <<h>>'
  248. elseif $ARGS[2] = 'fetish' or $ARGS[2] = 'exhibit' or $ARGS[2] = 'burlesque':
  249. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 35 + <<h>>'
  250. elseif $ARGS[2] = 'school' or $ARGS[2] = 'uniform':
  251. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 120 + <<h>>'
  252. elseif $ARGS[2] = 'exercise':
  253. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 100 + <<h>>'
  254. elseif $ARGS[2] = 'coat':
  255. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 250 + <<h>>'
  256. else
  257. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 60 + <<h>>'
  258. end
  259. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  260. dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
  261. gt $loc, $metka
  262. end
  263. else
  264. 'You cannot afford this outfit.'
  265. end
  266. end
  267. elseif $ARGS[1] = 'wardrobe':
  268. act 'Leave in closet':gt 'clothing', 'view_clothing_list', $ARGS[1]
  269. if $ARGS[2] ! 'school' or ARGS[3] ! 6:
  270. !! if the clothing is worn out
  271. if dyneval('RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]') <= 0:
  272. 'This item is worn and is not suitable for further wear.'
  273. if pcs_sewng >= 200 and tkan > 0:
  274. cla
  275. 'You can repair this thanks to your sewing skill.'
  276. act 'Repair item':
  277. if rand (1, 100) < 30:
  278. cla
  279. tkan -= 1
  280. minut += 30
  281. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] += 30'
  282. 'You spend 30 minutes fixing the outfit.'
  283. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  284. else
  285. cla
  286. tkan += 3
  287. minut += 30
  288. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 0'
  289. '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.'
  290. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  291. end
  292. end
  293. act 'Leave in closet': gt 'clothing', 'view_clothing_list', $ARGS[1]
  294. end
  295. exit
  296. end
  297. !! if the clothing is a type that checks for hip size
  298. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  299. !! if the hipsize is too far from your hipsize
  300. dynamic 'RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]'
  301. if RESULT < pcs_hips - 8 or RESULT > pcs_hips + 8:
  302. if RESULT < pcs_hips:
  303. 'This item is too small for you to wear.'
  304. else
  305. 'This item is too large for you to wear.'
  306. end
  307. if pcs_sewng >= 100 and tkan > 0:
  308. cla
  309. 'You can resize this thanks to your sewing skill.'
  310. act 'Resize item':
  311. cla
  312. tkan -= 1
  313. minut += 30
  314. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  315. 'You spend 30 minutes resizing the outfit.'
  316. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  317. end
  318. act 'Leave in closet': gt 'clothing', 'view_clothing_list', $ARGS[1]
  319. end
  320. exit
  321. end
  322. end
  323. end
  324. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  325. if CloExhibit > pcs_exhibition:
  326. 'You don''t feel daring enough to wear an outfit this revealing.'
  327. elseif ARRPOS('$CloLosTyp', $ARGS[2]) ! -1 and ARRPOS('CloLosNum',ARGS[3]) ! -1 :
  328. 'You lost these clothes somewhere, maybe you can find them again?.'
  329. else
  330. act 'Wear':
  331. gs 'clothing', 'wear', $ARGS[2], ARGS[3]
  332. dynamic $ARGS[2] + 'W[<<ARGS[3]>>] = 1'
  333. gt 'clothing', 'view_clothing_list', $ARGS[1]
  334. end
  335. end
  336. end
  337. elseif $ARGS[1] = 'store' or $ARGS[1] = 'unwanted':
  338. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  339. if $ARGS[2] ! 'coat':
  340. act 'Move back to wardrobe':
  341. dynamic $ARGS[2] + 'W[<<ARGS[3]>>] = 1'
  342. gt 'clothing', 'view_clothing_list', $ARGS[1]
  343. end
  344. end
  345. elseif $ARGS[1] = 'sell':
  346. act 'Keep item':gt 'clothing', 'view_clothing_list', $ARGS[1]
  347. !! value is based on the strength remaining
  348. dynamic 'RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]'
  349. if RESULT > 45:
  350. 'You can sell this item for 500 <b>₽</b>.'
  351. act 'Sell':
  352. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  353. money += 500
  354. gt 'clothing', 'view_clothing_list', $ARGS[1]
  355. end
  356. elseif RESULT > 30:
  357. 'You can sell this item for 300 <b>₽</b>.'
  358. act 'Sell':
  359. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  360. money += 300
  361. gt 'clothing', 'view_clothing_list', $ARGS[1]
  362. end
  363. elseif RESULT > 0:
  364. 'You can sell this item for 100 <b>₽</b>.'
  365. act 'Sell':
  366. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  367. money += 100
  368. gt 'clothing', 'view_clothing_list', $ARGS[1]
  369. end
  370. else
  371. 'This item is too worn to have any sale value.'
  372. act 'Throw it away':
  373. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  374. gt 'clothing', 'view_clothing_list', $ARGS[1]
  375. end
  376. end
  377. elseif $ARGS[1] = 'resize':
  378. act 'Leave item alone':gt 'clothing', 'view_clothing_list', $ARGS[1]
  379. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  380. if dyneval('RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]') ! pcs_hips and money >= 500:
  381. 'You can have this resized for 500 <b>₽</b>.'
  382. act 'Resize':
  383. money -= 500
  384. dynamic '<<$ARGS[2]>>B[<<ARGS[3]>>] = pcs_hips'
  385. gt 'clothing', 'view_clothing_list', $ARGS[1]
  386. end
  387. end
  388. end
  389. end
  390. end
  391. if $ARGS[0] = 'strip':
  392. !$ARGS[1] = location when stripping outdoors
  393. if $clothingworntype = 'nude': exit
  394. cumspclnt = 6
  395. gs 'cum_cleanup'
  396. if cloth_vid = 1:
  397. last_vid = 1
  398. else
  399. last_vid = 0
  400. end
  401. if $clothingworntype = 'school':schtype = clothingwornnumber
  402. if $ARGS[1] ! '' :
  403. DYNAMIC '$CloLos<<$clothingworntype>>[<<clothingwornnumber>>]=<<$ARGS[1]>>'
  404. $CloLosLoc[] = $ARGS[1]
  405. $CloLosTyp[$ARGS[1]] = $clothingworntype
  406. CloLosNum[$ARGS[1]] = clothingwornnumber
  407. CloLosDay[$ARGS[1]] = daystart
  408. KILLVAR '$lastwornclothingtype'
  409. KILLVAR 'lastwornclothingnumber'
  410. else
  411. $lastwornclothingtype = $clothingworntype
  412. lastwornclothingnumber = clothingwornnumber
  413. end
  414. $clothingworntype = 'nude'
  415. clothingwornnumber = 0
  416. CloQuality = 0
  417. CloThinness = 0
  418. CloTopCut = 0
  419. CloBra = 0
  420. CloPantsShortness = 0
  421. CloSkirtShortness = 0
  422. CloPanties = 0
  423. CloStyle = 0
  424. CloStyle2 = 0
  425. CloBimbo = 0
  426. PCloQuality = 0
  427. PCloThinness = 0
  428. PCloTopCut = 0
  429. PCloPants = 0
  430. PCloSkirt = 0
  431. PCloStyle = 0
  432. PCloStyle2 = 0
  433. PCloBimbo = 0
  434. PCloExhibit = 0
  435. PXCloThinness = 0
  436. PXCloTopCut = 0
  437. PXCloSkirtShortness = 0
  438. PXCloPantsShortness = 0
  439. glamur = 0
  440. sport = 0
  441. ski = 0
  442. ofclo = 0
  443. sexual = 0
  444. odevnesh = 0
  445. ! WD: Bimbo look
  446. cloth_vid = 0
  447. exhibiHideNewCloth = 0
  448. end
  449. if $ARGS[0] = 'recover_lost_clothes':
  450. !$ARGS[1] = location
  451. !ARGS[2] = 1 : wear the clothes, ARGS[2] = 2 : Return to shop (lost FOREVAH!)
  452. $cloLoc = $ARGS[1]
  453. cloAction = ARGS[2]
  454. $clothType = $CloLosTyp[$cloLoc]
  455. clothNumber = CloLosNum[$cloLoc]
  456. dayLost = CloLosDay[$cloLoc]
  457. DYNAMIC 'KILLVAR ''$CloLos<<$clothingworntype>>'', <<clothingwornnumber>>'
  458. findLocInd = ARRPOS('$CloLosTyp', $clothType)
  459. KILLVAR '$CloLosTyp', findLocInd
  460. findLocInd = ARRPOS('CloLosNum', clothNumber)
  461. KILLVAR 'CloLosNum', findLocInd
  462. findLocInd = ARRPOS('CloLosDay', CloLosDay[$cloLoc])
  463. KILLVAR 'CloLosDay', findLocInd
  464. findLocInd = ARRPOS('$CloLosLoc', $cloLoc)
  465. KILLVAR '$CloLosLoc', findLocationIndex
  466. KILLVAR 'findLocInd'
  467. if cloAction = 1:
  468. gs 'clothing', 'wear', $clothType, clothNumber
  469. if dayLost < daystart and $cloLoc ! 'swamphouse' : dirtyclothes = 1
  470. elseif cloAction = 2 :
  471. dynamic $clothType + 'S[<<clothNumber>>] = 1'
  472. end
  473. KILLVAR '$cloLoc'
  474. KILLVAR 'cloAction'
  475. KILLVAR '$clothType'
  476. KILLVAR 'clothNumber'
  477. end
  478. if $ARGS[0] = 'wear':
  479. !! ARGS 0 - action
  480. !! ARGS 1 - clothing type name
  481. !! ARGS 2 - clothing index
  482. gs 'clothing', 'strip'
  483. $clothingworntype = $ARGS[1]
  484. clothingwornnumber = ARGS[2]
  485. if $ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear':
  486. gs 'clothing_descriptions'
  487. else
  488. FUNC('$clothing_name', $ARGS[1], ARGS[2])
  489. end
  490. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  491. dynamic '<<$ARGS[1]>>S[<<ARGS[2]>>] = 0'
  492. PCloQuality = CloQuality
  493. PCloThinness = CloThinness
  494. PCloTopCut = CloTopCut
  495. PCloBra = CloBra
  496. PCloPants = CloPantsShortness
  497. PCloSkirt = CloSkirtShortness
  498. PCloPanties = CloPanties
  499. PCloStyle = CloStyle
  500. PCloStyle2 = CloStyle2
  501. PCloExhibit = CloExhibit
  502. PCloBimbo = CloBimbo
  503. if CloBimbo = 1:bimbocl = 1
  504. if PCloTopCut > 1:
  505. if tits = 2 or tits = 3:PCloTopCut += 1
  506. if tits = 4 or tits = 5:PCloTopCut += 2
  507. if tits >= 6:PCloTopCut += 3
  508. end
  509. !Calculations for clothing beauty, multiplied by natural beauty
  510. if PCloThinness > 0:
  511. if PCloThinness = 1:
  512. PXCloThinness = 25
  513. elseif PCloThinness = 2:
  514. PXCloThinness = 50
  515. elseif PCloThinness = 3:
  516. PXCloThinness = 100
  517. elseif PCloThinness = 4:
  518. PXCloThinness = 150
  519. elseif PCloThinness = 5:
  520. PXCloThinness = 200
  521. elseif PCloThinness = 6:
  522. PXCloThinness = 300
  523. elseif PCloThinness >= 7:
  524. PXCloThinness = 400
  525. end
  526. end
  527. if PCloTopCut > 0:
  528. if PCloTopCut = 1:
  529. PXCloTopCut = 25
  530. elseif PCloTopCut = 2:
  531. PXCloTopCut = 50
  532. elseif PCloTopCut = 3:
  533. PXCloTopCut = 100
  534. elseif PCloTopCut = 4:
  535. PXCloTopCut = 150
  536. elseif PCloTopCut = 5:
  537. PXCloTopCut = 200
  538. elseif PCloTopCut = 6:
  539. PXCloTopCut = 300
  540. elseif PCloTopCut >= 7:
  541. PXCloTopCut = 400
  542. end
  543. end
  544. if PCloSkirt > 0:
  545. if PCloSkirt = 1:
  546. PXCloSkirtShortness = 25
  547. elseif PCloSkirt = 2:
  548. PXCloSkirtShortness = 50
  549. elseif PCloSkirt = 3:
  550. PXCloSkirtShortness = 100
  551. elseif PCloSkirt = 4:
  552. PXCloSkirtShortness = 150
  553. elseif PCloSkirt = 5:
  554. PXCloSkirtShortness = 200
  555. elseif PCloSkirt = 6:
  556. PXCloSkirtShortness = 300
  557. elseif PCloSkirt >= 7:
  558. PXCloSkirtShortness = 400
  559. end
  560. end
  561. if PCloPants > 0:
  562. if PCloPants = 1:
  563. PXCloPantsShortness = 25
  564. elseif PCloPants = 2:
  565. PXCloPantsShortness = 50
  566. elseif PCloPants = 3:
  567. PXCloPantsShortness = 100
  568. elseif PCloPants = 4:
  569. PXCloPantsShortness = 150
  570. elseif PCloPants = 5:
  571. PXCloPantsShortness = 200
  572. elseif PCloPants = 6:
  573. PXCloPantsShortness = 300
  574. elseif PCloPants >= 7:
  575. PXCloPantsShortness = 400
  576. end
  577. end
  578. end
  579. if $ARGS[0] = 'wear_last_worn':
  580. gs 'clothing', 'wear', $lastwornclothingtype, lastwornclothingnumber
  581. end
  582. --- clothing ---------------------------------