bras.qsrc 23 KB

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