This is the edited code, but the ImgBoss does not show up (it exists).
script_enemy_main{
let ImgBoss = "..\images\patchouli.png";
let bg = "";
let frame=0;
SetX(GetCenterX);
SetY(GetClipMinY+120);
@Initialize{
SetLife(1);
SetDamageRate(0,0);
LoadGraphic(ImgBoss);
CreateEventFromScript("talk");
MagicCircle(false);
}
@MainLoop{
yield;
}
@DrawLoop{
if(frame>50){
LoadGraphic(ImgBoss);
SetTexture(ImgBoss);
SetGraphicAngle(0, 0, 0);
SetGraphicRect(49*floor(2-absolute(frame/15-2)), 0,49*floor(3-absolute(frame/15-2)), 80);
SetGraphicScale(1, 1);
DrawGraphic(GetX, GetY+sin(frame*3)*10);
}
frame++;
}
@Finalize{
DeleteGraphic(ImgBoss);
}
}
script_event talk{
let imgPatchy = "..\images\imgPatchy.png";
let imgReimu = "..\images\imgReimu.png";
let imgMarisa = "..\images\imgMarisa.png";
@Initialize{
LoadGraphic(imgPatchy);
LoadGraphic(imgReimu);
LoadGraphic(imgMarisa);
}
@MainLoop{
alternative( GetPlayerType() )
/*case( REIMU_A, REIMU_B ){
TextOut("\c[BLUE]Hey, I know you...");
SetChar(RIGHT,imgCirno);
SetGraphicRect(RIGHT,1,1,127,255);
MoveChar(RIGHT,FRONT);
SetNameFromText(RIGHT,TEXT_RED,"Cirno","Math Teacher");
TextOut("\c[BLUE]Hey Rumia!\nHow are you?");
DeleteName(RIGHT);
SetChar(LEFT,imgRumia);
SetGraphicRect(LEFT,127,1,255,255);
MoveChar(LEFT,FRONT);
MoveChar(RIGHT,BACK);
TextOut("\c[RED]Let's see...\nI'm hungry!");
SetChar(LEFT,imgRumia2);
SetGraphicRect(LEFT,1,1,127,255);
TextOut("\c[RED]May I eat you?");
MoveChar(RIGHT,FRONT);
MoveChar(LEFT,BACK);
SetGraphicRect(RIGHT,127,1,255,255);
TextOut("\c[BLUE]No...");
MoveChar(LEFT,FRONT);
MoveChar(RIGHT,BACK);
SetChar(LEFT,imgRumia);
SetGraphicRect(LEFT,1,1,127,255);
TextOut("\c[RED]Anyway, I'm lost here.\nWhere AM I?");
MoveChar(RIGHT,FRONT);
MoveChar(LEFT,BACK);
SetGraphicRect(RIGHT,1,1,127,255);
TextOut("\c[BLUE]Seems we're in space!\nCool, isn't it?");
MoveChar(LEFT,FRONT);
MoveChar(RIGHT,BACK);
SetChar(LEFT,imgRumia2);
SetGraphicRect(LEFT,127,1,255,255);
TextOut("\c[RED]Hell, no!");
SetChar(LEFT,imgRumia);
SetGraphicRect(LEFT,1,1,127,255);
TextOut("\c[RED]If you don't mind I'm\ngoing to find the cause of this.");
MoveChar(RIGHT,FRONT);
MoveChar(LEFT,BACK);
TextOut("\c[BLUE]I found out already...\nWhen remilia was defeated...");
TextOut("\c[BLUE]She ordered Sakuya to warp a planet\nin front of the sun to block the light.");
TextOut("\c[BLUE]It seems Sakuya accidently \nwarped us into the infinite, too.");
End();
}*/
case( MARISA_A, MARISA_B ){
TextOut("\c[BLUE]...Hey...");
SetChar(RIGHT,imgPatchy);
SetGraphicRect(RIGHT,1,1,127,255);
MoveChar(RIGHT,FRONT);
SetNameFromText(RIGHT,TEXT_RED,"Patchouli Knowledge","The Unmoving Great Library");
TextOut("\c[BLUE]Hi Marisa!\nYou want to 'borrow' books again?");
DeleteName(RIGHT);
SetChar(LEFT,imgMarisa);
SetGraphicRect(LEFT,127,1,255,255);
MoveChar(LEFT,FRONT);
MoveChar(RIGHT,BACK);
TextOut("\c[RED]Well... You seem to want to aruge it a lot...");
TextOut("\c[RED]In fact, I am treated as a thief each time I enter the mansion.");
TextOut("\c[RED]Even the Aya accused me of that!!!");
MoveChar(RIGHT,FRONT);
MoveChar(LEFT,BACK);
SetChar(RIGHT,imgPatchy);
SetGraphicRect(RIGHT,127,1,255,255);
TextOut("\c[BLUE]You are.");
MoveChar(LEFT,FRONT);
MoveChar(RIGHT,BACK);
SetChar(LEFT,imgMarisa);
SetGraphicRect(LEFT,1,1,127,255);
TextOut("\c[RED]Anyway, I'll be free to enter or leave this mansion freely if I defeat you.");
TextOut("\c[RED]And every time along with my leaving, I'll borrow 10 books.");
MoveChar(RIGHT,FRONT);
MoveChar(LEFT,BACK);
SetGraphicRect(RIGHT,1,1,127,255);
SetChar(RIGHT,imgPatchy);
TextOut("\c[BLUE]You must be dreaming.\nYou won't defeat me.");
MoveChar(LEFT,FRONT);
MoveChar(RIGHT,BACK);
SetChar(LEFT,imgMarisa);
SetGraphicRect(LEFT,127,1,255,255);
TextOut("\c[RED]We'll see. Just like I defeated you many times ago!");
End();
}
yield;
}
@Finalize{
DeleteGraphic(imgMarisa);
DeleteGraphic(imgPatchy);
DeleteGraphic(imgReimu);
}
}