Advertisement
Guest User

Untitled

a guest
Mar 12th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if place_meeting(x, y, obj_Ship)
  2. {
  3.     Stuff = 1
  4. } else
  5. {
  6. Stuff = 0
  7. }
  8.  
  9. if keyboard_check(ord('O'))
  10.    {
  11.    show_message(string(Stuff))
  12.    }
  13.  
  14. if global.touching == 1 and
  15. global.shopcreated == 0
  16. {
  17. instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_TownScreen)
  18. instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_RumShop)
  19. instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_SpiceShop)
  20. instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_ManaShop)
  21. global.shopcreated = 1
  22. }
  23.  
  24. if global.touching == 1 and
  25. global.shopcreated == 0
  26. {
  27.  
  28. if obj_RumShop.BuyPrice == 0
  29. {
  30. obj_RumShop.BuyPrice = RumBuyPrice
  31. }if place_meeting(x, y, obj_Ship)
  32. {
  33.     Stuff = 1
  34. } else
  35. {
  36. Stuff = 0
  37. }
  38.  
  39. if keyboard_check(ord('O'))
  40.    {
  41.    show_message(string(Stuff))
  42.    }
  43.  
  44. if global.touching == 1 and
  45. global.shopcreated == 0
  46. {
  47. instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_TownScreen)
  48. instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_RumShop)
  49. instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_SpiceShop)
  50. instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_ManaShop)
  51. global.shopcreated = 1
  52. }
  53.  
  54. if global.touching == 1 and
  55. global.shopcreated == 0
  56. {
  57.  
  58. if obj_RumShop.BuyPrice == 0
  59. {
  60. obj_RumShop.BuyPrice = RumBuyPrice
  61. }
  62.  
  63. if obj_RumShop.SellPrice == 0
  64. {
  65. obj_RumShop.SellPrice = RumSellPrice
  66. }
  67.  
  68. if obj_ManaShop.BuyPrice == 0
  69. {
  70. obj_ManaShop.BuyPrice = RumBuyPrice
  71. }
  72.  
  73. if obj_ManaShop.SellPrice == 0
  74. {
  75. obj_ManaShop.SellPrice = RumSellPrice
  76. }
  77.  
  78. if obj_SpiceShop.BuyPrice == 0
  79. {
  80. obj_SpiceShop.BuyPrice = RumBuyPrice
  81. }
  82.  
  83. if obj_SpiceShop.SellPrice == 0
  84. {
  85. obj_SpiceShop.SellPrice = RumSellPrice
  86. }
  87.  
  88. }
  89.  
  90.  
  91.  
  92.  
  93.  
  94. if obj_RumShop.SellPrice == 0
  95. {
  96. obj_RumShop.SellPrice = RumSellPrice
  97. }
  98.  
  99. if obj_ManaShop.BuyPrice == 0
  100. {
  101. obj_ManaShop.BuyPrice = RumBuyPrice
  102. }
  103.  
  104. if obj_ManaShop.SellPrice == 0
  105. {
  106. obj_ManaShop.SellPrice = RumSellPrice
  107. }
  108.  
  109. if obj_SpiceShop.BuyPrice == 0
  110. {
  111. obj_SpiceShop.BuyPrice = RumBuyPrice
  112. }
  113.  
  114. if obj_SpiceShop.SellPrice == 0
  115. {
  116. obj_SpiceShop.SellPrice = RumSellPrice
  117. }
  118.  
  119. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement