ok this is my code and it doesnt seem to wanna work please help 
	Code:
	 sub EVENT_SAY {
   if ($text=~/hail/i && $MM == 0) {
 	quest::say("You must kill lord Mith Mar to talk to me $name.");
   }
 if ($text=~/hail/i && $MM == 1) {
 	  quest::say("AHHH, So you defeated him would you like to go to The Ascent?");
 	}
 	if ($text=~/Ascent/i) {
 	  quest::say("Have fun on your Journey");
 	  quest::movepc(319,169,1027,44);
 	  
 	}
   }
 }
 and this is what gives the global 
	Code:
	 sub EVENT_SAY {
   if ($text=~/hail/i {
 	  quest::say("Here. is your flag for The Ascent");
 	  quest::setglobal("MM",1,0,"F");
 	}
   }