begintownscript;

variables;
 
 short choice; 

body; 

beginstate INIT_STATE;
 break;
 beginstate START_STATE;
 break;
 beginstate EXIT_STATE;
 break;
 
beginstate 10;
 move_to_new_town(8,32,19);
 break;
 
beginstate 11;
 if (get_flag(1,26) == 0){ message_dialog("As soon as you had entered this part, you knew something was wrong. The muffins weren't attacking.","");
 message_dialog("But that doesn't matter, as you have entered the throne room of the demon that made this muffin madness. He stares as you like an arrogant cat. _Come, and talk to me. This should be amusing._","");
 set_flag(1,26,1);
 } break;
 
beginstate 11;
 if (get_flag(0,27) > 0) end ();
 message_dialog("You enter the main tower of the fortress, expecting to find the demon and end this.","");
 set_flag(0,27,1);
 break;
 
beginstate 12;
 if (get_flag(0,19) > 0) end();
 message_dialog("You approch the demon, and then he starts talking. _Welcome, fools, I am Mufferto. Yes, weak name, but I never cared about names._","");
 message_dialog("_I'm sure Iffy sent you to kill me. He's an idiot._ You then take out your weapons.","");
 message_dialog("Mufferto laughs. _You expect to kill me with those dimpy little things? You're more foolish than I thought._ Then something hit him.","");
 run_animation();
 put_boom_on_char(15,6,1);
 message_dialog("Mufferto screams with pain. _What was that? Wait...magic! Some form of magic!_","");
 message_dialog("_If he casted that with no one being here to finish me...that would be useless but..._ He faces you.","_You are going to die!_");
 set_attitude(6,10);
 set_attitude(7,10);
 set_attitude(8,10);
 set_attitude(9,10);
 set_attitude(10,10);
 set_attitude(11,10);
 set_attitude(12,10);
 set_attitude(13,10);
 set_attitude(14,10);
 set_attitude(15,10);
  set_flag(0,19,1);

break;
 