1
0

clothing 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. # clothing
  2. $clothing_list_line = {
  3. !! a single line in a clothing list (wardrobe, etc)
  4. !! ARGS 0 - action type (wardrobe, sell)
  5. !! ARGS 1 - clothing type
  6. !! ARGS 2 - clothing index
  7. !$RESULT = FUNC('$short_description', $ARGS[1])
  8. !$RESULT += '<<ARGS[2]>>'
  9. $RESULT = '<TR><TD><<FUNC(''$short_description'', $ARGS[1])>> <<ARGS[2]>></TD>'
  10. if $ARGS[1] ! 'school' or ARGS[2] ! 6:
  11. !$RESULT += ' (strength ' + dyneval '$RESULT += <<$ARGS[1]>>H[<<ARGS[2]>>]'
  12. $RESULT += '<TD>' + dyneval '$RESULT += <<$ARGS[1]>>H[<<ARGS[2]>>]' + '</TD>'
  13. if $ARGS[1] ! 'exercise' and $ARGS[1] ! 'coat' and CloStyle ! 5:
  14. !$RESULT += ', hip size ' + dyneval '$RESULT += <<$ARGS[1]>>B[<<ARGS[2]>>]'
  15. $RESULT += '<TD>' + dyneval '$RESULT += <<$ARGS[1]>>B[<<ARGS[2]>>]' + '</TD>'
  16. else
  17. $RESULT += '<TD></TD>'
  18. end
  19. !$RESULT += ')'
  20. else
  21. $RESULT += '<TD td colspan="2"></TD>'
  22. end
  23. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  24. if $ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear':
  25. gs 'clothing_descriptions'
  26. $RESULT += '<TD><<$description>></TD>'
  27. else
  28. $RESULT += '<TD>' + FUNC('$clothing_name', $ARGS[1], ARGS[2]) + '</TD>'
  29. end
  30. if CloBimbo = 1:
  31. $RESULT += '<TD>Yes</TD>'
  32. else
  33. $RESULT += '<TD>No</TD>'
  34. end
  35. if $ARGS[1] = 'naughty' and CloQuality < 4:
  36. $RESULT += '<TD>Yes</TD>'
  37. else
  38. $RESULT += '<TD>No</TD>'
  39. end
  40. $RESULT += '<TD><a href="exec:gt ''clothing'', ''view_clothing_item'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">View</a>'
  41. if $ARGS[0] ! 'sell':
  42. if ($ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear') and dyneval('RESULT = <<$ARGS[1]>>H[<<ARGS[2]>>]') > 0:
  43. 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)):
  44. $RESULT += '</TD>'
  45. else
  46. $RESULT += ' <a href="exec:gs ''clothing'', ''wear'', ''<<$ARGS[1]>>'', <<ARGS[2]>> & gt ''clothing'', ''view_clothing_list'', ''wardrobe''">Wear</a></TD>'
  47. end
  48. else
  49. $RESULT += '</TD>'
  50. end
  51. end
  52. }
  53. if $ARGS[0] = 'view_clothing_list':
  54. !! ARGS 0 - view_clothing_list
  55. !! ARGS 1 - action type (wardrobe, sell, resize)
  56. !! ARGS 2 - brothel flag (brothel)
  57. act 'Leave':gt $loc, $metka
  58. '<table border=1><TH>Name</TH><TH>Strength</TH><TH>Hip size</TH><TH>Description</TH><TH>Bimbo</TH><TH>Prostitute</TH><TH>Actions</TH>'
  59. if $ARGS[1] = 'wardrobe':
  60. if $clothingworntype ! 'nude':act 'Strip':gs 'clothing', 'strip' & gt $loc, $metka
  61. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and ($clothingworntype ! 'school' or clothingwornnumber ! 6):*P dyneval($clothing_list_line, $ARGS[1], 'school', 6)
  62. end
  63. i = 1
  64. :loopcheap
  65. if cheap[i] = 1 and ($clothingworntype ! 'cheap' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'cheap', i)
  66. i += 1
  67. if i <= 85:jump 'loopcheap'
  68. i = 1
  69. :loopaverage
  70. if average[i] = 1 and ($clothingworntype ! 'average' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'average', i)
  71. i += 1
  72. if i <= 125:jump 'loopaverage'
  73. i = 1
  74. :loopexpensive
  75. if expensive[i] = 1 and ($clothingworntype ! 'expensive' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'expensive', i)
  76. i += 1
  77. if i <= 147:jump 'loopexpensive'
  78. i = 1
  79. :loopformal
  80. if formal[i] = 1 and ($clothingworntype ! 'formal' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'formal', i)
  81. i += 1
  82. if i <= 14:jump 'loopformal'
  83. i = 1
  84. :loopoffice
  85. if office[i] = 1 and ($clothingworntype ! 'office' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'office', i)
  86. i += 1
  87. if i <= 30:jump 'loopoffice'
  88. i = 1
  89. :loopschool
  90. if school[i] = 1 and ($clothingworntype ! 'school' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'school', i)
  91. i += 1
  92. if i = 6: i = 7
  93. if i <= 14:jump 'loopschool'
  94. i = 1
  95. :loopexercise
  96. if exercise[i] = 1 and ($clothingworntype ! 'exercise' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exercise', i)
  97. i += 1
  98. if i <= 26:jump 'loopexercise'
  99. i = 1
  100. :loopnaughty
  101. if naughty[i] = 1 and ($clothingworntype ! 'naughty' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'naughty', i)
  102. i += 1
  103. if i <= 67:jump 'loopnaughty'
  104. i = 1
  105. :loopexhibit
  106. if exhibit[i] = 1 and ($clothingworntype ! 'exhibit' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'exhibit', i)
  107. i += 1
  108. if i <= 30:jump 'loopexhibit'
  109. i = 1
  110. :loopuniform
  111. if uniform[i] = 1 and ($clothingworntype ! 'uniform' or clothingwornnumber ! i):*P dyneval($clothing_list_line, $ARGS[1], 'uniform', i)
  112. i += 1
  113. if i <= 24:jump 'loopuniform'
  114. i = 1
  115. :loopcoat
  116. if coat[i] = 1:*P dyneval($coat_list_line, $ARGS[1], 'coat', i)
  117. i += 1
  118. if i <= 12:jump 'loopcoat'
  119. i = 1
  120. :loopswimwear
  121. if swimwear[i] = 1:*P dyneval($clothing_list_line, $ARGS[1], 'swimwear', i)
  122. i += 1
  123. if i <= 30:jump 'loopswimwear'
  124. '</table>'
  125. end
  126. if $ARGS[0] = 'view_clothing_item':
  127. !! ARGS 0 - view_clothing_item
  128. !! ARGS 1 = action type (wardrobe, shop, sell, resize)
  129. !! ARGS 2 - clothing type
  130. !! ARGS 3 - clothing index
  131. !! ARGS 4 - price for shop
  132. cla
  133. '<center><img src="<<FUNC(''$clothing_image'', $ARGS[2], ARGS[3])>>"></center>'
  134. $RESULT = FUNC('$short_description', $ARGS[2])
  135. $RESULT += '<<ARGS[3]>>'
  136. '<<$RESULT>>'
  137. gs 'clothing_attributes', $ARGS[2], ARGS[3]
  138. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  139. gs 'clothing_descriptions'
  140. '<<$description>>'
  141. else
  142. FUNC('$clothing_name', $ARGS[2], ARGS[3])
  143. end
  144. if CloBimbo = 1:'This item is considered bimbo clothing.'
  145. if $ARGS[2] = 'naughty' and CloQuality < 4:'This outfit can be used for prostitution.'
  146. if $ARGS[2] = 'uniform':
  147. if CloStyle2 = 1:
  148. 'This outfit is considered to be a maid uniform.'
  149. else
  150. 'This outfit is a server uniform, suitable for jobs that require one.'
  151. end
  152. end
  153. if $ARGS[1] ! 'shop' and ($ARGS[2] ! 'school' or $ARGS[3] ! 6):
  154. $RESULT = '(strength '
  155. dynamic '$RESULT += <<$ARGS[2]>>H[<<ARGS[3]>>]'
  156. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  157. $RESULT += ', hip size '
  158. dynamic '$RESULT += <<$ARGS[2]>>B[<<ARGS[3]>>]'
  159. end
  160. $RESULT += ')'
  161. '<<$RESULT>>'
  162. end
  163. if $ARGS[1] = 'shop':
  164. if dyneval('RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]') = 1:
  165. 'You already own this item.'
  166. act 'Leave': gt $loc, $metka
  167. else
  168. price = ('<<ARGS[4]>>' * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[3]])
  169. 'Price: <<price>>'
  170. act 'Leave': gt $loc, $metka
  171. if money >= Price:
  172. act 'Buy':
  173. h = 0
  174. if CloStyle = 2:h = 10
  175. if CloStyle = 5:h = 20
  176. h += (3 * CloQuality)
  177. money -= price
  178. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 1'
  179. if $ARGS[2] = 'cheap' or $ARGS[2] = 'office':
  180. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 70 + <<h>>'
  181. elseif $ARGS[2] = 'average':
  182. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 90 + <<h>>'
  183. elseif $ARGS[2] = 'formal':
  184. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 15 + <<h>>'
  185. elseif $ARGS[2] = 'naughty' or $ARGS[2] = 'exhibit':
  186. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 35 + <<h>>'
  187. elseif $ARGS[2] = 'school' or $ARGS[2] = 'uniform':
  188. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 120 + <<h>>'
  189. elseif $ARGS[2] = 'exercise':
  190. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 100 + <<h>>'
  191. elseif $ARGS[2] = 'coat':
  192. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 250 + <<h>>'
  193. else
  194. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 60 + <<h>>'
  195. end
  196. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = bedra'
  197. gt $loc, $metka
  198. end
  199. else
  200. 'You cannot afford this outfit.'
  201. end
  202. end
  203. elseif $ARGS[1] = 'wardrobe':
  204. act 'Leave in closet':gt 'clothing', 'view_clothing_list', $ARGS[1]
  205. if $ARGS[2] ! 'school' and $ARGS[3] ! 6:
  206. !! if the clothing is worn out
  207. if dyneval('RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]') <= 0:
  208. 'This item is worn and is not suitable for further wear.'
  209. exit
  210. end
  211. !! if the clothing is a type that checks for hip size
  212. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  213. !! if the hipsize is too far from your hipsize
  214. dynamic 'RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]'
  215. if RESULT < bedra - 8:
  216. 'This item is too small for you to wear.'
  217. if poSkill >= 100:
  218. cla
  219. 'You can resize this thanks to your sewing skill.'
  220. minut += 15
  221. act 'Resize':
  222. dynamic '<<$ARGS[2]>>B[<<ARGS[3]>>] = bedra'
  223. gt 'clothing', 'view_clothing_list', $ARGS[1]
  224. end
  225. act 'Leave in closet':
  226. gt 'clothing', 'view_clothing_list', $ARGS[1]
  227. end
  228. end
  229. exit
  230. elseif RESULT > bedra + 8:
  231. 'This item is too large for you to wear.'
  232. if poSkill >= 100:
  233. cla
  234. 'You can resize this thanks to your sewing skill.'
  235. minut += 15
  236. act 'Resize':
  237. dynamic '<<$ARGS[2]>>B[<<ARGS[3]>>] = bedra'
  238. gt 'clothing', 'view_clothing_list', $ARGS[1]
  239. end
  240. act 'Leave in closet':
  241. gt 'clothing', 'view_clothing_list', $ARGS[1]
  242. end
  243. end
  244. exit
  245. end
  246. end
  247. end
  248. ! WD: Bimbo look
  249. if $ARGS[2] ! 'coat' and $ARGS[2] ! 'swimwear':
  250. act 'Wear':
  251. gs 'clothing', 'wear', $ARGS[2], ARGS[3]
  252. dynamic $ARGS[2] + 'W[<<ARGS[3]>>] = 1'
  253. gt 'clothing', 'view_clothing_list', $ARGS[1]
  254. end
  255. end
  256. if dyneval('RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]') < 5 and poSkill >= 200 and tkan > 0:
  257. act 'Repair item':
  258. if rand (1, 100) < 30:
  259. cla
  260. tkan -= 1
  261. minut += 30
  262. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] += 30'
  263. 'You spend 30 minutes fixing the outfit.'
  264. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  265. else
  266. cla
  267. tkan += 3
  268. minut += 30
  269. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 0'
  270. '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.'
  271. act 'Return':gt 'clothing', 'view_clothing_list', $ARGS[1]
  272. end
  273. end
  274. end
  275. elseif $ARGS[1] = 'sell':
  276. act 'Keep item':gt 'clothing', 'view_clothing_list', $ARGS[1]
  277. !! value is based on the strength remaining
  278. dynamic 'RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]'
  279. if RESULT > 45:
  280. 'You can sell this item for 500 rubles.'
  281. act 'Sell':
  282. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  283. money += 500
  284. gt 'clothing', 'view_clothing_list', $ARGS[1]
  285. end
  286. elseif RESULT > 30:
  287. 'You can sell this item for 300 rubles.'
  288. act 'Sell':
  289. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  290. money += 300
  291. gt 'clothing', 'view_clothing_list', $ARGS[1]
  292. end
  293. elseif RESULT > 0:
  294. 'You can sell this item for 100 rubles.'
  295. act 'Sell':
  296. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  297. money += 100
  298. gt 'clothing', 'view_clothing_list', $ARGS[1]
  299. end
  300. else
  301. 'This item is too worn to have any sale value.'
  302. end
  303. elseif $ARGS[1] = 'resize':
  304. act 'Leave item alone':gt 'clothing', 'view_clothing_list', $ARGS[1]
  305. if $ARGS[2] ! 'exercise' and $ARGS[2] ! 'coat' and CloStyle ! 5:
  306. if dyneval('RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]') ! bedra and money >= 500:
  307. 'You can have this resized for 500 rubles.'
  308. act 'Resize':
  309. money -= 500
  310. dynamic '<<$ARGS[2]>>B[<<ARGS[3]>>] = bedra'
  311. gt 'clothing', 'view_clothing_list', $ARGS[1]
  312. end
  313. end
  314. end
  315. end
  316. end
  317. if $ARGS[0] = 'strip':
  318. cumspclnt = 6
  319. gs 'cum_cleanup'
  320. if cloth_vid = 1:
  321. last_vid = 1
  322. else
  323. last_vid = 0
  324. end
  325. if $clothingworntype = 'school':schtype = clothingwornnumber
  326. $lastwornclothingtype = $clothingworntype
  327. lastwornclothingnumber = clothingwornnumber
  328. $clothingworntype = 'nude'
  329. clothingwornnumber = 0
  330. CloQuality = 0
  331. CloThinness = 0
  332. CloTopCut = 0
  333. CloPantsShortness = 0
  334. CloSkirtShortness = 0
  335. CloStyle = 0
  336. CloBimbo = 0
  337. PCloQuality = 0
  338. PCloThinness = 0
  339. PCloTopCut = 0
  340. PCloPants = 0
  341. PCloSkirt = 0
  342. PCloStyle = 0
  343. PCloBimbo = 0
  344. glamur = 0
  345. sport = 0
  346. ski = 0
  347. ofclo = 0
  348. sexual = 0
  349. odevnesh = 0
  350. ! WD: Bimbo look
  351. cloth_vid = 0
  352. exhibiHideNewCloth = 0
  353. end
  354. if $ARGS[0] = 'wear':
  355. !! ARGS 0 - action
  356. !! ARGS 1 - clothing type name
  357. !! ARGS 2 - clothing index
  358. gs 'clothing', 'strip'
  359. $clothingworntype = $ARGS[1]
  360. clothingwornnumber = ARGS[2]
  361. if $ARGS[1] ! 'coat' and $ARGS[1] ! 'swimwear':
  362. gs 'clothing_descriptions'
  363. else
  364. FUNC('$clothing_name', $ARGS[1], ARGS[2])
  365. end
  366. gs 'clothing_attributes', $ARGS[1], ARGS[2]
  367. PCloQuality = CloQuality
  368. PCloThinness = CloThinness
  369. PCloTopCut = CloTopCut
  370. PCloPants = CloPantsShortness
  371. PCloSkirt = CloSkirtShortness
  372. PCloStyle = CloStyle
  373. PCloStyle2 = CloStyle2
  374. PCloBimbo = CloBimbo
  375. if CloBimbo = 1:bimbocl = 1
  376. if PCloTopCut > 1:
  377. if tits = 2 or tits = 3:PCloTopCut += 1
  378. if tits = 4 or tits = 5:PCloTopCut += 2
  379. if tits >= 6:PCloTopCut += 3
  380. end
  381. !Calculations for clothing beauty, multiplied by natural beauty
  382. if PCloThinness > 0:
  383. if PCloThinness = 1:
  384. PXCloThinness = 25
  385. elseif PCloThinness = 2:
  386. PXCloThinness = 50
  387. elseif PCloThinness = 3:
  388. PXCloThinness = 100
  389. elseif PCloThinness = 4:
  390. PXCloThinness = 150
  391. elseif PCloThinness = 5:
  392. PXCloThinness = 200
  393. elseif PCloThinness = 6:
  394. PXCloThinness = 300
  395. elseif PCloThinness >= 7:
  396. PXCloThinness = 400
  397. end
  398. end
  399. if PCloTopCut > 0:
  400. if PCloTopCut = 1:
  401. PXCloTopCut = 25
  402. elseif PCloTopCut = 2:
  403. PXCloTopCut = 50
  404. elseif PCloTopCut = 3:
  405. PXCloTopCut = 100
  406. elseif PCloTopCut = 4:
  407. PXCloTopCut = 150
  408. elseif PCloTopCut = 5:
  409. PXCloTopCut = 200
  410. elseif PCloTopCut = 6:
  411. PXCloTopCut = 300
  412. elseif PCloTopCut >= 7:
  413. PXCloTopCut = 400
  414. end
  415. end
  416. if PCloSkirt > 0:
  417. if PCloSkirt = 1:
  418. PXCloSkirtShortness = 25
  419. elseif PCloSkirt = 2:
  420. PXCloSkirtShortness = 50
  421. elseif PCloSkirt = 3:
  422. PXCloSkirtShortness = 100
  423. elseif PCloSkirt = 4:
  424. PXCloSkirtShortness = 150
  425. elseif PCloSkirt = 5:
  426. PXCloSkirtShortness = 200
  427. elseif PCloSkirt = 6:
  428. PXCloSkirtShortness = 300
  429. elseif PCloSkirt >= 7:
  430. PXCloSkirtShortness = 400
  431. end
  432. end
  433. if PCloPants > 0:
  434. if PCloPants = 1:
  435. PXCloPantsShortness = 25
  436. elseif PCloPants = 2:
  437. PXCloPantsShortness = 50
  438. elseif PCloPants = 3:
  439. PXCloPantsShortness = 100
  440. elseif PCloPants = 4:
  441. PXCloPantsShortness = 150
  442. elseif PCloPants = 5:
  443. PXCloPantsShortness = 200
  444. elseif PCloPants = 6:
  445. PXCloPantsShortness = 300
  446. elseif PCloPants >= 7:
  447. PXCloPantsShortness = 400
  448. end
  449. end
  450. end
  451. if $ARGS[0] = 'wear_last_worn':
  452. gs 'clothing', 'wear', $lastwornclothingtype, lastwornclothingnumber
  453. end
  454. --- clothing ---------------------------------