bras.qsrc 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. # bras
  2. !!gs 'bras', 'dispose'
  3. !!gs 'bras', 'remove'
  4. !!gs 'bras', 'wear'
  5. if $ARGS[0] = 'dispose':
  6. dynamic $braworntype + '_bras[<<lastwornbranumber>>] = 0'
  7. $lastwornbratype = 'none'
  8. lastwornbranumber = 0
  9. $braworntype = 'none'
  10. brawornnumber = 0
  11. end
  12. if $ARGS[0] = 'remove':
  13. $lastwornbratype = $braworntype
  14. lastwornbranumber = brawornnumber
  15. $braworntype = 'none'
  16. brawornnumber = 0
  17. end
  18. if $ARGS[0] = 'wear':
  19. bra_none = 0
  20. if $ARGS[1] = '':
  21. if $lastwornbratype ! '':
  22. $braworntype = $lastwornbratype
  23. brawornnumber = lastwornbranumber
  24. else
  25. $braworntype = 'none'
  26. brawornnumber = 0
  27. end
  28. else
  29. $braworntype = $ARGS[1]
  30. brawornnumber = ARGS[2]
  31. end
  32. end
  33. if $ARGS[0] = 'view_bra_list':
  34. !! ARGS 0 - view_bra_list
  35. !! ARGS 1 - action type (draw, store, unwanted)
  36. if $ARGS[1] ! 'bathroom':
  37. act 'Return': gt 'wardrobe', 'start'
  38. else
  39. act 'Return': gt $loc, $metka
  40. end
  41. if $ARGS[1] = 'wardrobe':
  42. metka_bras = 0
  43. end
  44. if $ARGS[1] = 'store':
  45. metka_bras = 1
  46. end
  47. if $ARGS[1] = 'unwanted':
  48. metka_bras = 2
  49. end
  50. '<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></center>'
  51. if $braworntype ! 'none':act 'Remove bra':gs 'bras', 'remove' & gt 'bras', 'view_bra_list', $ARGS[1]
  52. if $ARGS[1] = 'store':
  53. cloc = 1
  54. end
  55. i = 1
  56. :loopcheapbras
  57. 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>'
  58. i += 1
  59. if i <= ARRSIZE('cheap_bras'):jump 'loopcheapbras'
  60. '<center><img src="images/locations/city/citycenter/mall/moncheri.png"></center>'
  61. i = 1
  62. :loopboutiquebras
  63. 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>'
  64. i += 1
  65. if i <= ARRSIZE('boutique_bras'):jump 'loopboutiquebras'
  66. '<center><img src="images/locations/oldtown/exhibitshop/shop_name.png"></center>'
  67. i = 1
  68. :loopexhibitionistbras
  69. 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>'
  70. i += 1
  71. if i <= ARRSIZE('exhibitionist_bras'):jump 'loopexhibitionistbras'
  72. '<center><img src="images/locations/city/citycenter/mall/fashionistat.png"></center>'
  73. i = 1
  74. :loopfashionistabras
  75. 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>'
  76. i += 1
  77. if i <= ARRSIZE('fashionista_bras'):jump 'loopfashionistabras'
  78. '<center><img src="images/locations/city/citycenter/mall/pussycat.png"></center>'
  79. i = 1
  80. :loopkatsbras
  81. if kats_brasS[i] = metka_bras and kats_bras[i] = 1:*p '<a href="exec:gt ''bras'', ''view_bra_item'', ''<<$ARGS[1]>>'', ''kats'', <<i>>"><img src="images/pc/bras/kats/<<i>>.jpg" height="150" /></a>'
  82. i += 1
  83. if i <= ARRSIZE('kats_bras'):jump 'loopkatsbras'
  84. '<center><img src="images/locations/city/citycenter/sexshop/shop_name.png"></center>'
  85. i = 1
  86. :loopsexshopbras
  87. 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>'
  88. i += 1
  89. if i <= ARRSIZE('sexshop_bras'):jump 'loopsexshopbras'
  90. '<center><img src="images/locations/city/citycenter/mall/sports.png"></center>'
  91. i = 1
  92. :loopsportbras
  93. 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>'
  94. i += 1
  95. if i <= ARRSIZE('sport_bras'):jump 'loopsportbras'
  96. end
  97. if $ARGS[0] = 'view_bra_item':
  98. !! ARGS 0 - view_bra_item
  99. !! ARGS 1 = action type (wardrobe, bathroom, shop)
  100. !! ARGS 2 - bra type
  101. !! ARGS 3 - bra index
  102. !! ARGS 4 - price for shop
  103. cla
  104. '<center><img src="<<FUNC(''$bra_image'', $ARGS[2], ARGS[3])>>"></center>'
  105. !! gs 'bra_attributes', $ARGS[2], ARGS[3]
  106. !! $RESULT = FUNC('$short_description', $ARGS[2], CloStyle2)
  107. !! $RESULT += '<<ARGS[3]>>'
  108. !! '<<$RESULT>>'
  109. gs 'bras', 'descriptions', $ARGS[2]
  110. if $ARGS[1] = 'shop':
  111. if dyneval('RESULT = <<$ARGS[2]>>_bras[<<ARGS[3]>>]') = 1:
  112. 'You already own this item.'
  113. act 'Leave': gt $loc, $metka
  114. else
  115. price = ARGS[4]
  116. 'Price: <<ARGS[4]>> <b>₽</b>'
  117. act 'Leave': gt $loc, $metka
  118. if money >= price:
  119. act 'Buy (cash)':
  120. money -= price
  121. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  122. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  123. gt $loc, $metka
  124. end
  125. else
  126. 'You do not have enough cash to buy this bra.'
  127. end
  128. if karta + bankDebtLimit >= price:
  129. act 'Buy (card)':
  130. karta -= price
  131. dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
  132. dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
  133. gt $loc, $metka
  134. end
  135. else
  136. 'You do not have enough money in your bank to buy this bra.'
  137. end
  138. end
  139. else
  140. if $ARGS[1] ! 'bathroom':
  141. if metka_bras ! 1:$RESULT += 'Move these bras to <a href="exec:gt ''bras'', ''dest1'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Storage</a><BR>'
  142. if metka_bras ! 0:$RESULT += 'Move these bras to <a href="exec:gt ''bras'', ''dest0'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Wardrobe</a><BR>'
  143. if metka_bras ! 2:$RESULT += 'Move these bras to <a href="exec:gt ''bras'', ''dest2'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Unwanted</a>'
  144. end
  145. act 'Return':gt 'bras', 'view_bra_list', $ARGS[1]
  146. if $ARGS[1] = 'store':
  147. 'This bra is in storage.'
  148. elseif $ARGS[1] = 'unwanted':
  149. 'This bra is unwanted.'
  150. else
  151. if $braworntype = $ARGS[2] and brawornnumber = ARGS[3]:
  152. 'You are wearing this bra.'
  153. else
  154. if metka_bras = 0:
  155. act 'Wear':
  156. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  157. if $ARGS[1] = 'wardrobe':
  158. gt 'wardrobe', 'start'
  159. else
  160. gt $loc, $metka
  161. end
  162. end
  163. end
  164. end
  165. end
  166. if $ARGS[1] ! 'store':
  167. act 'Move to storage': gt 'bras', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  168. end
  169. if $ARGS[1] ! 'unwanted':
  170. act 'Move to unwanted': gt 'bras', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  171. end
  172. if $ARGS[1] ! 'wardrobe':
  173. act 'Move to wardrobe': gt 'bras', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  174. end
  175. end
  176. end
  177. if $ARGS[0] = 'dest0':
  178. *clr
  179. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 0'
  180. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  181. end
  182. if $ARGS[0] = 'dest1':
  183. *clr
  184. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 1'
  185. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  186. end
  187. if $ARGS[0] = 'dest2':
  188. *clr
  189. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 2'
  190. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  191. end
  192. if $ARGS[0] = 'descriptions':
  193. if $ARGS[1] = 'cheap':
  194. 'Cheap bra with no redeeming features.'
  195. elseif $ARGS[1] = 'boutique':
  196. 'This bra is so beautifully made that your posture and confidence is improved wearing it boosting your appearance even when fully clothed.'
  197. elseif $ARGS[1] = 'exhibitionist':
  198. 'This bra is so revealing that it is more exciting than not wearing one and you''ll always feel horny wearing it.'
  199. elseif $ARGS[1] = 'fashionista':
  200. 'This bra is well made improving your posture and confidence and slightly boosting your appearance even when fully clothed.'
  201. elseif $ARGS[1] = 'kats':
  202. 'This bra feels reassuring and wear it gives your mood a lift.'
  203. elseif $ARGS[1] = 'sexshop':
  204. 'Tacky and cheap this bra makes you look like a hooker, this could be a bonus if working as one.'
  205. elseif $ARGS[1] = 'sport':
  206. 'This bra is designed for physical exercises to make them less tiring.'
  207. end
  208. end
  209. --- bras ---------------------------------