
function void messageBox_Plain (str text,str font,int type, int color)
{
  setPlainMsgText(text,font,type,color);
  setPlainMsgBox();
}

function void messageBox_PlainBold (str text,str font,int type, int color)
{
  setPlainMsgTextBold(text,font,type,color);
  setPlainMsgBoxBold();
}

function void messageBox_Portrait (str text,str font,str pic,int type, int color)
{
  setPortraitMsgText(text,font,type,color);
  setPortraitMsgBox();
  setPortrait(pic);
}

function void messageBox_PortraitBold (str text,str font,str pic,int type, int color)
{
  setPortraitMsgTextBold(text,font,type,color);
  setPortraitMsgBoxBold();
  setPortraitBold(pic);
}

function void setPlainMsgBox (VOID)
{
	SetFont("TEXTBOX1");
	SetHudSize(640, 480, 0);
  	HudMessage(s:"A"; HUDMSG_PLAIN, 5, 0, 320.0, 64.0, 0.0);
}

function void setPlainMsgBoxBold (VOID)
{
	SetFont("TEXTBOX1");
	SetHudSize(640, 480, 0);
  	HudMessageBold(s:"A"; HUDMSG_PLAIN, 5, 0, 320.0, 64.0, 0.0);
}

function void setPlainMsgText (str text,str font,int type, int color)
{
  	SetFont(font);
	SetHudSize(0, 0, 0);
	HudMessage(s:text; type, 1, color, -0.01, -0.01, 0);
}

function void setPlainMsgTextBold (str text,str font,int type, int color)
{
  	SetFont(font);
	SetHudSize(0, 0, 0);
	HudMessageBold(s:text; type, 1, color, -0.01, -0.01, 0);
}

function void setPortraitMsgBox(VOID)
{
  SetFont("TEXTBOX2");
  SetHudSize(640, 480, 0);
  HudMessage(s:"A"; HUDMSG_PLAIN, 5, 0, 384.0, 64.0, 0);
}

function void setPortraitMsgBoxBold(VOID)
{
  SetFont("TEXTBOX2");
  SetHudSize(640, 480, 0);
  HudMessageBold(s:"A"; HUDMSG_PLAIN, 5, 0, 384.0, 64.0, 0);
}

function void setPortrait (str pic)
{
  SetFont(pic);
  SetHudSize(640, 480, 0);
  HudMessage(s:"A"; HUDMSG_PLAIN, 4, 0, 64.0, 64.0, 0);
}

function void setPortraitBold (str pic)
{
  SetFont(pic);
  SetHudSize(640, 480, 0);
  HudMessageBold(s:"A"; HUDMSG_PLAIN, 4, 0, 64.0, 64.0, 0);
}

function void setPortraitMsgText (str text,str font,int type, int color)
{
  SetFont(font);
  SetHudSize(0, 0, 0);
  HudMessage(s:text; type, 1, color, -0.21, -0.01, 0);
}

function void setPortraitMsgTextBold (str text,str font,int type, int color)
{
  SetFont(font);
  SetHudSize(0, 0, 0);
  HudMessageBold(s:text; type, 1, color, -0.21, -0.01, 0);
}

function void messageBox_Clear (VOID)
{
	SetHudSize(0, 0, 0);
	for (int textLine = 0; textLine <= 5; textLine++)
  	HudMessage(s:""; HUDMSG_PLAIN, textLine, 0, 0.0, 0.0, 0.0);
}

function void messageBox_ClearBold (VOID)
{
	SetHudSize(0, 0, 0);
	for (int textLine = 0; textLine <= 5; textLine++)
  	HudMessageBold(s:""; HUDMSG_PLAIN, textLine, 0, 0.0, 0.0, 0.0);
}

SCRIPT 911 (VOID)	//frees player from text and frozen-ness.  CALL 911!
{
	messageBox_Clear();
	SetPlayerProperty(0,0,PROP_TOTALLYFROZEN);
}

SCRIPT 912 (VOID)
{
  	SetFont("FUTHARK");
	HudMessage(s:"FUTHARK"; HUDMSG_PLAIN, 0, 0, -0.01, -0.01, 0);
	SetFont("TEXTBOX1");
	SetHudSize(640, 480, 0);
  	HudMessage(s:"A"; HUDMSG_PLAIN, 3, 0, 320.0, 128.0, 0);
}