

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] Kor, that you? Been a long time.");
MoveChar(RIGHT, BACK);
MoveChar(LEFT, FRONT);
TextOutA("\c[BLUE] Yes, but...\nMU was taken.");
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] Ahhh, yes. I'm aware.");
MoveChar(RIGHT, BACK);
MoveChar(LEFT, FRONT);
TextOutA("\c[BLUE] Waruigi told me you knew where \nthe responsibles were hiding.");
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] I got an idea about that, yeah.");
MoveChar(RIGHT, BACK);
MoveChar(LEFT, FRONT);
TextOutA("\c[BLUE] Then, tell me!\nWhere are they?");
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] Ehhhh. You can find yourself.\nPlenty obvious, it is.");
MoveChar(RIGHT, BACK);
MoveChar(LEFT, FRONT);
TextOutA("\c[BLUE] Don't mess with me! \nJust tell me where they are!");
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);
SetNameFromText (RIGHT, TEXT_RED, "Luidi", "Tired intel");
TextOutA("\c[RED] Let me alone! \nI wanted to sleep in today.");
DeleteName(RIGHT);
MoveChar(RIGHT, BACK);
MoveChar(LEFT, FRONT);
TextOutA("\c[BLUE] I must find them!");
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] How stubborn, you.\nWell, I'm kinda bored, too.");
PlayMusic("script\DanMUku\Stage3\Luidi.mp3");
TextOutA("\c[RED] Alright, I'll tell you.\nAfter you beat me in a battle, that is!");
MoveChar(RIGHT, BACK);
MoveChar(LEFT, FRONT);
TextOutA("\c[BLUE] I have no time to play!");
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] I'm not giving you a choice! \n En garde!");
End;
}

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