

script_enemy_main
{    

    let imgEnemy="script\DanMUku\Stage2\Image\WaruigiN.png";
    let z = 0;
    let w = 0.5;
    let a = 40;
    let b = 40;
    let c = 0;
    let count=-50;

   @Initialize
   {

      LoadGraphic(imgEnemy);
            SetLife(1);
             SetInvincibility(100);
            SetEnemyMarker(true);
            SetMovePosition02(GetCenterX, GetCenterY - 100, 120);
            CreateEventFromScript("name");
   }
   
   @MainLoop
   {
if(count==200)
{
Concentration01(50);
}  
if(count==250)
{
SetLife(0);
}
count++; 
}

   @Finalize
   {
      DeleteGraphic(imgEnemy);
   }
   
   @DrawLoop
   {
            SetColor(255,255,255);
            SetRenderState(ALPHA);
            SetTexture(imgEnemy);
            SetGraphicRect(c,0,a,b);
            DrawGraphic(GetX,GetY+z);
     if(z==10){w=-0.5;}
     if(z==-10){w=0.5;}
z+=w;
	DrawText("War'", GetClipMinX+10, GetClipMinY+15, 12, 255);
   }

}

script_event name{

@Initialize{
  LoadGraphic("script\DanMUku\Joueur\KorA\Kordialogue.png");
  LoadGraphic("script\DanMUku\Stage2\Image\Warcutin.png");
 }

@MainLoop{
 SetChar(LEFT, "script\DanMUku\Joueur\KorA\Kordialogue.png");                   
SetGraphicRect(LEFT, 0, 0, 121, 214);        
MoveChar(LEFT, BACK);
SetChar(RIGHT, "script\DanMUku\Stage2\Image\Warcutin.png");
SetGraphicRect(RIGHT, 0, 0, 121, 214);   
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] Stronger than you looked...");
TextOutA("\c[RED] I have to show you \n my true power!");
End;
}

 @Finalize{
  DeleteGraphic("player\korHosik\Kordialogue.png");
  DeleteGraphic("script\DanMUku\Stage1\Image\Machincutin.png");
 }
}
