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

script_enemy_main {
   	let imageFile = GetCurrentScriptDirectory~"sprites/reimu.png";
	#include_function ".\DATA\lib_anime_Reimu.dnh";
    @Initialize {
	SetCommonData("conversation", true);
        SetLife(1);
        SetTimer(60);
        SetInvincibility(10000);
	SetDamageRate(100,0);
       	SetX(GetClipMinX-60);
	SetY(GetClipMinY-60);
	CreateEventFromScript("conversation");
	LoadGraphic(imageFile);
        InitializeAction;
    }

@MainLoop{
	if(GetCommonDataDefault("conversation", false)==true){
	if(GetEventStep==1){
	AddLife(-GetEnemyLife);
	}
	if(GetEventStep==5){
	SetMovePosition02(GetCenterX, GetClipMinY+120, 60);
	SetAction(ACT_MOVE, 60);
	}
	if(GetEventStep==15){
	SetAction(ACT_STAND, 11111);
	}
	}
yield;
}
   



@DrawLoop{
DrawBoss(imageFile);
}


}



script_event conversation{
let marisa =GetCurrentScriptDirectory ~ ("sprites\marisa.png");
let reimu =GetCurrentScriptDirectory~ ("sprites\cut.png");
let bgm = GetCurrentScriptDirectory~"mu\bgm.mp3";
@Initialize{
  LoadGraphic(marisa);
  LoadGraphic(reimu);
	LoadMusic(bgm);
	
 }

@MainLoop{
SetChar(LEFT, marisa);                 
SetGraphicRect(LEFT, 0, 0, 256, 512);           
MoveChar(LEFT, FRONT);                                      
MoveChar(RIGHT, BACK);
TextOutA("\c[RED]I hope Reimu will point me in \nthe right direction.");
SetChar(RIGHT, reimu); 
SetStep(15);
SetStep(16);
SetGraphicRect(RIGHT, 0, 0, 190, 312);
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);                          
SetStep(5);
Wait(1);

SetStep(55);
TextOutA("Or I might beat you up for causing \nan incident!");
Wait(70);   
Wait(1);
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);                          
TextOutA("\c[RED]Do I REALLY look like I could've \ncaused this?");   
DeleteName(LEFT);                 
MoveChar(RIGHT, FRONT);                           
MoveChar(LEFT, BACK); 
SetNameFromText(RIGHT,TEXT_BLUE,"Reimu Hakurei","Overzealous Shrine Maiden");                          
TextOutA("\c[BLUE]Well, maybe not. \nBut if you know anything...");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
TextOutA("\c[RED]I don't know anything. \nIn fact, that's why I came here!"); 
MoveChar(RIGHT, FRONT);                           
MoveChar(LEFT, BACK);
DeleteName(RIGHT);
TextOutA("\c[BLUE]Pfft, you're obviously lying.");
PlayMusic(bgm);
SetStep(3);
TextOutA("\c[BLUE]Maybe a danmaku duel will \nget the truth...");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
TextOutA("\c[RED]I really didn't want to do this, but... \nBitch, get out of the way!"); 
SetStep(1);
End;  
}


@Finalize{

}
}
