bras.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  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. elseif $ARGS[1] = 'unwanted':
  162. 'This bra is unwanted.'
  163. else
  164. if $braworntype = $ARGS[2] and brawornnumber = ARGS[3]:
  165. 'You are wearing this bra.'
  166. else
  167. if metka_bras = 0:
  168. act 'Wear':
  169. if CloBra = 1:
  170. msg'You cannot wear a bra with this top'
  171. else
  172. if hypnoBra > 0:
  173. cla
  174. *clr
  175. 'You pick up the bra and think about trying them on... but you don''t really like wearing bras.'
  176. gs 'willpower', 'misc', 'resist', 'easy'
  177. will_cost += hypnoTime
  178. if will_cost <= pcs_willpwr:
  179. act 'Put them on anyways (<<will_cost>> Willpower)':
  180. gs 'willpower', 'pay', 'resist'
  181. gs 'stat'
  182. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  183. if $ARGS[1] = 'wardrobe':
  184. gt 'wardrobe', 'main'
  185. else
  186. gt $loc, $loc_arg
  187. end
  188. end
  189. else
  190. 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>'
  191. end
  192. act 'Back':
  193. gt 'wardrobe', 'main'
  194. end
  195. else
  196. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  197. if $ARGS[1] = 'wardrobe':
  198. gt 'wardrobe', 'main'
  199. else
  200. gt $loc, $loc_arg
  201. end
  202. end
  203. end
  204. end
  205. if underwear['pair'] > 0:
  206. if dyneval('RESULT = <<$ARGS[2]>>_panties[<<underwear[''pair'']>>]') = 1:
  207. 'You own these panties and can wear this set.'
  208. act 'Wear set':
  209. if CloBra = 1:
  210. msg'You cannot wear a bra with this top'
  211. elseif CloPanties = 1:
  212. msg'You cannot wear a panties with this outfit'
  213. else
  214. if hypnoBra > 0 and hypnoPanty > 0:
  215. cla
  216. *clr
  217. 'You pick up the bra and panties and think about trying them on... but you don''t really like wearing underwear.'
  218. gs 'willpower', 'misc', 'resist'
  219. will_cost += hypnoTime
  220. if will_cost <= pcs_willpwr:
  221. act 'Wear it anyway anyways (<<will_cost>> Willpower)':
  222. gs 'willpower', 'pay', 'resist'
  223. gs 'stat'
  224. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  225. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  226. if $ARGS[1] = 'wardrobe':
  227. gt 'wardrobe', 'main'
  228. else
  229. gt $loc, $loc_arg
  230. end
  231. end
  232. else
  233. 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>'
  234. end
  235. act 'Back':
  236. gt 'wardrobe', 'main'
  237. end
  238. elseif hypnoBra > 0:
  239. cla
  240. *clr
  241. 'You pick up the bra and think about trying them on... but you don''t really like wearing bras.'
  242. gs 'willpower', 'misc', 'resist', 'easy'
  243. will_cost += hypnoTime
  244. if will_cost <= pcs_willpwr:
  245. act 'Put them on anyways (<<will_cost>> Willpower)':
  246. gs 'willpower', 'pay', 'resist'
  247. gs 'stat'
  248. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  249. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  250. if $ARGS[1] = 'wardrobe':
  251. gt 'wardrobe', 'main'
  252. else
  253. gt $loc, $loc_arg
  254. end
  255. end
  256. else
  257. 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>'
  258. end
  259. act 'Back':
  260. gt 'wardrobe', 'main'
  261. end
  262. elseif hypnoPanty > 0:
  263. cla
  264. *clr
  265. 'You pick up the panties and think about trying them on... but you don''t really like wearing panties.'
  266. gs 'willpower', 'misc', 'resist', 'easy'
  267. will_cost += hypnoTime
  268. if will_cost <= pcs_willpwr:
  269. act 'Put them on anyways (<<will_cost>> Willpower)':
  270. gs 'willpower', 'pay', 'resist'
  271. gs 'stat'
  272. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  273. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  274. if $ARGS[1] = 'wardrobe':
  275. gt 'wardrobe', 'main'
  276. else
  277. gt $loc, $loc_arg
  278. end
  279. end
  280. else
  281. 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>'
  282. end
  283. act 'Back':
  284. gt 'wardrobe', 'main'
  285. end
  286. else
  287. gs 'panties', 'wear', $ARGS[2], underwear['pair']
  288. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  289. if $ARGS[1] = 'wardrobe':
  290. gt 'wardrobe', 'main'
  291. else
  292. gt $loc, $loc_arg
  293. end
  294. end
  295. end
  296. end
  297. else
  298. 'You do not own the matching panties to make this set.'
  299. end
  300. end
  301. end
  302. end
  303. if $ARGS[1] ! 'store':
  304. act 'Move to storage': gt 'bras', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  305. end
  306. if $ARGS[1] ! 'unwanted':
  307. act 'Move to unwanted': gt 'bras', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  308. end
  309. if $ARGS[1] ! 'wardrobe':
  310. act 'Move to wardrobe': gt 'bras', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  311. end
  312. act '<font color="red">Throw this bra away</font>':
  313. dynamic '<<$ARGS[2]>>_panties[<<ARGS[3]>>] = 0'
  314. gt 'wardrobe', 'main'
  315. end
  316. end
  317. end
  318. end
  319. if $ARGS[0] = 'dest0':
  320. *clr
  321. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 0'
  322. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  323. end
  324. if $ARGS[0] = 'dest1':
  325. *clr
  326. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 1'
  327. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  328. end
  329. if $ARGS[0] = 'dest2':
  330. *clr
  331. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 2'
  332. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  333. end
  334. if $ARGS[0] = 'descriptions':
  335. if $ARGS[1] = 'cheap':
  336. 'Cheap bra with no redeeming features.'
  337. elseif $ARGS[1] = 'boutique':
  338. 'This bra is so beautifully made that your posture and confidence is improved wearing it boosting your appearance even when fully clothed.'
  339. elseif $ARGS[1] = 'exhibitionist':
  340. 'This bra is so revealing that it is more exciting than not wearing one and you''ll always feel horny wearing it.'
  341. elseif $ARGS[1] = 'fashionista':
  342. 'This bra is well made improving your posture and confidence and slightly boosting your appearance even when fully clothed.'
  343. elseif $ARGS[1] = 'cats':
  344. 'This bra feels reassuring and wear it gives your mood a lift.'
  345. elseif $ARGS[1] = 'sexshop':
  346. 'Tacky and cheap this bra makes you look like a hooker, this could be a bonus if working as one.'
  347. elseif $ARGS[1] = 'sport':
  348. 'This bra is designed for physical exercises to make them less tiring.'
  349. end
  350. end
  351. if $ARGS[0] = 'sum':
  352. $t[0] = 'boutique'
  353. $t[1] = 'cats'
  354. $t[2] = 'exhibitionist'
  355. $t[3] = 'fashionista'
  356. $t[4] = 'cheap'
  357. $t[5] = 'sexshop'
  358. $t[6] = 'sport'
  359. result = 0
  360. i = 0
  361. :loopsumbras_i
  362. $temp = $t[i]
  363. j = 1
  364. :loopsumbras_j
  365. $temp1 = '<<$temp>>_bras[<<j>>]'
  366. $temp2 = '<<$temp>>_brasS[<<j>>]'
  367. dynamic 'if <<$temp1>> = 1 and <<$temp2>> = 0: result +=1'
  368. j += 1
  369. if j <= dyneval('result = arrsize(''<<$temp>>_bras'')') : jump 'loopsumbras_j'
  370. i += 1
  371. if i <= arrsize('$t'): jump 'loopsumbras_i'
  372. if $ARGS[1] = 'dresser': if $braworntype ! 'none' and result > 0: result -= 1
  373. killvar('t')
  374. killvar('temp')
  375. killvar('temp1')
  376. killvar('temp2')
  377. end
  378. if $ARGS[0] = 'dispose':
  379. if underwear['type'] = 2: gs 'underwear_bodysuits', 'dispose'
  380. dynamic $braworntype + '_bras[<<lastwornbranumber>>] = 0'
  381. $lastwornbratype = 'none'
  382. lastwornbranumber = 0
  383. $braworntype = 'none'
  384. brawornnumber = 0
  385. end
  386. if $ARGS[0] = 'remove':
  387. if underwear['type'] = 2: gs 'underwear_bodysuits', 'remove'
  388. $lastwornbratype = $braworntype
  389. lastwornbranumber = brawornnumber
  390. $braworntype = 'none'
  391. brawornnumber = 0
  392. underwear['lastworntype'] = 0
  393. end
  394. if $ARGS[0] = 'wear':
  395. if $ARGS[1] = '':
  396. if dyneval('RESULT = <<$lastwornbratype>>_brasS[<<lastwornbranumber>>]') = 0 and $lastwornbratype ! '' and underwear['lastworntype'] ! 2:
  397. gs 'bras', 'wear2', $lastwornbratype, lastwornbranumber
  398. else
  399. $braworntype = 'none'
  400. brawornnumber = 0
  401. end
  402. else
  403. if dyneval('RESULT = <<$ARGS[1]>>_brasS[<<ARGS[2]>>]') = 0:
  404. gs 'bras', 'wear2', $ARGS[1], ARGS[2]
  405. else
  406. $braworntype = 'none'
  407. brawornnumber = 0
  408. end
  409. end
  410. end
  411. if $ARGS[0] = 'wear2':
  412. !! ARGS 0 - action
  413. !! ARGS 1 - bras type name
  414. !! ARGS 2 - bras index
  415. !! removing bra or bodysuit if worn
  416. if underwear['type'] = 0:
  417. gs 'bras', 'remove'
  418. else
  419. gs 'underwear_bodysuits', 'remove'
  420. end
  421. underwear['type'] = 0
  422. $braworntype = $ARGS[1]
  423. brawornnumber = ARGS[2]
  424. dynamic $ARGS[1] + '_w[<<ARGS[2]>>] = 1'
  425. gs 'underwear_attributes', $ARGS[1], ARGS[2]
  426. dynamic '<<$ARGS[1]>>_s[<<ARGS[2]>>] = 0'
  427. PBraMaterial = BraMaterial
  428. PBraType = BraType
  429. PBraFun = BraFun
  430. PBraQuality = BraQuality
  431. PBraThinness = BraThinness
  432. PBraCover = BraCover
  433. end
  434. if $ARGS[0] = 'wear_last_worn':
  435. !!contingency
  436. if $lastwornbratype = '': $lastwornbratype = 'none'
  437. gs 'bras', 'wear', $lastwornbratype, lastwornbranumber
  438. end
  439. --- bras ---------------------------------