bras.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  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 'bra_attributes', $ARGS[2], ARGS[3]
  86. !! $RESULT = FUNC('$short_description', $ARGS[2], CloStyle2)
  87. !! $RESULT += '<<ARGS[3]>>'
  88. !! '<<$RESULT>>'
  89. gs 'bras', 'descriptions', $ARGS[2]
  90. if underwear['set'] ! 0:
  91. 'This bra forms a set with panty #<<underwear[''set'']>>.'
  92. if dyneval('RESULT = <<$ARGS[2]>>_panties[<<underwear[''set'']>>]') = 1:
  93. 'You own these panties and can wear this set.'
  94. else
  95. 'You do not own these panties so you cannot wear this set.'
  96. end
  97. end
  98. if $ARGS[1] = 'shop':
  99. if dyneval('RESULT = <<$ARGS[2]>>_bras[<<ARGS[3]>>]') = 1:
  100. 'You already own this item.'
  101. act 'Leave': gt $loc, $loc_arg
  102. else
  103. price = ARGS[4]
  104. 'Price: <<ARGS[4]>> <b>₽</b>'
  105. act 'Leave': gt $loc, $loc_arg
  106. if money >= price:
  107. act 'Buy (cash)':
  108. money -= price
  109. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  110. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  111. gt $loc, $loc_arg
  112. end
  113. else
  114. 'You do not have enough cash to buy this bra.'
  115. end
  116. if karta + bankDebtLimit >= price:
  117. act 'Buy (card)':
  118. karta -= price
  119. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  120. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  121. gt $loc, $loc_arg
  122. end
  123. else
  124. 'You do not have enough money in your bank to buy this bra.'
  125. end
  126. if dyneval('RESULT = <<$ARGS[2]>>_panties[<<underwear[''set'']>>]') = 0:
  127. price_set = ARGS[4]*10/9
  128. 'price for set: <<price_set>> <b>₽</b>'
  129. if money >= price_set:
  130. act 'Buy (cash)':
  131. money -= price_set
  132. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  133. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  134. dynamic $ARGS[2] + '_panties[<<underwear[''set'']>>] = 1'
  135. dynamic $ARGS[2] + '_pantiesS[<<underwear[''set'']>>] = 0'
  136. gt $loc, $loc_arg
  137. end
  138. else
  139. 'You do not have enough cash to buy this set.'
  140. end
  141. if karta + bankDebtLimit >= price_set:
  142. act 'Buy (card)':
  143. karta -= price_set
  144. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  145. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  146. dynamic $ARGS[2] + '_panties[<<underwear[''set'']>>] = 1'
  147. dynamic $ARGS[2] + '_pantiesS[<<underwear[''set'']>>] = 0'
  148. gt $loc, $loc_arg
  149. end
  150. else
  151. 'You do not have enough money in your bank to buy this set.'
  152. end
  153. end
  154. end
  155. else
  156. if $ARGS[1] ! 'bathroom':
  157. if metka_bras ! 1:$RESULT += 'Move these bras to <a href="exec:gt ''bras'', ''dest1'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Storage</a><BR>'
  158. if metka_bras ! 0:$RESULT += 'Move these bras to <a href="exec:gt ''bras'', ''dest0'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Wardrobe</a><BR>'
  159. if metka_bras ! 2:$RESULT += 'Move these bras to <a href="exec:gt ''bras'', ''dest2'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Unwanted</a>'
  160. end
  161. act 'Return':gt 'bras', 'view_bra_list', $ARGS[1]
  162. if $ARGS[1] = 'store':
  163. 'This bra is in storage.'
  164. elseif $ARGS[1] = 'unwanted':
  165. 'This bra is unwanted.'
  166. else
  167. if $braworntype = $ARGS[2] and brawornnumber = ARGS[3]:
  168. 'You are wearing this bra.'
  169. else
  170. if metka_bras = 0:
  171. act 'Wear':
  172. if CloBra = 1:
  173. msg'You cannot wear a bra with this top'
  174. else
  175. if hypnoBra > 0:
  176. cla
  177. *clr
  178. 'You pick up the bra and think about trying them on... but you don''t really like wearing bras.'
  179. gs 'willpower', 'misc', 'resist', 'easy'
  180. will_cost += hypnoTime
  181. if will_cost <= pcs_willpwr:
  182. act 'Put them on anyways (<<will_cost>> Willpower)':
  183. gs 'willpower', 'pay', 'resist'
  184. gs 'stat'
  185. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  186. if $ARGS[1] = 'wardrobe':
  187. gt 'wardrobe', 'main'
  188. else
  189. gt $loc, $loc_arg
  190. end
  191. end
  192. else
  193. 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>'
  194. end
  195. act 'Back':
  196. gt 'wardrobe', 'main'
  197. end
  198. else
  199. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  200. if $ARGS[1] = 'wardrobe':
  201. gt 'wardrobe', 'main'
  202. else
  203. gt $loc, $loc_arg
  204. end
  205. end
  206. end
  207. end
  208. end
  209. if underwear['set'] ! 0 and dyneval('RESULT = <<$ARGS[2]>>_panties[<<underwear[''set'']>>]') = 1:
  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['set']
  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['set']
  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['set']
  275. gs 'panties', '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['set']
  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. end
  300. end
  301. end
  302. if $ARGS[1] ! 'store':
  303. act 'Move to storage': gt 'bras', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  304. end
  305. if $ARGS[1] ! 'unwanted':
  306. act 'Move to unwanted': gt 'bras', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  307. end
  308. if $ARGS[1] ! 'wardrobe':
  309. act 'Move to wardrobe': gt 'bras', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  310. end
  311. end
  312. end
  313. if $ARGS[0] = 'dest0':
  314. *clr
  315. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 0'
  316. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  317. end
  318. if $ARGS[0] = 'dest1':
  319. *clr
  320. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 1'
  321. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  322. end
  323. if $ARGS[0] = 'dest2':
  324. *clr
  325. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 2'
  326. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  327. end
  328. if $ARGS[0] = 'descriptions':
  329. if $ARGS[1] = 'cheap':
  330. 'Cheap bra with no redeeming features.'
  331. elseif $ARGS[1] = 'boutique':
  332. 'This bra is so beautifully made that your posture and confidence is improved wearing it boosting your appearance even when fully clothed.'
  333. elseif $ARGS[1] = 'exhibitionist':
  334. 'This bra is so revealing that it is more exciting than not wearing one and you''ll always feel horny wearing it.'
  335. elseif $ARGS[1] = 'fashionista':
  336. 'This bra is well made improving your posture and confidence and slightly boosting your appearance even when fully clothed.'
  337. elseif $ARGS[1] = 'cats':
  338. 'This bra feels reassuring and wear it gives your mood a lift.'
  339. elseif $ARGS[1] = 'sexshop':
  340. 'Tacky and cheap this bra makes you look like a hooker, this could be a bonus if working as one.'
  341. elseif $ARGS[1] = 'sport':
  342. 'This bra is designed for physical exercises to make them less tiring.'
  343. end
  344. end
  345. if $ARGS[0] = 'sum':
  346. $t[0] = 'boutique'
  347. $t[1] = 'cats'
  348. $t[2] = 'exhibitionist'
  349. $t[3] = 'fashionista'
  350. $t[4] = 'cheap'
  351. $t[5] = 'sexshop'
  352. $t[6] = 'sport'
  353. result = 0
  354. i = 0
  355. :loopsumbras_i
  356. $temp = $t[i]
  357. j = 1
  358. :loopsumbras_j
  359. $temp1 = '<<$temp>>_bras[<<j>>]'
  360. $temp2 = '<<$temp>>_brasS[<<j>>]'
  361. dynamic 'if <<$temp1>> = 1 and <<$temp2>> = 0: result +=1'
  362. j += 1
  363. if j <= dyneval('result = arrsize(''<<$temp>>_bras'')') : jump 'loopsumbras_j'
  364. i += 1
  365. if i <= arrsize('$t'): jump 'loopsumbras_i'
  366. if $ARGS[1] = 'dresser': if $braworntype ! 'none' and result > 0: result -= 1
  367. killvar('t')
  368. killvar('temp')
  369. killvar('temp1')
  370. killvar('temp2')
  371. end
  372. if $ARGS[0] = 'dispose':
  373. if underwear['type'] = 2: gs 'underwear_bodysuits', 'dispose'
  374. dynamic $braworntype + '_bras[<<lastwornbranumber>>] = 0'
  375. $lastwornbratype = 'none'
  376. lastwornbranumber = 0
  377. $braworntype = 'none'
  378. brawornnumber = 0
  379. end
  380. if $ARGS[0] = 'remove':
  381. if underwear['type'] = 2: gs 'underwear_bodysuits', 'remove'
  382. $lastwornbratype = $braworntype
  383. lastwornbranumber = brawornnumber
  384. $braworntype = 'none'
  385. brawornnumber = 0
  386. underwear['lastworntype'] = 0
  387. end
  388. if $ARGS[0] = 'wear':
  389. if $ARGS[1] = '':
  390. if dyneval('RESULT = <<$lastwornbratype>>_brasS[<<lastwornbranumber>>]') = 0 and $lastwornbratype ! '' and underwear['lastworntype'] ! 2:
  391. gs 'bras', 'wear2', $lastwornbratype, lastwornbranumber
  392. else
  393. $braworntype = 'none'
  394. brawornnumber = 0
  395. end
  396. else
  397. if dyneval('RESULT = <<$ARGS[1]>>_brasS[<<ARGS[2]>>]') = 0:
  398. gs 'bras', 'wear2', $ARGS[1], ARGS[2]
  399. else
  400. $braworntype = 'none'
  401. brawornnumber = 0
  402. end
  403. end
  404. end
  405. if $ARGS[0] = 'wear2':
  406. !! ARGS 0 - action
  407. !! ARGS 1 - bras type name
  408. !! ARGS 2 - bras index
  409. !! removing bra or bodysuit if worn
  410. if underwear['type'] = 0:
  411. gs 'bras', 'remove'
  412. else
  413. gs 'underwear_bodysuits', 'remove'
  414. end
  415. underwear['type'] = 0
  416. $braworntype = $ARGS[1]
  417. brawornnumber = ARGS[2]
  418. dynamic $ARGS[1] + '_w[<<ARGS[2]>>] = 1'
  419. gs 'underwear_attributes', $ARGS[1], ARGS[2]
  420. dynamic '<<$ARGS[1]>>_s[<<ARGS[2]>>] = 0'
  421. PBraMaterial = BraMaterial
  422. PBraType = BraType
  423. PBraFun = BraFun
  424. PBraQuality = BraQuality
  425. PBraThinness = BraThinness
  426. PBraExpose = BraExpose
  427. end
  428. if $ARGS[0] = 'wear_last_worn':
  429. !!contingency
  430. if $lastwornbratype = '': $lastwornbranumber = 'none'
  431. gs 'bras', 'wear', $lastwornbratype, lastwornbranumber
  432. end
  433. --- bras ---------------------------------