1
0

clothing 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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('$clothing_name', $ARGS[1], ARGS[2])
  8. if $ARGS[1] ! 'vatnik' and $ARGS[1] ! 'ero' and $ARGS[1] ! 'sforma':
  9. $RESULT += ' (strength ' + dyneval '$RESULT += <<$ARGS[1]>>H[<<ARGS[2]>>]'
  10. if $ARGS[1] ! 'yoga' and $ARGS[1] ! 'sarafan':
  11. $RESULT += ', hip size ' + dyneval '$RESULT += <<$ARGS[1]>>B[<<ARGS[2]>>]'
  12. end
  13. $RESULT += ')'
  14. end
  15. $RESULT += ' <a href="exec:gt ''clothing'', ''view_clothing_item'', ''<<$ARGS[0]>>'', ''<<$ARGS[1]>>'', <<ARGS[2]>>">View</a>'
  16. }
  17. if $ARGS[0] = 'view_clothing_list':
  18. !! ARGS 0 - view_clothing_list
  19. !! ARGS 1 - action type (wardrobe, sell, resize)
  20. !! ARGS 2 - brothel flag (brothel)
  21. act 'Leave':gt $loc, $metka
  22. if $ARGS[1] = 'wardrobe':
  23. if bikini = 1:'On the top shelf is a swimsuit'
  24. if $clothingworntype ! 'vatnik':dyneval($clothing_list_line, $ARGS[1], 'vatnik', 0)
  25. if StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0 and $clothingworntype ! 'sforma':dyneval($clothing_list_line, $ARGS[1], 'sforma', 0)
  26. end
  27. i = 1
  28. :loopjeans
  29. if jeans[i] = 1 and ($clothingworntype ! 'jeans' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'jeans', i)
  30. i += 1
  31. if i = 6:i = 201
  32. if i <= 297:jump 'loopjeans'
  33. i = 1
  34. :loopyoga
  35. if yoga[i] = 1 and ($clothingworntype ! 'yoga' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'yoga', i)
  36. i += 1
  37. if i <= 18:jump 'loopyoga'
  38. i = 1
  39. :loopsarafan
  40. if sarafan[i] = 1 and ($clothingworntype ! 'sarafan' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'sarafan', i)
  41. i += 1
  42. if i <= 3:jump 'loopsarafan'
  43. i = 1
  44. :loopshort
  45. if short[i] = 1 and ($clothingworntype ! 'short' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'short', i)
  46. i += 1
  47. if i = 6:i = 201
  48. if i <= 256:jump 'loopshort'
  49. i = 1
  50. :loopskirt
  51. if skirt[i] = 1 and ($clothingworntype ! 'skirt' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'skirt', i)
  52. i += 1
  53. if i = 6:i = 201
  54. if i <= 273:jump 'loopskirt'
  55. i = 1
  56. :loopdress
  57. if dress[i] = 1 and ($clothingworntype ! 'dress' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'dress', i)
  58. i += 1
  59. if i = 25:i = 201
  60. if i <= 225:jump 'loopdress'
  61. i = 1
  62. :loopprofi
  63. if profi[i] = 1 and ($clothingworntype ! 'profi' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'profi', i)
  64. i += 1
  65. if i = 3:i = 201
  66. if i <= 208:jump 'loopprofi'
  67. i = 1
  68. :looppants
  69. if pants[i] = 1 and ($clothingworntype ! 'pants' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'pants', i)
  70. i += 1
  71. if i = 6:i = 201
  72. if i <= 346:jump 'looppants'
  73. i = 1
  74. :looplatex
  75. if latex[i] = 1 and ($clothingworntype ! 'latex' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'latex', i)
  76. i += 1
  77. if i <= 2:jump 'looplatex'
  78. i = 1
  79. :loophooker
  80. if hooker[i] = 1 and ($clothingworntype ! 'hooker' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'hooker', i)
  81. i += 1
  82. if i <= 5:jump 'loophooker'
  83. i = 1
  84. :loopodekis
  85. if odekis[i] = 1 and ($clothingworntype ! 'odekis' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'odekis', i)
  86. i += 1
  87. if i <= 10:jump 'loopodekis'
  88. i = 1
  89. :loopnewclo
  90. if newclo[i] = 1 and ($clothingworntype ! 'newclo' or clothingwornnumber ! i):dyneval($clothing_list_line, $ARGS[1], 'newclo', i)
  91. i += 1
  92. !! NOTE: 131 is the school uniform and is handled separately
  93. if i <= 130:jump 'loopnewclo'
  94. if $ARGS[2] = 'brothel':
  95. ''
  96. '<b>Brothel clothing</b>'
  97. i = 1
  98. :loopero
  99. if $clothingworntype ! 'ero' or clothingwornnumber ! i:dyneval($clothing_list_line, $ARGS[1], 'ero', i)
  100. i += 1
  101. if i <= 18:jump 'loopero'
  102. end
  103. end
  104. if $ARGS[0] = 'view_clothing_item':
  105. !! ARGS 0 - view_clothing_item
  106. !! ARGS 1 = action type (wardrobe, shop, sell, resize)
  107. !! ARGS 2 - clothing type
  108. !! ARGS 3 - clothing index
  109. !! ARGS 4 - price for shop
  110. cla
  111. '<center><img src="' + FUNC('$clothing_image', $ARGS[2], ARGS[3]) + '"></center>'
  112. FUNC('$clothing_name', $ARGS[2], ARGS[3])
  113. if $ARGS[1] ! 'shop' and $ARGS[2] ! 'vatnik' and $ARGS[2] ! 'sforma' and $ARGS[2] ! 'ero':
  114. $RESULT = '(strength '
  115. dynamic '$RESULT += <<$ARGS[2]>>H[<<ARGS[3]>>]'
  116. if $ARGS[2] ! 'yoga' and $ARGS[2] ! 'sarafan':
  117. $RESULT += ', hip size '
  118. dynamic '$RESULT += <<$ARGS[2]>>B[<<ARGS[3]>>]'
  119. end
  120. $RESULT += ')'
  121. '<<$RESULT>>'
  122. end
  123. if $ARGS[1] = 'shop':
  124. if dyneval('RESULT = <<$ARGS[2]>>[<<ARGS[3]>>]') = 1:
  125. 'You already own this item.'
  126. else
  127. 'Price: <<ARGS[4]>>'
  128. act 'Leave': gt $loc, $metka
  129. if money >= ARGS[4]:
  130. act 'Buy':
  131. money -= ARGS[5]
  132. dynamic $ARGS[2] + '[<<ARGS[3]>>] = 1'
  133. if $ARGS[2] = 'yoga':
  134. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 80'
  135. elseif $ARGS[2] = 'odekis':
  136. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 100'
  137. elseif $ARGS[2] = 'dress':
  138. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 160'
  139. elseif $ARGS[2] = 'hooker':
  140. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 200'
  141. else
  142. dynamic $ARGS[2] + 'H[<<ARGS[3]>>] = 60'
  143. end
  144. dynamic $ARGS[2] + 'B[<<ARGS[3]>>] = bedra'
  145. gt $loc, $metka
  146. end
  147. end
  148. end
  149. elseif $ARGS[1] = 'wardrobe':
  150. act 'Leave in closet':gt 'clothing', 'view_clothing_list', $ARGS[1]
  151. if $ARGS[2] ! 'vatnik' and $ARGS[2] ! 'sforma' and $ARGS[2] ! 'ero':
  152. !! if the clothing is worn out
  153. if dyneval('RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]') <= 0:
  154. 'This item is worn and is not suitable for further wear.'
  155. exit
  156. end
  157. !! if the clothing is a type that checks for hip size
  158. if $ARGS[2] ! 'yoga' and $ARGS[2] ! 'sarafan':
  159. !! if the hipsize is too far from your hipsize
  160. dynamic 'RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]'
  161. if RESULT < bedra - 8:
  162. 'This item is too small for you to wear.'
  163. exit
  164. elseif RESULT > bedra + 8:
  165. 'This item is too large for you to wear.'
  166. exit
  167. end
  168. end
  169. end
  170. act 'Wear':gs 'clothing', 'wear', $ARGS[2], ARGS[3] & gt 'clothing', 'view_clothing_list', $ARGS[1]
  171. elseif $ARGS[1] = 'sell':
  172. act 'Keep item':gt 'clothing', 'view_clothing_list', $ARGS[1]
  173. !! value is based on the strength remaining
  174. dynamic 'RESULT = <<$ARGS[2]>>H[<<ARGS[3]>>]'
  175. if RESULT > 45:
  176. 'You can sell this item for 500 rubles.'
  177. act 'Sell':
  178. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  179. money += 500
  180. gt 'clothing', 'view_clothing_list', $ARGS[1]
  181. end
  182. elseif RESULT > 30:
  183. 'You can sell this item for 300 rubles.'
  184. act 'Sell':
  185. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  186. money += 300
  187. gt 'clothing', 'view_clothing_list', $ARGS[1]
  188. end
  189. elseif RESULT > 0:
  190. 'You can sell this item for 100 rubles.'
  191. act 'Sell':
  192. dynamic '<<$ARGS[2]>>[<<ARGS[3]>>] = 0'
  193. money += 100
  194. gt 'clothing', 'view_clothing_list', $ARGS[1]
  195. end
  196. else
  197. 'This item is too worn to have any sale value.'
  198. end
  199. elseif $ARGS[1] = 'resize':
  200. act 'Leave item alone':gt 'clothing', 'view_clothing_list', $ARGS[1]
  201. if $ARGS[2] ! 'vatnik' and $ARGS[2] ! 'sforma' and $ARGS[2] ! 'yoga' and $ARGS[2] ! 'sarafan':
  202. if dyneval('RESULT = <<$ARGS[2]>>B[<<ARGS[3]>>]') ! bedra and money >= 500:
  203. 'You can have this resized for 500 rubles.'
  204. act 'Resize':
  205. money -= 500
  206. dynamic '<<$ARGS[2]>>B[<<ARGS[3]>>] = bedra'
  207. gt 'clothing', 'view_clothing_list', $ARGS[1]
  208. end
  209. end
  210. end
  211. end
  212. end
  213. if $ARGS[0] = 'strip':
  214. if cumfrot > 0:cumfrot = 0
  215. $lastwornclothingtype = $clothingworntype
  216. lastwornclothingnumber = clothingwornnumber
  217. $clothingworntype = 'nude'
  218. clothingwornnumber = 0
  219. glamur = 0
  220. sport = 0
  221. ski = 0
  222. ofclo = 0
  223. sexual = 0
  224. odevnesh = 0
  225. end
  226. if $ARGS[0] = 'wear':
  227. !! ARGS 0 - action
  228. !! ARGS 1 - clothing type name
  229. !! ARGS 2 - clothing index
  230. gs 'clothing', 'strip'
  231. $clothingworntype = $ARGS[1]
  232. clothingwornnumber = ARGS[2]
  233. if $clothingworntype = 'vatnik':
  234. odevnesh = -10
  235. elseif $clothingworntype = 'sforma':
  236. sexual = 1
  237. odevnesh = 5
  238. elseif $clothingworntype = 'jeans':
  239. odevnesh = 1
  240. elseif $clothingworntype = 'yoga':
  241. sport = 1
  242. odevnesh = 1
  243. elseif $clothingworntype = 'sarafan':
  244. ski = 1
  245. odevnesh = 1
  246. elseif $clothingworntype = 'short':
  247. odevnesh = 2
  248. elseif $clothingworntype = 'skirt':
  249. ski = 1
  250. odevnesh = 5
  251. elseif $clothingworntype = 'dress':
  252. glamur = 1
  253. odevnesh = 10
  254. elseif $clothingworntype = 'profi':
  255. ofclo = 1
  256. odevnesh = 5
  257. elseif $clothingworntype = 'pants':
  258. odevnesh = 3
  259. elseif $clothingworntype = 'latex':
  260. odevnesh = 1
  261. elseif $clothingworntype = 'hooker':
  262. odevnesh = 1
  263. elseif $clothingworntype = 'odekis':
  264. glamur = 1
  265. sexual = 1
  266. odevnesh = 5
  267. elseif $clothingworntype = 'newclo':
  268. sexual = 1
  269. odevnesh = 5
  270. if clothingwornnumber < 90:ski = 1
  271. elseif $clothingworntype = 'ero':
  272. odevnesh = 10
  273. end
  274. end
  275. if $ARGS[0] = 'wear_last_worn':
  276. gs 'clothing', $lastwornclothingtype, lastwornclothingnumber
  277. end
  278. --- clothing -------------