1
0

clothing 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  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 $ARGS[1] = 'naughty' and CloQuality < 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]>>]') < (bedra - 8) or dyneval('RESULT = <<$ARGS[1]>>B[<<ARGS[2]>>]') > (bedra + 8)):
  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. if $ARGS[1] ! 'school' or ARGS[2] ! 6:
  57. $RESULT += '<TD>'
  58. if cloc ! 1:$RESULT += ' <a href="exec:gt ''clothing'', ''dest1'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">Storage</a><BR>'
  59. if cloc ! 0:$RESULT += ' <a href="exec:gt ''clothing'', ''dest0'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">Wardrobe</a><BR>'
  60. if cloc ! 2:$RESULT += ' <a href="exec:gt ''clothing'', ''dest2'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">Unwanted</a>'
  61. $RESULT += '</TD>'
  62. end
  63. end
  64. }
  65. if $ARGS[0] = 'dest0':
  66. *clr
  67. dynamic '<<$ARGS[2]>>S[<<ARGS[3]>>] = 0'
  68. gt 'clothing', 'view_clothing_list', $ARGS[1]
  69. end
  70. if $ARGS[0] = 'dest1':
  71. *clr
  72. dynamic '<<$ARGS[2]>>S[<<ARGS[3]>>] = 1'
  73. gt 'clothing', 'view_clothing_list', $ARGS[1]
  74. end
  75. if $ARGS[0] = 'dest2':
  76. *clr
  77. dynamic '<<$ARGS[2]>>S[<<ARGS[3]>>] = 2'
  78. gt 'clothing', 'view_clothing_list', $ARGS[1]
  79. end
  80. if $ARGS[0] = 'view_clothing_list':
  81. !! ARGS 0 - view_clothing_list
  82. !! ARGS 1 - action type (wardrobe, sell, resize, store, unwanted)
  83. !! ARGS 2 - brothel flag (brothel)
  84. act 'Leave':gt $loc, $metka
  85. 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>'
  86. $bgcolor='#f3f4ee'
  87. if $ARGS[1] = 'sell':
  88. '<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>'
  89. else
  90. '<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>'
  91. end
  92. if $ARGS[1] = 'wardrobe':
  93. cloc = 0
  94. if $clothingworntype ! 'nude':act 'Strip':gs 'clothing', 'strip' & gt $loc, $metka
  95. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and ($clothingworntype ! 'school' or clothingwornnumber ! 6):*P dyneval($clothing_list_line, $ARGS[1], 'school', 6)
  96. end
  97. if $ARGS[1] = 'store':
  98. cloc = 1
  99. end
  100. if $ARGS[1] = 'unwanted':
  101. cloc = 2
  102. end
  103. i = 1
  104. :loopcheap
  105. if cheap[i] = 1 and cheapS[i] = cloc and ($clothingworntype ! 'cheap' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'cheap', i)
  106. i += 1
  107. if i <= 85:jump 'loopcheap'
  108. i = 1
  109. :loopaverage
  110. if average[i] = 1 and averageS[i] = cloc and ($clothingworntype ! 'average' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'average', i)
  111. i += 1
  112. if i <= 125:jump 'loopaverage'
  113. i = 1
  114. :loopexpensive
  115. if expensive[i] = 1 and expensiveS[i] = cloc and ($clothingworntype ! 'expensive' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'expensive', i)
  116. i += 1
  117. if i <= 147:jump 'loopexpensive'
  118. i = 1
  119. :loopformal
  120. if formal[i] = 1 and formalS[i] = cloc and ($clothingworntype ! 'formal' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'formal', i)
  121. i += 1
  122. if i <= 14:jump 'loopformal'
  123. i = 1
  124. :loopoffice
  125. if office[i] = 1 and officeS[i] = cloc and ($clothingworntype ! 'office' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'office', i)
  126. i += 1
  127. if i <= 30:jump 'loopoffice'
  128. i = 1
  129. :loopschool
  130. if school[i] = 1 and schoolS[i] = cloc and ($clothingworntype ! 'school' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'school', i)
  131. i += 1
  132. if i = 6: i = 7
  133. if i <= 14:jump 'loopschool'
  134. i = 1
  135. :loopexercise
  136. if exercise[i] = 1 and exerciseS[i] = cloc and ($clothingworntype ! 'exercise' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exercise', i)
  137. i += 1
  138. if i <= 26:jump 'loopexercise'
  139. i = 1
  140. :loopnaughty
  141. if naughty[i] = 1 and naughtyS[i] = cloc and ($clothingworntype ! 'naughty' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'naughty', i)
  142. i += 1
  143. if i <= 67:jump 'loopnaughty'
  144. i = 1
  145. :loopexhibit
  146. if exhibit[i] = 1 and exhibitS[i] = cloc and ($clothingworntype ! 'exhibit' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exhibit', i)
  147. i += 1
  148. if i <= 30:jump 'loopexhibit'
  149. i = 1
  150. :loopuniform
  151. if uniform[i] = 1 and uniformS[i] = cloc and ($clothingworntype ! 'uniform' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'uniform', i)
  152. i += 1
  153. if i <= 24:jump 'loopuniform'
  154. i = 1
  155. :loopswimwear
  156. if swimwear[i] = 1 and swimwearS[i] = cloc :*P dyneval($clothing_list_line, $ARGS[1], 'swimwear', i)
  157. i += 1
  158. if i <= 30:jump 'loopswimwear'
  159. '</table>'
  160. end
  161. if $ARGS[0] = 'view_clothing_item':
  162. !! ARGS 0 - view_clothing_item
  163. !! ARGS 1 = action type (wardrobe, shop, sell, resize)
  164. !! ARGS 2 - clothing type
  165. !! ARGS 3 - clothing index
  166. !! ARGS 4 - price for shop
  167. cla
  168. '<center><img src="<<FUNC(''$clothing_image'', $ARGS[2], ARGS[3])>>"></center>'
  169. $RESULT = FUNC('$short_description', $ARGS[2])
  170. $RESULT += '<<ARGS[3]>>'
  171. '<<$RESULT>>'
  172. gs 'clothing_attributes', $ARGS[2], ARGS[3]
  173. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  174. gs 'clothing_descriptions'
  175. '<<$description>>'
  176. else
  177. FUNC('$clothing_name', $ARGS[2], ARGS[3])
  178. end
  179. if CloBimbo = 1:'This item is considered bimbo clothing.'
  180. if $ARGS[2] = 'naughty' and CloQuality < 4:'This outfit can be used for prostitution.'
  181. if $ARGS[2] = 'uniform':
  182. if CloStyle2 = 1:
  183. 'This outfit is considered to be a maid uniform.'
  184. else
  185. 'This outfit is a server uniform, suitable for jobs that require one.'
  186. end
  187. end
  188. if $ARGS[1] ! 'shop' and ($ARGS[2] ! 'school' or ARGS[3] ! 6):
  189. $RESULT = '(strength '
  190. dynamic '$RESULT += <<$ARGS[2]>>H[<<ARGS[3]>>]'
  191. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  192. $RESULT += ', hip size '
  193. dynamic '$RESULT += <<$ARGS[2]>>B[<<ARGS[3]>>]'
  194. end
  195. $RESULT += ')'
  196. '<<$RESULT>>'
  197. end
  198. if $ARGS[1] = 'shop':
  199. if dyneval('RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]') = 1:
  200. 'You already own this item.'
  201. act 'Leave': gt $loc, $metka
  202. else
  203. if $ARGS[2] = 'coat' and ARGS[3] = 5:
  204. price = ARGS[4]
  205. else
  206. price = ('<<ARGS[4]>>' * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[3]])
  207. end
  208. 'Price: <<price>>'
  209. act 'Leave': gt $loc, $metka
  210. if money >= Price:
  211. act 'Buy':
  212. h = 0
  213. if CloStyle = 2:h = 10
  214. if CloStyle = 5:h = 20
  215. h += (3 * CloQuality)
  216. money -= price
  217. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 1'
  218. if $ARGS[2] = 'cheap' or $ARGS[2] = 'office':
  219. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 70 + <<h>>'
  220. elseif $ARGS[2] = 'average':
  221. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 90 + <<h>>'
  222. elseif $ARGS[2] = 'formal':
  223. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 15 + <<h>>'
  224. elseif $ARGS[2] = 'naughty' or $ARGS[2] = 'exhibit':
  225. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 35 + <<h>>'
  226. elseif $ARGS[2] = 'school' or $ARGS[2] = 'uniform':
  227. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 120 + <<h>>'
  228. elseif $ARGS[2] = 'exercise':
  229. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 100 + <<h>>'
  230. elseif $ARGS[2] = 'coat':
  231. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 250 + <<h>>'
  232. else
  233. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 60 + <<h>>'
  234. end
  235. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = bedra'
  236. gt $loc, $metka
  237. end
  238. else
  239. 'You cannot afford this outfit.'
  240. end
  241. end
  242. elseif $ARGS[1] = 'wardrobe':
  243. act 'Leave in closet':gt 'clothing', 'view_clothing_list', $ARGS[1]
  244. if $ARGS[2] ! 'school' or ARGS[3] ! 6:
  245. !! if the clothing is worn out
  246. if dyneval('RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]') <= 0:
  247. 'This item is worn and is not suitable for further wear.'
  248. if poSkill >= 200 and tkan > 0:
  249. cla
  250. 'You can repair this thanks to your sewing skill.'
  251. act 'Repair item':
  252. if rand (1, 100) < 30:
  253. cla
  254. tkan -= 1
  255. minut += 30
  256. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] += 30'
  257. 'You spend 30 minutes fixing the outfit.'
  258. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  259. else
  260. cla
  261. tkan += 3
  262. minut += 30
  263. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 0'
  264. '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.'
  265. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  266. end
  267. end
  268. act 'Leave in closet': gt 'clothing', 'view_clothing_list', $ARGS[1]
  269. end
  270. exit
  271. end
  272. !! if the clothing is a type that checks for hip size
  273. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  274. !! if the hipsize is too far from your hipsize
  275. dynamic 'RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]'
  276. if RESULT < bedra - 8 or RESULT > bedra + 8:
  277. if RESULT < bedra:
  278. 'This item is too small for you to wear.'
  279. else
  280. 'This item is too large for you to wear.'
  281. end
  282. if poSkill >= 100 and tkan > 0:
  283. cla
  284. 'You can resize this thanks to your sewing skill.'
  285. act 'Resize 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. end
  307. end
  308. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  309. act 'Wear':
  310. gs 'clothing', 'wear', $ARGS[2], ARGS[3]
  311. dynamic $ARGS[2] + 'W[<<ARGS[3]>>] = 1'
  312. gt 'clothing', 'view_clothing_list', $ARGS[1]
  313. end
  314. end
  315. elseif $ARGS[1] = 'store' or $ARGS[1] = 'unwanted':
  316. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  317. if $ARGS[2] ! 'coat':
  318. act 'Move back to wardrobe':
  319. dynamic $ARGS[2] + 'W[<<ARGS[3]>>] = 1'
  320. gt 'clothing', 'view_clothing_list', $ARGS[1]
  321. end
  322. end
  323. elseif $ARGS[1] = 'sell':
  324. act 'Keep item':gt 'clothing', 'view_clothing_list', $ARGS[1]
  325. !! value is based on the strength remaining
  326. dynamic 'RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]'
  327. if RESULT > 45:
  328. 'You can sell this item for 500 <b>₽</b>.'
  329. act 'Sell':
  330. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  331. money += 500
  332. gt 'clothing', 'view_clothing_list', $ARGS[1]
  333. end
  334. elseif RESULT > 30:
  335. 'You can sell this item for 300 <b>₽</b>.'
  336. act 'Sell':
  337. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  338. money += 300
  339. gt 'clothing', 'view_clothing_list', $ARGS[1]
  340. end
  341. elseif RESULT > 0:
  342. 'You can sell this item for 100 <b>₽</b>.'
  343. act 'Sell':
  344. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  345. money += 100
  346. gt 'clothing', 'view_clothing_list', $ARGS[1]
  347. end
  348. else
  349. 'This item is too worn to have any sale value.'
  350. act 'Throw it away':
  351. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  352. gt 'clothing', 'view_clothing_list', $ARGS[1]
  353. end
  354. end
  355. elseif $ARGS[1] = 'resize':
  356. act 'Leave item alone':gt 'clothing', 'view_clothing_list', $ARGS[1]
  357. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  358. if dyneval('RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]') ! bedra and money >= 500:
  359. 'You can have this resized for 500 <b>₽</b>.'
  360. act 'Resize':
  361. money -= 500
  362. dynamic '<<$ARGS[2]>>B[<<ARGS[3]>>] = bedra'
  363. gt 'clothing', 'view_clothing_list', $ARGS[1]
  364. end
  365. end
  366. end
  367. end
  368. end
  369. if $ARGS[0] = 'strip':
  370. cumspclnt = 6
  371. gs 'cum_cleanup'
  372. if cloth_vid = 1:
  373. last_vid = 1
  374. else
  375. last_vid = 0
  376. end
  377. if $clothingworntype = 'school':schtype = clothingwornnumber
  378. $lastwornclothingtype = $clothingworntype
  379. lastwornclothingnumber = clothingwornnumber
  380. $clothingworntype = 'nude'
  381. clothingwornnumber = 0
  382. CloQuality = 0
  383. CloThinness = 0
  384. CloTopCut = 0
  385. CloPantsShortness = 0
  386. CloSkirtShortness = 0
  387. CloStyle = 0
  388. CloBimbo = 0
  389. PCloQuality = 0
  390. PCloThinness = 0
  391. PCloTopCut = 0
  392. PCloPants = 0
  393. PCloSkirt = 0
  394. PCloStyle = 0
  395. PCloBimbo = 0
  396. glamur = 0
  397. sport = 0
  398. ski = 0
  399. ofclo = 0
  400. sexual = 0
  401. odevnesh = 0
  402. ! WD: Bimbo look
  403. cloth_vid = 0
  404. exhibiHideNewCloth = 0
  405. end
  406. if $ARGS[0] = 'wear':
  407. !! ARGS 0 - action
  408. !! ARGS 1 - clothing type name
  409. !! ARGS 2 - clothing index
  410. gs 'clothing', 'strip'
  411. $clothingworntype = $ARGS[1]
  412. clothingwornnumber = ARGS[2]
  413. if $ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear':
  414. gs 'clothing_descriptions'
  415. else
  416. FUNC('$clothing_name', $ARGS[1], ARGS[2])
  417. end
  418. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  419. dynamic '<<$ARGS[1]>>S[<<ARGS[2]>>] = 0'
  420. PCloQuality = CloQuality
  421. PCloThinness = CloThinness
  422. PCloTopCut = CloTopCut
  423. PCloPants = CloPantsShortness
  424. PCloSkirt = CloSkirtShortness
  425. PCloStyle = CloStyle
  426. PCloStyle2 = CloStyle2
  427. PCloBimbo = CloBimbo
  428. if CloBimbo = 1:bimbocl = 1
  429. if PCloTopCut > 1:
  430. if tits = 2 or tits = 3:PCloTopCut += 1
  431. if tits = 4 or tits = 5:PCloTopCut += 2
  432. if tits >= 6:PCloTopCut += 3
  433. end
  434. !Calculations for clothing beauty, multiplied by natural beauty
  435. if PCloThinness > 0:
  436. if PCloThinness = 1:
  437. PXCloThinness = 25
  438. elseif PCloThinness = 2:
  439. PXCloThinness = 50
  440. elseif PCloThinness = 3:
  441. PXCloThinness = 100
  442. elseif PCloThinness = 4:
  443. PXCloThinness = 150
  444. elseif PCloThinness = 5:
  445. PXCloThinness = 200
  446. elseif PCloThinness = 6:
  447. PXCloThinness = 300
  448. elseif PCloThinness >= 7:
  449. PXCloThinness = 400
  450. end
  451. end
  452. if PCloTopCut > 0:
  453. if PCloTopCut = 1:
  454. PXCloTopCut = 25
  455. elseif PCloTopCut = 2:
  456. PXCloTopCut = 50
  457. elseif PCloTopCut = 3:
  458. PXCloTopCut = 100
  459. elseif PCloTopCut = 4:
  460. PXCloTopCut = 150
  461. elseif PCloTopCut = 5:
  462. PXCloTopCut = 200
  463. elseif PCloTopCut = 6:
  464. PXCloTopCut = 300
  465. elseif PCloTopCut >= 7:
  466. PXCloTopCut = 400
  467. end
  468. end
  469. if PCloSkirt > 0:
  470. if PCloSkirt = 1:
  471. PXCloSkirtShortness = 25
  472. elseif PCloSkirt = 2:
  473. PXCloSkirtShortness = 50
  474. elseif PCloSkirt = 3:
  475. PXCloSkirtShortness = 100
  476. elseif PCloSkirt = 4:
  477. PXCloSkirtShortness = 150
  478. elseif PCloSkirt = 5:
  479. PXCloSkirtShortness = 200
  480. elseif PCloSkirt = 6:
  481. PXCloSkirtShortness = 300
  482. elseif PCloSkirt >= 7:
  483. PXCloSkirtShortness = 400
  484. end
  485. end
  486. if PCloPants > 0:
  487. if PCloPants = 1:
  488. PXCloPantsShortness = 25
  489. elseif PCloPants = 2:
  490. PXCloPantsShortness = 50
  491. elseif PCloPants = 3:
  492. PXCloPantsShortness = 100
  493. elseif PCloPants = 4:
  494. PXCloPantsShortness = 150
  495. elseif PCloPants = 5:
  496. PXCloPantsShortness = 200
  497. elseif PCloPants = 6:
  498. PXCloPantsShortness = 300
  499. elseif PCloPants >= 7:
  500. PXCloPantsShortness = 400
  501. end
  502. end
  503. end
  504. if $ARGS[0] = 'wear_last_worn':
  505. gs 'clothing', 'wear', $lastwornclothingtype, lastwornclothingnumber
  506. end
  507. --- clothing ---------------------------------