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

script_enemy_main {
    	
	let reimu = "reimu.png";
	let alice = "alice.png";
	let bgm = GetCurrentScriptDirectory~"PlasticMind";
    let frame = -120;
	#include_function ".\shinkianimationyay.txt"
    @Initialize {
	PlaySE(GetCurrentScriptDirectory~"shot2.wav");
        SetLife(10);
        SetTimer(60);
        SetInvincibility(1000000);
	SetDamageRate(0,0);
        SetMovePosition02(GetCenterX, GetClipMinY + 120, 1);
        LoadMusic(bgm);

        
    }

    @MainLoop {
        SetCollisionA(GetX, GetY, 32);
        SetCollisionB(GetX, GetY, 16);
CreateEventFromScript("conversation");


if(GetEventStep == 1) { 
AddLife(-GetLife);
PlayMusic(bgm);
 }

if(GetEventStep==2){
PlayMusic(bgm);
}
 frame++;

	}
       

    

    @DrawLoop {
 
                animm;
    }

    @Finalize {
        
    }




}

script_event conversation{
let reimu =GetCurrentScriptDirectory ~ ("\reimu.png");
let alice =GetCurrentScriptDirectory~ ("\shinkicut.png");

@Initialize{
  LoadGraphic(reimu);
  LoadGraphic(alice);
	
 }

@MainLoop{
SetChar(LEFT, reimu);
SetChar(RIGHT, alice);                 
SetGraphicRect(LEFT, 0, 0, 128, 300);           
SetStep(15);
SetStep(16);
SetGraphicRect(RIGHT, 0, 0, 180, 256);
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);                          
TextOutA("Welcome to Makai!");    
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
SetGraphicRect(LEFT, 1, 1, 128, 270);                           
TextOutA("\c[RED] Shinki?");   
DeleteName(LEFT);                 
MoveChar(RIGHT, FRONT);                           
MoveChar(LEFT, BACK); 
SetNameFromText(RIGHT,TEXT_BLUE,"Shinki","Resident Weirdo Goddess");                          
TextOutA("\c[BLUE] Welcome. As a customary greeting...");
TextOutA("\c[BLUE] Have some danmaku!");
TextOutA("\c[BLUE] (Nice of that fairy, \n teaching me how to greet others.)");
MoveChar(RIGHT, BACK);                           
MoveChar(LEFT, FRONT);
TextOutA("\c[RED] Since when were you the welcoming \n comittee?");
TextOutA("\c[RED] Whatever...");
TextOutA("\c[RED] I'll just shoot anything that \n gets in my way!");
MoveChar(RIGHT, FRONT);                           
MoveChar(LEFT, BACK);
DeleteName(RIGHT);
SetStep(1);


End;          

}

 @Finalize{
  
 }
}
