#TouhouDanmakufu
#Title[Boss convo.]
#Text[sfsd~]
#Player[FREE]
#ScriptVersion[2]
#BackGround[User(.\stgbg.png, 0, 0)]

script_enemy_main {
   	let imageFile = GetCurrentScriptDirectory~"sprites/sakuya.png";
	#include_function ".\DATA\lib_Anime_Sakuya.dnh";
	let bgm = GetCurrentScriptDirectory~"mu\bgm.mp3";
    @Initialize {
	
	
	SetCommonData("conversation", true);
        SetLife(1);
        SetTimer(60);
        SetInvincibility(10000);
	SetDamageRate(100,0);
	CreateEventFromScript("conversation");
	LoadGraphic(imageFile);
        InitializeAction;
	SetMovePosition02(GetCenterX, GetClipMinY+120, 60);
	SetAction(ACT_MOVE, 60);
    }

@MainLoop{
	if(GetCommonDataDefault("conversation", false)==true){
	if(GetEventStep==1){
	AddLife(-GetEnemyLife);
	PlayMusic(bgm);
	}
	
	}
yield;
}
   



@DrawLoop{
DrawBoss(imageFile);
}


}



script_event conversation{
let reimu =GetCurrentScriptDirectory ~ ("\reimu.png");
let alice =GetCurrentScriptDirectory~ ("sprites\Cut.png");

@Initialize{
  LoadGraphic(reimu);
  LoadGraphic(alice);
	
 }

@MainLoop{
SetChar(LEFT, reimu);
SetChar(RIGHT, alice);                 
SetGraphicRect(LEFT, 0, 0, 128, 300);           
SetStep(15);
SetStep(16);
SetGraphicRect(RIGHT, 0, 0, 180, 256);
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);                          
TextOutC(60, "Who goes there?");    
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
SetGraphicRect(LEFT, 1, 1, 128, 270);                           
TextOutA("\c[RED]Deja vu, much?");   
DeleteName(LEFT);                 
MoveChar(RIGHT, FRONT);                           
MoveChar(LEFT, BACK); 
SetNameFromText(RIGHT,TEXT_BLUE,"Sakuya","Her Perfect and Elegant-ness");                          
TextOutA("\c[BLUE]Hello, whoever you are.");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
TextOutA("\c[RED]Aren't you...Sakuya?\nHello there."); 
MoveChar(RIGHT, FRONT);                           
MoveChar(LEFT, BACK);
DeleteName(RIGHT);
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);                          
TextOutA("I already said hello.");
TextOutA("I heard an explosion a few\nminutes ago.\nIf you're causing trouble, I can\nstall you by-");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
SetGraphicRect(LEFT, 1, 1, 128, 270);                           
TextOutA("\c[RED]By stopping time~.");  
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);   
SetStep(2);
Wait(1);
SetStep(15);                       
TextOutA("If you know those lines...");   
TextOutA("You must've been a troublemaker\nthat I've seen before!");   
SetStep(1);


End;          

}

 @Finalize{
  
 }
}
