clothing 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  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. $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. 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. end
  96. if $ARGS[1] = 'store':
  97. cloc = 1
  98. end
  99. if $ARGS[1] = 'unwanted':
  100. cloc = 2
  101. end
  102. 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)
  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. cla
  287. tkan -= 1
  288. minut += 30
  289. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = bedra'
  290. 'You spend 30 minutes resizing the outfit.'
  291. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  292. end
  293. act 'Leave in closet': gt 'clothing', 'view_clothing_list', $ARGS[1]
  294. end
  295. exit
  296. end
  297. end
  298. end
  299. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  300. act 'Wear':
  301. gs 'clothing', 'wear', $ARGS[2], ARGS[3]
  302. dynamic $ARGS[2] + 'W[<<ARGS[3]>>] = 1'
  303. gt 'clothing', 'view_clothing_list', $ARGS[1]
  304. end
  305. end
  306. elseif $ARGS[1] = 'store' or $ARGS[1] = 'unwanted':
  307. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  308. if $ARGS[2] ! 'coat':
  309. act 'Move back to wardrobe':
  310. dynamic $ARGS[2] + 'W[<<ARGS[3]>>] = 1'
  311. gt 'clothing', 'view_clothing_list', $ARGS[1]
  312. end
  313. end
  314. elseif $ARGS[1] = 'sell':
  315. act 'Keep item':gt 'clothing', 'view_clothing_list', $ARGS[1]
  316. !! value is based on the strength remaining
  317. dynamic 'RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]'
  318. if RESULT > 45:
  319. 'You can sell this item for 500 <b>₽</b>.'
  320. act 'Sell':
  321. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  322. money += 500
  323. gt 'clothing', 'view_clothing_list', $ARGS[1]
  324. end
  325. elseif RESULT > 30:
  326. 'You can sell this item for 300 <b>₽</b>.'
  327. act 'Sell':
  328. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  329. money += 300
  330. gt 'clothing', 'view_clothing_list', $ARGS[1]
  331. end
  332. elseif RESULT > 0:
  333. 'You can sell this item for 100 <b>₽</b>.'
  334. act 'Sell':
  335. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  336. money += 100
  337. gt 'clothing', 'view_clothing_list', $ARGS[1]
  338. end
  339. else
  340. 'This item is too worn to have any sale value.'
  341. act 'Throw it away':
  342. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  343. gt 'clothing', 'view_clothing_list', $ARGS[1]
  344. end
  345. end
  346. elseif $ARGS[1] = 'resize':
  347. act 'Leave item alone':gt 'clothing', 'view_clothing_list', $ARGS[1]
  348. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  349. if dyneval('RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]') ! bedra and money >= 500:
  350. 'You can have this resized for 500 <b>₽</b>.'
  351. act 'Resize':
  352. money -= 500
  353. dynamic '<<$ARGS[2]>>B[<<ARGS[3]>>] = bedra'
  354. gt 'clothing', 'view_clothing_list', $ARGS[1]
  355. end
  356. end
  357. end
  358. end
  359. end
  360. if $ARGS[0] = 'strip':
  361. cumspclnt = 6
  362. gs 'cum_cleanup'
  363. if cloth_vid = 1:
  364. last_vid = 1
  365. else
  366. last_vid = 0
  367. end
  368. if $clothingworntype = 'school':schtype = clothingwornnumber
  369. $lastwornclothingtype = $clothingworntype
  370. lastwornclothingnumber = clothingwornnumber
  371. $clothingworntype = 'nude'
  372. clothingwornnumber = 0
  373. CloQuality = 0
  374. CloThinness = 0
  375. CloTopCut = 0
  376. CloPantsShortness = 0
  377. CloSkirtShortness = 0
  378. CloStyle = 0
  379. CloBimbo = 0
  380. PCloQuality = 0
  381. PCloThinness = 0
  382. PCloTopCut = 0
  383. PCloPants = 0
  384. PCloSkirt = 0
  385. PCloStyle = 0
  386. PCloBimbo = 0
  387. PXCloThinness = 0
  388. PXCloTopCut = 0
  389. PXCloSkirtShortness = 0
  390. PXCloPantsShortness = 0
  391. glamur = 0
  392. sport = 0
  393. ski = 0
  394. ofclo = 0
  395. sexual = 0
  396. odevnesh = 0
  397. ! WD: Bimbo look
  398. cloth_vid = 0
  399. exhibiHideNewCloth = 0
  400. end
  401. if $ARGS[0] = 'wear':
  402. !! ARGS 0 - action
  403. !! ARGS 1 - clothing type name
  404. !! ARGS 2 - clothing index
  405. gs 'clothing', 'strip'
  406. $clothingworntype = $ARGS[1]
  407. clothingwornnumber = ARGS[2]
  408. if $ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear':
  409. gs 'clothing_descriptions'
  410. else
  411. FUNC('$clothing_name', $ARGS[1], ARGS[2])
  412. end
  413. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  414. dynamic '<<$ARGS[1]>>S[<<ARGS[2]>>] = 0'
  415. PCloQuality = CloQuality
  416. PCloThinness = CloThinness
  417. PCloTopCut = CloTopCut
  418. PCloPants = CloPantsShortness
  419. PCloSkirt = CloSkirtShortness
  420. PCloStyle = CloStyle
  421. PCloStyle2 = CloStyle2
  422. PCloBimbo = CloBimbo
  423. if CloBimbo = 1:bimbocl = 1
  424. if PCloTopCut > 1:
  425. if tits = 2 or tits = 3:PCloTopCut += 1
  426. if tits = 4 or tits = 5:PCloTopCut += 2
  427. if tits >= 6:PCloTopCut += 3
  428. end
  429. !Calculations for clothing beauty, multiplied by natural beauty
  430. if PCloThinness > 0:
  431. if PCloThinness = 1:
  432. PXCloThinness = 25
  433. elseif PCloThinness = 2:
  434. PXCloThinness = 50
  435. elseif PCloThinness = 3:
  436. PXCloThinness = 100
  437. elseif PCloThinness = 4:
  438. PXCloThinness = 150
  439. elseif PCloThinness = 5:
  440. PXCloThinness = 200
  441. elseif PCloThinness = 6:
  442. PXCloThinness = 300
  443. elseif PCloThinness >= 7:
  444. PXCloThinness = 400
  445. end
  446. end
  447. if PCloTopCut > 0:
  448. if PCloTopCut = 1:
  449. PXCloTopCut = 25
  450. elseif PCloTopCut = 2:
  451. PXCloTopCut = 50
  452. elseif PCloTopCut = 3:
  453. PXCloTopCut = 100
  454. elseif PCloTopCut = 4:
  455. PXCloTopCut = 150
  456. elseif PCloTopCut = 5:
  457. PXCloTopCut = 200
  458. elseif PCloTopCut = 6:
  459. PXCloTopCut = 300
  460. elseif PCloTopCut >= 7:
  461. PXCloTopCut = 400
  462. end
  463. end
  464. if PCloSkirt > 0:
  465. if PCloSkirt = 1:
  466. PXCloSkirtShortness = 25
  467. elseif PCloSkirt = 2:
  468. PXCloSkirtShortness = 50
  469. elseif PCloSkirt = 3:
  470. PXCloSkirtShortness = 100
  471. elseif PCloSkirt = 4:
  472. PXCloSkirtShortness = 150
  473. elseif PCloSkirt = 5:
  474. PXCloSkirtShortness = 200
  475. elseif PCloSkirt = 6:
  476. PXCloSkirtShortness = 300
  477. elseif PCloSkirt >= 7:
  478. PXCloSkirtShortness = 400
  479. end
  480. end
  481. if PCloPants > 0:
  482. if PCloPants = 1:
  483. PXCloPantsShortness = 25
  484. elseif PCloPants = 2:
  485. PXCloPantsShortness = 50
  486. elseif PCloPants = 3:
  487. PXCloPantsShortness = 100
  488. elseif PCloPants = 4:
  489. PXCloPantsShortness = 150
  490. elseif PCloPants = 5:
  491. PXCloPantsShortness = 200
  492. elseif PCloPants = 6:
  493. PXCloPantsShortness = 300
  494. elseif PCloPants >= 7:
  495. PXCloPantsShortness = 400
  496. end
  497. end
  498. end
  499. if $ARGS[0] = 'wear_last_worn':
  500. gs 'clothing', 'wear', $lastwornclothingtype, lastwornclothingnumber
  501. end
  502. --- clothing ---------------------------------