
I'm planning a Dungeon Crawl Classics megadungeon game which will be heavy on exploring and resource management. I love the idea of the players wondering if they'll have time to make it back to the surface before their last torch burns out.
The script listens for "!round x" or "!turn x" and finds all the graphics named "Torch" with a light_radius greater than zero, and decrements their bar1_value, which I'm using to track burning duration, and also decreases the lighting as the torch starts to burn low (inspired by Riley's "The Light Is Closing In" script).
https://gist.github.com/bripod/5587911Eventually I'd like to extend this to lanterns, candles, and other lighting types, and keeping track of how much time has elapsed overall, but this is what I put together so far.