reset_dialog();
	add_dialog_str(0,"This control panel has a small screen and some buttons next to it. its not very large. On the screen, a small message is displayed:",0);
	add_dialog_str(1,"_Welcome to Banka Riverrod. What would you like to do?_ Two options are listed below. The third one isn't on the screen, just so you can cancel the thing.",0);
	add_dialog_choice(0,"Withdraw");
	add_dialog_choice(1,"Pay");
	add_dialog_choice(2,"Do nothing");
	choice = run_dialog(0);
	if (choice == 1) {
			reset_dialog();
			add_dialog_str(0,"How much would you like to withdraw? Click a button, please.",0);
			add_dialog_choice(0,"50 C");
			add_dialog_choice(1,"100 C");
			add_dialog_choice(2,"200 C");
			choice = run_dialog(0);
			if (choice == 1) {
					if (get_flag(50,0) > 50) {
							inc_flag(50,0,-50);
							change_coins(50);
							message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open with a pile of coins in it. You take the coins and leave.","");
							end();
							}

					if (get_flag(50,0) == 50) {
							inc_flag(50,0,-50);
							change_coins(50);
							message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open with a pile of coins in it. You take the coins and leave.","");
							end();
							}
							
				message_dialog("The screen turns red and Small white letters appear on it: _You don't have any money left in your account_","");
				end();
				}
				
			if (choice == 2) {
					if (get_flag(50,0) > 100) {
							inc_flag(50,0,-100);
							change_coins(100);
							message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open with a pile of coins in it. You take the coins and leave.","");
							end();
							}
							
					if (get_flag(50,0) == 100) {
							inc_flag(50,0,-100);
							change_coins(100);
							message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open with a pile of coins in it. You take the coins and leave.","");
							end();
							}
							
				message_dialog("The screen turns red and Small  white letters appear on it: _You don't have any money left in your account_","");
				end();
				}
				
			if (choice == 3) {
					if (get_flag(50,0) > 200) {
							inc_flag(50,0,-200);
							change_coins(200);
							message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open with a pile of coins in it. You take the coins and leave.","");
							end();
							}
							
					if (get_flag(50,0) == 200) {
							inc_flag(50,0,-200);
							change_coins(200);
							message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open with a pile of coins in it. You take the coins and leave.","");
							end();
							}
							
				message_dialog("The screen turns red and Small white letters appear on it: _You don't have any money left in your account_","");
				end();
				}
			}
			
	if (choice == 2) {
			reset_dialog();
			add_dialog_str(0,"How much would you like to pay? Click a button, please.",0);
			add_dialog_choice(0,"50 C");
			add_dialog_choice(1,"100 C");
			add_dialog_choice(2,"200 C");
			choice = run_dialog(0);
			if (choice == 1) {
					if (coins_amount() > 50) {
							inc_flag(50,0,50);
							change_coins(-50);
							message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open Please put 50 coins in_, the screen says.","You put in 50 coins. The drawer closes. _Thank you very much,_  the screen says. You go away");
							end();
							}
						message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open Please put 50 coins in_, the screen says.","You realize you don't have 50 coins. You put in everything you have. The drawer closes. _That is not 50 coins!_ appears on the screen in huge red letters. The drawer slides open. You take the money and go away.");
						end();
					}
					
			if (choice == 2) {
					if (coins_amount() > 100) {
							inc_flag(50,0,100);
							change_coins(-100);
							message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open Please put 100 coins in_, the screen says.","You put in 100 coins. The drawer closes. _Thank you very much,_  the screen says. You go away");
							end();
							}
						message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open Please put 100 coins in_, the screen says.","You realize you don't have 100 coins. You put in everything you have. The drawer closes. _That is not 100 coins!_ appears on the screen in huge red letters. The drawer slides open. You take the money and go away.");
						end();
					}
					
			if (choice == 3) {
					if (coins_amount() > 200) {
							inc_flag(50,0,200);
							change_coins(-200);
							message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open Please put 200 coins in_, the screen says.","You put in 200 coins. The drawer closes. _Thank you very much,_  the screen says. You go away");
							end();
							}
						message_dialog("The machine begins to hum. Soon, a small drawer under the screen slides open Please put 200 coins in_, the screen says.","You realize you don't have 200 coins. You put in everything you have. The drawer closes. _That is not 200 coins!_ appears on the screen in huge red letters. The drawer slides open. You take the money and go away.");
						end();
					}
			}
break;