Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. func throw():
  2. if self.throw_range <= 0:
  3. RPG.broadcast("You cannot throw that!")
  4. return
  5. else:
  6. RPG.broadcast("Which direction? Click the map to confirm, RMB to cancel")
  7. var cell = yield(RPG.game, 'map_clicked')
  8.  
  9. if cell == null:
  10. RPG.broadcast("action cancelled")
  11. return
  12. else:
  13. RPG.broadcast("You throw " + owner.get_display_name())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement