bras.qsrc 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. if $ARGS[1] = '':
  20. bra_none = 0
  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="300" /></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="300" /></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="300" /></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="300" /></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="300" /></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="300" /></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="300" /></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':
  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 cannot afford this bra.'
  127. end
  128. end
  129. else
  130. if $ARGS[1] ! 'bathroom':
  131. if metka_bras ! 1:$RESULT += 'Move these bras to <a href="exec:gt ''bras'', ''dest1'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Storage</a><BR>'
  132. if metka_bras ! 0:$RESULT += 'Move these bras to <a href="exec:gt ''bras'', ''dest0'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Wardrobe</a><BR>'
  133. if metka_bras ! 2:$RESULT += 'Move these bras to <a href="exec:gt ''bras'', ''dest2'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>">Unwanted</a>'
  134. end
  135. act 'Return':gt 'bras', 'view_bra_list', $ARGS[1]
  136. if $ARGS[1] = 'store':
  137. 'This bra is in storage.'
  138. elseif $ARGS[1] = 'unwanted':
  139. 'This bra is unwanted.'
  140. else
  141. if $braworntype = $ARGS[2] and brawornnumber = ARGS[3]:
  142. 'You are wearing this bra.'
  143. else
  144. if metka_bras = 0:
  145. act 'Wear':
  146. gs 'bras', 'wear', $ARGS[2], ARGS[3]
  147. if $ARGS[1] = 'wardrobe':
  148. gt 'wardrobe', 'start'
  149. else
  150. gt $loc, $metka
  151. end
  152. end
  153. end
  154. end
  155. end
  156. if $ARGS[1] ! 'store':
  157. act 'Move to storage': gt 'bras', 'dest1', $ARGS[1], $ARGS[2], ARGS[3]
  158. end
  159. if $ARGS[1] ! 'unwanted':
  160. act 'Move to unwanted': gt 'bras', 'dest2', $ARGS[1], $ARGS[2], ARGS[3]
  161. end
  162. if $ARGS[1] ! 'wardrobe':
  163. act 'Move to wardrobe': gt 'bras', 'dest0', $ARGS[1], $ARGS[2], ARGS[3]
  164. end
  165. end
  166. end
  167. if $ARGS[0] = 'dest0':
  168. *clr
  169. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 0'
  170. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  171. end
  172. if $ARGS[0] = 'dest1':
  173. *clr
  174. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 1'
  175. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  176. end
  177. if $ARGS[0] = 'dest2':
  178. *clr
  179. dynamic '<<$ARGS[2]>>_brasS[<<ARGS[3]>>] = 2'
  180. gt 'bras', 'view_bra_item', $ARGS[1], $ARGS[2], ARGS[3]
  181. end
  182. if $ARGS[0] = 'descriptions':
  183. if $ARGS[1] = 'cheap':
  184. 'Cheap bra with no redeeming features.'
  185. elseif $ARGS[1] = 'boutique':
  186. 'This bra is so beautifully made that your posture and confidence is improved wearing it boosting your appearance even when fully clothed.'
  187. elseif $ARGS[1] = 'exhibitionist':
  188. 'This bra is so revealing that it is more exciting than not wearing one and you''ll always feel horny wearing it.'
  189. elseif $ARGS[1] = 'fashionista':
  190. 'This bra is well made improving your posture and confidence and slightly boosting your appearance even when fully clothed.'
  191. elseif $ARGS[1] = 'kats':
  192. 'This bra feels reassuring and wear it gives your mood a lift.'
  193. elseif $ARGS[1] = 'sexshop':
  194. 'Tacky and cheap this bra makes you look like a hooker, this could be a bonus if working as one.'
  195. elseif $ARGS[1] = 'sport':
  196. 'This bra is designed for physical exercises to make them less tiring.'
  197. end
  198. end
  199. --- bras ---------------------------------