let imgBoss = GetCurrentScriptDirectory~"system\momizi.png";
LoadGraphic(imgBoss);
let imgCut = GetCurrentScriptDirectory~"system\cut.png";
LoadGraphic(imgCut);
CreateCommonDataArea("MOF");
#include_function ".\functionMOFcut.txt"
#include_function ".\powersystem2.txt"
#include_function ".\SnowFunc.txt"
task Momizi{
		Circle;
		SetTexture(imgBoss);
		SetRenderState(ALPHA);
		SetGraphicRect(0,0,64,64);
		SetGraphicScale(1,1);
		SetGraphicAngle(0,0,0);
		DrawGraphic(GetX,GetY);

}
let caubar = csd~"system\CAUTION.png";
LoadGraphic(caubar);
task caution {
PlaySE(csd~"se\se_alert.wav");
		let obj = Obj_Create(OBJ_EFFECT);
		Obj_SetPosition(obj, GetCenterX - 192, GetCenterY);
		ObjEffect_SetTexture(obj, caubar);
		ObjEffect_SetRenderState(obj, ALPHA);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLESTRIP);
		ObjEffect_SetLayer(obj, 7);
		ObjEffect_CreateVertex(obj, 4);
		ObjEffect_SetScale(obj, 1.0, 0.8);

		ObjEffect_SetVertexXY(obj, 0, -384, -224);

		ObjEffect_SetVertexXY(obj, 1, -384, 224);
		ObjEffect_SetVertexXY(obj, 2, 384, -224);
		ObjEffect_SetVertexXY(obj, 3, 384, 224);

		ObjEffect_SetVertexUV(obj, 0, 0, 0);

		ObjEffect_SetVertexUV(obj, 1, 0, 448);
		ObjEffect_SetVertexUV(obj, 2, 768, 0);
		ObjEffect_SetVertexUV(obj, 3, 768, 448);

		let x = Obj_GetX(obj);
		let alpha = 0;
		loop(15) {
			Obj_SetPosition(obj, x, GetCenterY);
			ObjEffect_SetVertexColor(obj, 0, alpha, 255, 255, 255);
			ObjEffect_SetVertexColor(obj, 1, alpha, 255, 255, 255);
			ObjEffect_SetVertexColor(obj, 2, alpha, 255, 255, 255);
			ObjEffect_SetVertexColor(obj, 3, alpha, 255, 255, 255);

			x += 2.5;
			alpha += 16;
			wait(1);
		}

		loop(70) {
			Obj_SetPosition(obj, x, GetCenterY);

			x += 2.5;
			wait(1);
		}

		loop(15) {
			Obj_SetPosition(obj, x, GetCenterY);
			ObjEffect_SetVertexColor(obj, 0, alpha, 255, 255, 255);
			ObjEffect_SetVertexColor(obj, 1, alpha, 255, 255, 255);
			ObjEffect_SetVertexColor(obj, 2, alpha, 255, 255, 255);
			ObjEffect_SetVertexColor(obj, 3, alpha, 255, 255, 255);

			x += 2.5;
			alpha -= 16;
			wait(1);
		}
		Obj_Delete(obj);
	}