purses.tw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. :: purses
  2. <<set $here = 'purses'>>
  3. <<set $ARGS = $location_var[$here]>>
  4. <!-- !!2021/04/15-->
  5. <<if $location_var[$here][0] == 'view_purse_list'>>
  6. <<set $menu_off = 1>>
  7. <!-- !! ARGS 0 - view_purse_list-->
  8. <<if $location_var[$here][1] == 'wardrobe'>>
  9. <<set $ploc = 0>>
  10. <</if>>
  11. <<if $location_var[$here][1] == 'store'>>
  12. <<set $ploc = 1>>
  13. <</if>>
  14. <<if $location_var[$here][1] == 'unwanted'>>
  15. <<set $ploc = 2>>
  16. <</if>>
  17. <<actCLA 'Return'>>
  18. <<gt 'wardrobe' 'main'>>
  19. <</actCLA>>
  20. <<set $clothing_header = '<center><table border=1>'>>
  21. <<if $location_var[$here][1] != 'wardrobe'>>
  22. <<set $clothing_header += '<TH><<link "Switch to wardrobe list">><<gt 'purses' 'view_purse_list' 'wardrobe'>><</link>></TH>'>>
  23. <</if>>
  24. <<if $location_var[$here][1] != 'store'>>
  25. <<set $clothing_header += '<TH><<link "Switch to stored clothing list">><<gt 'purses' 'view_purse_list' 'store'>><</link>></TH>'>>
  26. <</if>>
  27. <<if $location_var[$here][1] != 'unwanted'>>
  28. <<set $clothing_header += '<TH><<link "Switch to unwanted clothing list">><<gt 'purses' 'view_purse_list' 'unwanted'>><</link>></TH></table></center>'>>
  29. <</if>>
  30. <<$clothing_header>>
  31. <<if $location_var[$here][1] == 'wardrobe'>>
  32. <h3><h2>Wardrobe list</h2></h3>
  33. <<elseif $location_var[$here][1] == 'store'>>
  34. <h3><h2>Stored purses list</h2></h3>
  35. <<elseif $location_var[$here][1] == 'unwanted'>>
  36. <h3><h2>Unwanted purses list</h2></h3>
  37. <<elseif $location_var[$here][1] == 'sell'>>
  38. <h3><h2>Choose an item to sell</h2></h3>
  39. <</if>>
  40. <<image `'locations/city/island/dolls/shop_name.png'`>>
  41. <<set $i = 1>>
  42. <<warn 'JUMP MARKER ENCOUNTERED: :loopdollspurses'>>
  43. <<if getvar("$dolls_purses["+$i+"]") == 1 and $dolls_pursesS[$i] == $ploc>>
  44. *p '<<link '<img src="images/pc/items/dolls/purses/<<i>>.jpg" height="300" />'>><<gt 'purses' 'view_purse_item' '<<$ARGS[1]>>' 'dolls' <<i>>>><</link>>'
  45. <</if>>
  46. <<set $i += 1>>
  47. <<if $i <= ARRSIZE('dolls_purses')>>
  48. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopdollspurses'>>
  49. <</if>>
  50. <<image `'locations/pushkin/bomba/shop_name.png'`>>
  51. <<set $i = 1>>
  52. <<warn 'JUMP MARKER ENCOUNTERED: :loopbomba_purses'>>
  53. <<if getvar("$bomba_purses["+$i+"]") == 1 and $bomba_pursesS[$i] == $ploc>>
  54. *p '<<link '<img src="images/pc/items/bomba/purses/<<i>>.jpg" height="300" />'>><<gt 'purses' 'view_purse_item' '<<$ARGS[1]>>' 'bomba' <<i>>>><</link>>'
  55. <</if>>
  56. <<set $i += 1>>
  57. <<if $i <= ARRSIZE('bomba_purses')>>
  58. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopbomba_purses'>>
  59. <</if>>
  60. <<image `'locations/city/citycenter/mall/fashionista.png'`>>
  61. <<set $i = 1>>
  62. <<warn 'JUMP MARKER ENCOUNTERED: :loopfashionistapurses'>>
  63. <<if getvar("$fashionista_purses["+$i+"]") == 1 and $fashionista_pursesS[$i] == $ploc>>
  64. *p '<<link '<img src="images/pc/items/fashionista/purses/<<i>>.jpg" height="300" />'>><<gt 'purses' 'view_purse_item' '<<$ARGS[1]>>' 'fashionista' <<i>>>><</link>>'
  65. <</if>>
  66. <<set $i += 1>>
  67. <<if $i <= ARRSIZE('fashionista_purses')>>
  68. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopfashionistapurses'>>
  69. <</if>>
  70. <<image `'locations/city/citycenter/mall/gm.png'`>>
  71. <<set $i = 1>>
  72. <<warn 'JUMP MARKER ENCOUNTERED: :loopgmpurses'>>
  73. <<if getvar("$gm_purses["+$i+"]") == 1 and $gm_pursesS[$i] == $ploc>>
  74. *p '<<link '<img src="images/pc/items/gm/purses/<<i>>.jpg" height="300" />'>><<gt 'purses' 'view_purse_item' '<<$ARGS[1]>>' 'gm' <<i>>>><</link>>'
  75. <</if>>
  76. <<set $i += 1>>
  77. <<if $i <= ARRSIZE('gm_purses')>>
  78. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopgmpurses'>>
  79. <</if>>
  80. <<image `'locations/city/citycenter/mall/pussycat.png'`>>
  81. <<set $i = 1>>
  82. <<warn 'JUMP MARKER ENCOUNTERED: :loop_cats_purses'>>
  83. <<if getvar("$cats_purses["+$i+"]") == 1 and $cats_pursesS[$i] == $ploc>>
  84. *p '<<link '<img src="images/pc/items/cats/purses/<<i>>.jpg" height="300" />'>><<gt 'purses' 'view_purse_item' '<<$ARGS[1]>>' 'cats' <<i>>>><</link>>'
  85. <</if>>
  86. <<set $i += 1>>
  87. <<if $i <= ARRSIZE('cats_purses')>>
  88. <<warn 'JUMP COMMAND ENCOUNTERED: jump loop_cats_purses'>>
  89. <</if>>
  90. <<image `'locations/pavlovsk/coco/shop_name.png'`>>
  91. <<set $i = 1>>
  92. <<warn 'JUMP MARKER ENCOUNTERED: :loop_coco_purses'>>
  93. <<if getvar("$coco_purses["+$i+"]") == 1 and $coco_pursesS[$i] == $ploc>>
  94. *p '<<link '<img src="images/pc/items/coco/purses/<<i>>.jpg" height="300" />'>><<gt 'purses' 'view_purse_item' '<<$ARGS[1]>>' 'coco' <<i>>>><</link>>'
  95. <</if>>
  96. <<set $i += 1>>
  97. <<if $i <= ARRSIZE('coco_purses')>>
  98. <<warn 'JUMP COMMAND ENCOUNTERED: jump loop_coco_purses'>>
  99. <</if>>
  100. <<image `'locations/city/island/flamingos/shop_name.png'`>>
  101. <<set $i = 1>>
  102. <<warn 'JUMP MARKER ENCOUNTERED: :loop_flamingos_purses'>>
  103. <<if getvar("$flamingos_purses["+$i+"]") == 1 and $flamingos_pursesS[$i] == $ploc>>
  104. *p '<<link '<img src="images/pc/items/flamingos/purses/<<i>>.jpg" height="300" />'>><<gt 'purses' 'view_purse_item' '<<$ARGS[1]>>' 'flamingos' <<i>>>><</link>>'
  105. <</if>>
  106. <<set $i += 1>>
  107. <<if $i <= ARRSIZE('flamingos_purses')>>
  108. <<warn 'JUMP COMMAND ENCOUNTERED: jump loop_flamingos_purses'>>
  109. <</if>>
  110. <<image `'locations/city/island/nerdvana/shop_name.png'`>>
  111. <<set $i = 1>>
  112. <<warn 'JUMP MARKER ENCOUNTERED: :loop_nerdvana_purses'>>
  113. <<if getvar("$nerdvana_purses["+$i+"]") == 1 and $nerdvana_pursesS[$i] == $ploc>>
  114. *p '<<link '<img src="images/pc/items/nerdvana/purses/<<i>>.jpg" height="300" />'>><<gt 'purses' 'view_purse_item' '<<$ARGS[1]>>' 'nerdvana' <<i>>>><</link>>'
  115. <</if>>
  116. <<set $i += 1>>
  117. <<if $i <= ARRSIZE('nerdvana_purses')>>
  118. <<warn 'JUMP COMMAND ENCOUNTERED: jump loop_nerdvana_purses'>>
  119. <</if>>
  120. <<image `'locations/city/citycenter/mall/sports.png'`>>
  121. <<set $i = 1>>
  122. <<warn 'JUMP MARKER ENCOUNTERED: :loop_danilovich_purses'>>
  123. <<if getvar("$danilovich_purses["+$i+"]") == 1 and $danilovich_pursesS[$i] == $ploc>>
  124. *p '<<link '<img src="images/pc/items/danilovich/purses/<<i>>.jpg" height="300" />'>><<gt 'purses' 'view_purse_item' '<<$ARGS[1]>>' 'danilovich' <<i>>>><</link>>'
  125. <</if>>
  126. <<set $i += 1>>
  127. <<if $i <= ARRSIZE('danilovich_purses')>>
  128. <<warn 'JUMP COMMAND ENCOUNTERED: jump loop_danilovich_purses'>>
  129. <</if>>
  130. <<image `'locations/city/citycenter/mall/moncheri.png'`>>
  131. <<set $i = 1>>
  132. <<warn 'JUMP MARKER ENCOUNTERED: :loop_moncheri_purses'>>
  133. <<if getvar("$moncheri_purses["+$i+"]") == 1 and $moncheri_pursesS[$i] == $ploc>>
  134. *p '<<link '<img src="images/pc/items/moncheri/purses/<<i>>.jpg" height="300" />'>><<gt 'purses' 'view_purse_item' '<<$ARGS[1]>>' 'moncheri' <<i>>>><</link>>'
  135. <</if>>
  136. <<set $i += 1>>
  137. <<if $i <= ARRSIZE('moncheri_purses')>>
  138. <<warn 'JUMP COMMAND ENCOUNTERED: jump loop_moncheri_purses'>>
  139. <</if>>
  140. <</if>>
  141. <<if $location_var[$here][0] == 'view_purse_item'>>
  142. <<set $menu_off = 1>>
  143. <!-- !! ARGS 0 - view_purse_item-->
  144. <!-- !! ARGS 1 = action type (home, shop)-->
  145. <!-- !! ARGS 2 - purse type-->
  146. <!-- !! ARGS 3 - purse index-->
  147. <!-- !! ARGS 4 - price for shop-->
  148. <center><img src="<<FUNC(''$purse_image'', $ARGS[2], ARGS[3])>>"></center>
  149. <<gs 'purses' 'descriptions' $location_var[$here][2]>>
  150. <<if $location_var[$here][1] == 'shop'>>
  151. <<if State.getVar('$'+$ARGS[2]+'_purses['+$ARGS[3]+']') == 1>>
  152. You already own this purse.
  153. <<actCLA 'Leave'>>
  154. <<gt $location>>
  155. <</actCLA>>
  156. <<else>>
  157. <<set $price = $ARGS[4]>>
  158. <p>Price: ARGS[4] <b>₽</b></p>
  159. <<actCLA 'Leave'>>
  160. <<gt $location>>
  161. <</actCLA>>
  162. <<if $finances.cash >= $price>>
  163. <<actCLA 'Buy (cash)'>>
  164. <<set $finances.cash -= $price>>
  165. <!-- FAILED TO CONVERT
  166. dynamic $ARGS[2] + '_purses[<<ARGS[3]>>] = 1'
  167. -----
  168. <<set dynamic $ARGS[2] + '_purses[$ERROR: FAILED TO CONVERT LITERAL: """<<ARGS[3]>>"""] = 1'>>
  169. -->
  170. <<warn "CONVERSION ERROR 414f5f1c465dda273a854fc2cf06ca4a">>
  171. <<if $wardrobe.purseEquipped == 0>>
  172. <<set $currentpursetype = $location_var[$here][2]>>
  173. <<set $currentpursenumber = $ARGS[3]>>
  174. <</if>>
  175. <<gt $location>>
  176. <</actCLA>>
  177. <<else>>
  178. You do not have enough cash to buy this purse.
  179. <</if>>
  180. <<if $finances.bankAvailable >= $price>>
  181. <<actCLA 'Buy (card)'>>
  182. <<set $finances.bank -= $price>>
  183. <!-- FAILED TO CONVERT
  184. dynamic $ARGS[2] + '_purses[<<ARGS[3]>>] = 1'
  185. -----
  186. <<set dynamic $ARGS[2] + '_purses[$ERROR: FAILED TO CONVERT LITERAL: """<<ARGS[3]>>"""] = 1'>>
  187. -->
  188. <<warn "CONVERSION ERROR 414f5f1c465dda273a854fc2cf06ca4a">>
  189. <<if $wardrobe.purseEquipped == 0>>
  190. <<set $currentpursetype = $location_var[$here][2]>>
  191. <<set $currentpursenumber = $ARGS[3]>>
  192. <</if>>
  193. <<gt $location>>
  194. <</actCLA>>
  195. <<else>>
  196. You do not have enough money in your bank to buy this purse.
  197. <</if>>
  198. <</if>>
  199. <<else>>
  200. <<actCLA 'Return'>>
  201. <<gt 'purses' 'view_purse_list' $location_var[$here][1]>>
  202. <</actCLA>>
  203. <<if $currentpursetype == $location_var[$here][2] and $currentpursenumber == $ARGS[3]>>
  204. You are using this purse.
  205. <<else>>
  206. <<if getvar("$ploc") == 0>>
  207. This purse is in your wardrobe.
  208. <<actCLA 'Use this purse'>>
  209. <<set $currentpursetype = $location_var[$here][2]>>
  210. <<set $currentpursenumber = $ARGS[3]>>
  211. <<gt 'wardrobe' 'main'>>
  212. <</actCLA>>
  213. <<elseif getvar("$ploc") == 1>>
  214. This purse is in storage.
  215. <<elseif getvar("$ploc") == 2>>
  216. This purse is unwanted.
  217. <</if>>
  218. <<if getvar("$ploc") != 1>>
  219. <<sets $result += 'Move this purse to <<link "Storage">><<gt 'purses' 'dest1' '$ARGS[1]' '$ARGS[2]' $ARGS[3]>><</link>><BR>'>>
  220. <</if>>
  221. <<if getvar("$ploc") != 0>>
  222. <<sets $result += 'Move this purse to <<link "Wardrobe">><<gt 'purses' 'dest0' '$ARGS[1]' '$ARGS[2]' $ARGS[3]>><</link>><BR>'>>
  223. <</if>>
  224. <<if getvar("$ploc") != 2>>
  225. <<sets $result += 'Move this purse to <<link "Unwanted">><<gt 'purses' 'dest2' '$ARGS[1]' '$ARGS[2]' $ARGS[3]>><</link>>'>>
  226. <</if>>
  227. <<if $location_var[$here][1] != 'store'>>
  228. <<actCLA 'Move to storage'>>
  229. <<gt 'purses' 'dest1' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
  230. <</actCLA>>
  231. <</if>>
  232. <<if $location_var[$here][1] != 'unwanted'>>
  233. <<actCLA 'Move to unwanted'>>
  234. <<gt 'purses' 'dest2' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
  235. <</actCLA>>
  236. <</if>>
  237. <<if $location_var[$here][1] != 'wardrobe'>>
  238. <<actCLA 'Move to wardrobe'>>
  239. <<gt 'purses' 'dest0' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
  240. <</actCLA>>
  241. <</if>>
  242. <</if>>
  243. <</if>>
  244. <</if>>
  245. <<if $location_var[$here][0] == 'dest0'>>
  246. <<run State.setVar($ARGS[2]+'_pursesS['+$ARGS[3]+']',0)>>
  247. <<gt 'purses' 'view_purse_list' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
  248. <</if>>
  249. <<if $location_var[$here][0] == 'dest1'>>
  250. <<run State.setVar($ARGS[2]+'_pursesS['+$ARGS[3]+']',1)>>
  251. <<gt 'purses' 'view_purse_list' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
  252. <</if>>
  253. <<if $location_var[$here][0] == 'dest2'>>
  254. <<run State.setVar($ARGS[2]+'_pursesS['+$ARGS[3]+']',2)>>
  255. <<gt 'purses' 'view_purse_list' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
  256. <</if>>
  257. <<if $location_var[$here][0] == 'descriptions'>>
  258. <<if $location_var[$here][1] == 'dolls'>>
  259. Let your freak flag fly with this perfect purse for the hot, independent girl that lives the alt lifestyle.
  260. <<elseif $location_var[$here][1] == 'bomba'>>
  261. Yeah you have attitude and with this bag everyone knows it.
  262. <<elseif $location_var[$here][1] == 'coco'>>
  263. A trendy bag for a young adult.
  264. <<elseif $location_var[$here][1] == 'flamingos'>>
  265. You look like the girl about town with this bag.
  266. <<elseif $location_var[$here][1] == 'danilovich'>>
  267. A sports bag for all your junk. Practical and durable but not fashionable
  268. <<elseif $location_var[$here][1] == 'fashionista'>>
  269. <p>A stylish handbag for any fashion-forward female!</p>
  270. <<elseif $location_var[$here][1] == 'nerdvana'>>
  271. For the geek inside you.
  272. <<elseif $location_var[$here][1] == 'gm'>>
  273. A functional, if not too fashionable, handbag for carrying all of the essentials.
  274. <<elseif $location_var[$here][1] == 'cats'>>
  275. <p>Is it a bag? Is it a pet? Is it a toy? Who cares you stand out and look cute.</p>
  276. <<elseif $location_var[$here][1] == 'moncheri'>>
  277. <p>A high-fashion handbag for ladies with discerning tastes. Show how classy you are with this expensive accessory.</p>
  278. <</if>>
  279. <</if>>
  280. <<if $location_var[$here][0] == 'remove'>>
  281. <<set $currentpursetype to null>>
  282. <<set $currentpursenumber to null>>
  283. <</if>>