script_enemy_main{

let time=0;
let EFsidebar=("\script\Images\OtherEffects\DescriptionL1.png");
let EFtopbar=("\script\Images\OtherEffects\BarL1.png");
let miny=GetClipMinY; let maxy=GetClipMaxY; let minx=GetClipMinX; let maxx=GetClipMaxX;
let cx=GetCenterX; let cy=GetCenterY;

let EFnames=0;
let namenr=GetArgument;
let scale=0;

let GRnames=("\script\Images\OtherEffects\Names.png");

@Initialize{
	LoadGraphic("\script\Images\OtherEffects\Names.png");

	SetLife(100);
}

@MainLoop{

if(time==0){
	EFnames=(Obj_Create(OBJ_EFFECT)); ObjEffect_SetScale(EFnames,1,scale);
	ObjEffect_SetLayer(EFnames,6); Obj_SetPosition(EFnames,cx+100,cy+75); ObjEffect_SetTexture(EFnames,GRnames);
	ObjEffect_SetPrimitiveType(EFnames,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(EFnames,4);
	ObjEffect_SetVertexXY(EFnames,0,-100,-30); ObjEffect_SetVertexUV(EFnames,0,0,-60+(namenr*60));
	ObjEffect_SetVertexXY(EFnames,1,100,-30); ObjEffect_SetVertexUV(EFnames,1,200,-60+(namenr*60));
	ObjEffect_SetVertexXY(EFnames,2,-100,30); ObjEffect_SetVertexUV(EFnames,2,0,0+(namenr*60));
	ObjEffect_SetVertexXY(EFnames,3,100,30); ObjEffect_SetVertexUV(EFnames,3,200,0+(namenr*60));
	ObjEffect_SetVertexColor(EFnames,0,255,255,255,255); ObjEffect_SetVertexColor(EFnames,1,255,255,255,255);
	ObjEffect_SetVertexColor(EFnames,2,255,255,255,255); ObjEffect_SetVertexColor(EFnames,3,255,255,255,255);
	}

if(namenr==17){ Obj_SetPosition(EFnames,cx,cy+75); }
	
if(time<150 && scale<1){ scale+=0.1; }
if(time>=150 && scale>0){ scale-=0.1; }
ObjEffect_SetScale(EFnames,1,scale);
if((time>=150 && scale<=0) || GetCommonData("NamePresent")!=namenr){ Obj_Delete(EFnames); VanishEnemy; }

time++;
}

}