bras.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  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. '<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>'
  30. if $braworntype ! 'none':act 'Remove bra':gs 'bras', 'remove' & gt 'bras', 'view_bra_list', $ARGS[1]
  31. if $ARGS[1] = 'store':
  32. cloc = 1
  33. end
  34. '<center><img src="images/locations/city/citycenter/mall/gm.png"></center>'
  35. i = 1
  36. :loopcheapbras
  37. if cheap_brasS[i] = metka_bras and cheap_bras[i] = 1:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''cheap'', <<i>>"><img src="images/pc/bras/basic/<<i>>.jpg" height="150" /></a>'
  38. i += 1
  39. if i <= ARRSIZE('cheap_bras'):jump 'loopcheapbras'
  40. '<center><img src="images/locations/city/citycenter/mall/Lusso.png"></center>'
  41. i = 1
  42. :loopboutiquebras
  43. if boutique_brasS[i] = metka_bras and boutique_bras[i] = 1:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''boutique'', <<i>>"><img src="images/pc/bras/boutique/<<i>>.jpg" height="150" /></a>'
  44. i += 1
  45. if i <= ARRSIZE('boutique_bras'):jump 'loopboutiquebras'
  46. '<center><img src="images/locations/pushkin/exhibitshop/shop_name.png"></center>'
  47. i = 1
  48. :loopexhibitionistbras
  49. if exhibitionist_brasS[i] = metka_bras and exhibitionist_bras[i] = 1:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''exhibitionist'', <<i>>"><img src="images/pc/bras/exhibitionist/<<i>>.jpg" height="150" /></a>'
  50. i += 1
  51. if i <= ARRSIZE('exhibitionist_bras'):jump 'loopexhibitionistbras'
  52. '<center><img src="images/locations/city/citycenter/mall/fashionista.png"></center>'
  53. i = 1
  54. :loopfashionistabras
  55. if fashionista_brasS[i] = metka_bras and fashionista_bras[i] = 1:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''fashionista'', <<i>>"><img src="images/pc/bras/fashionista/<<i>>.jpg" height="150" /></a>'
  56. i += 1
  57. if i <= ARRSIZE('fashionista_bras'):jump 'loopfashionistabras'
  58. '<center><img src="images/locations/city/citycenter/mall/pussycat.png"></center>'
  59. i = 1
  60. :loopcatsbras
  61. if cats_brasS[i] = metka_bras and cats_bras[i] = 1:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''cats'', <<i>>"><img src="images/pc/bras/kats/<<i>>.jpg" height="150" /></a>'
  62. i += 1
  63. if i <= ARRSIZE('cats_bras'):jump 'loopcatsbras'
  64. '<center><img src="images/locations/city/redlight/erotomaniac/shop_name.png"></center>'
  65. i = 1
  66. :loopsexshopbras
  67. if sexshop_brasS[i] = metka_bras and sexshop_bras[i] = 1:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''sexshop'', <<i>>"><img src="images/pc/bras/sexshop/<<i>>.jpg" height="150" /></a>'
  68. i += 1
  69. if i <= ARRSIZE('sexshop_bras'):jump 'loopsexshopbras'
  70. '<center><img src="images/locations/city/citycenter/mall/sports.png"></center>'
  71. i = 1
  72. :loopsportbras
  73. if sport_brasS[i] = metka_bras and sport_bras[i] = 1:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''sport'', <<i>>"><img src="images/pc/bras/sport/<<i>>.jpg" height="150" /></a>'
  74. i += 1
  75. if i <= ARRSIZE('sport_bras'):jump 'loopsportbras'
  76. end
  77. if $ARGS[0] = 'view_bra_item':
  78. !! ARGS 0 - view_bra_item
  79. !! ARGS 1 = action type (wardrobe, bathroom, shop)
  80. !! ARGS 2 - bra type
  81. !! ARGS 3 - bra index
  82. !! ARGS 4 - price for shop
  83. cla
  84. '<center><img src="<<FUNC(''$bra_image'', $ARGS[2], ARGS[3])>>"></center>'
  85. gs 'underwear_attributes', $ARGS[2]+'_bras', ARGS[3]
  86. !! $RESULT = FUNC('$short_description', $ARGS[2], CloStyle2)
  87. !! $RESULT += '<<ARGS[3]>>'
  88. !! '<<$RESULT>>'
  89. if BraQuality > 0:
  90. gs 'underwear_descriptions', 'bras'
  91. 'This bra forms a set with panty #<<underwear[''pair'']>>.'
  92. else
  93. gs 'bras', 'descriptions', $ARGS[2]
  94. end
  95. if $ARGS[1] = 'shop':
  96. if dyneval('RESULT = <<$ARGS[2]>>_bras[<<ARGS[3]>>]') = 1:
  97. 'You already own this item.'
  98. act 'Leave': gt $loc, $loc_arg
  99. else
  100. price = ARGS[4]
  101. 'Price: <<ARGS[4]>> <b>₽</b>'
  102. act 'Leave': gt $loc, $loc_arg
  103. if money >= price:
  104. act 'Buy (cash)':
  105. money -= price
  106. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  107. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  108. gt $loc, $loc_arg
  109. end
  110. else
  111. 'You do not have enough cash to buy this bra.'
  112. end
  113. if karta + bankDebtLimit >= price:
  114. act 'Buy (card)':
  115. karta -= price
  116. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  117. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  118. gt $loc, $loc_arg
  119. end
  120. else
  121. 'You do not have enough money in your bank to buy this bra.'
  122. end
  123. if underwear['pair'] > 0:
  124. if dyneval('RESULT = <<$ARGS[2]>>_panties[<<underwear[''pair'']>>]') = 1:
  125. 'You own the matching panties buying this bra will complete the set.'
  126. else
  127. 'You do not own the matching panties, you can buy this bra and them as a set.'
  128. price_set = ARGS[4]*18/10
  129. 'Price for set: <<price_set>> <b>₽</b>'
  130. if money >= price_set:
  131. act 'Buy set (cash)':
  132. money -= price_set
  133. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  134. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  135. dynamic $ARGS[2] + '_panties[<<underwear[''pair'']>>] = 1'
  136. dynamic $ARGS[2] + '_pantiesS[<<underwear[''pair'']>>] = 0'
  137. gt $loc, $loc_arg
  138. end
  139. else
  140. 'You do not have enough cash to buy this set.'
  141. end
  142. if karta + bankDebtLimit >= price_set:
  143. act 'Buy set (card)':
  144. karta -= price_set
  145. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  146. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  147. dynamic $ARGS[2] + '_panties[<<underwear[''pair'']>>] = 1'
  148. dynamic $ARGS[2] + '_pantiesS[<<underwear[''pair'']>>] = 0'
  149. gt $loc, $loc_arg
  150. end
  151. else
  152. 'You do not have enough money in your bank to buy this set.'
  153. end
  154. end
  155. end
  156. end
  157. else
  158. act 'Return':gt 'bras', 'view_bra_list', $ARGS[1]
  159. if $ARGS[1] = 'store':
  160. 'This bra is in storage.'
  161. gs 'bras', 'storage_options'
  162. elseif $ARGS[1] = 'unwanted':
  163. 'This bra is unwanted.'
  164. gs 'bras', 'storage_options'
  165. else
  166. if $braworntype = $ARGS[2] and brawornnumber = ARGS[3]:
  167. 'You are wearing this bra.'
  168. else
  169. if metka_bras = 0:
  170. act 'Wear':
  171. if CloBra = 1:
  172. msg'You cannot wear a bra with this top'
  173. else
  174. if hypnoBra > 0:
  175. cla
  176. *clr
  177. 'You pick up the bra and think about trying them on... but you don''t really like wearing bras.'
  178. gs 'willpower', 'misc', 'resist', 'easy'
  179. will_cost += hypnoTime
  180. if will_cost <= pcs_willpwr:
  181. act 'Put them on anyways (<<will_cost>> Willpower)':
  182. gs 'willpower', 'pay', 'resist'
  183. gs 'stat'
  184. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  185. if $ARGS[1] = 'wardrobe':
  186. gt 'wardrobe', 'main'
  187. else
  188. gt $loc, $loc_arg
  189. end
  190. end
  191. else
  192. 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>'
  193. end
  194. act 'Back':
  195. gt 'wardrobe', 'main'
  196. end
  197. else
  198. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  199. if $ARGS[1] = 'wardrobe':
  200. gt 'wardrobe', 'main'
  201. else
  202. gt $loc, $loc_arg
  203. end
  204. end
  205. end
  206. end
  207. if underwear['pair'] > 0:
  208. if dyneval('RESULT = <<$ARGS[2]>>_panties[<<underwear[''pair'']>>]') = 1:
  209. 'You own these panties and can wear this set.'
  210. act 'Wear set':
  211. if CloBra = 1:
  212. msg'You cannot wear a bra with this top'
  213. elseif CloPanties = 1:
  214. msg'You cannot wear a panties with this outfit'
  215. else
  216. if hypnoBra > 0 and hypnoPanty > 0:
  217. cla
  218. *clr
  219. 'You pick up the bra and panties and think about trying them on... but you don''t really like wearing underwear.'
  220. gs 'willpower', 'misc', 'resist'
  221. will_cost += hypnoTime
  222. if will_cost <= pcs_willpwr:
  223. act 'Wear it anyway anyways (<<will_cost>> Willpower)':
  224. gs 'willpower', 'pay', 'resist'
  225. gs 'stat'
  226. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  227. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  228. if $ARGS[1] = 'wardrobe':
  229. gt 'wardrobe', 'main'
  230. else
  231. gt $loc, $loc_arg
  232. end
  233. end
  234. else
  235. 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>'
  236. end
  237. act 'Back':
  238. gt 'wardrobe', 'main'
  239. end
  240. elseif hypnoBra > 0:
  241. cla
  242. *clr
  243. 'You pick up the bra and think about trying them on... but you don''t really like wearing bras.'
  244. gs 'willpower', 'misc', 'resist', 'easy'
  245. will_cost += hypnoTime
  246. if will_cost <= pcs_willpwr:
  247. act 'Put them on anyways (<<will_cost>> Willpower)':
  248. gs 'willpower', 'pay', 'resist'
  249. gs 'stat'
  250. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  251. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  252. if $ARGS[1] = 'wardrobe':
  253. gt 'wardrobe', 'main'
  254. else
  255. gt $loc, $loc_arg
  256. end
  257. end
  258. else
  259. 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>'
  260. end
  261. act 'Back':
  262. gt 'wardrobe', 'main'
  263. end
  264. elseif hypnoPanty > 0:
  265. cla
  266. *clr
  267. 'You pick up the panties and think about trying them on... but you don''t really like wearing panties.'
  268. gs 'willpower', 'misc', 'resist', 'easy'
  269. will_cost += hypnoTime
  270. if will_cost <= pcs_willpwr:
  271. act 'Put them on anyways (<<will_cost>> Willpower)':
  272. gs 'willpower', 'pay', 'resist'
  273. gs 'stat'
  274. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  275. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  276. if $ARGS[1] = 'wardrobe':
  277. gt 'wardrobe', 'main'
  278. else
  279. gt $loc, $loc_arg
  280. end
  281. end
  282. else
  283. 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>'
  284. end
  285. act 'Back':
  286. gt 'wardrobe', 'main'
  287. end
  288. else
  289. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  290. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  291. if $ARGS[1] = 'wardrobe':
  292. gt 'wardrobe', 'main'
  293. else
  294. gt $loc, $loc_arg
  295. end
  296. end
  297. end
  298. end
  299. else
  300. 'You do not own the matching panties to make this set.'
  301. end
  302. end
  303. end
  304. end
  305. gs 'bras', 'storage_options'
  306. end
  307. end
  308. end
  309. if $ARGS[0] = 'storage_options':
  310. if $ARGS[1] ! 'store':
  311. act 'Move to storage': gt 'bras', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  312. end
  313. if $ARGS[1] ! 'unwanted':
  314. act 'Move to unwanted': gt 'bras', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  315. end
  316. if $ARGS[1] ! 'wardrobe':
  317. act 'Move to wardrobe': gt 'bras', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  318. end
  319. act '<font color="red">Throw this bra away</font>':
  320. dynamic '<<$ARGS[2]>>_bras[<<ARGS[3]>>] = 0'
  321. gt 'wardrobe', 'main'
  322. end
  323. end
  324. if $ARGS[0] = 'dest0':
  325. *clr
  326. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 0'
  327. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  328. end
  329. if $ARGS[0] = 'dest1':
  330. *clr
  331. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 1'
  332. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  333. end
  334. if $ARGS[0] = 'dest2':
  335. *clr
  336. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 2'
  337. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  338. end
  339. if $ARGS[0] = 'descriptions':
  340. if $ARGS[1] = 'cheap':
  341. 'Cheap bra with no redeeming features.'
  342. elseif $ARGS[1] = 'boutique':
  343. 'This bra is so beautifully made that your posture and confidence is improved wearing it boosting your appearance even when fully clothed.'
  344. elseif $ARGS[1] = 'exhibitionist':
  345. 'This bra is so revealing that it is more exciting than not wearing one and you''ll always feel horny wearing it.'
  346. elseif $ARGS[1] = 'fashionista':
  347. 'This bra is well made improving your posture and confidence and slightly boosting your appearance even when fully clothed.'
  348. elseif $ARGS[1] = 'cats':
  349. 'This bra feels reassuring and wear it gives your mood a lift.'
  350. elseif $ARGS[1] = 'sexshop':
  351. 'Tacky and cheap this bra makes you look like a hooker, this could be a bonus if working as one.'
  352. elseif $ARGS[1] = 'sport':
  353. 'This bra is designed for physical exercises to make them less tiring.'
  354. end
  355. end
  356. if $ARGS[0] = 'sum':
  357. $t[0] = 'boutique'
  358. $t[1] = 'cats'
  359. $t[2] = 'exhibitionist'
  360. $t[3] = 'fashionista'
  361. $t[4] = 'cheap'
  362. $t[5] = 'sexshop'
  363. $t[6] = 'sport'
  364. result = 0
  365. i = 0
  366. :loopsumbras_i
  367. $temp = $t[i]
  368. j = 1
  369. :loopsumbras_j
  370. $temp1 = '<<$temp>>_bras[<<j>>]'
  371. $temp2 = '<<$temp>>_brasS[<<j>>]'
  372. dynamic 'if <<$temp1>> = 1 and <<$temp2>> = 0: result +=1'
  373. j += 1
  374. if j <= dyneval('result = arrsize(''<<$temp>>_bras'')') : jump 'loopsumbras_j'
  375. i += 1
  376. if i <= arrsize('$t'): jump 'loopsumbras_i'
  377. if $ARGS[1] = 'dresser': if $braworntype ! 'none' and result > 0: result -= 1
  378. killvar('t')
  379. killvar('temp')
  380. killvar('temp1')
  381. killvar('temp2')
  382. end
  383. if $ARGS[0] = 'dispose':
  384. if underwear['type'] = 2: gs 'underwear_bodysuits', 'dispose'
  385. dynamic $braworntype + '_bras[<<lastwornbranumber>>] = 0'
  386. $lastwornbratype = 'none'
  387. lastwornbranumber = 0
  388. $braworntype = 'none'
  389. brawornnumber = 0
  390. end
  391. if $ARGS[0] = 'remove':
  392. if underwear['type'] = 2: gs 'underwear_bodysuits', 'remove'
  393. $lastwornbratype = $braworntype
  394. lastwornbranumber = brawornnumber
  395. $braworntype = 'none'
  396. brawornnumber = 0
  397. underwear['lastworntype'] = 0
  398. end
  399. if $ARGS[0] = 'wear':
  400. if $ARGS[1] = '':
  401. if dyneval('RESULT = <<$lastwornbratype>>_brasS[<<lastwornbranumber>>]') = 0 and $lastwornbratype ! '' and underwear['lastworntype'] ! 2:
  402. gs 'bras', 'wear2', $lastwornbratype, lastwornbranumber
  403. else
  404. $braworntype = 'none'
  405. brawornnumber = 0
  406. end
  407. else
  408. if dyneval('RESULT = <<$ARGS[1]>>_brasS[<<ARGS[2]>>]') = 0:
  409. gs 'bras', 'wear2', $ARGS[1], ARGS[2]
  410. else
  411. $braworntype = 'none'
  412. brawornnumber = 0
  413. end
  414. end
  415. end
  416. if $ARGS[0] = 'wear2':
  417. !! ARGS 0 - action
  418. !! ARGS 1 - bras type name
  419. !! ARGS 2 - bras index
  420. !! removing bra or bodysuit if worn
  421. if underwear['type'] = 0:
  422. gs 'bras', 'remove'
  423. else
  424. gs 'underwear_bodysuits', 'remove'
  425. end
  426. underwear['type'] = 0
  427. $braworntype = $ARGS[1]
  428. brawornnumber = ARGS[2]
  429. dynamic $ARGS[1] + '_w[<<ARGS[2]>>] = 1'
  430. gs 'underwear_attributes', $ARGS[1], ARGS[2]
  431. dynamic '<<$ARGS[1]>>_s[<<ARGS[2]>>] = 0'
  432. PBraMaterial = BraMaterial
  433. PBraType = BraType
  434. PBraFun = BraFun
  435. PBraQuality = BraQuality
  436. PBraThinness = BraThinness
  437. PBraCover = BraCover
  438. end
  439. if $ARGS[0] = 'wear_last_worn':
  440. !!contingency
  441. if $lastwornbratype = '': $lastwornbratype = 'none'
  442. gs 'bras', 'wear', $lastwornbratype, lastwornbranumber
  443. end
  444. --- bras ---------------------------------