Are you tired of spending too much time playing ZC? Those 20+ hour quests can be very time consuming. Wouldn't you like your own personal apocalypse to tell you when you've had enough, and it's time to go out and get some sunlight?...well here it is.


Code:
int doom = 10800;  // 1 = one second

int sec_combo = 9000;    // combos used for seconds. 9000 + 59, change to any combo you like
int min_combo = 9060;     // combos used for minutes. ditto
int hour_combo = 9120;   //combos used for hours. ditto
int sec_count = 0;
int min_count = 0;
int hour_count = 0;

global script Doomsday{

	void run(){

		ffc hour = Screen->LoadFFC(30);   // loads ffc's 30-32 *DO NOT USE FFC'S 30-32 FOR ANYTHING ELSE!*
		ffc minutes = Screen->LoadFFC(31);
		ffc seconds = Screen->LoadFFC(32);
		

		while(true){

			seconds->Data = sec_combo;
			minutes->Data = min_combo;
			hour->Data = hour_combo;			
			hour->X = 208;
			hour->Y = 0;
			minutes->X = 224;
			minutes->Y = 0;
			seconds->X = 240;
			seconds->Y = 0;
			if (doom >=1){
				Waitframes(60);
				doom--;
				sec_count++;
				sec_combo++;
				if (sec_count == 60){
					sec_count = 0;
					sec_combo = 9000;
					min_combo++;
					min_count++;
				}
				if (min_count == 60){
					min_count = 0;
					min_combo = 9060;
					hour_count++;
					hour_combo++;
				}
 
			} else {
				Link->PitWarp(255,00);  // do as you will with these:
				Game->PlaySound(27); // ..when time is up!
				Waitframes(1800);
				Quit();
			}
		}
	}
}

How it works:

It creates an ffc timer in the upper-right corner of th screen. No, don't worry. No ffc setup is required...in fact, no setup of any kind is needed once you load it into the 2cd global script slot. :)

The "timer" is currently set to use combos 9000 to 9122, and any extra hours you may want to add. For example: Setting combo 9000 to a tile with the graphic "59", and combo 9060 also to "59", and 9120 to "2", will result in the display in the corner of the screen to read: 2:59:59.

Every second of gameplay "int doom" becomes minus one, resulting in(you guessed it) a countdown. 2:59:58.........2:59:57....etc. It is currently set at 10800,(that's 10800 seconds) feel free to change it to whatever you want. -Note that the combos currently use cset 0, because ...well, I have no idea what your palette looks like. :p

When the time is up, ...oops! no more saved game, you'll have to start over. Of coarse you don't have to be as sinister about it as me, you can do whatever you like at this point. It's set to warp Link to Dmap255 as is, so you may want to change that as well.

Oh, ...and one more thing. It carries over continues and quits. ..but hey, what's the rush? It's not the end of the world.