base doom;
Height 0;
InterpolateHealth true;
InterpolateArmor true;
statusbar normal, fullscreenoffsets
{
	drawimage "HUDPRJ1", 61, -47;
		
	//Life and Armor
	drawimage "HPARM", 0, -47;

    InInventory "LOWHP",1
	{
		drawimage "LOWHP1", 0, -47;
	}

    InInventory "HighHP", 1
    {
		drawimage "SPRHP", 0, -47;
    }

	InInventory PowerInvulnerable, 1
    {
		drawimage "GODHP", 0, -47;
    }

    drawswitchableimage armortype CAArmorGlobe, "NOARM", "GRNHUD", 0, -47;
    drawswitchableimage armortype CAGreenArmor, "NOARM", "GRNHUD", 0, -47;
    drawswitchableimage armortype CABlueArmor, "NOARM", "BLUHUD", 0, -47;
    drawswitchableimage armortype BlueArmorForMegasphere, "NOARM", "BLUHUD", 0, -47;	



	DrawNumber 3, LIFONT, White, Health, 38, -39, 0, Red, 25, Gold, 101;
	DrawNumber 3, LIFONT, White, Armor, 38, -16, 0, Red, 10, Gold, 101;

	//Key tracker
	
	drawswitchableimage RedCard, "nullimage", "HUDRKEY", 50, -42;
	drawswitchableimage redskull, "nullimage", "HUDRSKU", 50, -20;
	drawswitchableimage Yellowcard, "nullimage", "HUDYKEY", 50, -35;
	drawswitchableimage yellowskull, "nullimage", "HUDYSKU", 50, -14;
	drawswitchableimage BlueCard, "nullimage", "HUDBKEY", 50, -28;
	drawswitchableimage Blueskull, "nullimage", "HUDBSKU", 50, -8;
	
	
	//Rad suit tracker
	InInventory bootprotection, 1
	{
		drawimage "HUDPRJ6", 106, -47;
		drawimage "RADMTR", 115, -49;
		drawbar "KMEMTR","KMEMTY", PowerupTime BootMeterHUD,vertical,  122, -43;
	}

	//==========================================================================
	//==========================================================================
	//==========================================================================
	//Crate energy stuff

	//Particle Smasher
	InInventory "ParticleSmasher", 1
	{
		drawimage "CRTSCN", -78,-46;
		drawbar "CRTMTR", "NOCRT", CrateEnergy, vertical, -65,-38;
		
		
		InInventory "CrateEnergy", 20
		{
			drawimage "CRTBLT1", -71,-36;
			drawimage "CRTBLT1", -54,-36;
			
			drawimage "RCRLINE1", -78,-46;
			drawimage "LCRLINE1", -78,-46;
		}
	}

	
	//Shoot Knight Pistol
	InInventory "SKPistol", 1
	{
		drawimage "CRTSCN", -78,-46;
		drawbar "CRTMTR", "NOCRT", CrateEnergy, vertical, -65,-38;
		
		
		//Primary fire
		InInventory "CrateEnergy", 1
		{
			drawimage "LCRLINE1", -78,-46;
			drawimage "CRTBLT1", -71,-36;
		}
		//Alt fire
		InInventory "CrateEnergy", 40
		{
			drawimage "CRTBLT1", -54,-36;
			drawimage "RCRLINE1", -78,-46;
		}
	}


	//Plakanomicon
	InInventory "TSBrick", 1
	{
		drawimage "CRTSCN", -78,-46;
		drawbar "CRTMTR", "NOCRT", CrateEnergy, vertical, -65,-38;

		

		InInventory "CrateEnergy", 25
		{
			drawimage "CRTBLT1", -71,-36;
			drawimage "CRTBLT1", -54,-36;
			
			drawimage "RCRLINE1", -78,-46;
			drawimage "LCRLINE1", -78,-46;
		}

		
	}


	//Icarus Launcher
	InInventory "IcarusLauncher", 1
	{
		drawimage "CRTSCN", -78,-46;
		drawbar "CRTMTR", "NOCRT", CrateEnergy, vertical, -65,-38;
		

		//Primary Fire
		InInventory "CrateEnergy", 1
		{
			drawimage "LCRLINE1", -78,-46;
			drawimage "CRTBLT1", -71,-36;
		}

		//Alt fire
		InInventory "CrateEnergy", 5
		{
			drawimage "CRTBLT1", -54,-36;
			drawimage "RCRLINE1", -78,-46;
		}
	}


	//Pocket Boners
	InInventory "RevenantBox", 1
	{
		drawimage "CRTSCN", -78,-46;
		drawbar "CRTMTR", "NOCRT", CrateEnergy, vertical, -65,-38;
		

		InInventory "CrateEnergy", 20
		{
			drawimage "CRTBLT1", -71,-36;
			
			drawimage "LCRLINE1", -78,-46;
		}
		
		//Altfire is always available
		drawimage "CRTBLT1", -54,-36;
		drawimage "RCRLINE1", -78,-46;
	}
	
	//An extra block of crap to put an item box around
	//the crate energy bar when you select a crate weapon
	//it sucks I have to do it per weapon.
	isselected "TSBrick"
	{
		drawimage "USECRT1", -78,-46;
	}	

	isselected "ParticleSmasher"
	{
		drawimage "USECRT1", -78,-46;
	}	

	isselected "SKPistol"
	{
		drawimage "USECRT1", -78,-46;
	}	

	isselected "IcarusLauncher"
	{
		drawimage "USECRT1", -78,-46;
	}	

	isselected "RevenantBox"
	{
		drawimage "USECRT1", -78,-46;
	}	
	
	//END OF CRATE ENERGY
	//==========================================================================
	//==========================================================================
	//==========================================================================
	

	
	
	//Ammo stuff
	drawimage "AMO", -78, -46;

	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	//Ammo tracking stuff for Combined_Arms----------------------------
	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	
	//Lilk's axe (chainsaw)
	isselected "SkillAxe"
	{
		Drawnumber 2, LIFONT, Yellow, skill, -12, -39, 0, red, 0;
	}

	//Blackjack baton (Fists)
	isselected "BlackJackBaton"
	{
		InInventory not "GauntletHP", 1
		{
			drawstring LIFONT, yellow, "+", -15, -38, 0;
		}
		
		InInventory "GauntletHP", 1
		{
			Drawnumber 3, LIFONT, Yellow, GauntletHP, -12, -39, 0;
		}
	}
	
	//Kick meter
	InInventory "BootTimer",1
	{
		IsSelected Not "VultureSMG"
		{
			drawimage "KCKMTR", -133, -49;
			drawbar "KMEMTR","KMEMTY", BootTimer, vertical,  -126, -43;
			InInventory not "BootTimer", 15
			{
				drawimage "MTRFLS1", -133, -49;
			}
		}
		
		else
		{
			drawimage "KCKMTR", -133, -60;
			drawbar "KMEMTR","KMEMTY", BootTimer, vertical,  -126, -54;
			InInventory not "BootTimer", 15
			{
				drawimage "MTRFLS1", -133, -60;
			}
		}
	}	
	
	//Second wind (Pistol)
	isselected "SecondWind"
	{
		InInventory not "Clip", 1
		{
			drawstring LIFONT, yellow, "+", -15, -38, 0;
		}

		InInventory "Clip",1
		{
			Drawnumber 3, LIFONT, Yellow, Clip, -12, -39, 0, red, 0;
		}
		drawimage "USEAMO", -60, -20;
	}
	
	//Second wind heat meter
	InInventory "SecondWindHeat",1
	{
		drawimage "2WMTR", -115, -49;
		drawbar "KMEMTR","KMEMTY", SecondWindHeat, vertical,  -108, -43;
		InInventory not "SecondWindHeat", 25
		{
			drawimage "MTRFLS1", -115, -49;
		}
	}

	//Whiplash Shotgun
	isselected "WhiplashShotgun"
	{
		Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -46, -20;
	}

	//Sharpshooter (SSG)
	isselected "SharpShooter"
	{
		Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -46, -20;
	}
	
	//Vulture SMG (Chaingun)
	isselected "VultureSMG"
	{
		Drawnumber 3, LIFONT, Yellow, Clip, -12, -39, 0, red, 0;
		drawimage "USEAMO", -60, -20;


		Drawimage "SCAVMTR", -180,-12;
		drawbar "SCVCHG1","NOSTRKR", ScavCharge, Horizontal,  -160, -8;
		
		InInventory "ScavCharge", 100
		{
			drawbar "FULSCV1","NOSTRKR", ScavCharge, Horizontal,  -160, -8;
		}
	}
	
	isselected not "VultureSmg"
	{
		InInventory "ScavCharge", 100
		{
			drawimage "SCAVRDY", -180, -12;
		}
	}
	
	//Cygnis (Rocket Launcher)
	isselected "CyclopsCannon"
	{
		Drawnumber 3, LIFONT, Yellow, RocketAmmo, -12, -39, 0, red, 0;
		drawimage "USEAMO", -31, -20;
	}

	//Buster carbine (Plasma Rifle)
	isselected "BusterCarbine"
	{
		Drawnumber 3, LIFONT, Yellow, Cell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -14, -20;
	}
	
	//end of ammo tracking stuff for Combined_Arms-----------------
	
	
	//*****************************************************************
	//*****************************************************************
	//Ammo tracking stuff for Blastmaster MK2--------------------------
	//*****************************************************************
	//*****************************************************************

	//heat gauge
	InInventory "BMheat", 1
	{
		drawimage "THERM", -109, -47;
		drawbar "TEMP", "NOTEMP", BMheat, vertical, -106, -44;
		
		InInventory "BMheat", 91
		{
			drawimage "MTRPIP1", -109, -47;
		}
		
		InInventory "BMheat", 156
		{
			drawimage "2TRPIP1", -109, -47;
		}
		
		InInventory "Superventer", 1
		{
			drawimage "AUGMTR", -109, -47;
		}

		
	}

	InInventory "BMoverheat", 1
	{
		drawimage "HOTMAMA", -109, -47;
		drawbar "HOTMTR1", "NOTEMP", BMoverheat, vertical, -106, -44;

		InInventory "Superventer", 1
		{
			drawimage "HOTAUG", -109, -47;
		}

	}
	
	//Mantis Bunker (chainsaw)
	isselected "MantisBunker"
	{
		drawstring LIFONT, yellow, "+", -15, -38, 0;
	}
	
	//Ice Beam (pistol)
	isselected "BMIceBeam"
	{
		Drawnumber 3, LIFONT, Yellow, Icecharge, -12, -39, 0, red, 0;
	}

	//Slugger shotgun
	isselected "BMShotgun"
	{
		Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -46, -20;
	}

	//Firebrand Shotgun (SSG)
	isselected "BMSSG"
	{
		Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -46, -20;
	}

	//Defiance Machinegun (chaingun)
	isselected "BMMachinegun"
	{
		Drawnumber 3, LIFONT, Yellow, Clip, -12, -39, 0, red, 0;
		drawimage "USEAMO", -60, -20;
	}

	//Ranger grenade gun (rocket launcher)
	isselected "BMgrenader"
	{
		Drawnumber 3, LIFONT, Yellow, Rocketammo, -12, -39, 0, red, 0;
		drawimage "USEAMO", -31, -20;
	}

	//Fissin Sweeper (Plasma Rifle)
	isselected "BMplasmagun"
	{
		Drawnumber 3, LIFONT, Yellow, Cell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -14, -20;
	}

	//end of ammo tracking stuff for the BlastMaster Mk2-----------------
	
	
	//*****************************************************************
	//*****************************************************************
	//Ammo tracking stuff for Tech Monk--------------------------------
	//*****************************************************************
	//*****************************************************************

	//Kame Bomb Meter
	
	InInventory "KameBombModule", 1
	{
		InInventory Not "KameCoolDown",1
		{
			drawimage "KMEOK", -115, -12;
		}
	}

	InInventory "KameCoolDown", 1
	{
		drawimage "KMEFRM", -119, -53;
		drawbar "KMEMTR","KMEMTY", KameCoolDown, vertical,  -108, -43;
	}

	InInventory "KameBombReload",5
	{
		drawimage "MTFLS1", -119, -53;
	}
	else
	InInventory "KameBombReload",4
	{
		drawimage "MTFLS1", -119, -53;
	}
	else
	InInventory "KameBombReload",3
	{
		drawimage "MTFLS2", -119, -53;
	}
	else
	InInventory "KameBombReload",2
	{
		drawimage "MTFLS3", -119, -53;
	}
	else
	InInventory "KameBombReload",1
	{
		drawimage "MTFLS4", -119, -53;
	}

	
	//Striker Beam meter (chainsaw)
	InInventory "StrikerModule", 1
	{
		InInventory not "StrikerCharge", 1
		{
			InInventory not "StrikerTimer", 1
			{
				InInventory not "StrikerReset",1
				{
					drawimage "STRKOK", -180, -12;
				}
			}
		}
	}

	InInventory "StrikerCharge", 1
	{
		Drawimage "STRKMTR", -180,-12;
		drawbar "STRCHG1","NOSTRKR", StrikerCharge, Horizontal,  -160, -8;
	}

	InInventory "StrikerTimer", 1
	{
		Drawimage "STRKMTR", -180,-12;
		drawbar "STRATV1","NOSTRKR", StrikerTimer, Horizontal,  -160, -8;
	}


	InInventory "StrikerReset", 1
	{
		Drawimage "STRKMTR", -180,-12;
		drawbar "STRRST1","NOSTRKR", StrikerReset, Horizontal,  -160, -8;		
		InInventory "StrikerMeterFlashy", 1
		{
			Drawimage "STRKMT1", -180,-12;
		}
	}


	//Hand Beam (pistol)
	isselected "HandBeam"
	{
		drawstring LIFONT, yellow, "+", -15, -38, 0;
	}

	InInventory "HandBeamSelect"
	{
		Drawimage "TMWIA0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}
	

	//Wave Ball (shotgun)
	isselected "WaveBall"
	{
		Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -46, -20;
	}
	
	InInventory "WaveBallSelect"
	{
		Drawimage "TMWIB0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}
	
	//Moon Beam (chaingun)
	isselected "MoonBeam"
	{
		Drawnumber 3, LIFONT, Yellow, Clip, -12, -39, 0, red, 0;
		drawimage "USEAMO", -60, -20;
	}

	InInventory "MoonBeamSelect"
	{
		Drawimage "TMWIC0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}
	
	//Clash Ball (rocket launcher)
	isselected "ClashBall"
	{
		Drawnumber 3, LIFONT, Yellow, Rocketammo, -12, -39, 0, red, 0;
		drawimage "USEAMO", -31, -20;
	}

	InInventory "ClashBallSelect"
	{
		Drawimage "TMWID0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}


	//Pearl Laser (plasma rifle)
	isselected "PearlLaser"
	{
		Drawnumber 3, LIFONT, Yellow, Cell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -14, -20;
	}
	
	InInventory "PearlLaserSelect"
	{
		Drawimage "TMWIE0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}

	//Striker Beam (chainsaw)
	isselected "StrikerBeam"
	{
		drawstring LIFONT, yellow, "+", -15, -38, 0;
	}

	InInventory "StrikerBeamSelect"
	{
		Drawimage "TMWIF0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}

	//end of ammo tracking stuff for the Tech Monk-----------------
	
	
	//*****************************************************************
	//*****************************************************************
	//Ammo tracking stuff for Past Linked------------------------------
	//*****************************************************************
	//*****************************************************************

	//Inventory Bar

	InInventory "IamPastLinked"
	{
		Drawimage "XTRAHUD", -187, -23;
		
		//Why the hell did I decide to make unique icons for all of the weapons aaaaagghh
		//you better be grateful for this, whoever you are.
		
		//Sword Stuff
		IsSelected "HeroSword"
		{
		
			Drawimage "PLKHUD", -187, -23;
		
			InInventory "BoomerangToken"
			{
				Drawimage "PLRNG1", -187, -23;
				InInventory "MagicalBoomerangToken",1
				{
					Drawimage "PLRNG2", -187, -23;
				}
		
				InInventory "FireBoomerangToken",1
				{
					Drawimage "PLRNG3", -187, -23;
				}
			}

			InInventory "MagicCandle"
			{
				Drawimage "PLCND1", -187, -23;
				InInventory "RedCandle",1
				{
					Drawimage "PLCND2", -187, -23;
				}
			}

			InInventory "BombBag"
			{
				Drawimage "PLCD6", -139, -18;
				
				InInventory "RocketAmmo",1
				{
					Drawimage "PLBMB", -187, -23;
					Drawnumber 3, BOMBAMMOFONT, Black, RocketAmmo, -130, -8, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, White, RocketAmmo, -129, -8, 0, red, 0;
				}
			}
		
		
			//Cooldowns for sword stuff
		
			InInventory "BoomerangCooldown",1
			{
				drawbar "PLCD1", "PLCD2", BoomerangCooldown, vertical, reverse, -175, -18;
			}

			InInventory "CandleCooldown",1
			{
				drawbar "PLCD3", "PLCD4", CandleCooldown, vertical, reverse, -157, -18;
			}

		
		
			//Item Flashes
			InInventory "BoomerangReady"
			{
				Drawimage "PLRNG4", -187, -23;
			}


			InInventory "CandleReady"
			{
				Drawimage "PLCND3", -187, -23;
			}
		}
		//end of sword stuff
		
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
		
		//Bow Stuff
		IsSelected "LinkedBow"
		{
			Drawimage "PLKHUD2", -187, -23;
		
			InInventory "BoomerangToken"
			{
				Drawimage "PLLDR1", -187, -23;
				InInventory "MagicalBoomerangToken",1
				{
					Drawimage "PLLDR2", -187, -23;
				}
		
				InInventory "FireBoomerangToken",1
				{
					Drawimage "PLLDR3", -187, -23;
				}
			}

			InInventory "MagicCandle"
			{
				Drawimage "PLARW1", -187, -23;
				InInventory "RedCandle",1
				{
					Drawimage "PLARW2", -187, -23;
				}
			}

			InInventory "BombBag"
			{
				Drawimage "PLCD12", -137, -18;
				
				InInventory "RocketAmmo",1
				{
					Drawimage "PLBARW", -187, -23;
					Drawnumber 3, BOMBAMMOFONT, Black, RocketAmmo, -130, -8, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, White, RocketAmmo, -129, -8, 0, red, 0;
				}
			}
		
		
			//Cooldowns for Bow stuff
		
			InInventory "BoomerangCooldown",1
			{
				drawbar "PLCD7", "PLCD8", BoomerangCooldown, vertical, reverse, -179, -18;
			}

			InInventory "CandleCooldown",1
			{
				drawbar "PLCD9", "PLCD10", CandleCooldown, vertical, reverse, -156, -18;
			}

		
		
			//Item Flashes
			InInventory "BoomerangReady"
			{
				Drawimage "PLLDR4", -187, -23;
			}


			InInventory "CandleReady"
			{
				Drawimage "PLARW3", -187, -23;
			}
		}
		//end of bow stuff
			
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
		
		//CrisSword Stuff
		IsSelected "CrisSword"
		{
			Drawimage "PLKHUD3", -187, -23;
		
			InInventory "BoomerangToken"
			{
				Drawimage "PLB8T1", -187, -23;
				InInventory "MagicalBoomerangToken",1
				{
					Drawimage "PLB8T2", -187, -23;
				}
		
				InInventory "FireBoomerangToken",1
				{
					Drawimage "PLB8T3", -187, -23;
				}
			}

			InInventory "MagicCandle"
			{
				Drawimage "PLLCF1", -187, -23;
				InInventory "RedCandle",1
				{
					Drawimage "PLLCF2", -187, -23;
				}
			}

			InInventory "BombBag"
			{
				Drawimage "PLCD18", -140, -18;
				
				InInventory "RocketAmmo",1
				{
					Drawimage "PLARTI", -187, -23;
					Drawnumber 3, BOMBAMMOFONT, Red, RocketAmmo, -128, -7, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, Red, RocketAmmo, -129, -7, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, Red, RocketAmmo, -130, -8, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, Yellow, RocketAmmo, -129, -8, 0, red, 0;
				}
			}
		
		
			//Cooldowns for Crissword stuff
		
			InInventory "BoomerangCooldown",1
			{
				drawbar "PLCD13", "PLCD14", BoomerangCooldown, vertical, reverse, -175, -19;
			}

			InInventory "CandleCooldown",1
			{
				drawbar "PLCD15", "PLCD16", CandleCooldown, vertical, reverse, -157, -19;
			}

		
		
			//Item Flashes
			InInventory "BoomerangReady"
			{
				Drawimage "PLB8T4", -187, -23;
			}


			InInventory "CandleReady"
			{
				Drawimage "PLLCF3", -187, -23;
			}
		}
		//end of Crissword stuff
			
			
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
			
		
		//Magical Rod Stuff
		IsSelected "MagicalRod"
		{
			Drawimage "PLKHUD4", -187, -23;
		
			InInventory "BoomerangToken"
			{
				Drawimage "PLBLK1", -187, -23;
				InInventory "MagicalBoomerangToken",1
				{
					Drawimage "PLBLK2", -187, -23;
				}
		
				InInventory "FireBoomerangToken",1
				{
					Drawimage "PLBLK3", -187, -23;
				}
			}

			InInventory "MagicCandle"
			{
				Drawimage "PLBBL1", -187, -23;
				InInventory "RedCandle",1
				{
					Drawimage "PLBBL2", -187, -23;
				}
			}

			InInventory "BombBag"
			{
				Drawimage "PLCD24", -138, -19;
				
				InInventory "RocketAmmo",1
				{
					Drawimage "PLSPRK", -187, -23;
					Drawnumber 3, BOMBAMMOFONT, Black, RocketAmmo, -130, -8, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, White, RocketAmmo, -129, -8, 0, red, 0;
				}
			}
		
		
			//Cooldowns for Magical Rod stuff
		
			InInventory "BoomerangCooldown",1
			{
				drawbar "PLCD19", "PLCD20", BoomerangCooldown, vertical, reverse, -179, -18;
			}

			InInventory "CandleCooldown",1
			{
				drawbar "PLCD21", "PLCD22", CandleCooldown, vertical, reverse, -157, -18;
			}

		
		
			//Item Flashes
			InInventory "BoomerangReady"
			{
				Drawimage "PLBLK4", -187, -23;
			}


			InInventory "CandleReady"
			{
				Drawimage "PLBBL3", -187, -23;
			}
		}
		//end of Magical Rod stuff



//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
			
		

		//Crate Weapon Nonsense
		
		//damn SBARINFO and its stupid limits, I'll have to repeat
		//this dumb thing for every two crate weapons.
		//This kinda sucks.
		
		IsSelected "TSBrick", "ParticleSmasher"
		{
			Drawimage "PLKHUD", -187, -23;
		}

		IsSelected "SKPistol", "IcarusLauncher"
		{
			Drawimage "PLKHUD", -187, -23;
		}

		IsSelected "RevenantBox"
		{
			Drawimage "PLKHUD", -187, -23;
		}


		//end of crate weapon nonsense


			
			
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
			
		
		//Item box stuff
		InInventory "BoomerangActive"
		{
			Drawimage "PLBX1", -187, -23;
		}

		InInventory "CandleActive"
		{
			Drawimage "PLBX2", -187, -23;
		}

		InInventory "BombBagActive"
		{
			Drawimage "PLBX3", -187, -23;
			drawimage "BMBUSE", -31, -20;
		}

	
		//Hero Sword (Pistol)
		isselected "HeroSword"
		{
			drawstring LIFONT, yellow, "+", -15, -38, 0;
		}


		//Bow (shotgun)
		isselected "LinkedBow"
		{
			Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
			drawimage "USEAMO", -46, -20;
		}


		//CrisSword (chaingun)
		isselected "CrisSword"
		{
			Drawnumber 3, LIFONT, Yellow, Clip, -12, -39, 0, red, 0;
			drawimage "USEAMO", -60, -20;
		}

		//MagicalRod (plasma rifle)
		isselected "MagicalRod"
		{
			Drawnumber 3, LIFONT, Yellow, Cell, -12, -39, 0, red, 0;
			drawimage "USEAMO", -14, -20;
		}
	}
	
	//end of ammo tracking stuff for Past Linked-----------------
	
	
	

	//*****************************************************************
	//*****************************************************************
	//CRATE WEAPON AMMO TRACKER-----------------
	//This applies to all classes!
	//*****************************************************************
	//*****************************************************************
		
	
	
	//Particle Smasher
	isselected "ParticleSmasher"
	{
		Drawnumber 3, LIFONT, Yellow, CrateEnergy, -12, -39, 0, red, 0;
	}

	//Shoot Knight Pistol
	isselected "SKPistol"
	{
		Drawnumber 3, LIFONT, Yellow, CrateEnergy, -12, -39, 0, red, 0;
	}

	//Plakanomicon
	isselected "TSBrick"
	{
		Drawnumber 3, LIFONT, Yellow, CrateEnergy, -12, -39, 0, red, 0;
	}

	//Icarus Launcher
	isselected "IcarusLauncher"
	{
		Drawnumber 3, LIFONT, Yellow, CrateEnergy, -12, -39, 0, red, 0;
	}

	//Pocket Boners
	isselected "RevenantBox"
	{
		Drawnumber 3, LIFONT, Yellow, CrateEnergy, -12, -39, 0, red, 0;
	}


	//*****************************************************************
	//*****************************************************************
	
	//Clip ammo tracker
	drawbar "AMOBAR", "EMTBAR", clip, vertical, -58, -16;

	//Shell ammo tracker
	drawbar "AMOBAR", "EMTBAR", shell, vertical, -44, -16;

	//Rocket ammo tracker
	drawbar "AMOBAR", "EMTBAR", rocketammo, vertical, -29, -16;

	//Cell ammo tracker
	drawbar "AMOBAR", "EMTBAR", cell, vertical, -12, -16;
	
	//Backpack tracker
	InInventory CABackPack, 1
	{
		drawimage "BPPLUS", -91, -33;
	}
	
	
	//*****************************************************************
	//*****************************************************************
	//THE HUD FACE
	//*****************************************************************
	//*****************************************************************
	//HAHA OH BOY TIME FOR CRIMES.
	
	//Check the ACS if you wanna figure out how I did this crap
	//I really don't recommend doing what I'm doing here.


	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------
	//Artificer HUD
	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------
	InInventory IAmArtificer, 1
	{
		
		InInventory not PowerShieldProtection, 1
		{
			InInventory NormalHP, 1
			{
				InInventory not ArtiPainTimer, 1		
					drawimage "1RTIDL1", 65, -46;			
					
				InInventory ArtiPainTimer, 14
					drawimage "1RTOW1", 65, -46;			
				else
				
				InInventory ArtiPainTimer, 10
					drawimage "1RTOW3", 65, -46;		
				else

				InInventory ArtiPainTimer, 5
					drawimage "1RTOW4", 65, -46;		
				else

				InInventory ArtiPainTimer, 2
					drawimage "1RTOW5", 65, -46;		
				else
		
				InInventory ArtiPainTimer, 1
					drawimage "1RTOW5", 65, -46;
			} //end of normal HP

			InInventory MediumHP, 1
			{
				InInventory not ArtiPainTimer, 1
					drawimage "2RTIDL1", 65, -46;			

				InInventory ArtiPainTimer, 14
					drawimage "2RTOW1", 65, -46;			
				else
				
				InInventory ArtiPainTimer, 10
					drawimage "2RTOW3", 65, -46;		
				else

				InInventory ArtiPainTimer, 5
					drawimage "2RTOW4", 65, -46;		
				else

				InInventory ArtiPainTimer, 2
					drawimage "2RTOW5", 65, -46;		
				else
		
				InInventory ArtiPainTimer, 1
					drawimage "2RTOW5", 65, -46;
			} //end of Medium HP
			
			
			InInventory LowHP, 1
			{
				InInventory not ArtiPainTimer, 1
					drawimage "3RTIDL1", 65, -46;			

				InInventory ArtiPainTimer, 14
					drawimage "3RTOW1", 65, -46;			
				else
				
				InInventory ArtiPainTimer, 10
					drawimage "3RTOW3", 65, -46;		
				else

				InInventory ArtiPainTimer, 5
					drawimage "3RTOW4", 65, -46;		
				else

				InInventory ArtiPainTimer, 2
					drawimage "3RTOW5", 65, -46;		
				else
		
				InInventory ArtiPainTimer, 1
					drawimage "3RTOW5", 65, -46;
			}//end of Low HP
			
		} //End of invuln check
		
		Else
		{
			drawimage "RTSYN1", 65, -48;
			drawimage "SYNPRT1", 65, -48;
		}
			
			
		InInventory ArtiDead,1
		{
			drawimage "ARTIDED", 65, -46;
		}
	}
	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------


	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------
	//BlastMaster HUD
	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------
	//and now begins the ELSE towers.
	
	
	InInventory IAmBlastMaster, 1
	{
		
		InInventory not PowerShieldProtection, 1
		{
			//start of berserk check and normal Blastmaster Helm
			InInventory not SuperVenter, 1
			{
				InInventory NormalHP, 1
				{				
					InInventory not ArtiPainTimer, 1
						drawimage "1BMIDL1", 65, -48;		
					
					InInventory ArtiPainTimer, 24
						drawimage "1BMOW1", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 19
						drawimage "1BMOW4", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 17
						drawimage "1BMOW5", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 15
						drawimage "1BMOW6", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 13
						drawimage "1BMOW7", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 8
						drawimage "1BMOW8", 65, -48;

					
					else

					InInventory ArtiPainTimer, 5
						drawimage "1BMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 2
						drawimage "1BMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 1
						drawimage "1BMOW9", 65, -48;
				} //End of Normal HP

				InInventory MediumHP, 1
				{
					InInventory not ArtiPainTimer, 1
						drawimage "2BMIDL1", 65, -48;			
					
					InInventory ArtiPainTimer, 24
						drawimage "2BMOW1", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 19
						drawimage "2BMOW4", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 17
						drawimage "2BMOW5", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 15
						drawimage "2BMOW6", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 13
						drawimage "2BMOW7", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 8
						drawimage "2BMOW8", 65, -48;
					
					else

					InInventory ArtiPainTimer, 5
						drawimage "2BMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 2
						drawimage "2BMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 1
						drawimage "2BMOW9", 65, -48;
				} //End of Medium HP
				
				
				InInventory LowHP, 1
				{
					InInventory not ArtiPainTimer, 1
						drawimage "3BMIDL1", 65, -48;			
						

					InInventory ArtiPainTimer, 24
						drawimage "3BMOW1", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 19
						drawimage "3BMOW4", 65, -48;

					
					else
					
					InInventory ArtiPainTimer, 17
						drawimage "3BMOW5", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 15
						drawimage "3BMOW6", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 13
						drawimage "3BMOW7", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 8
						drawimage "3BMOW8", 65, -48;
					
					else

					InInventory ArtiPainTimer, 5
						drawimage "3BMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 2
						drawimage "3BMOW9", 65, -48;

					
					else
					
					InInventory ArtiPainTimer, 1
						drawimage "3BMOW9", 65, -48;
				} //End of Low HP
			} //End of Berserk check and normal Blastmaster Helm
			
			else
			
			//Augmented BlastMaster Helm
			{
				InInventory NormalHP, 1
				{				
					InInventory not ArtiPainTimer, 1
						drawimage "1AMIDL1", 65, -48;			
					
					InInventory ArtiPainTimer, 24
						drawimage "1AMOW1", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 19
						drawimage "1AMOW4", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 17
						drawimage "1AMOW5", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 15
						drawimage "1AMOW6", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 13
						drawimage "1AMOW7", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 8
						drawimage "1AMOW8", 65, -48;
					
					else

					InInventory ArtiPainTimer, 5
						drawimage "1AMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 2
						drawimage "1AMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 1
						drawimage "1AMOW9", 65, -48;
				} //End of Normal HP

				InInventory MediumHP, 1
				{
					InInventory not ArtiPainTimer, 1
						drawimage "2AMIDL1", 65, -48;			
					
					InInventory ArtiPainTimer, 24
						drawimage "2AMOW1", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 19
						drawimage "2AMOW4", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 17
						drawimage "2AMOW5", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 15
						drawimage "2AMOW6", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 13
						drawimage "2AMOW7", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 8
						drawimage "2AMOW8", 65, -48;
					
					else

					InInventory ArtiPainTimer, 5
						drawimage "2AMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 2
						drawimage "2AMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 1
						drawimage "2AMOW9", 65, -48;

				} //End of Medium HP
				
				
				InInventory LowHP, 1
				{
					InInventory not ArtiPainTimer, 1
						drawimage "3AMIDL1", 65, -48;			

					InInventory ArtiPainTimer, 24
						drawimage "3AMOW1", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 19
						drawimage "3AMOW4", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 17
						drawimage "3AMOW5", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 15
						drawimage "3AMOW6", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 13
						drawimage "3AMOW7", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 8
						drawimage "3AMOW8", 65, -48;
					
					else

					InInventory ArtiPainTimer, 5
						drawimage "3AMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 2
						drawimage "3AMOW9", 65, -48;
					
					else
					
					InInventory ArtiPainTimer, 1
						drawimage "3AMOW9", 65, -48;
				} //End of Low HP
			} //End of Augmented BlastMaster Helm
			
			
			

		} //End of invuln check
		
		Else
		{
			drawimage "RTSYN1", 65, -48;
			drawimage "SYNPRT1", 65, -48;
		}
			
			
		InInventory ArtiDead,1
		{
			drawimage "BMDED", 65, -48;
		}
	} //End of BlastMaster Mk. 2
	


	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------
	//Tech Monk HUD
	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------
	//Gosh wasn't that awful? It couldn't possibly
	//get any wo- OH MY GOODNESS



	InInventory IAmTechMonk, 1
	{	
		InInventory not PowerShieldProtection, 1
		{
			InInventory NormalHP, 1
			{
				InInventory not ArtiPainTimer, 1 //Idles for Normal HP---------
				{
					IsSelected "HandBeam"
					{
						InInventory StrikerCharge, 1
						drawimage "1TKMS2", 65, -45;
						
						else
						
						drawimage "1TKMH1", 65, -45;
						
					}
					else
					IsSelected "WaveBall" 
					{
						InInventory StrikerCharge, 1
						drawimage "1TKMS2", 65, -45;
						
						else
						
						drawimage "1TKMW1", 65, -45;
					}
					else
					IsSelected "MoonBeam" 
					{
						InInventory StrikerCharge, 1
						drawimage "1TKMS2", 65, -45;
						
						else
						
						drawimage "1TKMM1", 65, -45;
					}
					else
					IsSelected "ClashBall" 
					{
						InInventory StrikerCharge, 1
						drawimage "1TKMS2", 65, -45;
						
						else
						
						drawimage "1TKMC1", 65, -45;
						
					}
					else
					IsSelected "PearlLaser" 
					{
						InInventory StrikerCharge, 1
						drawimage "1TKMS2", 65, -45;
						
						else
						
						drawimage "1TKMP1", 65, -45;
						
					}
					else
					IsSelected "StrikerBeam" 
					{
						InInventory not StrikerReset, 1
						drawimage "1TKMS1", 65, -45;
						
						Else
						
						drawimage "1TKMD1", 65, -45;
					}
					else
					{
						drawimage "1TKMD1", 65, -45;
					}
				
				}//End of Normal HP Idles--------------------------------
					
				InInventory ArtiPainTimer, 66
					drawimage "1TKMO1", 65, -45;
					
				else				
	
				InInventory ArtiPainTimer, 64
					drawimage "1TKMO4", 65, -45;
					
				else	
				
				InInventory ArtiPainTimer, 55
					drawimage "1TKMO5", 65, -45;
					
				else	
				
				InInventory ArtiPainTimer, 45
					drawimage "1TKMO4", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 43
					drawimage "1TKMO6", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 41
					drawimage "1TKMO7", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 40
					drawimage "1TKMO8", 65, -45;
					
				else				

				InInventory ArtiPainTimer, 30
					drawimage "1TKMO8", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 28
					drawimage "1TKMO8", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 26
					drawimage "1TKMO8", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 24 //Adding extra checks here to keep the visor from flashing too much when you're powered down
				{
					InInventory StrikerReset, 1
						drawimage "1TKMO11", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "1TKMO11", 65, -45;
						
					else

					drawimage "1TKMO12", 65, -45;
				}
				else
				
				InInventory ArtiPainTimer, 22
				{
					InInventory StrikerReset, 1
						drawimage "1TKMO10", 65, -45;
						
					else

					InInventory CrateWeaponArmed, 1
						drawimage "1TKMO10", 65, -45;
						
					else
					
					drawimage "1TKMO13", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 20
				{
					InInventory StrikerReset, 1
						drawimage "1TKMO9", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "1TKMO9", 65, -45;
						
					else
				
					drawimage "1TKMO14", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 18
				{
					InInventory StrikerReset, 1
						drawimage "1TKMO8", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "1TKMO8", 65, -45;
						
					else
					
					drawimage "1TKMO15", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 16
				{
					IsSelected "HandBeam"
						drawimage "1TKMH15", 65, -45;

					else					

					IsSelected "WaveBall"
						drawimage "1TKMW15", 65, -45;
					else
					
					IsSelected "MoonBeam"
						drawimage "1TKMM15", 65, -45;
						
					else
					
					IsSelected "ClashBall"
						drawimage "1TKMC15", 65, -45;
						
					else
					
					IsSelected "PearlLaser"
						drawimage "1TKMP15", 65, -45;
						
					else
					
					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "1TKMO8", 65, -45;
							
						else
						
						drawimage "1TKMS5", 65, -45;
					}
					
					else
						drawimage "1TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 14
				{
					IsSelected "HandBeam"
						drawimage "1TKMH16", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "1TKMW16", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "1TKMM16", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "1TKMC16", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "1TKMP16", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "1TKMO8", 65, -45;
						else

						drawimage "1TKMS6", 65, -45;
					}
					else
						drawimage "1TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 12
				{
					IsSelected "HandBeam"
						drawimage "1TKMH17", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "1TKMW17", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "1TKMM17", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "1TKMC17", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "1TKMP17", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "1TKMO8", 65, -45;
						else
						
						drawimage "1TKMS7", 65, -45;
					}
					else
					
					drawimage "1TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 14
				{
					IsSelected "HandBeam"
						drawimage "1TKMH18", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "1TKMW18", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "1TKMM18", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "1TKMC18", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "1TKMP18", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "1TKMO8", 65, -45;
						else
						
						drawimage "1TKMS8", 65, -45;
					}
					else
					
					drawimage "1TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 12
				{
					IsSelected "HandBeam"
						drawimage "1TKMH19", 65, -45;
					else				

					IsSelected "WaveBall"
						drawimage "1TKMW19", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "1TKMM19", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "1TKMC19", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "1TKMP19", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "1TKMO8", 65, -45;
						else
						
						drawimage "1TKMS1", 65, -45;
					}
					else
					
					drawimage "1TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 1
				{
					IsSelected "HandBeam"
						drawimage "1TKMH19", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "1TKMW19", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "1TKMM19", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "1TKMC19", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "1TKMP19", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "1TKMO8", 65, -45;
						else
						
						drawimage "1TKMS1", 65, -45;
					}
					else
					
					drawimage "1TKMO8", 65, -45;
				}
			} //End of Normal HP----------------------------------------	


			InInventory MediumHP, 1
			{
				InInventory not ArtiPainTimer, 1 //Idles for Medium HP---------
				{
					IsSelected "HandBeam"
					{
						InInventory StrikerCharge, 1
						drawimage "2TKMS2", 65, -45;
						
						else
						
						drawimage "2TKMH1", 65, -45;
						
					}
					else
					IsSelected "WaveBall" 
					{
						InInventory StrikerCharge, 1
						drawimage "2TKMS2", 65, -45;
						
						else
						
						drawimage "2TKMW1", 65, -45;
					}
					else
					IsSelected "MoonBeam" 
					{
						InInventory StrikerCharge, 1
						drawimage "2TKMS2", 65, -45;
						
						else
						
						drawimage "2TKMM1", 65, -45;
					}
					else
					IsSelected "ClashBall" 
					{
						InInventory StrikerCharge, 1
						drawimage "2TKMS2", 65, -45;
						
						else
						
						drawimage "2TKMC1", 65, -45;
						
					}
					else
					IsSelected "PearlLaser" 
					{
						InInventory StrikerCharge, 1
						drawimage "2TKMS2", 65, -45;
						
						else
						
						drawimage "2TKMP1", 65, -45;
						
					}
					else
					IsSelected "StrikerBeam" 
					{
						InInventory not StrikerReset, 1
						drawimage "2TKMS1", 65, -45;
						
						Else
						
						drawimage "2TKMD1", 65, -45;
					}
					else
					{
						drawimage "2TKMD1", 65, -45;
					}
				
				}//End of Medium HP Idles--------------------------------
					
				InInventory ArtiPainTimer, 66
					drawimage "2TKMO1", 65, -45;
					
				else				
	
				InInventory ArtiPainTimer, 64
					drawimage "2TKMO4", 65, -45;
					
				else	
				
				InInventory ArtiPainTimer, 55
					drawimage "2TKMO5", 65, -45;
					
				else	
				
				InInventory ArtiPainTimer, 45
					drawimage "2TKMO4", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 43
					drawimage "2TKMO6", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 41
					drawimage "2TKMO7", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 40
					drawimage "2TKMO8", 65, -45;
					
				else				

				InInventory ArtiPainTimer, 30
					drawimage "2TKMO8", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 28
					drawimage "2TKMO8", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 26
					drawimage "2TKMO8", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 24 //Adding extra checks here to keep the visor from flashing too much when you're powered down
				{
					InInventory StrikerReset, 1
						drawimage "2TKMO11", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "2TKMO11", 65, -45;
						
					else
					
					drawimage "2TKMO12", 65, -45;
				}
				else
				
				InInventory ArtiPainTimer, 22
				{
					InInventory StrikerReset, 1
						drawimage "2TKMO10", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "2TKMO10", 65, -45;
						
					else
					
					drawimage "2TKMO13", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 20
				{
					InInventory StrikerReset, 1
						drawimage "2TKMO9", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "2TKMO9", 65, -45;
						
					else
					
					drawimage "2TKMO14", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 18
				{
					InInventory StrikerReset, 1
						drawimage "2TKMO8", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "2TKMO8", 65, -45;
						
					else
					
					drawimage "2TKMO15", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 16
				{
					IsSelected "HandBeam"
						drawimage "2TKMH15", 65, -45;

					else					

					IsSelected "WaveBall"
						drawimage "2TKMW15", 65, -45;
					else
					
					IsSelected "MoonBeam"
						drawimage "2TKMM15", 65, -45;
						
					else
					
					IsSelected "ClashBall"
						drawimage "2TKMC15", 65, -45;
						
					else
					
					IsSelected "PearlLaser"
						drawimage "2TKMP15", 65, -45;
						
					else
					
					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "2TKMO8", 65, -45;
							
						else
						
						drawimage "2TKMS5", 65, -45;
					}
					
					else
						drawimage "2TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 14
				{
					IsSelected "HandBeam"
						drawimage "2TKMH16", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "2TKMW16", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "2TKMM16", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "2TKMC16", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "2TKMP16", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "2TKMO8", 65, -45;
						else

						drawimage "2TKMS6", 65, -45;
					}
					else
						drawimage "2TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 12
				{
					IsSelected "HandBeam"
						drawimage "2TKMH17", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "2TKMW17", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "2TKMM17", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "2TKMC17", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "2TKMP17", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "2TKMO8", 65, -45;
						else
						
						drawimage "2TKMS7", 65, -45;
					}
					else
					
					drawimage "2TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 14
				{
					IsSelected "HandBeam"
						drawimage "2TKMH18", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "2TKMW18", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "2TKMM18", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "2TKMC18", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "2TKMP18", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "2TKMO8", 65, -45;
						else
						
						drawimage "2TKMS8", 65, -45;
					}
					else
					
					drawimage "2TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 12
				{
					IsSelected "HandBeam"
						drawimage "2TKMH19", 65, -45;
					else				

					IsSelected "WaveBall"
						drawimage "2TKMW19", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "2TKMM19", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "2TKMC19", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "2TKMP19", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "2TKMO8", 65, -45;
						else
						
						drawimage "2TKMS1", 65, -45;
					}
					else
					
					drawimage "2TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 1
				{
					IsSelected "HandBeam"
						drawimage "2TKMH19", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "2TKMW19", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "2TKMM19", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "2TKMC19", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "2TKMP19", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "2TKMO8", 65, -45;
						else
						
						drawimage "2TKMS1", 65, -45;
					}
					else
					
					drawimage "2TKMO8", 65, -45;
				}
			} //End of Medium HP----------------------------------------	

			InInventory LowHP, 1
			{
				InInventory not ArtiPainTimer, 1 //Idles for Low HP---------
				{
					IsSelected "HandBeam"
					{
						InInventory StrikerCharge, 1
						drawimage "3TKMS2", 65, -45;
						
						else
						
						drawimage "3TKMH1", 65, -45;
						
					}
					else
					IsSelected "WaveBall" 
					{
						InInventory StrikerCharge, 1
						drawimage "3TKMS2", 65, -45;
						
						else
						
						drawimage "3TKMW1", 65, -45;
					}
					else
					IsSelected "MoonBeam" 
					{
						InInventory StrikerCharge, 1
						drawimage "3TKMS2", 65, -45;
						
						else
						
						drawimage "3TKMM1", 65, -45;
					}
					else
					IsSelected "ClashBall" 
					{
						InInventory StrikerCharge, 1
						drawimage "3TKMS2", 65, -45;
						
						else
						
						drawimage "3TKMC1", 65, -45;
						
					}
					else
					IsSelected "PearlLaser" 
					{
						InInventory StrikerCharge, 1
						drawimage "3TKMS2", 65, -45;
						
						else
						
						drawimage "3TKMP1", 65, -45;
						
					}
					else
					IsSelected "StrikerBeam" 
					{
						InInventory not StrikerReset, 1
						drawimage "3TKMS1", 65, -45;
						
						Else
						
						drawimage "3TKMD1", 65, -45;
					}
					else
					{
						drawimage "3TKMD1", 65, -45;
					}
				
				}//End of Low HP Idles--------------------------------
					
				InInventory ArtiPainTimer, 66
					drawimage "3TKMO1", 65, -45;
					
				else				
	
				InInventory ArtiPainTimer, 64
					drawimage "3TKMO4", 65, -45;
					
				else	
				
				InInventory ArtiPainTimer, 55
					drawimage "3TKMO5", 65, -45;
					
				else	
				
				InInventory ArtiPainTimer, 45
					drawimage "3TKMO4", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 43
					drawimage "3TKMO6", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 41
					drawimage "3TKMO7", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 40
					drawimage "3TKMO8", 65, -45;
					
				else				

				InInventory ArtiPainTimer, 30
					drawimage "3TKMO8", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 28
					drawimage "3TKMO8", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 26
					drawimage "3TKMO8", 65, -45;
					
				else
				
				InInventory ArtiPainTimer, 24 //Adding extra checks here to keep the visor from flashing too much when you're powered down
				{
					InInventory StrikerReset, 1
						drawimage "3TKMO11", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "3TKMO11", 65, -45;
						
					else
					
					drawimage "3TKMO12", 65, -45;
				}
				else
				
				InInventory ArtiPainTimer, 22
				{
					InInventory StrikerReset, 1
						drawimage "3TKMO10", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "3TKMO10", 65, -45;
						
					else
					
					drawimage "3TKMO13", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 20
				{
					InInventory StrikerReset, 1
						drawimage "3TKMO9", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "3TKMO9", 65, -45;
						
					else
					
					drawimage "3TKMO14", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 18
				{
					InInventory StrikerReset, 1
						drawimage "3TKMO8", 65, -45;
						
					else
					
					InInventory CrateWeaponArmed, 1
						drawimage "3TKMO8", 65, -45;
						
					else
					
					drawimage "3TKMO15", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 16
				{
					IsSelected "HandBeam"
						drawimage "3TKMH11", 65, -45;

					else					

					IsSelected "WaveBall"
						drawimage "3TKMW11", 65, -45;
					else
					
					IsSelected "MoonBeam"
						drawimage "3TKMM11", 65, -45;
						
					else
					
					IsSelected "ClashBall"
						drawimage "3TKMC11", 65, -45;
						
					else
					
					IsSelected "PearlLaser"
						drawimage "3TKMP11", 65, -45;
						
					else
					
					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "3TKMO8", 65, -45;
							
						else
						
						drawimage "3TKMS5", 65, -45;
					}
					
					else
						drawimage "3TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 14
				{
					IsSelected "HandBeam"
						drawimage "3TKMH12", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "3TKMW12", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "3TKMM12", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "3TKMC12", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "3TKMP12", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "3TKMO8", 65, -45;
						else

						drawimage "3TKMS6", 65, -45;
					}
					else
						drawimage "3TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 12
				{
					IsSelected "HandBeam"
						drawimage "3TKMH13", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "3TKMW13", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "3TKMM13", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "3TKMC13", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "3TKMP13", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "3TKMO8", 65, -45;
						else
						
						drawimage "3TKMS7", 65, -45;
					}
					else
					
					drawimage "3TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 14
				{
					IsSelected "HandBeam"
						drawimage "3TKMH14", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "3TKMW14", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "3TKMM14", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "3TKMC14", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "3TKMP14", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "3TKMO8", 65, -45;
						else
						
						drawimage "3TKMS8", 65, -45;
					}
					else
					
					drawimage "3TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 12
				{
					IsSelected "HandBeam"
						drawimage "3TKMH1", 65, -45;
					else				

					IsSelected "WaveBall"
						drawimage "3TKMW1", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "3TKMM1", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "3TKMC1", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "3TKMP1", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "3TKMO8", 65, -45;
						else
						
						drawimage "3TKMS1", 65, -45;
					}
					else
					
					drawimage "3TKMO8", 65, -45;
				}
				else
				InInventory ArtiPainTimer, 1
				{
					IsSelected "HandBeam"
						drawimage "3TKMH1", 65, -45;
					else					

					IsSelected "WaveBall"
						drawimage "3TKMW1", 65, -45;
					else

					IsSelected "MoonBeam"
						drawimage "3TKMM1", 65, -45;
					else

					IsSelected "ClashBall"
						drawimage "3TKMC1", 65, -45;
					else

					IsSelected "PearlLaser"
						drawimage "3TKMP1", 65, -45;
					else

					IsSelected "StrikerBeam"
					{
						InInventory StrikerReset, 1
							drawimage "3TKMO8", 65, -45;
						else
						
						drawimage "3TKMS1", 65, -45;
					}
					else
					
					drawimage "3TKMO8", 65, -45;
				}
			} //End of Low HP----------------------------------------	
		

		
		
		
		
		
		}  //End of invuln check
			
		
		Else
		{
			drawimage "RTSYN1", 65, -48;
			drawimage "SYNPRT1", 65, -48;
		}
			
		InInventory ArtiDead,1
		{
			drawimage "TKMDED", 65, -48;
		}
	} //End of Tech Monk

	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------
	//Past Linked HUD
	//--------------------------------------------------------------------------
	//--------------------------------------------------------------------------

	InInventory IAmPastLinked, 1
	{
		
		InInventory not PowerShieldProtection, 1
		{
			InInventory NormalHP, 1
			{
				InInventory not ArtiPainTimer, 1		
					drawimage "1PLNK1", 65, -46;			
					
				InInventory ArtiPainTimer, 45
					drawimage "1PLKOW1", 65, -46;
				else
				
				InInventory ArtiPainTimer, 42
					drawimage "1PLKOW5", 65, -46;
				else

				InInventory ArtiPainTimer, 40
					drawimage "1PLKOW6", 65, -46;
				else

				InInventory ArtiPainTimer, 38
					drawimage "1PLKOW7", 65, -46;
				else

				InInventory ArtiPainTimer, 20
					drawimage "1PLKOW8", 65, -46;
				else

				InInventory ArtiPainTimer, 18
					drawimage "1PLKOW9", 65, -46;
				else

				InInventory ArtiPainTimer, 16
					drawimage "1PLKOW10", 65, -46;
				else

				InInventory ArtiPainTimer, 14
					drawimage "1PLKOW11", 65, -46;
				else

				InInventory ArtiPainTimer, 12
					drawimage "1PLKOW10", 65, -46;
				else

				InInventory ArtiPainTimer, 10
					drawimage "1PLKOW11", 65, -46;
				else

				InInventory ArtiPainTimer, 8
					drawimage "1PLKOW12", 65, -46;
				else

				InInventory ArtiPainTimer, 6
					drawimage "1PLKOW13", 65, -46;
				else

				InInventory ArtiPainTimer, 4
					drawimage "1PLKOW14", 65, -46;
				else

				InInventory ArtiPainTimer, 2
					drawimage "1PLKOW15", 65, -46;		
				else
				
				InInventory ArtiPainTimer, 1
					drawimage "1PLKOW15", 65, -46;		
			}//end of Normal HP------------------------------------------

			InInventory MediumHP, 1
			{
				InInventory not ArtiPainTimer, 1		
					drawimage "2PLNK1", 65, -46;			
					
				InInventory ArtiPainTimer, 45
					drawimage "2PLKOW1", 65, -46;
				else
				
				InInventory ArtiPainTimer, 42
					drawimage "2PLKOW5", 65, -46;
				else

				InInventory ArtiPainTimer, 40
					drawimage "2PLKOW6", 65, -46;
				else

				InInventory ArtiPainTimer, 38
					drawimage "2PLKOW7", 65, -46;
				else

				InInventory ArtiPainTimer, 16
					drawimage "2PLKOW8", 65, -46;
				else

				InInventory ArtiPainTimer, 14
					drawimage "2PLKOW9", 65, -46;
				else

				InInventory ArtiPainTimer, 12
					drawimage "2PLKOW10", 65, -46;
				else

				InInventory ArtiPainTimer, 10
					drawimage "2PLKOW11", 65, -46;
				else

				InInventory ArtiPainTimer, 8
					drawimage "2PLKOW12", 65, -46;
				else

				InInventory ArtiPainTimer, 6
					drawimage "2PLKOW13", 65, -46;
				else

				InInventory ArtiPainTimer, 4
					drawimage "2PLKOW14", 65, -46;
				else

				InInventory ArtiPainTimer, 2
					drawimage "2PLKOW15", 65, -46;
				else

				InInventory ArtiPainTimer, 1
					drawimage "2PLKOW16", 65, -46;
			}//end of Medium HP-----------------------------------------


			InInventory LowHP, 1
			{
				InInventory not ArtiPainTimer, 1		
					drawimage "3PLNK1", 65, -46;			
					
				InInventory ArtiPainTimer, 45
					drawimage "3PLKOW1", 65, -46;
				else
				
				InInventory ArtiPainTimer, 42
					drawimage "3PLKOW5", 65, -46;
				else

				InInventory ArtiPainTimer, 40
					drawimage "3PLKOW6", 65, -46;
				else

				InInventory ArtiPainTimer, 24
					drawimage "3PLKOW7", 65, -46;
				else

				InInventory ArtiPainTimer, 22
					drawimage "3PLKOW8", 65, -46;
				else

				InInventory ArtiPainTimer, 18
					drawimage "3PLKOW6", 65, -46;
				else

				InInventory ArtiPainTimer, 10
					drawimage "3PLKOW7", 65, -46;
				else

				InInventory ArtiPainTimer, 8
					drawimage "3PLKOW8", 65, -46;
				else

				InInventory ArtiPainTimer, 6
					drawimage "3PLKOW9", 65, -46;
				else

				InInventory ArtiPainTimer, 4
					drawimage "3PLKOW10", 65, -46;
				else

				InInventory ArtiPainTimer, 2
					drawimage "3PLKOW10", 65, -46;
				else

				InInventory ArtiPainTimer, 1
					drawimage "3PLKOW11", 65, -46;
			}//end of Low HP
		
	
	
	
		} //End of invuln check
			
		
		Else
		{
			drawimage "RTSYN1", 65, -48;
			drawimage "SYNPRT1", 65, -48;
		}
			
		InInventory ArtiDead,1
		{
			drawimage "PLNKDED", 65, -48;
		}
	} //End of Past Linked






}
//End of statusbar HUD

//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

//Fullscreen centered HUD

statusbar Fullscreen, forcescaled, fullscreenoffsets
{
	//Life and Armor
	drawimage "HPARM", 0, -47;

    InInventory "LOWHP",1
	{
		drawimage "LOWHP1", 0, -47;
	}

    InInventory "HighHP", 1
    {
		drawimage "SPRHP", 0, -47;
    }

    InInventory PowerInvulnerable, 1
    {
		drawimage "GODHP", 0, -47;
    }

    drawswitchableimage armortype CAArmorGlobe, "NOARM", "GRNHUD", 0, -47;
    drawswitchableimage armortype CAGreenArmor, "NOARM", "GRNHUD", 0, -47;
    drawswitchableimage armortype CABlueArmor, "NOARM", "BLUHUD", 0, -47;
    drawswitchableimage armortype BlueArmorForMegasphere, "NOARM", "BLUHUD", 0, -47;	

	


	DrawNumber 3, LIFONT, White, Health, 38, -39, 0, Red, 25, Gold, 101;
	DrawNumber 3, LIFONT, White, Armor, 38, -16, 0, Red, 10, Gold, 101;

	//Key tracker
	
	drawswitchableimage RedCard, "nullimage", "HUDRKEY", 50, -42;
	drawswitchableimage redskull, "nullimage", "HUDRSKU", 50, -20;
	drawswitchableimage Yellowcard, "nullimage", "HUDYKEY", 50, -35;
	drawswitchableimage yellowskull, "nullimage", "HUDYSKU", 50, -14;
	drawswitchableimage BlueCard, "nullimage", "HUDBKEY", 50, -28;
	drawswitchableimage Blueskull, "nullimage", "HUDBSKU", 50, -8;


	//Rad suit tracker
	InInventory bootprotection, 1
	{
		drawimage "RADMTR", 65, -49;
		drawbar "KMEMTR","KMEMTY", PowerupTime BootMeterHUD,vertical,  72, -43;
	}


	//==========================================================================
	//==========================================================================
	//==========================================================================
	//Crate energy stuff

	//Particle Smasher
	InInventory "ParticleSmasher", 1
	{
		drawimage "CRTSCN", -78,-46;
		drawbar "CRTMTR", "NOCRT", CrateEnergy, vertical, -65,-38;
		
		
		InInventory "CrateEnergy", 20
		{
			drawimage "CRTBLT1", -71,-36;
			drawimage "CRTBLT1", -54,-36;
			
			drawimage "RCRLINE1", -78,-46;
			drawimage "LCRLINE1", -78,-46;
		}
	}

	
	//Shoot Knight Pistol
	InInventory "SKPistol", 1
	{
		drawimage "CRTSCN", -78,-46;
		drawbar "CRTMTR", "NOCRT", CrateEnergy, vertical, -65,-38;
		
		
		//Primary fire
		InInventory "CrateEnergy", 1
		{
			drawimage "LCRLINE1", -78,-46;
			drawimage "CRTBLT1", -71,-36;
		}
		//Alt fire
		InInventory "CrateEnergy", 40
		{
			drawimage "CRTBLT1", -54,-36;
			drawimage "RCRLINE1", -78,-46;
		}
	}


	//Plakanomicon
	InInventory "TSBrick", 1
	{
		drawimage "CRTSCN", -78,-46;
		drawbar "CRTMTR", "NOCRT", CrateEnergy, vertical, -65,-38;

		

		InInventory "CrateEnergy", 25
		{
			drawimage "CRTBLT1", -71,-36;
			drawimage "CRTBLT1", -54,-36;
			
			drawimage "RCRLINE1", -78,-46;
			drawimage "LCRLINE1", -78,-46;
		}

		
	}


	//Icarus Launcher
	InInventory "IcarusLauncher", 1
	{
		drawimage "CRTSCN", -78,-46;
		drawbar "CRTMTR", "NOCRT", CrateEnergy, vertical, -65,-38;
		

		//Primary Fire
		InInventory "CrateEnergy", 1
		{
			drawimage "LCRLINE1", -78,-46;
			drawimage "CRTBLT1", -71,-36;
		}

		//Alt fire
		InInventory "CrateEnergy", 5
		{
			drawimage "CRTBLT1", -54,-36;
			drawimage "RCRLINE1", -78,-46;
		}
	}


	//Pocket Boners
	InInventory "RevenantBox", 1
	{
		drawimage "CRTSCN", -78,-46;
		drawbar "CRTMTR", "NOCRT", CrateEnergy, vertical, -65,-38;
		

		InInventory "CrateEnergy", 20
		{
			drawimage "CRTBLT1", -71,-36;
			
			drawimage "LCRLINE1", -78,-46;
		}
		
		//Altfire is always available
		drawimage "CRTBLT1", -54,-36;
		drawimage "RCRLINE1", -78,-46;
	}
	
	//An extra block of crap to put an item box around
	//the crate energy bar when you select a crate weapon
	//it sucks I have to do it per weapon.
	isselected "TSBrick"
	{
		drawimage "USECRT1", -78,-46;
	}	

	isselected "ParticleSmasher"
	{
		drawimage "USECRT1", -78,-46;
	}	

	isselected "SKPistol"
	{
		drawimage "USECRT1", -78,-46;
	}	

	isselected "IcarusLauncher"
	{
		drawimage "USECRT1", -78,-46;
	}	

	isselected "RevenantBox"
	{
		drawimage "USECRT1", -78,-46;
	}	
	
	//END OF CRATE ENERGY
	//==========================================================================
	//==========================================================================
	//==========================================================================
	

	
	
	//Ammo stuff
	drawimage "AMO", -78, -46;

	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	//Ammo tracking stuff for Combined_Arms----------------------------
	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	
	//Lilk's axe (chainsaw)
	isselected "SkillAxe"
	{
		Drawnumber 2, LIFONT, Yellow, skill, -12, -39, 0, red, 0;
	}

	//Blackjack baton (Fists)
	isselected "BlackJackBaton"
	{
		InInventory not "GauntletHP", 1
		{
			drawstring LIFONT, yellow, "+", -15, -38, 0;
		}
		
		InInventory "GauntletHP", 1
		{
			Drawnumber 3, LIFONT, Yellow, GauntletHP, -12, -39, 0;
		}
	}
	
	//Kick meter
	InInventory "BootTimer",1
	{
		drawimage "KCKMTR", -133, -49;
		drawbar "KMEMTR","KMEMTY", BootTimer, vertical,  -126, -43;
		InInventory not "BootTimer", 15
		{
			drawimage "MTRFLS1", -133, -49;
		}
	}	
	
	//Second wind (Pistol)
	isselected "SecondWind"
	{
		InInventory not "Clip", 1
		{
			drawstring LIFONT, yellow, "+", -15, -38, 0;
		}

		InInventory "Clip",1
		{
			Drawnumber 3, LIFONT, Yellow, Clip, -12, -39, 0, red, 0;
		}
		drawimage "USEAMO", -60, -20;
	}
	
	//Second wind heat meter
	InInventory "SecondWindHeat",1
	{
		drawimage "2WMTR", -115, -49;
		drawbar "KMEMTR","KMEMTY", SecondWindHeat, vertical,  -108, -43;
		InInventory not "SecondWindHeat", 25
		{
			drawimage "MTRFLS1", -115, -49;
		}
	}

	//Whiplash Shotgun
	isselected "WhiplashShotgun"
	{
		Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -46, -20;
	}

	//Sharpshooter (SSG)
	isselected "SharpShooter"
	{
		Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -46, -20;
	}
	
	//Vulture SMG (Chaingun)
	isselected "VultureSMG"
	{
		Drawnumber 3, LIFONT, Yellow, Clip, -12, -39, 0, red, 0;
		drawimage "USEAMO", -60, -20;


		Drawimage "SCAVMTR", -180,-12;
		drawbar "SCVCHG1","NOSTRKR", ScavCharge, Horizontal,  -160, -8;
		
		InInventory "ScavCharge", 100
		{
			drawbar "FULSCV1","NOSTRKR", ScavCharge, Horizontal,  -160, -8;
		}
	}

	isselected not "VultureSmg"
	{
		InInventory "ScavCharge", 100
		{
			drawimage "SCAVRDY", -180, -12;
		}
	}


	//Cygnis (Rocket Launcher)
	isselected "CyclopsCannon"
	{
		Drawnumber 3, LIFONT, Yellow, RocketAmmo, -12, -39, 0, red, 0;
		drawimage "USEAMO", -31, -20;
	}

	//Buster carbine (Plasma Rifle)
	isselected "BusterCarbine"
	{
		Drawnumber 3, LIFONT, Yellow, Cell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -14, -20;
	}
	
	//end of ammo tracking stuff for Combined_Arms-----------------
	
	
	//*****************************************************************
	//*****************************************************************
	//Ammo tracking stuff for Blastmaster MK2--------------------------
	//*****************************************************************
	//*****************************************************************

	//heat gauge
	InInventory "BMheat", 1
	{
		drawimage "THERM", -109, -47;
		drawbar "TEMP", "NOTEMP", BMheat, vertical, -106, -44;
		
		InInventory "BMheat", 91
		{
			drawimage "MTRPIP1", -109, -47;
		}
		
		InInventory "BMheat", 156
		{
			drawimage "2TRPIP1", -109, -47;
		}

		InInventory "Superventer", 1
		{
			drawimage "AUGMTR", -109, -47;
		}
		
	}

	InInventory "BMoverheat", 1
	{
		drawimage "HOTMAMA", -109, -47;
		drawbar "HOTMTR1", "NOTEMP", BMoverheat, vertical, -106, -44;

		InInventory "Superventer", 1
		{
			drawimage "HOTAUG", -109, -47;
		}
	}
	
	//Mantis Bunker (chainsaw)
	isselected "MantisBunker"
	{
		drawstring LIFONT, yellow, "+", -15, -38, 0;
	}
	
	//Ice Beam (pistol)
	isselected "BMIceBeam"
	{
		Drawnumber 3, LIFONT, Yellow, Icecharge, -12, -39, 0, red, 0;
	}

	//Slugger shotgun
	isselected "BMShotgun"
	{
		Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -46, -20;
	}

	//Firebrand Shotgun (SSG)
	isselected "BMSSG"
	{
		Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -46, -20;
	}

	//Defiance Machinegun (chaingun)
	isselected "BMMachinegun"
	{
		Drawnumber 3, LIFONT, Yellow, Clip, -12, -39, 0, red, 0;
		drawimage "USEAMO", -60, -20;
	}

	//Ranger grenade gun (rocket launcher)
	isselected "BMgrenader"
	{
		Drawnumber 3, LIFONT, Yellow, Rocketammo, -12, -39, 0, red, 0;
		drawimage "USEAMO", -31, -20;
	}

	//Fissin Sweeper (Plasma Rifle)
	isselected "BMplasmagun"
	{
		Drawnumber 3, LIFONT, Yellow, Cell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -14, -20;
	}

	//end of ammo tracking stuff for the BlastMaster Mk2-----------------
	
	
	//*****************************************************************
	//*****************************************************************
	//Ammo tracking stuff for Tech Monk--------------------------------
	//*****************************************************************
	//*****************************************************************

	//Kame Bomb Meter

	InInventory "KameBombModule", 1
	{
		InInventory Not "KameCoolDown",1
		{
			drawimage "KMEOK", -115, -12;
		}
	}



	InInventory "KameCoolDown", 1
	{
		drawimage "KMEFRM", -119, -53;
		drawbar "KMEMTR","KMEMTY", KameCoolDown, vertical,  -108, -43;
	}

	InInventory "KameBombReload",5
	{
		drawimage "MTFLS1", -119, -53;
	}
	else
	InInventory "KameBombReload",4
	{
		drawimage "MTFLS1", -119, -53;
	}
	else
	InInventory "KameBombReload",3
	{
		drawimage "MTFLS2", -119, -53;
	}
	else
	InInventory "KameBombReload",2
	{
		drawimage "MTFLS3", -119, -53;
	}
	else
	InInventory "KameBombReload",1
	{
		drawimage "MTFLS4", -119, -53;
	}

	
	
	//Striker Beam meter (chainsaw)

	InInventory "StrikerModule", 1
	{
		InInventory not "StrikerCharge", 1
		{
			InInventory not "StrikerTimer", 1
			{
				InInventory not "StrikerReset",1
				{
					drawimage "STRKOK", -180, -12;
				}
			}
		}
	}

	InInventory "StrikerCharge", 1
	{
		Drawimage "STRKMTR", -180,-12;
		drawbar "STRCHG1","NOSTRKR", StrikerCharge, Horizontal,  -160, -8;
	}

	InInventory "StrikerTimer", 1
	{
		Drawimage "STRKMTR", -180,-12;
		drawbar "STRATV1","NOSTRKR", StrikerTimer, Horizontal,  -160, -8;
	}


	InInventory "StrikerReset", 1
	{
		Drawimage "STRKMTR", -180,-12;
		drawbar "STRRST1","NOSTRKR", StrikerReset, Horizontal,  -160, -8;		
		InInventory "StrikerMeterFlashy", 1
		{
			Drawimage "STRKMT1", -180,-12;
		}
	}

	//Hand Beam (pistol)
	isselected "HandBeam"
	{
		drawstring LIFONT, yellow, "+", -15, -38, 0;
	}

	InInventory "HandBeamSelect"
	{
		Drawimage "TMWIA0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}
	

	//Wave Ball (shotgun)
	isselected "WaveBall"
	{
		Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -46, -20;
	}
	
	InInventory "WaveBallSelect"
	{
		Drawimage "TMWIB0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}
	
	//Moon Beam (chaingun)
	isselected "MoonBeam"
	{
		Drawnumber 3, LIFONT, Yellow, Clip, -12, -39, 0, red, 0;
		drawimage "USEAMO", -60, -20;
	}

	InInventory "MoonBeamSelect"
	{
		Drawimage "TMWIC0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}
	
	//Clash Ball (rocket launcher)
	isselected "ClashBall"
	{
		Drawnumber 3, LIFONT, Yellow, Rocketammo, -12, -39, 0, red, 0;
		drawimage "USEAMO", -31, -20;
	}

	InInventory "ClashBallSelect"
	{
		Drawimage "TMWID0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}


	//Pearl Laser (plasma rifle)
	isselected "PearlLaser"
	{
		Drawnumber 3, LIFONT, Yellow, Cell, -12, -39, 0, red, 0;
		drawimage "USEAMO", -14, -20;
	}
	
	InInventory "PearlLaserSelect"
	{
		Drawimage "TMWIE0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}

	//Striker Beam (chainsaw)
	isselected "StrikerBeam"
	{
		drawstring LIFONT, yellow, "+", -15, -38, 0;
	}

	InInventory "StrikerBeamSelect"
	{
		Drawimage "TMWIF0", 120, -32;
		Drawimage "BOXFLS1", 120, -32;
	}

	//end of ammo tracking stuff for the Tech Monk-----------------
	
	
	//*****************************************************************
	//*****************************************************************
	//Ammo tracking stuff for Past Linked------------------------------
	//*****************************************************************
	//*****************************************************************

	//Inventory Bar

	InInventory "IamPastLinked"
	{
		Drawimage "XTRAHUD", -187, -23;
		
		
		//Why the hell did I decide to make unique icons for all of the weapons aaaaagghh
		//you better be grateful for this, whoever you are.
		
		//Sword Stuff
		IsSelected "HeroSword"
		{
		
			Drawimage "PLKHUD", -187, -23;
		
			InInventory "BoomerangToken"
			{
				Drawimage "PLRNG1", -187, -23;
				InInventory "MagicalBoomerangToken",1
				{
					Drawimage "PLRNG2", -187, -23;
				}
		
				InInventory "FireBoomerangToken",1
				{
					Drawimage "PLRNG3", -187, -23;
				}
			}

			InInventory "MagicCandle"
			{
				Drawimage "PLCND1", -187, -23;
				InInventory "RedCandle",1
				{
					Drawimage "PLCND2", -187, -23;
				}
			}

			InInventory "BombBag"
			{
				Drawimage "PLCD6", -139, -18;
				
				InInventory "RocketAmmo",1
				{
					Drawimage "PLBMB", -187, -23;
					Drawnumber 3, BOMBAMMOFONT, Black, RocketAmmo, -130, -8, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, White, RocketAmmo, -129, -8, 0, red, 0;
				}
			}
		
		
			//Cooldowns for sword stuff
		
			InInventory "BoomerangCooldown",1
			{
				drawbar "PLCD1", "PLCD2", BoomerangCooldown, vertical, reverse, -175, -18;
			}

			InInventory "CandleCooldown",1
			{
				drawbar "PLCD3", "PLCD4", CandleCooldown, vertical, reverse, -157, -18;
			}

		
		
			//Item Flashes
			InInventory "BoomerangReady"
			{
				Drawimage "PLRNG4", -187, -23;
			}


			InInventory "CandleReady"
			{
				Drawimage "PLCND3", -187, -23;
			}
		}
		//end of sword stuff
		
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
		
		//Bow Stuff
		IsSelected "LinkedBow"
		{
			Drawimage "PLKHUD2", -187, -23;
		
			InInventory "BoomerangToken"
			{
				Drawimage "PLLDR1", -187, -23;
				InInventory "MagicalBoomerangToken",1
				{
					Drawimage "PLLDR2", -187, -23;
				}
		
				InInventory "FireBoomerangToken",1
				{
					Drawimage "PLLDR3", -187, -23;
				}
			}

			InInventory "MagicCandle"
			{
				Drawimage "PLARW1", -187, -23;
				InInventory "RedCandle",1
				{
					Drawimage "PLARW2", -187, -23;
				}
			}

			InInventory "BombBag"
			{
				Drawimage "PLCD12", -137, -18;
				
				InInventory "RocketAmmo",1
				{
					Drawimage "PLBARW", -187, -23;
					Drawnumber 3, BOMBAMMOFONT, Black, RocketAmmo, -130, -8, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, White, RocketAmmo, -129, -8, 0, red, 0;
				}
			}
		
		
			//Cooldowns for Bow stuff
		
			InInventory "BoomerangCooldown",1
			{
				drawbar "PLCD7", "PLCD8", BoomerangCooldown, vertical, reverse, -179, -18;
			}

			InInventory "CandleCooldown",1
			{
				drawbar "PLCD9", "PLCD10", CandleCooldown, vertical, reverse, -156, -18;
			}

		
		
			//Item Flashes
			InInventory "BoomerangReady"
			{
				Drawimage "PLLDR4", -187, -23;
			}


			InInventory "CandleReady"
			{
				Drawimage "PLARW3", -187, -23;
			}
		}
		//end of bow stuff
			
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
		
		//CrisSword Stuff
		IsSelected "CrisSword"
		{
			Drawimage "PLKHUD3", -187, -23;
		
			InInventory "BoomerangToken"
			{
				Drawimage "PLB8T1", -187, -23;
				InInventory "MagicalBoomerangToken",1
				{
					Drawimage "PLB8T2", -187, -23;
				}
		
				InInventory "FireBoomerangToken",1
				{
					Drawimage "PLB8T3", -187, -23;
				}
			}

			InInventory "MagicCandle"
			{
				Drawimage "PLLCF1", -187, -23;
				InInventory "RedCandle",1
				{
					Drawimage "PLLCF2", -187, -23;
				}
			}

			InInventory "BombBag"
			{
				Drawimage "PLCD18", -140, -18;
				
				InInventory "RocketAmmo",1
				{
					Drawimage "PLARTI", -187, -23;
					Drawnumber 3, BOMBAMMOFONT, Red, RocketAmmo, -128, -7, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, Red, RocketAmmo, -129, -7, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, Red, RocketAmmo, -130, -8, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, Yellow, RocketAmmo, -129, -8, 0, red, 0;
				}
			}
		
		
			//Cooldowns for Crissword stuff
		
			InInventory "BoomerangCooldown",1
			{
				drawbar "PLCD13", "PLCD14", BoomerangCooldown, vertical, reverse, -175, -19;
			}

			InInventory "CandleCooldown",1
			{
				drawbar "PLCD15", "PLCD16", CandleCooldown, vertical, reverse, -157, -19;
			}

		
		
			//Item Flashes
			InInventory "BoomerangReady"
			{
				Drawimage "PLB8T4", -187, -23;
			}


			InInventory "CandleReady"
			{
				Drawimage "PLLCF3", -187, -23;
			}
		}
		//end of Crissword stuff
			
			
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
			
		
		//Magical Rod Stuff
		IsSelected "MagicalRod"
		{
			Drawimage "PLKHUD4", -187, -23;
		
			InInventory "BoomerangToken"
			{
				Drawimage "PLBLK1", -187, -23;
				InInventory "MagicalBoomerangToken",1
				{
					Drawimage "PLBLK2", -187, -23;
				}
		
				InInventory "FireBoomerangToken",1
				{
					Drawimage "PLBLK3", -187, -23;
				}
			}

			InInventory "MagicCandle"
			{
				Drawimage "PLBBL1", -187, -23;
				InInventory "RedCandle",1
				{
					Drawimage "PLBBL2", -187, -23;
				}
			}

			InInventory "BombBag"
			{
				Drawimage "PLCD24", -138, -19;
				
				InInventory "RocketAmmo",1
				{
					Drawimage "PLSPRK", -187, -23;
					Drawnumber 3, BOMBAMMOFONT, Black, RocketAmmo, -130, -8, 0, Black, 0;
					Drawnumber 3, BOMBAMMOFONT, White, RocketAmmo, -129, -8, 0, red, 0;
				}
			}
		
		
			//Cooldowns for Magical Rod stuff
		
			InInventory "BoomerangCooldown",1
			{
				drawbar "PLCD19", "PLCD20", BoomerangCooldown, vertical, reverse, -179, -18;
			}

			InInventory "CandleCooldown",1
			{
				drawbar "PLCD21", "PLCD22", CandleCooldown, vertical, reverse, -157, -18;
			}

		
		
			//Item Flashes
			InInventory "BoomerangReady"
			{
				Drawimage "PLBLK4", -187, -23;
			}


			InInventory "CandleReady"
			{
				Drawimage "PLBBL3", -187, -23;
			}
		}
		//end of Magical Rod stuff


//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
			
		

		//Crate Weapon Nonsense
		
		//damn SBARINFO and its stupid limits, I'll have to repeat
		//this dumb thing for every two crate weapons.
		//This kinda sucks.
		
		IsSelected "TSBrick", "ParticleSmasher"
		{
			Drawimage "PLKHUD", -187, -23;
		}

		IsSelected "SKPistol", "IcarusLauncher"
		{
			Drawimage "PLKHUD", -187, -23;
		}

		IsSelected "RevenantBox"
		{
			Drawimage "PLKHUD", -187, -23;
		}


		//end of crate weapon nonsense


			
			
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
		
			
			
		
		//Item box stuff
		InInventory "BoomerangActive"
		{
			Drawimage "PLBX1", -187, -23;
		}

		InInventory "CandleActive"
		{
			Drawimage "PLBX2", -187, -23;
		}

		InInventory "BombBagActive"
		{
			Drawimage "PLBX3", -187, -23;
			drawimage "BMBUSE", -31, -20;
		}


	
	
		//Hero Sword (Pistol)
		isselected "HeroSword"
		{
			drawstring LIFONT, yellow, "+", -15, -38, 0;
		}


		//Bow (shotgun)
		isselected "LinkedBow"
		{
			Drawnumber 3, LIFONT, Yellow, Shell, -12, -39, 0, red, 0;
			drawimage "USEAMO", -46, -20;
		}


		//CrisSword (chaingun)
		isselected "CrisSword"
		{
			Drawnumber 3, LIFONT, Yellow, Clip, -12, -39, 0, red, 0;
			drawimage "USEAMO", -60, -20;
		}

		//MagicalRod (plasma rifle)
		isselected "MagicalRod"
		{
			Drawnumber 3, LIFONT, Yellow, Cell, -12, -39, 0, red, 0;
			drawimage "USEAMO", -14, -20;
		}
	}
	
	//end of ammo tracking stuff for Past Linked-----------------
	
	
	

	//*****************************************************************
	//*****************************************************************
	//CRATE WEAPON AMMO TRACKER-----------------
	//This applies to all classes!
	//*****************************************************************
	//*****************************************************************
		
	
	
	//Particle Smasher
	isselected "ParticleSmasher"
	{
		Drawnumber 3, LIFONT, Yellow, CrateEnergy, -12, -39, 0, red, 0;
	}

	//Shoot Knight Pistol
	isselected "SKPistol"
	{
		Drawnumber 3, LIFONT, Yellow, CrateEnergy, -12, -39, 0, red, 0;
	}

	//Plakanomicon
	isselected "TSBrick"
	{
		Drawnumber 3, LIFONT, Yellow, CrateEnergy, -12, -39, 0, red, 0;
	}

	//Icarus Launcher
	isselected "IcarusLauncher"
	{
		Drawnumber 3, LIFONT, Yellow, CrateEnergy, -12, -39, 0, red, 0;
	}

	//Pocket Boners
	isselected "RevenantBox"
	{
		Drawnumber 3, LIFONT, Yellow, CrateEnergy, -12, -39, 0, red, 0;
	}


	//*****************************************************************
	//*****************************************************************
	
	//Clip ammo tracker
	drawbar "AMOBAR", "EMTBAR", clip, vertical, -58, -16;

	//Shell ammo tracker
	drawbar "AMOBAR", "EMTBAR", shell, vertical, -44, -16;

	//Rocket ammo tracker
	drawbar "AMOBAR", "EMTBAR", rocketammo, vertical, -29, -16;

	//Cell ammo tracker
	drawbar "AMOBAR", "EMTBAR", cell, vertical, -12, -16;
	
	//Backpack tracker
	InInventory CABackPack, 1
	{
		drawimage "BPPLUS", -91, -33;
	}
}


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

//Map inventory
Statusbar Automap,forcescaled, fullscreenoffsets
{	

	//Key tracker
	
	drawswitchableimage RedCard, "nullimage", "RKEYA0", 20, -34;
	drawswitchableimage Yellowcard, "nullimage", "YKEYA0", 35, -34;
	drawswitchableimage BlueCard, "nullimage", "BKEYA0", 50, -34;
	
	drawswitchableimage redskull, "nullimage", "RSKUA0", 21, -10;
	drawswitchableimage yellowskull, "nullimage", "YSKUA0", 35, -10;
	drawswitchableimage Blueskull, "nullimage", "BSKUA0", 49, -10;


	//Bullets
	Drawimage "SCV5A0", -150, -30;
	drawnumber 3, LIFONT, yellow, ammo Clip, -118, -42;
	drawstring LIFONT, white, "-", -109, -40, 0;
	drawnumber 3, LIFONT, lightblue, ammocapacity Clip, -88, -42;

	//Shells
	Drawimage "SCV5B0", -75, -30;
	drawnumber 3, LIFONT, yellow, ammo Shell, -45, -42;
	drawstring LIFONT, white, "-", -35, -40, 0;
	drawnumber 3, LIFONT, lightblue, ammocapacity Shell, -14, -42;
	
	//Rockets
	Drawimage "SCV5C0",  -150, -5;
	drawnumber 3, LIFONT, yellow, ammo RocketAmmo, -118, -17;
	drawstring LIFONT, white, "-", -109, -15, 0;
	drawnumber 3, LIFONT, lightblue, ammocapacity RocketAmmo, -88, -17;
	
	//Cells
	Drawimage "SCV5D0", -75, -5;
	drawnumber 3, LIFONT, yellow, ammo Cell, -45, -17;
	drawstring LIFONT, white, "-", -35, -15, 0;
	drawnumber 3, LIFONT, lightblue, ammocapacity Cell, -14, -17;
	
}