Advertisement
luckytyphlosion

polishedcrystal optimized game corner TM script

Nov 10th, 2017
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. CeladonGameCornerTMVendor:
  2. faceplayer
  3. opentext
  4. writetext CeladonPrizeRoom_PrizeVendorIntroText
  5. checkitem COIN_CASE
  6. sif false
  7. jumptext CeladonPrizeRoom_NoCoinCaseText
  8. writetext CeladonPrizeRoom_AskWhichPrizeText
  9. CeladonPrizeRoom_tmcounterloop:
  10. special Special_DisplayCoinCaseBalance
  11. loadmenudata CeladonPrizeRoom_TMMenuDataHeader
  12. verticalmenu
  13. closewindow
  14. addvar -1
  15. sif >, 3
  16. jumptext CeladonPrizeRoom_ComeAgainText
  17. loadarray .TMPrizeArray
  18. readarray 0
  19. checktmhm -1
  20. sif true, then
  21. writetext CeladonPrizeRoom_AlreadyHaveTMText
  22. selse
  23. readarrayhalfword 1
  24. checkcoins -1
  25. sif =, 2, then
  26. writetext CeladonPrizeRoom_NotEnoughCoinsText
  27. selse
  28. readarray 0
  29. tmhmtotext -1, $0
  30. writetext CeladonPrizeRoom_ConfirmTMPurchaseText
  31. yesorno
  32. sif false, then
  33. jumptext CeladonPrizeRoom_ComeAgainText
  34. selse
  35. readarray 0
  36. givetmhm -1
  37. readarrayhalfword 1
  38. takecoins -1
  39. waitsfx
  40. playsound SFX_TRANSACTION
  41. writetext CeladonPrizeRoom_HereYouGoText
  42. sendif
  43. sendif
  44. sendif
  45. jump CeladonPrizeRoom_tmcounterloop
  46.  
  47. .TMPrizeArray:
  48. dbw TM_DOUBLE_TEAM, 3500
  49. .TMPrizeArrayEntrySizeEnd:
  50. dbw TM_TOXIC, 5500
  51. dbw TM_GIGA_IMPACT, 7500
  52.  
  53. CeladonPrizeRoom_PrizeVendorIntroText:
  54. ctxt "Welcome!"
  55.  
  56. para "We exchange your"
  57. line "coins for fabulous"
  58. cont "prizes!"
  59. sdone
  60.  
  61. CeladonPrizeRoom_AskWhichPrizeText:
  62. ctxt "Which prize would"
  63. line "you like?"
  64. done
  65.  
  66. CeladonPrizeRoom_ConfirmTMPurchaseText:
  67. ctxt "OK, so you wanted"
  68. line "<STRBF3>?"
  69. done
  70.  
  71. CeladonPrizeRoom_HereYouGoText:
  72. ctxt "Here you go!"
  73. sdone
  74.  
  75. CeladonPrizeRoom_AlreadyHaveTMText:
  76. ctxt "You already have"
  77. line "that TM."
  78. sdone
  79.  
  80. CeladonPrizeRoom_NotEnoughCoinsText:
  81. ctxt "You don't have"
  82. line "enough coins."
  83. sdone
  84.  
  85. CeladonPrizeRoom_ComeAgainText:
  86. ctxt "Oh. Please come"
  87. line "back with coins!"
  88. done
  89.  
  90. CeladonPrizeRoom_NoCoinCaseText:
  91. ctxt "Oh? You don't have"
  92. line "a Coin Case."
  93. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement