Advertisement
ProClifo

Untitled

Jun 24th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. #freespace 0xFF
  2. #dynamic 0xF00000
  3.  
  4. #org 0x20FEBB
  5. preparemsg 0x821060D '"Which prize would you like?"
  6. waitmsg
  7. setvar 0x4001 0x0
  8. showcoins 0x1 0x1
  9. goto @choices
  10.  
  11. #org @choices
  12. multichoice 0xC 0x0 0x37 0x0
  13. copyvar 0x8000 LASTRESULT
  14. compare 0x8000 0x0
  15. if 0x1 goto @stick
  16. compare 0x8000 0x1
  17. if 0x1 goto @thickclub
  18. compare 0x8000 0x2
  19. if 0x1 goto @luckypunch
  20. compare 0x8000 0x3
  21. if 0x1 goto 0x8210118
  22. goto 0x8210118
  23.  
  24. #org @stick
  25. setvar 0x4001 0x1
  26. bufferitem 0x0 0xE1
  27. goto 0x820FF8A
  28.  
  29. #org @thickclub
  30. setvar 0x4001 0x2
  31. bufferitem 0x0 0xE0
  32. goto 0x820FF8A
  33.  
  34. #org @luckypunch
  35. setvar 0x4001 0x3
  36. bufferitem 0x0 0xDE
  37. goto 0x820FF8A
  38.  
  39. #org 0x20FF8A
  40. special 0x19E
  41. msgbox @question MSG_YESNO '"So your choice is\nthe [buffer1] [..."
  42. compare LASTRESULT 0x0
  43. if 0x1 goto 0x8210118
  44. copyvar 0x8000 0x4001
  45. compare 0x8000 0x1
  46. if 0x1 goto @stick2
  47. compare 0x8000 0x2
  48. if 0x1 goto @thickclub2
  49. compare 0x8000 0x3
  50. if 0x1 goto @luckypunch2
  51. end
  52.  
  53. #org @stick2
  54. checkcoins 0x4002
  55. compare 0x4002 0x5DC
  56. if 0x0 goto 0x82100FF
  57. checkitemroom 0xE1 0x1
  58. compare LASTRESULT 0x0
  59. if 0x1 goto 0x821010D
  60. removecoins 0x5DC
  61. additem 0xE1 0x1
  62. updatecoins 0x1 0x1
  63. sound 0x5F
  64. msgbox 0x821071B MSG_KEEPOPEN '"Here you go!"
  65. goto 0x820FECE
  66.  
  67. #org @thickclub2
  68. checkcoins 0x4002
  69. compare 0x4002 0xDAC
  70. if 0x0 goto 0x82100FF
  71. checkitemroom 0xE0 0x1
  72. compare LASTRESULT 0x0
  73. if 0x1 goto 0x821010D
  74. removecoins 0xDAC
  75. additem 0xE0 0x1
  76. updatecoins 0x1 0x1
  77. sound 0x5F
  78. msgbox 0x821071B MSG_KEEPOPEN '"Here you go!"
  79. goto 0x820FECE
  80.  
  81. #org @luckypunch2
  82. checkcoins 0x4002
  83. compare 0x4002 0xFA0
  84. if 0x0 goto 0x82100FF
  85. checkitemroom 0xDE 0x1
  86. compare LASTRESULT 0x0
  87. if 0x1 goto 0x821010D
  88. removecoins 0xFA0
  89. additem 0xDE 0x1
  90. updatecoins 0x1 0x1
  91. sound 0x5F
  92. msgbox 0x821071B MSG_KEEPOPEN '"Here you go!"
  93. goto 0x820FECE
  94.  
  95. #org @question
  96. = So your choice is the [buffer1]?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement