//DO NOT EDIT THIS!! WE ARE NOT RESPONSE FOR YOU BONE HEADED CHANGES TO THIS FILE SCREWING YOUR COPY OF MKF UP!

//Arthur uses a different reservebox setup. So we don't draw the default for him.
//Roll,Link,Vile,and Simon don't have reserve boxes
if MrPersistant.customreserve = false
{
    //ReserveBox
    draw_sprite_ext(spr_reservebox,0,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,0.7);
    scr_drawreserveitem(152,7,spr_mushroom,spr_fireflower,spr_hammersuit,spr_leaf,spr_tanookisuit,spr_spartansphere,spr_megamansuit,spr_suit_troop,spr_suit_demon,spr_suit_sega,spr_suit_blueshell);
}

//***************************************************
//Special HUD status icons for other characters
//***************************************************

//***************************************************
// GLOBAL: HP Meter
//***************************************************
if global.playerclass != 11
{
  // Player HP
  if global.playerclass = 8
      modHPx = 24;
  else
      modHPx = 0;
  if global.playerhpmode >= 1 and global.playerhp > 0
  and global.playerclass != 7 and global.playerclass != 16 and global.playerclass != 12
  {
    pclife = global.playerhpmode;
    if global.playerhpmax >= 4
    {
        if (global.playerhp = 4)
            draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+99+modHPx,view_yview[0]+14,1,1,0,c_white,0.7);
        else
            draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+99+modHPx,view_yview[0]+14,1,1,0,c_white,0.7);
    }
    if global.playerhpmax >= 3
    {
        if (global.playerhp >= 3)
            draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+111+modHPx,view_yview[0]+14,1,1,0,c_white,0.7);
        else
            draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+111+modHPx,view_yview[0]+14,1,1,0,c_white,0.7);
    }
    if (global.playerhp >= 2)
        draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+123+modHPx,view_yview[0]+14,1,1,0,c_white,0.7);
    else
        draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+123+modHPx,view_yview[0]+14,1,1,0,c_white,0.7);
    draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+135+modHPx,view_yview[0]+14,1,1,0,c_white,0.7);
  }
  // Stage HP
  if global.hpmode > 0
  and (global.mmlife >= 1)
  {
    if global.playerhpmode >= 1
        alignhp = 1;
    else
        alignhp = 9;
    mylife = global.hpmode * 2;
    if obj_mario.canHP >= 1
    {
        if (global.mmlife = 3)
            draw_sprite_ext(spr_mm_health_bar,mylife - 1,view_xview[0]+111+modHPx,view_yview[0]+alignhp,1,1,0,c_white,0.7);
        else
            draw_sprite_ext(spr_mm_health_bar,mylife,view_xview[0]+111+modHPx,view_yview[0]+alignhp,1,1,0,c_white,0.7);
        if (global.mmlife >= 2)
            draw_sprite_ext(spr_mm_health_bar,mylife - 1,view_xview[0]+123+modHPx,view_yview[0]+alignhp,1,1,0,c_white,0.7);
        else
            draw_sprite_ext(spr_mm_health_bar,mylife,view_xview[0]+123+modHPx,view_yview[0]+alignhp,1,1,0,c_white,0.7);
        draw_sprite_ext(spr_mm_health_bar,mylife - 1,view_xview[0]+135+modHPx,view_yview[0]+alignhp,1,1,0,c_white,0.7);
    }
  }
}

//***************************************************
// Sonic the Hedgehog
//***************************************************

//***************************************************

//***************************************************
// Kirby
//***************************************************

//Draw Kirby's lifebar

//***************************************************

//***************************************************
// Arthur
//***************************************************

if global.playerclass = 6
{

//Draw Arthur's weapon boxes and weapon icons
//Draw the reserve weapon box
draw_sprite_ext(spr_reservebox,2,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,0.7);

//Draw the current weapon box reserve underlayer
draw_sprite_ext(spr_reservebox,1,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,1);

//Draw reserve weapon icon
//draw_sprite_ext(spr_gng_wepicons,global.reserveitem,view_xview[0]+145,view_yview[0]+10,1,1,0,c_white,0.7)
draw_sprite_ext(spr_gng_wepicons,global.Areserve,view_xview[0]+155,view_yview[0]+10,1,1,0,c_white,0.7);

//Draw the current weapon box reserve overlayer
draw_sprite_ext(spr_reservebox,3,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,0.4);

//Draw current weapon icon
draw_sprite_ext(spr_gng_wepicons,global.Aweapon,view_xview[0]+149,view_yview[0]+4,1,1,0,c_white,1);

//Show current flight powerup
if global.Awings > 0
    draw_sprite_ext(spr_hud_wings,global.Awings,view_xview[0]+174,view_yview[0]+19,1,1,0,c_white,0.7);
}

//***************************************************
// Roll
//***************************************************

if global.playerclass = 7
{
    //Protoman version of HUD
    if global.outfittoggle = 2
    {
        pclife = global.playerhpmode //global.hpmode * 2
////////////////////////////////////////////////////////////////
//        draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+99,view_yview[0]+14,1,1,0,c_white,0.7)
        if MrPersistant.megaproto = 1
            draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+99,view_yview[0]+14,1,1,0,c_white,0.7)
        draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+111,view_yview[0]+14,1,1,0,c_white,0.7)
        draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+123,view_yview[0]+14,1,1,0,c_white,0.7)
        draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+135,view_yview[0]+14,1,1,0,c_white,0.7)
/////////
//        if global.playerhp >= 4
//            draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+99,view_yview[0]+14,1,1,0,c_white,0.7)
        if MrPersistant.megaproto = 1 and global.playerhp >= 4
            draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+99,view_yview[0]+14,1,1,0,c_white,0.7)
        if global.playerhp >= 3
            draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+111,view_yview[0]+14,1,1,0,c_white,0.7)
        if global.playerhp >= 2
            draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+123,view_yview[0]+14,1,1,0,c_white,0.7)
        if global.playerhp >= 1
            draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+135,view_yview[0]+14,1,1,0,c_white,0.7)
        //Draw the reserve weapon box
        draw_sprite_ext(spr_reservebox,2,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,0.7)
        //Draw the current weapon box reserve underlayer
        draw_sprite_ext(spr_reservebox,1,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,1)
        draw_sprite_ext(spr_roll_wepicons,global.PRweapon2,view_xview[0]+155,view_yview[0]+10,1,1,0,c_white,0.7)
        //Draw the current weapon box reserve overlayer
        draw_sprite_ext(spr_reservebox,3,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,0.4)
        draw_sprite_ext(spr_roll_wepicons,global.PRweapon,view_xview[0]+149,view_yview[0]+4,1,1,0,c_white,0.7)
        exit
    }
//Draw Roll's weapon boxes and weapon icons
//Draw the reserve weapon box
draw_sprite_ext(spr_reservebox,2,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,0.7)

//Draw the current weapon box reserve underlayer
draw_sprite_ext(spr_reservebox,1,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,1)

//Draw robot master weapon icon
//draw_sprite_ext(spr_gng_wepicons,global.reserveitem,view_xview[0]+145,view_yview[0]+10,1,1,0,c_white,0.7)
draw_sprite_ext(spr_roll_wepicons,global.Rweapon,view_xview[0]+155,view_yview[0]+10,1,1,0,c_white,0.7)

//Draw the current weapon box reserve overlayer
draw_sprite_ext(spr_reservebox,3,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,0.4)

/////////////////////////////////////
//Draw Reserved item
scr_drawreserveitem(149,4,0,spr_mushroom,spr_hammersuit,spr_leaf,spr_tanookisuit,spr_spartansphere,spr_megamansuit)
///////////////////////////////////////////

//Show current flight powerup
//if global.Awings > 0
//    draw_sprite_ext(spr_hud_wings,global.Awings,view_xview[0]+174,view_yview[0]+19,1,1,0,c_white,0.7)
}

//***************************************************

//***************************************************
// Vile
//***************************************************

if global.playerclass = 11
{
    //Vile's Health Meter
    //if global.playerhpmode >= 1
    if global.hpmode > 0
    {
        //Back Piece
        draw_sprite_ext(spr_meter_vilehealth_back,1,view_xview[0]+112,view_yview[0]+8,1,1,0,c_white,1)
        myhealth = global.playerhp + global.mmlife
        if (myhealth >= 10)
            draw_sprite_ext(spr_meter_vilehealth,1,view_xview[0]+113,view_yview[0]+12,1,1,0,c_white,1)
        if (myhealth >= 9)
            draw_sprite_ext(spr_meter_vilehealth,1,view_xview[0]+116,view_yview[0]+12,1,1,0,c_white,1)
        if (myhealth >= 8)
            draw_sprite_ext(spr_meter_vilehealth,1,view_xview[0]+119,view_yview[0]+12,1,1,0,c_white,1)
        if (myhealth >= 7)
            draw_sprite_ext(spr_meter_vilehealth,1,view_xview[0]+122,view_yview[0]+12,1,1,0,c_white,1)
        if (myhealth >= 6)
            draw_sprite_ext(spr_meter_vilehealth,1,view_xview[0]+125,view_yview[0]+12,1,1,0,c_white,1)
        if (myhealth >= 5)
            draw_sprite_ext(spr_meter_vilehealth,1,view_xview[0]+128,view_yview[0]+12,1,1,0,c_white,1)
        if (myhealth >= 4)
            draw_sprite_ext(spr_meter_vilehealth,1,view_xview[0]+131,view_yview[0]+12,1,1,0,c_white,1)
        if (myhealth >= 3)
            draw_sprite_ext(spr_meter_vilehealth,1,view_xview[0]+134,view_yview[0]+12,1,1,0,c_white,1)
        if (myhealth >= 2)
            draw_sprite_ext(spr_meter_vilehealth,1,view_xview[0]+137,view_yview[0]+12,1,1,0,c_white,1)
        if (myhealth >= 1)
            draw_sprite_ext(spr_meter_vilehealth,1,view_xview[0]+140,view_yview[0]+12,1,1,0,c_white,1)
    }
    else
    {
        //Back Piece
        draw_sprite_ext(spr_meter_vilehealth_back,0,view_xview[0]+112,view_yview[0]+8,1,1,0,c_white,1)
        if (global.playerhp >= 4)
            draw_sprite_ext(spr_meter_vilehealth,0,view_xview[0]+122,view_yview[0]+12,1,1,0,c_white,1)
        if (global.playerhp >= 3)
            draw_sprite_ext(spr_meter_vilehealth,0,view_xview[0]+128,view_yview[0]+12,1,1,0,c_white,1)
        if (global.playerhp >= 2)
            draw_sprite_ext(spr_meter_vilehealth,0,view_xview[0]+134,view_yview[0]+12,1,1,0,c_white,1)
        if (global.playerhp >= 1)
            draw_sprite_ext(spr_meter_vilehealth,0,view_xview[0]+140,view_yview[0]+12,1,1,0,c_white,1)
    }
}

//***************************************************

//***************************************************
// Simon Belmont
//***************************************************

if global.playerclass = 16
{
    pclife = global.playerhpmode //global.hpmode * 2
    draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+99,view_yview[0]+14,1,1,0,c_white,0.7)
    draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+107,view_yview[0]+14,1,1,0,c_white,0.7)
    draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+115,view_yview[0]+14,1,1,0,c_white,0.7)
    draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+123,view_yview[0]+14,1,1,0,c_white,0.7)
    draw_sprite_ext(spr_mm_health_bar,pclife,view_xview[0]+131,view_yview[0]+14,1,1,0,c_white,0.7)
    if global.playerhp >= 5
        draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+99,view_yview[0]+14,1,1,0,c_white,0.7)
    if global.playerhp >= 4
        draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+107,view_yview[0]+14,1,1,0,c_white,0.7)
    if global.playerhp >= 3
        draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+115,view_yview[0]+14,1,1,0,c_white,0.7)
    if global.playerhp >= 2
        draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+123,view_yview[0]+14,1,1,0,c_white,0.7)
    if global.playerhp >= 1
        draw_sprite_ext(spr_mm_health_bar,pclife - 1,view_xview[0]+131,view_yview[0]+14,1,1,0,c_white,0.7)
    //Hearts
    draw_sprite_ext(spr_coinbottom,1,view_xview[0]+270,view_yview[0]+24,1,1,0,c_white,1)

    draw_set_halign (fa_right)
    draw_set_font (fontscore)
    draw_text(view_xview[0] + 310,view_yview[0] + 24,string(global.Sheart))
    draw_set_halign(fa_left)
    if global.Sshot = 2 or global.Sshot = 3
        draw_sprite_ext(spr_mushroom,global.Sshot+4,view_xview[0]+254,view_yview[0]+24,1,1,0,c_white,1)
    //ReserveBox
    draw_sprite_ext(spr_reservebox,0,view_xview[0]+147,view_yview[0]+2,1,1,0,c_white,0.7)
    draw_sprite_ext(spr_fireflower,global.Sweapon,view_xview[0]+152,view_yview[0]+7,1,1,0,c_white,0.7)
    draw_sprite_ext(spr_hud_wings,global.Swings,view_xview[0]+174,view_yview[0]+19,1,1,0,c_white,0.7)
}
//***************************************************

//***************************************************

//Draw Ryu's health bar
if global.playerclass = 12
{
 //Back Piece
        draw_sprite_ext(spr_ryuhealthmeter,0,view_xview[0]+80,view_yview[0]+8,1,1,0,c_white,1)
        if (global.playerhp >= 4)
            draw_sprite_ext(spr_ryuhealthbar,0,view_xview[0]+104,view_yview[0]+8,1,1,0,c_white,1)
        if (global.playerhp >= 3)
            draw_sprite_ext(spr_ryuhealthbar,0,view_xview[0]+96,view_yview[0]+8,1,1,0,c_white,1)
        if (global.playerhp >= 2)
            draw_sprite_ext(spr_ryuhealthbar,0,view_xview[0]+88,view_yview[0]+8,1,1,0,c_white,1)
        if (global.playerhp >= 1)
            draw_sprite_ext(spr_ryuhealthbar,0,view_xview[0]+80,view_yview[0]+8,1,1,0,c_white,1)
 //Ammo
    draw_sprite_ext(spr_ryu_ammo_symbol,0,view_xview[0]+270,view_yview[0]+24,1,1,0,c_white,1)
 draw_set_color(c_white)
draw_set_halign (fa_right)
draw_set_font (fontscore)
draw_text(view_xview[0] + 310,view_yview[0] + 24,string(global.Rammo))
draw_set_halign(fa_left)


                }