bras.qsrc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. # bras
  2. !!This is separate bras file and that means underwear['type'] = 0
  3. !!2021/04/15
  4. !!gs 'bras', 'dispose'
  5. !!gs 'bras', 'remove'
  6. !!gs 'bras', 'wear'
  7. menu_off = 1
  8. if $ARGS[0] = 'totals':
  9. if $ARGS[1] = 'gm_bras':
  10. total = 19
  11. elseif $ARGS[1] = 'fashionista_bras':
  12. total = 42
  13. elseif $ARGS[1] = 'pussycats_bras':
  14. total = 41
  15. elseif $ARGS[1] = 'danilovich_bras':
  16. total = 8
  17. elseif $ARGS[1] = 'eroto_bras':
  18. total = 27
  19. elseif $ARGS[1] = 'salacious_bras':
  20. total = 37
  21. elseif $ARGS[1] = 'lusso_bras':
  22. total = 33
  23. end
  24. end
  25. if $ARGS[0] = 'view_bra_list':
  26. !! ARGS 0 - view_bra_list
  27. !! ARGS 1 - action type (draw, store, unwanted)
  28. if $pursepantytype ! '' or $pursebratype ! '':
  29. '<center><b>You put the '+iif($pursepantytype ! '','panties','')+iif($pursepantytype ! '' and $pursebratype ! '',' and ','')+iif($pursebratype ! '','bra','')+' from your purse back in the wardrobe.</b></center><br>'
  30. killvar '$pursepantytype' & killvar 'pursepantynumber'
  31. killvar '$pursebratype' & killvar 'pursebranumber'
  32. end
  33. if $ARGS[1] ! 'bathroom':
  34. act 'Return': gt 'wardrobe', 'main'
  35. else
  36. act 'Return': gt $loc, $loc_arg
  37. end
  38. if $ARGS[1] = 'wardrobe':
  39. metka_bras = 0
  40. end
  41. if $ARGS[1] = 'store':
  42. metka_bras = 1
  43. end
  44. if $ARGS[1] = 'unwanted':
  45. metka_bras = 2
  46. end
  47. gs 'bras', 'filter_header'
  48. '<center><table border=1><TH><a href="exec:gt ''bras'', ''view_bra_list'', ''wardrobe''">Draw</a></TH><TH><a href="exec:gt ''bras'', ''view_bra_list'', ''store''">Storage</a></TH><TH><a href="exec:gt ''bras'', ''view_bra_list'', ''unwanted''">Unwanted</a></TH></table></center>'
  49. if $braworntype ! 'none':act 'Remove bra':gs 'bras', 'remove' & gt 'bras', 'view_bra_list', $ARGS[1]
  50. if $ARGS[1] = 'store':
  51. cloc = 1
  52. end
  53. if ARRSIZE('gm_bras') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/gm.png"></center>'
  54. !!To filter just this set
  55. clo_i = 0
  56. :loopbraquality_filter
  57. !! default bra
  58. gs 'underwear_attributes', 'gm_bras', 1
  59. gs 'bras', 'bra_filter'
  60. !!sort by filter
  61. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  62. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  63. *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''gm'', 1"><img src="images/pc/items/gm/bras/1.jpg" height="150" /></a>'
  64. end
  65. end
  66. i = 2
  67. :loopgmbras
  68. if gm_brasS[i] = metka_bras and gm_bras[i] = 1:
  69. gs 'underwear_attributes', 'gm_bras', i
  70. gs 'bras', 'bra_filter'
  71. !!sort by filter
  72. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  73. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  74. *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''gm'', <<i>>"><img src="images/pc/items/gm/bras/<<i>>.jpg" height="150" /></a>'
  75. end
  76. end
  77. end
  78. i += 1
  79. if i <= ARRSIZE('gm_bras'):jump 'loopgmbras'
  80. if ARRSIZE('lusso_bras') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/Lusso.png"></center>'
  81. i = 1
  82. :looplussobras
  83. if lusso_brasS[i] = metka_bras and lusso_bras[i] = 1:
  84. gs 'underwear_attributes', 'lusso_bras', i
  85. gs 'bras', 'bra_filter'
  86. !!sort by filter
  87. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  88. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  89. *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''lusso'', <<i>>"><img src="images/pc/items/lusso/bras/<<i>>.jpg" height="150" /></a>'
  90. end
  91. end
  92. end
  93. i += 1
  94. if i <= ARRSIZE('lusso_bras'):jump 'looplussobras'
  95. if ARRSIZE('salacious_bras') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/pushkin/exhibitshop/shop_name.png"></center>'
  96. i = 1
  97. :loopsalaciousbras
  98. if salacious_brasS[i] = metka_bras and salacious_bras[i] = 1:
  99. gs 'underwear_attributes', 'salacious_bras', i
  100. gs 'bras', 'bra_filter'
  101. !!sort by filter
  102. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  103. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  104. *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''salacious'', <<i>>"><img src="images/pc/items/salacious/bras/<<i>>.jpg" height="150" /></a>'
  105. end
  106. end
  107. end
  108. i += 1
  109. if i <= ARRSIZE('salacious_bras'):jump 'loopsalaciousbras'
  110. if ARRSIZE('fashionista_bras') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/fashionista.png"></center>'
  111. i = 1
  112. :loopfashionistabras
  113. if fashionista_brasS[i] = metka_bras and fashionista_bras[i] = 1:
  114. gs 'underwear_attributes', 'fashionista_bras', i
  115. gs 'bras', 'bra_filter'
  116. !!sort by filter
  117. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  118. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  119. *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''fashionista'', <<i>>"><img src="images/pc/items/fashionista/bras/<<i>>.jpg" height="150" /></a>'
  120. end
  121. end
  122. end
  123. i += 1
  124. if i <= ARRSIZE('fashionista_bras'):jump 'loopfashionistabras'
  125. if ARRSIZE('cats_bras') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/pussycat.png"></center>'
  126. !!To filter just this set
  127. i = 1
  128. :loopcatsbras
  129. if cats_brasS[i] = metka_bras and cats_bras[i] = 1:
  130. gs 'underwear_attributes', 'cats_bras', i
  131. gs 'bras', 'bra_filter'
  132. !!sort by filter
  133. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  134. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  135. *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''cats'', <<i>>"><img src="images/pc/items/cats/bras/<<i>>.jpg" height="150" /></a>'
  136. end
  137. end
  138. end
  139. i += 1
  140. if i <= ARRSIZE('cats_bras'):jump 'loopcatsbras'
  141. if ARRSIZE('eroto_bras') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/redlight/erotomaniac/shop_name.png"></center>'
  142. i = 1
  143. :looperotobras
  144. if eroto_brasS[i] = metka_bras and eroto_bras[i] = 1:
  145. gs 'underwear_attributes', 'eroto_bras', i
  146. gs 'bras', 'bra_filter'
  147. !!sort by filter
  148. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  149. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  150. *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''eroto'', <<i>>"><img src="images/pc/items/eroto/bras/<<i>>.jpg" height="150" /></a>'
  151. end
  152. end
  153. end
  154. i += 1
  155. if i <= ARRSIZE('eroto_bras'):jump 'looperotobras'
  156. if ARRSIZE('danilovich_bras') > 0 and clothingfilter['quality'] = 1:'<center><img src="images/locations/city/citycenter/mall/sports.png"></center>'
  157. i = 1
  158. :loopdanilovichbras
  159. if danilovich_brasS[i] = metka_bras and danilovich_bras[i] = 1:
  160. gs 'underwear_attributes', 'danilovich_bras', i
  161. gs 'bras', 'bra_filter'
  162. !!sort by filter
  163. if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
  164. if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
  165. *p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''danilovich'', <<i>>"><img src="images/pc/items/danilovich/bras/<<i>>.jpg" height="150" /></a>'
  166. end
  167. end
  168. end
  169. i += 1
  170. if i <= ARRSIZE('danilovich_bras'):jump 'loopdanilovichbras'
  171. clo_i += 1
  172. if clothingfilter['quality'] = 0 and clo_i <= 7:
  173. jump 'loopbraquality_filter'
  174. end
  175. end
  176. if $ARGS[0] = 'view_bra_item':
  177. !! ARGS 0 - view_bra_item
  178. !! ARGS 1 = action type (wardrobe, bathroom, shop)
  179. !! ARGS 2 - bra type
  180. !! ARGS 3 - bra index
  181. !! ARGS 4 - price for shop
  182. cla
  183. '<center><img src="<<FUNC(''$bra_image'', $ARGS[2], ARGS[3])>>"></center>'
  184. gs 'underwear_attributes', $ARGS[2]+'_bras', ARGS[3]
  185. !! $RESULT = FUNC('$short_description', $ARGS[2], CloStyle2)
  186. !! $RESULT += '<<ARGS[3]>>'
  187. !! '<<$RESULT>>'
  188. gs 'underwear_descriptions', 'bras'
  189. if underwear['pair'] > 0: 'This bra forms a set with panty #<<underwear[''pair'']>>.'
  190. if $ARGS[1] = 'shop':
  191. if dyneval('RESULT = <<$ARGS[2]>>_bras[<<ARGS[3]>>]') = 1:
  192. 'You already own this item.'
  193. act 'Leave': gt $loc, $loc_arg
  194. else
  195. price = ARGS[4]
  196. 'Price: <<ARGS[4]>> <b>₽</b>'
  197. act 'Leave': gt $loc, $loc_arg
  198. if money >= price:
  199. act 'Buy (cash)':
  200. money -= price
  201. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  202. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  203. gt $loc, $loc_arg
  204. end
  205. else
  206. 'You do not have enough cash to buy this bra.'
  207. end
  208. if karta >= price:
  209. act 'Buy (card)':
  210. karta -= price
  211. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  212. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  213. gt $loc, $loc_arg
  214. end
  215. else
  216. 'You do not have enough money in your bank to buy this bra.'
  217. end
  218. if underwear['pair'] > 0:
  219. if dyneval('RESULT = <<$ARGS[2]>>_panties[<<underwear[''pair'']>>]') = 1:
  220. 'You own the matching panties buying this bra will complete the set.'
  221. else
  222. 'You do not own the matching panties, you can buy this bra and them as a set.'
  223. price_set = ARGS[4]*18/10
  224. 'Price for set: <<price_set>> <b>₽</b>'
  225. if money >= price_set:
  226. act 'Buy set (cash)':
  227. money -= price_set
  228. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  229. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  230. dynamic $ARGS[2] + '_panties[<<underwear[''pair'']>>] = 1'
  231. dynamic $ARGS[2] + '_pantiesS[<<underwear[''pair'']>>] = 0'
  232. gt $loc, $loc_arg
  233. end
  234. else
  235. 'You do not have enough cash to buy this set.'
  236. end
  237. if karta >= price_set:
  238. act 'Buy set (card)':
  239. karta -= price_set
  240. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  241. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  242. dynamic $ARGS[2] + '_panties[<<underwear[''pair'']>>] = 1'
  243. dynamic $ARGS[2] + '_pantiesS[<<underwear[''pair'']>>] = 0'
  244. gt $loc, $loc_arg
  245. end
  246. else
  247. 'You do not have enough money in your bank to buy this set.'
  248. end
  249. end
  250. end
  251. end
  252. else
  253. act 'Return':gt 'bras', 'view_bra_list', $ARGS[1]
  254. if $ARGS[1] = 'store':
  255. 'This bra is in storage.'
  256. gs 'bras', 'storage_options'
  257. elseif $ARGS[1] = 'unwanted':
  258. 'This bra is unwanted.'
  259. gs 'bras', 'storage_options'
  260. else
  261. if $braworntype = $ARGS[2] and brawornnumber = ARGS[3]:
  262. 'You are wearing this bra.'
  263. else
  264. if metka_bras = 0:
  265. act 'Wear':
  266. if CloBra = 1:
  267. msg'You cannot wear a bra with this top'
  268. else
  269. if hypnoBra > 0:
  270. cla
  271. *clr
  272. 'You pick up the bra and think about trying them on... but you don''t really like wearing bras.'
  273. gs 'willpower', 'misc', 'resist', 'easy'
  274. will_cost += hypnoTime
  275. if will_cost <= pcs_willpwr:
  276. act 'Put them on anyways (<<will_cost>> Willpower)':
  277. gs 'willpower', 'pay', 'resist'
  278. gs 'stat'
  279. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  280. if $ARGS[1] = 'wardrobe':
  281. gt 'wardrobe', 'main'
  282. else
  283. gt $loc, $loc_arg
  284. end
  285. end
  286. else
  287. act 'Put them on anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  288. end
  289. act 'Back':
  290. gt 'wardrobe', 'main'
  291. end
  292. else
  293. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  294. if $ARGS[1] = 'wardrobe':
  295. gt 'wardrobe', 'main'
  296. else
  297. gt $loc, $loc_arg
  298. end
  299. end
  300. end
  301. end
  302. if underwear['pair'] > 0:
  303. if dyneval('RESULT = <<$ARGS[2]>>_panties[<<underwear[''pair'']>>]') = 1:
  304. 'You own these panties and can wear this set.'
  305. act 'Wear set':
  306. if PCloBra = 1:
  307. msg'You cannot wear a bra with this top'
  308. elseif PCloPanties = 1:
  309. msg'You cannot wear a panties with this outfit'
  310. else
  311. if hypnoBra > 0 and hypnoPanty > 0:
  312. cla
  313. *clr
  314. 'You pick up the bra and panties and think about trying them on... but you don''t really like wearing underwear.'
  315. gs 'willpower', 'misc', 'resist'
  316. will_cost += hypnoTime
  317. if will_cost <= pcs_willpwr:
  318. act 'Wear it anyway anyways (<<will_cost>> Willpower)':
  319. gs 'willpower', 'pay', 'resist'
  320. gs 'stat'
  321. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  322. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  323. if $ARGS[1] = 'wardrobe':
  324. gt 'wardrobe', 'main'
  325. else
  326. gt $loc, $loc_arg
  327. end
  328. end
  329. else
  330. act 'Wear it anyway anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  331. end
  332. act 'Back':
  333. gt 'wardrobe', 'main'
  334. end
  335. elseif hypnoBra > 0:
  336. cla
  337. *clr
  338. 'You pick up the bra and think about trying them on... but you don''t really like wearing bras.'
  339. gs 'willpower', 'misc', 'resist', 'easy'
  340. will_cost += hypnoTime
  341. if will_cost <= pcs_willpwr:
  342. act 'Put them on anyways (<<will_cost>> Willpower)':
  343. gs 'willpower', 'pay', 'resist'
  344. gs 'stat'
  345. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  346. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  347. if $ARGS[1] = 'wardrobe':
  348. gt 'wardrobe', 'main'
  349. else
  350. gt $loc, $loc_arg
  351. end
  352. end
  353. else
  354. act 'Put them on anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  355. end
  356. act 'Back':
  357. gt 'wardrobe', 'main'
  358. end
  359. elseif hypnoPanty > 0:
  360. cla
  361. *clr
  362. 'You pick up the panties and think about trying them on... but you don''t really like wearing panties.'
  363. gs 'willpower', 'misc', 'resist', 'easy'
  364. will_cost += hypnoTime
  365. if will_cost <= pcs_willpwr:
  366. act 'Put them on anyways (<<will_cost>> Willpower)':
  367. gs 'willpower', 'pay', 'resist'
  368. gs 'stat'
  369. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  370. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  371. if $ARGS[1] = 'wardrobe':
  372. gt 'wardrobe', 'main'
  373. else
  374. gt $loc, $loc_arg
  375. end
  376. end
  377. else
  378. act 'Put them on anyways (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  379. end
  380. act 'Back':
  381. gt 'wardrobe', 'main'
  382. end
  383. else
  384. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  385. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  386. if $ARGS[1] = 'wardrobe':
  387. gt 'wardrobe', 'main'
  388. else
  389. gt $loc, $loc_arg
  390. end
  391. end
  392. end
  393. end
  394. else
  395. 'You do not own the matching panties to make this set.'
  396. end
  397. end
  398. end
  399. end
  400. if $ARGS[2] ! 'gm' or ARGS[3] ! 1: gs 'bras', 'storage_options'
  401. end
  402. end
  403. end
  404. if $ARGS[0] = 'storage_options':
  405. if $ARGS[1] ! 'store':
  406. act 'Move to storage': gt 'bras', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  407. end
  408. if $ARGS[1] ! 'unwanted':
  409. act 'Move to unwanted': gt 'bras', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  410. end
  411. if $ARGS[1] ! 'wardrobe':
  412. act 'Move to wardrobe': gt 'bras', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  413. end
  414. act '<font color="red">Throw this bra away</font>':
  415. dynamic '<<$ARGS[2]>>_bras[<<ARGS[3]>>] = 0'
  416. gt 'wardrobe', 'main'
  417. end
  418. end
  419. if $ARGS[0] = 'dest0':
  420. *clr
  421. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 0'
  422. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  423. end
  424. if $ARGS[0] = 'dest1':
  425. *clr
  426. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 1'
  427. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  428. end
  429. if $ARGS[0] = 'dest2':
  430. *clr
  431. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 2'
  432. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  433. end
  434. if $ARGS[0] = 'sum':
  435. $t[0] = 'lusso'
  436. $t[1] = 'cats'
  437. $t[2] = 'salacious'
  438. $t[3] = 'fashionista'
  439. $t[4] = 'gm'
  440. $t[5] = 'eroto'
  441. $t[6] = 'danilovich'
  442. result = 0
  443. i = 0
  444. :loopsumbras_i
  445. $temp = $t[i]
  446. j = 1
  447. :loopsumbras_j
  448. $temp1 = '<<$temp>>_bras[<<j>>]'
  449. $temp2 = '<<$temp>>_brasS[<<j>>]'
  450. dynamic 'if <<$temp1>> = 1 and <<$temp2>> = 0: result +=1'
  451. j += 1
  452. if j <= dyneval('result = arrsize(''<<$temp>>_bras'')') : jump 'loopsumbras_j'
  453. i += 1
  454. if i <= arrsize('$t'): jump 'loopsumbras_i'
  455. if $ARGS[1] = 'dresser': if $braworntype ! 'none' and result > 0: result -= 1
  456. killvar('t')
  457. killvar('temp')
  458. killvar('temp1')
  459. killvar('temp2')
  460. end
  461. if $ARGS[0] = 'dispose':
  462. if underwear['type'] = 2: gs 'underwear_bodysuits', 'dispose'
  463. dynamic $braworntype + '_bras[<<brawornnumber>>] = 0'
  464. $lastwornbratype = 'none'
  465. lastwornbranumber = 0
  466. $braworntype = 'none'
  467. brawornnumber = 0
  468. PBraMaterial = 0
  469. PBraType = 0
  470. PBraFun = 0
  471. PBraQuality = 0
  472. PBraThinness = 0
  473. PBraCover = 4
  474. gs 'clothing', 'exposure_calc'
  475. end
  476. if $ARGS[0] = 'remove':
  477. if underwear['type'] = 2: gs 'underwear_bodysuits', 'remove'
  478. $lastwornbratype = $braworntype
  479. lastwornbranumber = brawornnumber
  480. $braworntype = 'none'
  481. brawornnumber = 0
  482. underwear['lastworntype'] = 0
  483. PBraMaterial = 0
  484. PBraType = 0
  485. PBraFun = 0
  486. PBraQuality = 0
  487. PBraThinness = 0
  488. PBraCover = 4
  489. gs 'clothing', 'exposure_calc'
  490. end
  491. if $ARGS[0] = 'wear':
  492. if $ARGS[1] = '':
  493. if dyneval('RESULT = <<$lastwornbratype>>_brasS[<<lastwornbranumber>>]') = 0 and $lastwornbratype ! '' and underwear['lastworntype'] ! 2:
  494. gs 'bras', 'wear2', $lastwornbratype, lastwornbranumber
  495. else
  496. $braworntype = 'none'
  497. brawornnumber = 0
  498. end
  499. else
  500. if dyneval('RESULT = <<$ARGS[1]>>_brasS[<<ARGS[2]>>]') = 0:
  501. gs 'bras', 'wear2', $ARGS[1], ARGS[2]
  502. else
  503. $braworntype = 'none'
  504. brawornnumber = 0
  505. end
  506. end
  507. end
  508. if $ARGS[0] = 'wear2':
  509. !! $ARGS 0 - action
  510. !! $ARGS 1 - bras type name
  511. !! ARGS 2 - bras index
  512. !! removing bra or bodysuit if worn
  513. if underwear['type'] = 0:
  514. gs 'bras', 'remove'
  515. else
  516. gs 'underwear_bodysuits', 'remove'
  517. end
  518. underwear['type'] = 0
  519. $braworntype = $ARGS[1]
  520. brawornnumber = ARGS[2]
  521. gs 'underwear_attributes', $ARGS[1] + '_bras', ARGS[2]
  522. dynamic '<<$ARGS[1]>>_brasS[<<ARGS[2]>>] = 0'
  523. PBraMaterial = BraMaterial
  524. PBraType = BraType
  525. PBraFun = BraFun
  526. PBraQuality = BraQuality
  527. PBraThinness = BraThinness
  528. PBraCover = BraCover
  529. gs 'clothing', 'exposure_calc'
  530. end
  531. if $ARGS[0] = 'wear_last_worn':
  532. !!contingency
  533. if $lastwornbratype = '': $lastwornbratype = 'none'
  534. gs 'bras', 'wear', $lastwornbratype, lastwornbranumber
  535. end
  536. if $ARGS[0] = 'filter_header':
  537. !!Exclude filters
  538. $Headerstring = '<TD>'
  539. if clothingfilter['sport'] = 0:
  540. $Headerstring += '<a href="exec:clothingfilter[''sport''] = 1 & clothingfilter[''sport_only''] = 0 & gt ''bras'', ''view_bra_list'', $ward_list_store"><img src="images/system/icons/clothing/sport.png"></a></TD>'
  541. else
  542. $Headerstring += '<a href="exec:clothingfilter[''sport''] = 0 & gt ''bras'', ''view_bra_list'', $ward_list_store"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
  543. end
  544. !!sort by filters
  545. $Headerstring += '<TD>'
  546. if clothingfilter['number'] = 0:
  547. clothingfilter['quality'] = 1 & clothingfilter['inhibition'] = 1
  548. $Headerstring += '<img src="images/system/icons/clothing/number.png"></TD>'
  549. else
  550. $Headerstring += '<a href="exec:clothingfilter[''number''] = 0 & clothingfilter[''quality''] = 1 & clothingfilter[''inhibition''] = 1 & gt ''bras'', ''view_bra_list'', $ward_list_store"><img src="images/system/icons/clothing/number_off.png"></a></TD>'
  551. end
  552. $Headerstring += '<TD>'
  553. if clothingfilter['quality'] = 0:
  554. $Headerstring += '<img src="images/system/icons/clothing/quality.png"></TD>'
  555. else
  556. $Headerstring += '<a href="exec:clothingfilter[''quality''] = 0 & clothingfilter[''number''] = 1 & clothingfilter[''inhibition''] = 1 & gt ''bras'', ''view_bra_list'', $ward_list_store"><img src="images/system/icons/clothing/quality_off.png"></a></TD>'
  557. end
  558. !! Show only filers
  559. $Headerstring[1] = '<TD>'
  560. if clothingfilter['sport_only'] = 0:
  561. $Headerstring[1] += '<a href="exec:clothingfilter[''sport_only''] = 1 & clothingfilter[''sport''] = 0 & gt ''bras'', ''view_bra_list'', $ward_list_store"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
  562. else
  563. $Headerstring[1] += '<a href="exec:clothingfilter[''sport_only''] = 0 & gt ''bras'', ''view_bra_list'', $ward_list_store"><img src="images/system/icons/clothing/sport.png"></a></TD>'
  564. end
  565. $Headerstring[2] = '<TH>Include</TH><TH>Sort by</TH><TH></TH>'
  566. $Headerstring[3] = '<TH>Only show</TH>'
  567. '<center><table><<$Headerstring[2]>>'
  568. '<TR><border=1><<$Headerstring>>'
  569. '<TR><border=0><<$Headerstring[3]>>'
  570. '<TR><border=1><<$Headerstring[1]>></table></center>'
  571. end
  572. if $ARGS[0] = 'bra_filter':
  573. !!Exclude filters
  574. clothingfilter['inc'] = 1
  575. !!filters, if inc set to 0 they will not display
  576. if clothingfilter['sport'] = 1 and BraFun = 2:
  577. clothingfilter['inc'] = 0
  578. end
  579. !!only filters
  580. clothingfilter['only'] = 0
  581. !!filters, if only set to 1 they will only display those set
  582. if clothingfilter['sport_only'] = 1 and BraFun = 2:
  583. clothingfilter['only'] = 1
  584. end
  585. if clothingfilter['only'] = clothingfilter['sport_only']:
  586. clothingfilter['only'] = 1
  587. else
  588. clothingfilter['only'] = 0
  589. end
  590. end
  591. if $ARGS[0] = 'shop_filter_header':
  592. !! sort by filters
  593. $Headerstring = '<TD>'
  594. if clothingfilter['number'] = 0:
  595. clothingfilter['quality'] = 1
  596. $Headerstring += '<img src="images/system/icons/clothing/number.png"></TD>'
  597. else
  598. $Headerstring += '<a href="exec:clothingfilter[''number''] = 0 & clothingfilter[''quality''] = 1 & clothingfilter[''inhibition''] = 1 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/number_off.png"></a></TD>'
  599. end
  600. $Headerstring += '<TD>'
  601. if clothingfilter['quality'] = 0:
  602. $Headerstring += '<img src="images/system/icons/clothing/quality.png"></TD>'
  603. else
  604. $Headerstring += '<a href="exec:clothingfilter[''quality''] = 0 & clothingfilter[''number''] = 1 & clothingfilter[''inhibition''] = 1 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/quality_off.png"></a></TD>'
  605. end
  606. $Headerstring[2] = '<TH>Sort by</TH>'
  607. '<center><table><<$Headerstring[2]>>'
  608. '<TR><border=1><<$Headerstring>></table></center>'
  609. end
  610. if $ARGS[0] = 'shop_filter':
  611. end
  612. --- bras ---------------------------------