All pastes #26357 Raw Edit

Unnamed

public text v1 · immutable
#26357 ·published 2005-10-23 06:28 UTC
rendered paste body
context mode-menu {
	Answer();
start:
	Set(TIMEOUT(digit)=1);
	Set(TIMEOUT(response)=3);
	switch (${STATUS}) {
		case none:
			Playback(custom/auto-mode);
			Wait(1);
			BackGround(custom/menu-mode);
		break;
		case open:
			Playback(custom/open-mode);
			Wait(1);
			BackGround(custom/menu-mode);		
		break;
		case closed:
			Playback(custom/closed-mode);
			Wait(1);
			BackGround(custom/menu-mode);
		break;
	};
	
	1 => {
		SetGlobalVar(STATUS=none)
		Goto(start)
	};
	
	2 => {
		SetGlobalVar(STATUS=closed)
		Goto(start)
	};
	
	3 => {
		SetGlobalVar(STATUS=open)
		Goto(start)
	};
};