Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. //Add Random Item
  2. var gx = x_to_gx (mouse_x)
  3. var gy = y_to_gy (mouse_y)
  4. var add_item = choose (item.hp_potion, item.stamina_potion, item.bomb)
  5. if (count[# gx, gy] = 0)
  6. {
  7. inventory_add_item (gx, gy, add_item)
  8. }
  9. else
  10. {
  11. count[# gx, gy] ++
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement