int g_selfAddr;
int npchp1;
int npchp2;
int npchp3;
int npchp4;
int npchp5;
int npchp6;
int c1;
int c2;
int c3;
int c4;
int c5;
int c6;

Savenpc()
{
	int f = OpenFile("level\npcsv.sav", "w");
	WriteFile(f, npchp1);
	WriteFile(f, npchp2);
	WriteFile(f, npchp3);
	WriteFile(f, npchp4);
	WriteFile(f, npchp5);
	WriteFile(f, npchp6);	
	CloseFile(f);
}

Loadnpc()
{
	int f = OpenFile("level\npcsv.sav", "r");
	
	npchp1 = ReadFile(f);
	npchp2 = ReadFile(f);
	npchp3 = ReadFile(f);
	npchp4 = ReadFile(f);
	npchp5 = ReadFile(f);
	npchp6 = ReadFile(f);
	CloseFile(f);
}

NpcGetAnyCharGet()
{
    c1=GetChar("TEST");
    c2=GetChar("TEST_1");
    c3=GetChar("TEST_2");
    c4=GetChar("TEST_3");
    c5=GetChar("TEST_4");
    c6=GetChar("TEST_5");
}

GetAnyNpcHP1()
{
Loadnpc();
return npchp1-0;
}

GetAnyNpcHP2()
{
Loadnpc();
return npchp2-0;
}

GetAnyNpcHP3()
{
Loadnpc();
return npchp3-0;
}

GetAnyNpcHP4()
{
Loadnpc();
return npchp4-0;
}

GetAnyNpcHP5()
{
Loadnpc();
return npchp5-0;
}

GetAnyNpcHP6()
{
Loadnpc();
return npchp6-0;
}

