OutsideArea

by Shadowdarke
Two ways to do day/night cycles, simple weather displays, and a demonstration how to change a turf from one area to another.
Version 1 · Date Added: 9/06/01

If you wish to download this demo for your Linux/Mac installation, enter the following on your command line:

DreamDownload byond://Shadowdarke.OutsideArea##version=1

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

byond://Shadowdarke.OutsideArea##version=1

Outside Area Demo demonstrates how to implement day/night cycles two ways, with overlays or with the luminosity variable. This demo also shows how to change a turf from one area to another.

The area overlay day/night cycle is much faster than turf overlay day/night systems, accomplishing the same effect with a couple lines of code and no lag producing loops. I’ve tested it with maps as large as 500x500x5 with no lag at all.

Version 1 includes a simple weather display system. Also, the overlay daycycle() has been modified to allow other area overlays to persist when it changes to day or night.