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

script_enemy_main {
   	let  Enemy = GetCurrentScriptDirectory~"img\sprites\whitereimu.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\reimu.mp3";

let Reimuneutral =GetCurrentScriptDirectory~ ("img\cut\ReimuW.png");
let Reimuserious =GetCurrentScriptDirectory~ ("img\cut\ReimuW2.png");
let Reimusmile =GetCurrentScriptDirectory~ ("img\cut\ReimuW3.png");
let Reimusmile2 =GetCurrentScriptDirectory~ ("img\cut\ReimuW4.png");
let Reimuangry =GetCurrentScriptDirectory~ ("img\cut\ReimuW5.png");
let Reimuspell =GetCurrentScriptDirectory~ ("img\cut\ReimuWS.png");

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


  LoadGraphic(Reimusmile);
  LoadGraphic(Reimusmile2);
  LoadGraphic(Reimuserious);
  LoadGraphic(Reimuneutral);
  LoadGraphic(Reimuangry);
  LoadGraphic(Reimuspell);


	LoadMusic(bgm);
 }

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

TextOutA("\c[PURPLE]Ah!I can feel something very powerful  coming...\nCould it be...?");


SetChar(RIGHT,Reimuneutral); 
SetGraphicRect(RIGHT, 0, 0, 190, 312);
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);                          

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

SetNameFromText(RIGHT,TEXT_WHITE,"X      ","Spirit from Human World");   
TextOutA("\c[WHITE]Um...hello?\nWhere am I?");

MoveChar(RIGHT, BACK);  
DeleteName(RIGHT);                               
MoveChar(LEFT, FRONT);  
SetChar(LEFT, Yuyukosmile);  
TextOutA("\c[PURPLE]Where?"); 
TextOutA("\c[PURPLE]This is Hakugyokurou, land of the dead."); 

SetChar(RIGHT, Reimusmile);                   
MoveChar(RIGHT, FRONT);                        
MoveChar(LEFT, BACK);                    
TextOutA("\c[WHITE]Land...of the dead?");

SetChar(RIGHT, Reimusmile2); 
TextOutA("\c[WHITE]That's...");

SetChar(RIGHT, Reimusmile); 
TextOutA("\c[WHITE]A fun joke,first time I've heard that  one.");

MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
SetChar(LEFT, Yuyukoneutral);  
TextOutA("\c[PURPLE](Is she...or he...amnesiac?)"); 

SetChar(LEFT, Yuyukoserious);  
TextOutA("\c[PURPLE]Sorry to break your daydream, you are  dead."); 

MoveChar(RIGHT, FRONT);                           
MoveChar(LEFT, BACK);
TextOutA("\c[WHITE]That's impossible. I remember being in a accident, then my friends took me to the hospital.");

TextOutA("\c[WHITE]After that...");
SetChar(RIGHT, Reimusmile2); 
TextOutA("\c[WHITE](After that,after that...)");
TextOutA("\c[WHITE](Why can't I remember what happened    after?Am I really dead?)");

SetChar(LEFT, Yuyukoneutral);  
MoveChar(RIGHT, BACK);                        
MoveChar(LEFT, FRONT);  
TextOutA("\c[PURPLE]Sorry if I have been a bit rude.       Don't worry,death is...");
TextOutA("\c[PURPLE]Wait..."); 

TextOutA("\c[PURPLE](Why do I have the feeling that...this person don't belong here...?)"); 

SetChar(LEFT, Yuyukosmile); 
TextOutA("\c[PURPLE]Maybe...you are right."); 

SetChar(RIGHT, Reimusmile);                   
MoveChar(RIGHT, FRONT);                        
MoveChar(LEFT, BACK);                    
TextOutA("\c[WHITE]Really?");


MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
SetChar(LEFT, Yuyukoneutral);  
TextOutA("\c[PURPLE]Yes.There are few cases, when a person is in a coma..."); 
TextOutA("\c[PURPLE]She can see what death looks like for abit of time."); 


MoveChar(LEFT, BACK);                           
MoveChar(RIGHT, FRONT);
SetChar(RIGHT, Reimusmile2); 
TextOutA("\c[WHITE]So...my time in this world is limited.");
 

MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
SetChar(LEFT, Yuyukoneutral);  
TextOutA("\c[PURPLE]Yes. Just live your time here at the   fullest."); 


MoveChar(LEFT, BACK);                           
MoveChar(RIGHT, FRONT);
SetChar(RIGHT, Reimuneutral); 
TextOutA("\c[WHITE]Right.How about I show you something   from my world?");


MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
SetChar(LEFT, Yuyukosmile);  
TextOutA("\c[PURPLE]Is that...A danmaku challenge?");
TextOutA("\c[PURPLE]I love them.");  

MoveChar(LEFT, BACK);                           
MoveChar(RIGHT, FRONT);
SetChar(RIGHT, Reimuangry); 
TextOutA("\c[WHITE]Get ready,because this...");

PlayMusic(bgm);

SetChar(RIGHT, Reimuspell); 
TextOutA("\c[WHITE]...Is be the best that my world can offer!");

SetStep(1);
End;  
}


@Finalize{

}
}
