#TouhouDanmakufu
#Title[boss 1 convo 1.]
#Text[Nyan~]
#Player[FREE]
#ScriptVersion[2]
#BackGround[]

script_enemy_main {
   	let  Enemy = GetCurrentScriptDirectory~"img\sprites\youmu.png";
	
    @Initialize {
	SetCommonData("conversation", true);
        SetLife(1);
        SetInvincibility(10000);
	SetDamageRate(100,0);
       	SetX(GetClipMinX-100);
	SetY(GetClipMinY-100);
	CreateEventFromScript("conversation");
	LoadGraphic(Enemy);
       
    }

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

if(GetEventStep==2){SetMovePosition02(GetCenterX, GetClipMinY+120, 80);}



	}
yield;
}
   



@DrawLoop{

SetAlpha(255);
SetGraphicScale(1,1);
SetColor(255,255,255);
SetGraphicAngle(0,0,0);
SetTexture(Enemy);
SetGraphicRect(44,34,87,95);
DrawGraphic(GetX,GetY);

}


}



script_event conversation{
let Yuyukosmile =GetCurrentScriptDirectory ~ ("img\cut\Yuyuko.png");
let Yuyukoneutral =GetCurrentScriptDirectory ~ ("img\cut\Yuyuko2.png");
let Yuyukoserious =GetCurrentScriptDirectory ~ ("img\cut\Yuyuko3.png");

let bgm = GetCurrentScriptDirectory~"bgm\youmu.mp3";

let Youmu =GetCurrentScriptDirectory~ ("img\cut\Youmu.png");

@Initialize{
  LoadGraphic(Yuyukosmile);
  LoadGraphic(Yuyukoneutral);
  LoadGraphic(Yuyukoserious);
  LoadGraphic(Youmu);
	

	LoadMusic(bgm);
 }

@MainLoop{
SetChar(LEFT, Yuyukosmile);                 
SetGraphicRect(LEFT, 0, 0, 190, 312);           
MoveChar(LEFT, FRONT);                                      
MoveChar(RIGHT, BACK);

SetNameFromText(LEFT,TEXT_PURPLE,"Yuyuko Saigyouji","Carefree Spirit");  
TextOutA("\c[PURPLE]My,what a beautiful day to admire the  sakura...\nYoumu really is an excellent gardener. \nSpeaking of her...where could she be?");
SetChar(RIGHT, Youmu); 
SetStep(15);
SetStep(16);
SetGraphicRect(RIGHT, 0, 0, 190, 312);
MoveChar(LEFT, BACK);
DeleteName(LEFT);
MoveChar(RIGHT, FRONT);                          

SetStep(2);//set movement	
Wait(1);
SetStep(22);//set normality of movement

SetNameFromText(RIGHT,TEXT_AQUA,"Youmu Konpaku","Silent Blade of Hakugyokurou");   
TextOutA("\c[AQUA]Right here,Lady Yuyuko.\nWhat is it for?");
Wait(70);   
Wait(1);
MoveChar(RIGHT, BACK);  
DeleteName(RIGHT);                               
MoveChar(LEFT, FRONT);  
SetChar(LEFT, Yuyukosmile);  
TextOutA("\c[PURPLE]I'm going on a walk... \nDo you want to come with me?");                    
MoveChar(RIGHT, FRONT);                        
MoveChar(LEFT, BACK);                    
TextOutA("\c[AQUA]I'd like to,but... If I go,no one will be there to protect the house...");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
SetChar(LEFT, Yuyukoneutral);  
TextOutA("\c[PURPLE]That isn't much of a problem. \nDo you remember what I've told you?\nAbout your sentinel mission?"); 
MoveChar(RIGHT, FRONT);                           
MoveChar(LEFT, BACK);
TextOutA("\c[AQUA]Of course Lady Yuyuko...");
Wait(60);
PlayMusic(bgm);
TextOutA("\c[AQUA]A sentinel's mission is to stop people entering and going out. \nAnd that's what I'm going to do!");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
SetChar(LEFT, Yuyukosmile); 
TextOutA("\c[PURPLE]Precisely.However..."); 

SetChar(LEFT, Yuyukoserious); 
TextOutA("\c[PURPLE]I can't allow you to keep me as a      butterfly in a golden cage."); 

SetStep(1);
End;  
}


@Finalize{

}
}
