script_enemy_main{

let bigdial=0;
let bigdialpart=[];
let bigdialcog=[];
let bigdialtimer=[];
let dialfade=0;
let dialcolor=120;

let effect1=0;
let object1=[];
let xscale1=0.01;
let yscale1=0.01;
let xscale2=0.01;
let yscale2=0.01;

let shot1=0;
let bullet1=[];
let timer1=[];

let shot2=0;
let bullet2=[];
let timer2=[];
let color2=[];
let color=rand_int(1,10);

let effect3=0;
let object3=[];
let timer3=[];
let scale3=[];

let character="Tomoko";
let cutin=character;
let dispelled=0;
let spellcards=4;
let spellcardnumber=39;
let damagerate=10;
let outfit=1;
outfit=(128*outfit)-128;
let usespell=0;
let bgfade=0;
let frame=0;
let time=0;
let miny=GetClipMinY; let maxy=GetClipMaxY; let minx=GetClipMinX; let maxx=GetClipMaxX;
let cx=GetCenterX; let cy=GetCenterY;

let SEshots5=("script\SoundEffects\shots5.wav");

let SEmagics1=("\script\SoundEffects\magics1.wav");
let SEmagics5=("\script\SoundEffects\magics5.wav");
let SEcharge1=("script\SoundEffects\charge1.wav");

let EFbigdial=("\script\Images\BackgroundLayers\Tomoko2a.png");
let EFbigdialcogs=("\script\Images\BackgroundLayers\Tomoko2b.png");

let EFspellcircle=("\script\Images\OtherEffects\SpellCircle1a.png");
let EFwings=("\script\Images\OtherEffects\ButterflyWings.png");

let BG1=("\script\Images\BackgroundLayers\Tomoko1.png");
let GRboss=("\script\Images\CharacterSprites\Tomoko.png");

#include_function "script/Functions/SetSpellcardCommonData.txt";
#include_function "script/Functions/SpellcardNameLoad.txt";
#include_function "script/Functions/HealthBarLoad.txt";
#include_function "script/Functions/CutInLoad.txt";

@Initialize{
	LoadUserShotData("script\shots\ShotsTomoko1.txt");

	LoadSE("script\SoundEffects\shots5.wav");

	LoadSE("\script\SoundEffects\magics1.wav");
	LoadSE("\script\SoundEffects\magics5.wav");
	LoadSE("script\SoundEffects\charge1.wav");
	
	LoadGraphic("\script\Images\BackgroundLayers\Tomoko2a.png");
	LoadGraphic("\script\Images\BackgroundLayers\Tomoko2b.png");

	LoadGraphic("\script\Images\OtherEffects\ButterflyWings.png");
	LoadGraphic("\script\Images\OtherEffects\SpellCircle1a.png");
	LoadGraphic("\script\Images\CharacterSprites\Tomoko.png");
	LoadGraphic("\script\Images\BackgroundLayers\Tomoko1.png");

	SetScore(350000);
	SetLife(400);
	SetTimer(50);
	SetInvincibility(120);
	SetDamageRate(10,10);
	SetEnemyMarker(true);
	MagicCircle(true);
	#include_function "script/Functions/Focus.txt";
	Focus(character);
	SetEffectForZeroLife(60,100,1);
	SetMovePosition02(cx+rand(-40,40),miny+100,50);
}
	
@MainLoop{

SetCollisionA(GetX,GetY,16);
SetCollisionB(GetX,GetY,16);
SetShotAutoDeleteClip(32,32,32,32);

let weaken=1;
if(GetCommonData("BombOn")==0){ damagerate=10; }
if(GetCommonData("BombOn")==1){ damagerate=6; }
SetDamageRate(damagerate*weaken,damagerate*weaken);

let difficulty="";
if(GetCommonDataDefault("Difficulty",3)==1){ difficulty="Easy"; }
if(GetCommonDataDefault("Difficulty",3)==2){ difficulty="Normal"; }
if(GetCommonDataDefault("Difficulty",3)==3){ difficulty="Hard"; }
if(GetCommonDataDefault("Difficulty",3)==4){ difficulty="Lunatic"; }

SpellcardName("Determinism [The Butterfly Effect] ("~difficulty~")",spellcardnumber); 
HealthBar();
Portrait(cutin,3);

if(time%200==0 && time>=60){
	if(GetPlayerX>minx+50 && GetPlayerX<maxx-50){
	SetMovePosition01(GetPlayerX+rand(-30,30),rand(miny+60,miny+120),1.5);
	}
	if(GetPlayerX<=minx+50){
	SetMovePosition01(GetPlayerX+rand(15,30),rand(miny+60,miny+120),1.5);
	}
	if(GetPlayerX>=maxx-50){
	SetMovePosition01(GetPlayerX-rand(15,30),rand(miny+60,miny+120),1.5);
	}
}


if(time==60){
let xsize=399;
let ysize=399;
let part=0;
let randomtime=rand_int(0,25920);
	loop(6){
	bigdial=(Obj_Create(OBJ_EFFECT));
	Obj_SetPosition(bigdial,cx,cy);
	ObjEffect_SetScale(bigdial,1,1);
	ObjEffect_SetLayer(bigdial,0); ObjEffect_SetTexture(bigdial,EFbigdial); ObjEffect_SetRenderState(bigdial,ALPHA);
	ObjEffect_SetPrimitiveType(bigdial,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(bigdial,4);
	ObjEffect_SetVertexXY(bigdial,0,-(xsize/2),-(ysize/2)); ObjEffect_SetVertexUV(bigdial,0,0+part,0);
	ObjEffect_SetVertexXY(bigdial,1,xsize/2,-(ysize/2)); ObjEffect_SetVertexUV(bigdial,1,xsize+part,0);
	ObjEffect_SetVertexXY(bigdial,2,-(xsize/2),ysize/2); ObjEffect_SetVertexUV(bigdial,2,0+part,ysize);
	ObjEffect_SetVertexXY(bigdial,3,xsize/2,ysize/2); ObjEffect_SetVertexUV(bigdial,3,xsize+part,ysize);
	ObjEffect_SetVertexColor(bigdial,0,dialfade,dialcolor,dialcolor,dialcolor); ObjEffect_SetVertexColor(bigdial,1,dialfade,dialcolor,dialcolor,dialcolor);
	ObjEffect_SetVertexColor(bigdial,2,dialfade,dialcolor,dialcolor,dialcolor); ObjEffect_SetVertexColor(bigdial,3,dialfade,dialcolor,dialcolor,dialcolor);
	bigdialpart=bigdialpart~[bigdial];
	bigdialtimer=bigdialtimer~[bigdial];
	bigdialtimer[length(bigdialpart)-1]=randomtime;
	
if(part==0){
let xsize2=79;
let ysize2=79;
let size2=0;
let part2=0;
	loop(12){
	bigdial=(Obj_Create(OBJ_EFFECT));
	if(part2==0){ Obj_SetPosition(bigdial,cx-90,cy-100); ObjEffect_SetScale(bigdial,1,1); }
	if(part2==1){ Obj_SetPosition(bigdial,cx-35,cy-80); ObjEffect_SetScale(bigdial,1,1); }
	if(part2==2){ Obj_SetPosition(bigdial,cx-55,cy-25); ObjEffect_SetScale(bigdial,1.5,1.5); }
	if(part2==3){ Obj_SetPosition(bigdial,cx+60,cy-50); ObjEffect_SetScale(bigdial,1.3,1.3); }
	if(part2==4){ Obj_SetPosition(bigdial,cx+15,cy-110); ObjEffect_SetScale(bigdial,1,1); }
	if(part2==5){ Obj_SetPosition(bigdial,cx+80,cy-10); ObjEffect_SetScale(bigdial,0.8,0.8); }
	if(part2==6){ Obj_SetPosition(bigdial,cx+45,cy+75); ObjEffect_SetScale(bigdial,0.7,0.7); }
	if(part2==7){ Obj_SetPosition(bigdial,cx+75,cy+48); ObjEffect_SetScale(bigdial,1,1); }
	if(part2==8){ Obj_SetPosition(bigdial,cx-120,cy); ObjEffect_SetScale(bigdial,0.7,0.7); }
	if(part2==9){ Obj_SetPosition(bigdial,cx-100,cy+30); ObjEffect_SetScale(bigdial,1,1); }
	if(part2==10){ Obj_SetPosition(bigdial,cx-45,cy+75); ObjEffect_SetScale(bigdial,1,1); }
	if(part2==11){ Obj_SetPosition(bigdial,cx-10,cy+100); ObjEffect_SetScale(bigdial,1,1); }
	ObjEffect_SetLayer(bigdial,0); ObjEffect_SetTexture(bigdial,EFbigdialcogs); ObjEffect_SetRenderState(bigdial,ALPHA);
	ObjEffect_SetPrimitiveType(bigdial,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(bigdial,4);
	ObjEffect_SetVertexXY(bigdial,0,-(xsize2/2),-(ysize2/2)); ObjEffect_SetVertexUV(bigdial,0,0+size2,0);
	ObjEffect_SetVertexXY(bigdial,1,xsize2/2,-(ysize2/2)); ObjEffect_SetVertexUV(bigdial,1,xsize2+size2,0);
	ObjEffect_SetVertexXY(bigdial,2,-(xsize2/2),ysize2/2); ObjEffect_SetVertexUV(bigdial,2,0+size2,ysize2);
	ObjEffect_SetVertexXY(bigdial,3,xsize2/2,ysize2/2); ObjEffect_SetVertexUV(bigdial,3,xsize2+size2,ysize2);
	ObjEffect_SetVertexColor(bigdial,0,dialfade,dialcolor,dialcolor,dialcolor); ObjEffect_SetVertexColor(bigdial,1,dialfade,dialcolor,dialcolor,dialcolor);
	ObjEffect_SetVertexColor(bigdial,2,dialfade,dialcolor,dialcolor,dialcolor); ObjEffect_SetVertexColor(bigdial,3,dialfade,dialcolor,dialcolor,dialcolor);
	bigdialcog=bigdialcog~[bigdial];
	size2+=80;
	part2++;
	}
}
	part+=400;
	}
}

let i=0;
while(i<length(bigdialpart)){
	if(Obj_BeDeleted(bigdialpart[i])){
	bigdialpart=erase(bigdialpart,i); bigdialtimer=erase(bigdialtimer,i);
	i--;
	}
	else{
	ObjEffect_SetVertexColor(bigdialpart[i],0,dialfade,dialcolor,dialcolor,dialcolor);
	ObjEffect_SetVertexColor(bigdialpart[i],1,dialfade,dialcolor,dialcolor,dialcolor);
	ObjEffect_SetVertexColor(bigdialpart[i],2,dialfade,dialcolor,dialcolor,dialcolor);
	ObjEffect_SetVertexColor(bigdialpart[i],3,dialfade,dialcolor,dialcolor,dialcolor);
	
	ObjEffect_SetAngle(bigdialpart[3],0,0,-bigdialtimer[i]/40);
	ObjEffect_SetAngle(bigdialpart[4],0,0,bigdialtimer[i]/24);
	ObjEffect_SetAngle(bigdialpart[5],0,0,bigdialtimer[i]/2);
	bigdialtimer[i]=bigdialtimer[i]+1;
	}
i++;
}
if(time>=60 && dialfade<255){ dialfade+=5; }


let i=0;
while(i<length(bigdialcog)){
	if(Obj_BeDeleted(bigdialcog[i])){
	bigdialcog=erase(bigdialcog,i);
	i--;
	}
	else{
	ObjEffect_SetAngle(bigdialcog[0],0,0,time);
	ObjEffect_SetAngle(bigdialcog[1],0,0,-time);
	ObjEffect_SetAngle(bigdialcog[2],0,0,time/2);
	ObjEffect_SetAngle(bigdialcog[3],0,0,time/1.5);
	ObjEffect_SetAngle(bigdialcog[4],0,0,time);
	ObjEffect_SetAngle(bigdialcog[5],0,0,-time);
	ObjEffect_SetAngle(bigdialcog[6],0,0,time*1.3);
	ObjEffect_SetAngle(bigdialcog[7],0,0,time);
	ObjEffect_SetAngle(bigdialcog[8],0,0,-time);
	ObjEffect_SetAngle(bigdialcog[9],0,0,-time/2);
	ObjEffect_SetAngle(bigdialcog[10],0,0,time);
	ObjEffect_SetAngle(bigdialcog[11],0,0,-time/2);
	
	ObjEffect_SetVertexColor(bigdialcog[i],0,dialfade,dialcolor,dialcolor,dialcolor);
	ObjEffect_SetVertexColor(bigdialcog[i],1,dialfade,dialcolor,dialcolor,dialcolor);
	ObjEffect_SetVertexColor(bigdialcog[i],2,dialfade,dialcolor,dialcolor,dialcolor);
	ObjEffect_SetVertexColor(bigdialcog[i],3,dialfade,dialcolor,dialcolor,dialcolor);
	}
i++;
}



if(time==60){
	loop(2){
	effect1=(Obj_Create(OBJ_EFFECT));
	Obj_SetPosition(effect1,GetX,GetY);
	ObjEffect_SetScale(effect1,xscale1,yscale1);
	ObjEffect_SetLayer(effect1,1); ObjEffect_SetTexture(effect1,EFwings); ObjEffect_SetRenderState(effect1,ADD);
	ObjEffect_SetPrimitiveType(effect1,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(effect1,4);
	ObjEffect_SetVertexXY(effect1,0,-190,-100); ObjEffect_SetVertexUV(effect1,0,0,0);
	ObjEffect_SetVertexXY(effect1,1,190,-100); ObjEffect_SetVertexUV(effect1,1,380,0);
	ObjEffect_SetVertexXY(effect1,2,-190,100); ObjEffect_SetVertexUV(effect1,2,0,200);
	ObjEffect_SetVertexXY(effect1,3,190,100); ObjEffect_SetVertexUV(effect1,3,380,200);
	ObjEffect_SetVertexColor(effect1,0,180,255,255,255); ObjEffect_SetVertexColor(effect1,1,180,255,255,255);
	ObjEffect_SetVertexColor(effect1,2,180,255,255,255); ObjEffect_SetVertexColor(effect1,3,180,255,255,255);
	object1=object1~[effect1];
	}
}

if(time>=60){
	if(xscale1<1){ xscale1+=(xscale1*0.1); }
	if(yscale1<1){ yscale1+=(yscale1*0.2); }
	if(xscale2<1.1){ xscale2+=(xscale2*0.09); }
	if(yscale2<1.2){ yscale2+=(yscale2*0.18); }
	Obj_SetPosition(object1[0],GetX,GetY-30);
	ObjEffect_SetScale(object1[0],xscale1,yscale1);
	ObjEffect_SetVertexColor(object1[0],0,200,0,255,255); ObjEffect_SetVertexColor(object1[0],1,200,0,255,255);
	ObjEffect_SetVertexColor(object1[0],2,200,255,255,255); ObjEffect_SetVertexColor(object1[0],3,200,255,255,255);
	Obj_SetPosition(object1[1],GetX,GetY-30);
	ObjEffect_SetScale(object1[1],xscale2+0.1*cos(time*2),yscale2+0.2*cos(time*2));
	ObjEffect_SetVertexColor(object1[1],0,200,255,100,255); ObjEffect_SetVertexColor(object1[1],1,200,255,100,255);
	ObjEffect_SetVertexColor(object1[1],2,50,255,100,255); ObjEffect_SetVertexColor(object1[1],3,50,255,100,255);
}

if(time%240==0 && time>=60){
	SetColor(255,100,255);
	Concentration01(90);
	SetColor(255,255,255);
	PlaySE(SEcharge1);
}


if(time==60){
let angle=0;
let colorx=1;
	loop(5){
	shot2=(Obj_Create(OBJ_SHOT));
	Obj_SetPosition(shot2,GetX,GetY);
	Obj_SetAngle(shot2,GetAngleToPlayer+angle);
	Obj_SetSpeed(shot2,1.5);
	Obj_SetCollisionToPlayer(shot2,false);
	ObjShot_SetGraphic(shot2,colorx);
	ObjShot_SetBombResist(shot2,true);
	bullet2=bullet2~[shot2];
	timer2=timer2~[shot2];
	timer2[length(bullet2)-1]=0;
	color2=color2~[shot2];
	color2[length(bullet2)-1]=colorx;

let xsize=199;
let ysize=199;
	effect3=(Obj_Create(OBJ_EFFECT));
	Obj_SetPosition(effect3,GetX,GetY);
	ObjEffect_SetScale(effect3,0.4,0.4);
	ObjEffect_SetLayer(effect3,4); ObjEffect_SetTexture(effect3,EFspellcircle); ObjEffect_SetRenderState(effect3,ALPHA);
	ObjEffect_SetPrimitiveType(effect3,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(effect3,4);
	ObjEffect_SetVertexXY(effect3,0,-(xsize/2),-(ysize/2)); ObjEffect_SetVertexUV(effect3,0,0,0);
	ObjEffect_SetVertexXY(effect3,1,xsize/2,-(ysize/2)); ObjEffect_SetVertexUV(effect3,1,xsize,0);
	ObjEffect_SetVertexXY(effect3,2,-(xsize/2),ysize/2); ObjEffect_SetVertexUV(effect3,2,0,ysize);
	ObjEffect_SetVertexXY(effect3,3,xsize/2,ysize/2); ObjEffect_SetVertexUV(effect3,3,xsize,ysize);
let red=0; let green=0; let blue=0;
if(colorx==1){ red=255; green=0; blue=0; }
if(colorx==3){ red=255; green=255; blue=0; }
if(colorx==5){ red=0; green=255; blue=120; }
if(colorx==7){ red=0; green=255; blue=255; }
if(colorx==9){ red=255; green=0; blue=255; }
if(colorx==11){ red=255; green=255; blue=255; }
	ObjEffect_SetVertexColor(effect3,0,200,red,green,blue); ObjEffect_SetVertexColor(effect3,1,200,red,green,blue);
	ObjEffect_SetVertexColor(effect3,2,200,red,green,blue); ObjEffect_SetVertexColor(effect3,3,200,red,green,blue);

	object3=object3~[effect3];
	timer3=timer3~[effect3];
	timer3[length(object3)-1]=0;
	scale3=scale3~[effect3];
	scale3[length(object3)-1]=0;

	angle+=360/5;
	colorx+=2;
	if(colorx>12){ colorx-=12; }
	}
}

let i=0;
while (i<length(bullet2)){
	if(Obj_BeDeleted(bullet2[i])){
	bullet2=erase(bullet2,i); timer2=erase(timer2,i); object3=erase(object3,i); timer3=erase(timer3,i); scale3=erase(scale3,i);
	i--;
	}
	else{
	ObjEffect_SetAngle(bullet2[i],0,0,time*4);
	let obj=bullet2[i];
		if(Obj_GetX(obj)<=minx) {
		Obj_SetAngle(obj,180-Obj_GetAngle(obj));
		Obj_SetX(obj,Obj_GetX(obj)+1);
		}
		if(Obj_GetX(obj)>=maxx) {
		Obj_SetAngle(obj,180-Obj_GetAngle(obj));
		Obj_SetX(obj,Obj_GetX(obj)-1);
		}
		if(Obj_GetY(obj)<=miny) {
		Obj_SetAngle(obj,-Obj_GetAngle(obj));
		Obj_SetY(obj,Obj_GetY(obj)+1);
		}
		if(Obj_GetY(obj)>=maxy) {
		Obj_SetAngle(obj,-Obj_GetAngle(obj));
		Obj_SetY(obj,Obj_GetY(obj)-1);
		}

		if(time%12==0){
		let shot1=0;
		CreateShotA(shot1,Obj_GetX(bullet2[i]),Obj_GetY(bullet2[i]),10);
		SetShotDataA(shot1,0,0.5,Obj_GetAngle(bullet2[i])+rand(-60,60),0,0,0,rand_int(88,89));
		FireShot(shot1);
		PlaySE(SEmagics5);
		}

		if(timer2[i]==120 && time>240){ PlaySE(SEmagics1); }

		if(timer2[i]>=240){
		let angle=rand(0,360);
		let shot1=0;
		let shot2=1;
			loop(9){
			CreateShotA(shot1,Obj_GetX(bullet2[i]),Obj_GetY(bullet2[i]),0);
			SetShotDataA(shot1,0,1.25,angle,0,-0.02,0,227);
				CreateShotA(shot2,0,0,15);
				SetShotDirectionType(PLAYER);
				SetShotDataA(shot2,0,0,0,0,0.01,2,191);
				SetShotDirectionType(ABSOLUTE);
				AddShot(120,shot1,shot2,0);
			SetShotKillTime(shot1,121);
			FireShot(shot1);
			angle+=360/9;
			}
		angle+=360/19;
		SetShotColor(200,200,200);
			loop(9){
			shot1=(Obj_Create(OBJ_SHOT));
			Obj_SetPosition(shot1,Obj_GetX(bullet2[i]),Obj_GetY(bullet2[i]));
			Obj_SetAngle(shot1,angle);
			Obj_SetSpeed(shot1,1.4);
			ObjShot_SetGraphic(shot1,238);
			ObjShot_SetBombResist(shot1,true);
			bullet1=bullet1~[shot1];
			timer1=timer1~[shot1];
			timer1[length(bullet1)-1]=0;
			angle+=360/9;
			}
		shot1=(Obj_Create(OBJ_SHOT));
		Obj_SetPosition(shot1,Obj_GetX(bullet2[i]),Obj_GetY(bullet2[i]));
		Obj_SetAngle(shot1,rand(0,360));
		Obj_SetSpeed(shot1,0);
		ObjShot_SetGraphic(shot1,201);
		ObjShot_SetBombResist(shot1,true);
		bullet1=bullet1~[shot1];
		timer1=timer1~[shot1];
		timer1[length(bullet1)-1]=0;
		SetShotColor(255,255,255);

		PlaySE(SEmagics1);
		timer2[i]=0;
		}

	ObjEffect_SetAngle(object3[i],0,0,timer3[i]*5);
	Obj_SetPosition(object3[i],Obj_GetX(bullet2[i]),Obj_GetY(bullet2[i]));
		if(GetTimer>0 && GetLife>0){
			if(scale3[i]<0.35){ scale3[i]=scale3[i]+0.03; }
		}
		if(GetTimer<=0 || GetLife<=0){
			if(scale3[i]>0){ scale3[i]=scale3[i]-0.03; }
			if(scale3[i]<=0){ Obj_Delete(object3[i]); }
		}
	ObjEffect_SetScale(object3[i],scale3[i],scale3[i]);

	timer2[i]=timer2[i]+1;
	timer3[i]=timer3[i]+1;
	}
i++;
}

let i=0;
while(i<length(bullet1)){
	if(Obj_BeDeleted(bullet1[i])){
	bullet1=erase(bullet1,i); timer1=erase(timer1,i);
	i--;
	}
	else{

	if(Obj_GetSpeed(bullet1[i])>0){ Obj_SetSpeed(bullet1[i],Obj_GetSpeed(bullet1[i])-0.04); }
	if(Obj_GetSpeed(bullet1[i])<0){ Obj_SetSpeed(bullet1[i],0); }
	if(timer1[i]>=700){ ObjShot_FadeDelete(bullet1[i]); }

	timer1[i]=timer1[i]+1;
	}
i++;
}


time++; frame++;
if(usespell>0){ usespell--; } if(usespell<0){ usespell++; }
SetCommonData("Boss1X",GetX); SetCommonData("Boss1Y",GetY);

#include_function "script/Functions/SpellcardName.txt";
#include_function "script/Functions/HealthBar.txt";
#include_function "script/Functions/CutIn.txt";
}

@BackGround{
	if(bgfade<120){ bgfade+=5; }

	SetGraphicRect(0,0,256,256);
	SetGraphicScale(2.5,2.5);
	SetTexture(BG1);
	SetAlpha(255);
	SetColor(bgfade,bgfade,bgfade);
	SetRenderState(ALPHA);
	SetGraphicAngle(0,0,-time/2);
	DrawGraphic(cx,cy);
}

@DrawLoop{
	SetGraphicScale(1,1);
	SetTexture(GRboss);
	SetGraphicAngle(0,0,0);
	SetColor(255,255,255);
	SetRenderState(ALPHA);

	if(usespell>=1){ SetGraphicRect(384,outfit,512,outfit+128); }
	if(usespell<=-1){ SetGraphicRect(512,outfit,640,outfit+128); }
	if(usespell==0){
		if(GetSpeedX<=0.5 && GetSpeedX>=-0.5){ SetGraphicRect(0,outfit,128,outfit+128); }
		else if(GetSpeedX<-0.5){ SetGraphicRect(128,outfit,256,outfit+128); }
		else if(GetSpeedX>0.5){ SetGraphicRect(256,outfit,384,outfit+128); }
	}
	DrawGraphic(GetX,GetY);
}

@Finalize{
//	SetCommonData("Conversation",1);
	NewPointData(spellcardnumber,GetCommonData("Difficulty"));
	#include_function "script/Functions/Main Menu/SpellcardDataAndPoints.txt";
}

}