clothing 20 KB

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