GateKeeper.GEM

by sapphiremagus
Tired of turfs being either dense or not? Now you can block directions intelligently! [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://sapphiremagus.GateKeeper.GEM##version=1

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://sapphiremagus.GateKeeper.GEM##version=1

89 downloads
Version 1
Date added: Oct 12 2003
Last updated: Jul 29 2009
1 fan
The GateKeepr GEM strives to fix one of the most glaring problems I've seen with BYOND; the lack of support for directional blockage. I have a set of stairs that you can go up and down, but not left or right. Previously, this was not possibly without a lot of heavy coding. I have undertaken the heavy (not so much) coding and give you the GateKeeper.

  • setDensity(dir)
    • dir - a text value or a BYOND direction (ie "north" or NORTH)
    • defines the given direction as 'blocked'

  • clearDensity(dir)
    • Same as above, but undefines the direction as blocked, making it available again.

  • queryDensity(dir)
    • returns true if dir is blocked