
#Title[Vs aya shameimaru- talk]
#Text[First Talk]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main{

let Boss=GetCurrentScriptDirectory ~ ("\system\Aya_Main.png");
let cx=GetCenterX;
let cy=GetCenterY;
let CSD = GetCurrentScriptDirectory;


@Initialize{
#include_function ".\1Config.txt"
#include_function ".\lib_anime_Aya.txt"
#include_function ".\Obj_hpb.txt"
#include_function ".\newsfx.txt"
	SetLife(1);
if(lifebar_activate ==1){
hpb(2,0,0);
}
	SetDamageRate(1,1);
	LoadGraphic(Boss);
InitializeAction;
SetMovePosition03(GetCenterX,GetCenterY-520,5,90);
	DrawBoss(Boss);
if(GetSpeedX()>0){SetAction(ACT_MOVE,0)}
	if(GetSpeedX()<0){SetAction(ACT_MOVE,0)}
//SetMovePositionHermite(cx,cy-100,-90,290,0,0,100);        
	CreateEventFromScript("talk");

		CreateCommonDataArea("in");
		SetCommonDataEx("in","move",false);
}

@MainLoop{
if(GetEventStep==1){
	SetMovePosition03(GetCenterX,GetCenterY-120,10,5);
	}
if(GetEventStep==2){
	}
if(GetEventStep==4){
	Concentration01(60);
	PlaySE( CSD ~ ".\newsfx\charge.wav");
	}
	if(GetEventStep==3){
	AddLife(-1);
	}

	yield;
}

@DrawLoop{
SetTexture(Boss);
DrawGraphic(GetX,GetY);
SetGraphicScale(1,1);
SetColor(255,255,255);
SetRenderState(ALPHA);


}
}

script_event talk{

let Mai1=GetCurrentScriptDirectory ~ ("\gusano\no.png");
let Reimu2=GetCurrentScriptDirectory ~ ("\system\reimu2.png");
let Reimu3=GetCurrentScriptDirectory ~ ("\system\reimu3.png");
let Reimu4=GetCurrentScriptDirectory ~ ("\system\reimu4.png");
let Reimu5=GetCurrentScriptDirectory ~ ("\system\reimu5.png");
let Reimu6=GetCurrentScriptDirectory ~ ("\system\reimu6.png");
let Gusano1=GetCurrentScriptDirectory ~ ("\system\Raymoo.png");
let Gusano2=GetCurrentScriptDirectory ~ ("\system\KervinTalk2.png");
let Gusano3=GetCurrentScriptDirectory ~ ("\system\KervinTalk3.png");
let Koishi4=GetCurrentScriptDirectory ~ ("\files\koishi4.png");
let Koishi5=GetCurrentScriptDirectory ~ ("\files\koishi5.png");

@Initialize{
LoadGraphic(Mai1);
LoadGraphic(Reimu2);
LoadGraphic(Reimu3);
LoadGraphic(Reimu4);
LoadGraphic(Reimu5);
LoadGraphic(Reimu6);
LoadGraphic(Gusano1);
LoadGraphic(Gusano2);
LoadGraphic(Gusano3);
LoadGraphic(Koishi4);
LoadGraphic(Koishi5);
}

@MainLoop{
SetChar(LEFT,Mai1);SetGraphicRect(LEFT,0,0,600,600);
MoveChar(LEFT,FRONT);
SetNameFromText(LEFT,TEXT_RED,"Gusano","Worm launcher of Paradise");
TextOutA("\c[RED]I am here to prove I'm The Strongest!.");
DeleteName(LEFT);
SetStep(1);
TextOutA("\c[RED]Oh,I see something.");
MoveChar(RIGHT,BACK);

SetNameFromText(RIGHT,TEXT_BLUE,"Aya Shameimaru","Perverted Tengu Reporter");
SetChar(RIGHT,Gusano1);SetGraphicRect(RIGHT,0,0,252,320);
MoveChar(RIGHT,FRONT);
TextOutA("\c[BLUE]WHAT THE...");
TextOutA("\c[BLUE]You are a man, you are flying... Stop \nmaking pranks you idiot tanuki.");
MoveChar(RIGHT,BACK);
DeleteName(RIGHT);
SetChar(LEFT,Mai1);SetGraphicRect(LEFT,0,0,600,600);
MoveChar(LEFT,FRONT);
TextOutA("\c[RED]I am not that tanuki, am a pure human.");
TextOutA("\c[RED]My Name is Gusano, my ability is to  \ncontrol worms, I come from the outside world to defeat (Reimu) that \nShrine Maiden!.");
MoveChar(LEFT,BACK);

SetStep(2);
SetChar(RIGHT,Gusano1);SetGraphicRect(RIGHT,0,0,252,320);
MoveChar(RIGHT,FRONT);
TextOutA("\c[BLUE]Reimu? Are you crazy or something? \nNobody can defeat Reimu due to the \nSpellCard Rules!.");
MoveChar(RIGHT,BACK);
SetChar(LEFT,Mai1);SetGraphicRect(LEFT,0,0,600,600);
MoveChar(LEFT,FRONT);
TextOutA("\c[RED]SCREW the rules, I have... uh.. 2 \nthings:");
TextOutA("\c[RED]1: Another language \n2: Worms and Danmaku.");
MoveChar(LEFT,BACK);
SetChar(RIGHT,Gusano1);SetGraphicRect(RIGHT,0,0,252,320);
MoveChar(RIGHT,FRONT);
TextOutA("\c[BLUE]Do in the outside world you guys use \nDanmaku?.");
MoveChar(RIGHT,BACK);
SetChar(LEFT,Mai1);SetGraphicRect(LEFT,0,0,600,600);
MoveChar(LEFT,FRONT);
TextOutA("\c[RED]Yes. \nShow your power!. ");
MoveChar(LEFT,BACK);SetChar(RIGHT,Gusano1);SetGraphicRect(RIGHT,0,0,252,320);
MoveChar(RIGHT,FRONT);
TextOutA("\c[BLUE]Well, if you want...");
MoveChar(RIGHT,BACK);

SetStep(3);


}

@Finalize{
DeleteGraphic(Mai1);
DeleteGraphic(Reimu2);
DeleteGraphic(Reimu3);
DeleteGraphic(Reimu4);
DeleteGraphic(Reimu5);
DeleteGraphic(Reimu6);
DeleteGraphic(Gusano1);
DeleteGraphic(Gusano2);
DeleteGraphic(Gusano3);
DeleteGraphic(Koishi4);
DeleteGraphic(Koishi5);
}

}