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

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

@MainLoop{
	if(GetCommonDataDefault("conversation", false)==true){
	if(GetEventStep==1){
	AddLife(-GetEnemyLife);
	}
	if(GetEventStep==2){
	CreateEnemyFromScript("Youmu", GetClipMinX+60, GetClipMinY-50, 0, 0, 0);
	SetAction(ACT_MOVE, 60);
	SetMovePosition03(0.5*(GetCenterX+GetClipMaxX), GetClipMinY+120, 10, 2);
	}
	if(GetEventStep==3){
	SetAction(ACT_MOVE, 120);
	SetMovePosition03(GetCenterX, GetClipMinY+120, 10, 2);
	}
	if(GetEventStep==8){
	PlayMusic(bgm);
	}
	
	}
yield;
}
   



@DrawLoop{
DrawBoss(imageFile);
}


}



script_event conversation{
let yuyu =GetCurrentScriptDirectory ~ ("sprites\Cut.png");
let reimu =GetCurrentScriptDirectory~ ("sprites\reimuwtf.png");
let youmu =GetCurrentScriptDirectory~ ("sprites\CutY.png");
@Initialize{
  LoadGraphic(yuyu);
  LoadGraphic(reimu);
	  LoadGraphic(youmu);
	
	
 }

@MainLoop{
SetChar(LEFT, reimu); 
SetChar(RIGHT, yuyu);                
SetGraphicRect(LEFT, 0, 0, 200, 300);
         
MoveChar(LEFT, BACK);                                      
MoveChar(RIGHT, FRONT);
 

TextOutA("\c[BLUE]Hmm? Who's there?");
SetStep(3);
Wait(1);
SetStep(0);
SetGraphicRect(RIGHT, 0, 0, 200, 300);
TextOutA("\c[BLUE]Oh, Reimu!");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
TextOutA("\c[RED]What're you doing? I just saw a fairy\nthat was scared out of its mind."); 
MoveChar(LEFT, BACK);                                      
MoveChar(RIGHT, FRONT);
TextOutA("\c[BLUE]Well, Hakugyokurou has had a lack of\nfairies lately.\nProbably due to that slacker of a\nshinigami neglecting to kill them.");
TextOutA("\c[BLUE]So I decided to get some.\nPersonally.");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
TextOutA("\c[RED]As much as I hate fairies...\nYou can't just outright kill them!");
TextOutA("\c[RED]Stop this at once, and go back to\nthe Netherworld!"); 
MoveChar(LEFT, BACK);                                      
MoveChar(RIGHT, FRONT);
TextOutA("\c[BLUE]Fufufufu..."); 
TextOutA("\c[BLUE]I suppose you'll use force, as always.");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
TextOutA("\c[RED](...Did she just 'fufufufu'?)"); 
TextOutA("\c[RED]Well, if you won't stop...\nI suppose I will!");
MoveChar(LEFT, BACK);                                      
MoveChar(RIGHT, FRONT);
TextOutA("\c[BLUE]I see...\nCan you handle two opponents at once?");
TextOutA("\c[BLUE]Youmu!");
SetStep(2);
Wait(1);
SetStep(0);
Wait(59);
SetChar(LEFT, youmu);
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
TextOutA("\c[GREEN]Lady Yuyuko...\nDo we have to fight HER, too?");
MoveChar(LEFT, BACK);                                      
MoveChar(RIGHT, FRONT);
TextOutA("\c[BLUE]She's just a mere shrine maiden.\nOf course we can handle it!");
SetStep(8);
Wait(1);
SetStep(0);
SetChar(LEFT, reimu);
TextOutA("\c[BLUE]Prepare for your first and last\ndouble duel!");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
SetChar(LEFT, reimu);
TextOutA("\c[RED]Well, actually..."); 
TextOutA("\c[RED](...This is ridiculous.)");
TextOutA("\c[RED]We'll see about that. Eat danmaku!");
SetStep(1);
End;  
}


@Finalize{

}
}


script_enemy Youmu{
	
	
	
	#include_function ".\Youmuinclude.txt"


	@Initialize {
	InitializeAction;
	SetAction(ACT_MOVE, 120);
	SetMovePosition02((GetCenterX+GetClipMinX)/2, GetClipMinY + 120, 60);
	LoadSE(shot);
	LoadSE(shot2);
	LoadSE(slash);
	LoadSE(shot3);
	LoadGraphic(imageFile);
	LoadGraphic(Cut);
	SetLife(150000);
	SetInvincibility(45555555);
	SetDamageRateEx(35, 25, 175, 10);
	animation;
	}

	task animation{
	wait(60);
	SetAction(ACT_STAND, 600000);
	}
	
	

}



