Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if place_meeting(x, y, obj_Ship)
- {
- Stuff = 1
- } else
- {
- Stuff = 0
- }
- if keyboard_check(ord('O'))
- {
- show_message(string(Stuff))
- }
- if global.touching == 1 and
- global.shopcreated == 0
- {
- instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_TownScreen)
- instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_RumShop)
- instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_SpiceShop)
- instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_ManaShop)
- global.shopcreated = 1
- }
- if global.touching == 1 and
- global.shopcreated == 0
- {
- if obj_RumShop.BuyPrice == 0
- {
- obj_RumShop.BuyPrice = RumBuyPrice
- }if place_meeting(x, y, obj_Ship)
- {
- Stuff = 1
- } else
- {
- Stuff = 0
- }
- if keyboard_check(ord('O'))
- {
- show_message(string(Stuff))
- }
- if global.touching == 1 and
- global.shopcreated == 0
- {
- instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_TownScreen)
- instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_RumShop)
- instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_SpiceShop)
- instance_create( view_xview + view_wview * 0.5, view_yview + view_hview * 0.5, obj_ManaShop)
- global.shopcreated = 1
- }
- if global.touching == 1 and
- global.shopcreated == 0
- {
- if obj_RumShop.BuyPrice == 0
- {
- obj_RumShop.BuyPrice = RumBuyPrice
- }
- if obj_RumShop.SellPrice == 0
- {
- obj_RumShop.SellPrice = RumSellPrice
- }
- if obj_ManaShop.BuyPrice == 0
- {
- obj_ManaShop.BuyPrice = RumBuyPrice
- }
- if obj_ManaShop.SellPrice == 0
- {
- obj_ManaShop.SellPrice = RumSellPrice
- }
- if obj_SpiceShop.BuyPrice == 0
- {
- obj_SpiceShop.BuyPrice = RumBuyPrice
- }
- if obj_SpiceShop.SellPrice == 0
- {
- obj_SpiceShop.SellPrice = RumSellPrice
- }
- }
- if obj_RumShop.SellPrice == 0
- {
- obj_RumShop.SellPrice = RumSellPrice
- }
- if obj_ManaShop.BuyPrice == 0
- {
- obj_ManaShop.BuyPrice = RumBuyPrice
- }
- if obj_ManaShop.SellPrice == 0
- {
- obj_ManaShop.SellPrice = RumSellPrice
- }
- if obj_SpiceShop.BuyPrice == 0
- {
- obj_SpiceShop.BuyPrice = RumBuyPrice
- }
- if obj_SpiceShop.SellPrice == 0
- {
- obj_SpiceShop.SellPrice = RumSellPrice
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement