clothing 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  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)):
  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. !access locker means you are out of swamp and find road now, disable effect, and get all cloth back
  85. dirtyclothes = 0
  86. clothesswamphouse = 0
  87. clothesbackwater = 0
  88. clothesforest = 0
  89. swamp_clothes = 0
  90. act 'Leave':gt $loc, $metka
  91. 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>'
  92. $bgcolor='#f3f4ee'
  93. if $ARGS[1] = 'sell':
  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>'
  95. else
  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><TH>Move to</TH>'
  97. end
  98. if $ARGS[1] = 'wardrobe':
  99. cloc = 0
  100. if $clothingworntype ! 'nude':act 'Strip':gs 'clothing', 'strip' & gt $loc, $metka
  101. end
  102. if $ARGS[1] = 'store':
  103. cloc = 1
  104. end
  105. if $ARGS[1] = 'unwanted':
  106. cloc = 2
  107. end
  108. 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)
  109. i = 1
  110. :loopcheap
  111. if cheap[i] = 1 and cheapS[i] = cloc and ($clothingworntype ! 'cheap' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'cheap', i)
  112. i += 1
  113. if i <= 86:jump 'loopcheap'
  114. i = 1
  115. :loopaverage
  116. if average[i] = 1 and averageS[i] = cloc and ($clothingworntype ! 'average' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'average', i)
  117. i += 1
  118. if i <= 132:jump 'loopaverage'
  119. i = 1
  120. :loopexpensive
  121. if expensive[i] = 1 and expensiveS[i] = cloc and ($clothingworntype ! 'expensive' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'expensive', i)
  122. i += 1
  123. if i <= 150:jump 'loopexpensive'
  124. i = 1
  125. :loopformal
  126. if formal[i] = 1 and formalS[i] = cloc and ($clothingworntype ! 'formal' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'formal', i)
  127. i += 1
  128. if i <= 33:jump 'loopformal'
  129. i = 1
  130. :loopoffice
  131. if office[i] = 1 and officeS[i] = cloc and ($clothingworntype ! 'office' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'office', i)
  132. i += 1
  133. if i <= 44:jump 'loopoffice'
  134. i = 1
  135. :loopschool
  136. if school[i] = 1 and schoolS[i] = cloc and ($clothingworntype ! 'school' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'school', i)
  137. i += 1
  138. if i = 6: i = 7
  139. if i <= 38:jump 'loopschool'
  140. i = 1
  141. :loopexercise
  142. if exercise[i] = 1 and exerciseS[i] = cloc and ($clothingworntype ! 'exercise' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exercise', i)
  143. i += 1
  144. if i <= 37:jump 'loopexercise'
  145. i = 1
  146. :loopfetish
  147. if fetish[i] = 1 and fetishS[i] = cloc and ($clothingworntype ! 'fetish' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'fetish', i)
  148. i += 1
  149. if i <= 54:jump 'loopfetish'
  150. i = 1
  151. :loopexhibit
  152. if exhibit[i] = 1 and exhibitS[i] = cloc and ($clothingworntype ! 'exhibit' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exhibit', i)
  153. i += 1
  154. if i <= 42:jump 'loopexhibit'
  155. i = 1
  156. :loopuniform
  157. if uniform[i] = 1 and uniformS[i] = cloc and ($clothingworntype ! 'uniform' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'uniform', i)
  158. i += 1
  159. if i <= 32:jump 'loopuniform'
  160. i = 1
  161. :loopburlesque
  162. if burlesque[i] = 1 and burlesqueS[i] = cloc and ($clothingworntype ! 'burlesque' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'burlesque', i)
  163. i += 1
  164. if i <= 22:jump 'loopburlesque'
  165. i = 1
  166. :loopswimwear
  167. if swimwear[i] = 1 and swimwearS[i] = cloc :*P dyneval($clothing_list_line, $ARGS[1], 'swimwear', i)
  168. i += 1
  169. if i <= 65:jump 'loopswimwear'
  170. '</table>'
  171. end
  172. if $ARGS[0] = 'view_clothing_item':
  173. !! ARGS 0 - view_clothing_item
  174. !! ARGS 1 = action type (wardrobe, shop, sell, resize)
  175. !! ARGS 2 - clothing type
  176. !! ARGS 3 - clothing index
  177. !! ARGS 4 - price for shop
  178. cla
  179. '<center><img src="<<FUNC(''$clothing_image'', $ARGS[2], ARGS[3])>>"></center>'
  180. $RESULT = FUNC('$short_description', $ARGS[2])
  181. $RESULT += '<<ARGS[3]>>'
  182. '<<$RESULT>>'
  183. gs 'clothing_attributes', $ARGS[2], ARGS[3]
  184. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  185. gs 'clothing_descriptions'
  186. '<<$description>>'
  187. else
  188. FUNC('$clothing_name', $ARGS[2], ARGS[3])
  189. end
  190. if CloBimbo = 1:'This item is considered bimbo clothing.'
  191. if CloStyle = 4:'This outfit can be used for prostitution.'
  192. if $ARGS[2] = 'uniform':
  193. if CloStyle2 = 1:
  194. 'This outfit is considered to be a maid uniform.'
  195. elseif CloStyle2 = 3:
  196. 'This is a stripper outfit.'
  197. else
  198. 'This outfit is a server uniform, suitable for jobs that require one.'
  199. end
  200. end
  201. if $ARGS[2] = 'school':
  202. if CloSkirtShortness < 5:
  203. '<font color="blue">This uniform complies with the school regulations on skirt length.</font>'
  204. elseif CloSkirtShortness = 5:
  205. '<font color="blue">This uniform slightly breaches the school regulations on skirt length.</font>'
  206. else
  207. '<font color="red">This uniform makes a mockery of the school uniform regulations.</font>'
  208. end
  209. end
  210. if $ARGS[1] ! 'shop' and ($ARGS[2] ! 'school' or ARGS[3] ! 6):
  211. $RESULT = '(strength '
  212. dynamic '$RESULT += <<$ARGS[2]>>H[<<ARGS[3]>>]'
  213. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  214. $RESULT += ', hip size '
  215. dynamic '$RESULT += <<$ARGS[2]>>B[<<ARGS[3]>>]'
  216. end
  217. $RESULT += ')'
  218. '<<$RESULT>>'
  219. end
  220. if $ARGS[1] = 'shop':
  221. if dyneval('RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]') = 1:
  222. 'You already own this item.'
  223. act 'Leave': gt $loc, $metka
  224. else
  225. if $ARGS[2] = 'coat' and ARGS[3] = 5:
  226. price = ARGS[4]
  227. else
  228. price = ('<<ARGS[4]>>' * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[3]]) * 3 / 2
  229. price = price / 50 * 50
  230. end
  231. 'Price: <<price>>'
  232. act 'Leave': gt $loc, $metka
  233. if CloExhibit > pcs_exhibition:
  234. 'You don''t feel confident enough to wear an outfit this revealing and can''t bring yourself to buy it.'
  235. elseif money >= Price:
  236. act 'Buy':
  237. h = 0
  238. if CloStyle = 2:h = 10
  239. if CloStyle = 5:h = 20
  240. h += (3 * CloQuality)
  241. money -= price
  242. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 1'
  243. if $ARGS[2] = 'cheap' or $ARGS[2] = 'office':
  244. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 70 + <<h>>'
  245. elseif $ARGS[2] = 'average':
  246. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 90 + <<h>>'
  247. elseif $ARGS[2] = 'formal':
  248. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 15 + <<h>>'
  249. elseif $ARGS[2] = 'fetish' or $ARGS[2] = 'exhibit' or $ARGS[2] = 'burlesque':
  250. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 35 + <<h>>'
  251. elseif $ARGS[2] = 'school' or $ARGS[2] = 'uniform':
  252. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 120 + <<h>>'
  253. elseif $ARGS[2] = 'exercise':
  254. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 100 + <<h>>'
  255. elseif $ARGS[2] = 'coat':
  256. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 250 + <<h>>'
  257. else
  258. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 60 + <<h>>'
  259. end
  260. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  261. dynamic $ARGS[2] + 'S[<<ARGS[3]>>] = 0'
  262. gt $loc, $metka
  263. end
  264. else
  265. 'You cannot afford this outfit.'
  266. end
  267. end
  268. elseif $ARGS[1] = 'wardrobe':
  269. act 'Leave in closet':gt 'clothing', 'view_clothing_list', $ARGS[1]
  270. if $ARGS[2] ! 'school' or ARGS[3] ! 6:
  271. !! if the clothing is worn out
  272. if dyneval('RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]') <= 0:
  273. 'This item is worn and is not suitable for further wear.'
  274. if pcs_sewng >= 200 and tkan > 0:
  275. cla
  276. 'You can repair this thanks to your sewing skill.'
  277. act 'Repair item':
  278. if rand (1, 100) < 30:
  279. cla
  280. tkan -= 1
  281. minut += 30
  282. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] += 30'
  283. 'You spend 30 minutes fixing the outfit.'
  284. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  285. else
  286. cla
  287. tkan += 3
  288. minut += 30
  289. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 0'
  290. '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.'
  291. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  292. end
  293. end
  294. act 'Leave in closet': gt 'clothing', 'view_clothing_list', $ARGS[1]
  295. end
  296. exit
  297. end
  298. !! if the clothing is a type that checks for hip size
  299. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  300. !! if the hipsize is too far from your hipsize
  301. dynamic 'RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]'
  302. if RESULT < pcs_hips - 8 or RESULT > pcs_hips + 8:
  303. if RESULT < pcs_hips:
  304. 'This item is too small for you to wear.'
  305. else
  306. 'This item is too large for you to wear.'
  307. end
  308. if pcs_sewng >= 100 and tkan > 0:
  309. cla
  310. 'You can resize this thanks to your sewing skill.'
  311. act 'Resize item':
  312. cla
  313. tkan -= 1
  314. minut += 30
  315. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = pcs_hips'
  316. 'You spend 30 minutes resizing the outfit.'
  317. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  318. end
  319. act 'Leave in closet': gt 'clothing', 'view_clothing_list', $ARGS[1]
  320. end
  321. exit
  322. end
  323. end
  324. end
  325. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  326. if CloExhibit > pcs_exhibition:
  327. 'You don''t feel confident enough to wear an outfit this revealing.'
  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. if $clothingworntype = 'nude': exit
  392. cumspclnt = 6
  393. gs 'cum_cleanup'
  394. if cloth_vid = 1:
  395. last_vid = 1
  396. else
  397. last_vid = 0
  398. end
  399. if $clothingworntype = 'school':schtype = clothingwornnumber
  400. $lastwornclothingtype = $clothingworntype
  401. lastwornclothingnumber = clothingwornnumber
  402. $clothingworntype = 'nude'
  403. clothingwornnumber = 0
  404. CloQuality = 0
  405. CloThinness = 0
  406. CloTopCut = 0
  407. CloBra = 0
  408. CloPantsShortness = 0
  409. CloSkirtShortness = 0
  410. CloPanties = 0
  411. CloStyle = 0
  412. CloStyle2 = 0
  413. CloBimbo = 0
  414. PCloQuality = 0
  415. PCloThinness = 0
  416. PCloTopCut = 0
  417. PCloPants = 0
  418. PCloSkirt = 0
  419. PCloStyle = 0
  420. PCloStyle2 = 0
  421. PCloBimbo = 0
  422. PCloExhibit = 0
  423. PXCloThinness = 0
  424. PXCloTopCut = 0
  425. PXCloSkirtShortness = 0
  426. PXCloPantsShortness = 0
  427. glamur = 0
  428. sport = 0
  429. ski = 0
  430. ofclo = 0
  431. sexual = 0
  432. odevnesh = 0
  433. ! WD: Bimbo look
  434. cloth_vid = 0
  435. exhibiHideNewCloth = 0
  436. end
  437. if $ARGS[0] = 'wear':
  438. !! ARGS 0 - action
  439. !! ARGS 1 - clothing type name
  440. !! ARGS 2 - clothing index
  441. gs 'clothing', 'strip'
  442. $clothingworntype = $ARGS[1]
  443. clothingwornnumber = ARGS[2]
  444. if $ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear':
  445. gs 'clothing_descriptions'
  446. else
  447. FUNC('$clothing_name', $ARGS[1], ARGS[2])
  448. end
  449. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  450. dynamic '<<$ARGS[1]>>S[<<ARGS[2]>>] = 0'
  451. PCloQuality = CloQuality
  452. PCloThinness = CloThinness
  453. PCloTopCut = CloTopCut
  454. PCloBra = CloBra
  455. PCloPants = CloPantsShortness
  456. PCloSkirt = CloSkirtShortness
  457. PCloPanties = CloPanties
  458. PCloStyle = CloStyle
  459. PCloStyle2 = CloStyle2
  460. PCloExhibit = CloExhibit
  461. PCloBimbo = CloBimbo
  462. if CloBimbo = 1:bimbocl = 1
  463. if PCloTopCut > 1:
  464. if tits = 2 or tits = 3:PCloTopCut += 1
  465. if tits = 4 or tits = 5:PCloTopCut += 2
  466. if tits >= 6:PCloTopCut += 3
  467. end
  468. !Calculations for clothing beauty, multiplied by natural beauty
  469. if PCloThinness > 0:
  470. if PCloThinness = 1:
  471. PXCloThinness = 25
  472. elseif PCloThinness = 2:
  473. PXCloThinness = 50
  474. elseif PCloThinness = 3:
  475. PXCloThinness = 100
  476. elseif PCloThinness = 4:
  477. PXCloThinness = 150
  478. elseif PCloThinness = 5:
  479. PXCloThinness = 200
  480. elseif PCloThinness = 6:
  481. PXCloThinness = 300
  482. elseif PCloThinness >= 7:
  483. PXCloThinness = 400
  484. end
  485. end
  486. if PCloTopCut > 0:
  487. if PCloTopCut = 1:
  488. PXCloTopCut = 25
  489. elseif PCloTopCut = 2:
  490. PXCloTopCut = 50
  491. elseif PCloTopCut = 3:
  492. PXCloTopCut = 100
  493. elseif PCloTopCut = 4:
  494. PXCloTopCut = 150
  495. elseif PCloTopCut = 5:
  496. PXCloTopCut = 200
  497. elseif PCloTopCut = 6:
  498. PXCloTopCut = 300
  499. elseif PCloTopCut >= 7:
  500. PXCloTopCut = 400
  501. end
  502. end
  503. if PCloSkirt > 0:
  504. if PCloSkirt = 1:
  505. PXCloSkirtShortness = 25
  506. elseif PCloSkirt = 2:
  507. PXCloSkirtShortness = 50
  508. elseif PCloSkirt = 3:
  509. PXCloSkirtShortness = 100
  510. elseif PCloSkirt = 4:
  511. PXCloSkirtShortness = 150
  512. elseif PCloSkirt = 5:
  513. PXCloSkirtShortness = 200
  514. elseif PCloSkirt = 6:
  515. PXCloSkirtShortness = 300
  516. elseif PCloSkirt >= 7:
  517. PXCloSkirtShortness = 400
  518. end
  519. end
  520. if PCloPants > 0:
  521. if PCloPants = 1:
  522. PXCloPantsShortness = 25
  523. elseif PCloPants = 2:
  524. PXCloPantsShortness = 50
  525. elseif PCloPants = 3:
  526. PXCloPantsShortness = 100
  527. elseif PCloPants = 4:
  528. PXCloPantsShortness = 150
  529. elseif PCloPants = 5:
  530. PXCloPantsShortness = 200
  531. elseif PCloPants = 6:
  532. PXCloPantsShortness = 300
  533. elseif PCloPants >= 7:
  534. PXCloPantsShortness = 400
  535. end
  536. end
  537. end
  538. if $ARGS[0] = 'wear_last_worn':
  539. gs 'clothing', 'wear', $lastwornclothingtype, lastwornclothingnumber
  540. end
  541. --- clothing ---------------------------------