Tip: If you give a Muncher tile custom graphics, it will still act like a coin when a silver P-switch is active, whether it looks like a coin or not. So make sure to use ExAnimation if there's a silver P-switch in the area.
This code will create a timer on the status bar that ticks up or down depending on its settings. You can also set "effects" that happen when the time drops to 0, such as teleporting or killing the player.
Credit to Iceguy for the idea, even though I didn't use his code.
A very customizable and flexible timer, however, it is quite hard to use without some amount of ASM knowledge. You could have made it a lot more user-friendly.
During the moderation, I fixed a mathematical expression in the level code which made the defines at the top pretty much useless and I added SA-1 compatibility. For future references, Asar does math left-to-right (a leftover quirk form xkas), but the expression relied on proper order of operations (and also inverted only one of the defines when it made sense to invert both). While correct behavior for can be turned on with math pri on, I wouldn't recommend it as it might break code which expects Asar's normal behavior.