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

script_enemy_main {
   	let imageFile = GetCurrentScriptDirectory~"sprites/sunny.png";
	#include_function ".\DATA\lib_Anime_Sunnymilk.txt";
    @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);
	}
	
	}
yield;
}
   



@DrawLoop{
DrawBoss(imageFile);
}


}



script_event conversation{
let marisa =GetCurrentScriptDirectory ~ ("sprites\marisa.png");
let reimu =GetCurrentScriptDirectory~ ("sprites\CutConvo.png");
@Initialize{
  LoadGraphic(marisa);
  LoadGraphic(reimu);
	
	
 }

@MainLoop{
SetChar(LEFT, marisa); 
SetChar(RIGHT, reimu);                
SetGraphicRect(LEFT, 0, 0, 256, 512);
SetGraphicRect(RIGHT, 0, 1, 220, 260);         
MoveChar(LEFT, BACK);                                      
MoveChar(RIGHT, FRONT);
 

TextOutA("\c[BLUE]Oh dear...");
TextOutA("\c[BLUE]I can't believe she has power over...");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
TextOutA("\c[RED]What's going on? These fairies look\nlike they've seen a ghost."); 
MoveChar(LEFT, BACK);                                      
MoveChar(RIGHT, FRONT);
TextOutA("\c[BLUE]Funny. You REALLY should\nstop going this way.");
TextOutA("\c[BLUE]I didn't want to have to use\nforce, but...");
SetStep(1);
End;  
}


@Finalize{

}
}
