Code: Select all
script 3 (void)
{
changecamera (2, 0, 0);
teleport (3, 0, 0);
SetMugShotState ("Grin");
SetMusic ("D_DM2INT");
int mmount = GetLevelInfo (LEVELINFO_TOTAL_MONSTERS);
int mdead = GetLevelInfo (LEVELINFO_KILLED_MONSTERS);
int secfn = GetLevelInfo (LEVELINFO_FOUND_SECRETS);
int sectot = GetLevelInfo (LEVELINFO_TOTAL_SECRETS);
int itemp = GetLevelInfo (LEVELINFO_FOUND_ITEMS);
int itemt = GetLevelInfo (LEVELINFO_TOTAL_ITEMS);
//Player stats//
{
SetFont("BIGFONT");
HudMessage(s:"monsters killed: ",
d:mdead, s:" out of ", d:mmount,
s:"\nsecrets found: ", d:secfn,
s:" out of ", d:sectot,
s:"\nitems picked up: ", d:itemp,
s:" out of ", d:itemt;
HUDMSG_TYPEON | HUDMSG_LOG, 0, CR_TAN, 1.5, 0.4, 5.0,
0.05, 0.0);
}
//Entering... Screen//
int buttons = GetPlayerInput(-1, INPUT_BUTTONS);
if (buttons != BT_USE)
{
delay (1);
restart;
}
if (buttons == BT_USE)
{
playsound (0, "weapons/shotgr", CHAN_BODY, 1.0, false, ATTN_NONE);
SetFont("BIGFONT");
HudMessage(s:"Now entering";
HUDMSG_PLAIN | HUDMSG_LOG, 0, CR_WHITE, 1.5, 0.8, 5.0,
0.05, 2.0);
delay (8);
HudMessage(s:"The Underhalls";
HUDMSG_TYPEON | HUDMSG_LOG, 0, CR_RED, 1.5, 0.84, 5.0,
0.05, 2.0);
delay (72);
exit_normal (0);
}
}