

script_enemy_main
{    

    let imgEnemy="script\DanMUku\Stage3\Image\Luidi.png";
   @Initialize
   {
      LoadGraphic(imgEnemy);
      LoadMusic("script\DanMUku\Stage2\War.mp3");
            SetLife(1);
            SetEnemyMarker(true);
            SetInvincibility(150);
            SetMovePosition02(GetCenterX, GetCenterY - 100, 120);
            CreateEventFromScript("name");
   }
   
   @MainLoop
   {
	if (!OnEvent) {
		AddLife(-1);
	}
   }
   @Finalize
   {
      DeleteGraphic(imgEnemy);
   }
   
   @DrawLoop
   {
            SetColor(255,255,255);
            SetRenderState(ALPHA);
            SetTexture(imgEnemy);
            SetGraphicRect(0,0,33,33);
            DrawGraphic(GetX,GetY);
	DrawText("Luidi", GetClipMinX+10, GetClipMinY+15, 12, 255);
   }

}

script_event name{

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

@MainLoop{
 SetChar(LEFT, "script\DanMUku\Joueur\KorA\Kordialogue.png");                   
SetGraphicRect(LEFT, 0, 0, 121, 214);           
MoveChar(LEFT, BACK);
SetChar(RIGHT, "script\DanMUku\Stage3\Image\luidicutin.png");
SetGraphicRect(RIGHT, 0, 0, 99, 245);
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] OK, OK, you won.");
MoveChar(RIGHT, BACK);
MoveChar(LEFT, FRONT);
TextOutA("\c[BLUE] (One leg is enough to kick some ass?\nJust not mine.).");
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] As promised, I'm gonna tell\nyou where the biggie meanie are!");
TextOutA("\c[RED] They are... In the big tower.");
MoveChar(RIGHT, BACK);
MoveChar(LEFT, FRONT);
TextOutA("\c[BLUE] Big tower? What are you talking about?.");
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] That big tower, over there. \nSee?");
MoveChar(RIGHT, BACK);
MoveChar(LEFT, FRONT);
TextOutA("\c[BLUE] What the!? How did I miss that!?");
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] You too? When I first heard of it,\nI couldn't believe my eyes.");
MoveChar(RIGHT, BACK);
MoveChar(LEFT, FRONT);
TextOutA("\c[BLUE] Well, en route to the tower, then!");
End;
}

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