
#ScriptVersion[3]
#Title["SeijaNon1"]
#Text["By Lusus"]
#include ".\Functions.dnh"
#Background[".\Stage3bg.dnh"]

#System[".\default_system/Default_System.txt"]
#Player[".\player/Ultima's DDC Reimu B (Fixed)/ReimuH.dnh"]

let objBoss; //global variable, can be used anywhere
let objScene = GetEnemyBossSceneObjectID(); //declares global variable enemy boss scene object


@Event{
	alternative(GetEventType())
    case(EV_REQUEST_LIFE){ //Sets boss's life
		SetScriptResult(1);
    }
    case(EV_REQUEST_TIMER){ //Sets attack time
        SetScriptResult(9999999);
    }
    case(EV_REQUEST_SPELL_SCORE){ //Spellcard bonus
        SetScriptResult(0);
    }
}

let spelltime = 35;
let spelllife = 3000;

@Initialize{
	objBoss = ObjEnemy_Create(OBJ_ENEMY_BOSS); //gives the variable a value, object ID that makes it a boss
	ObjEnemy_Regist(objBoss); //registers it as an enemy
	 //moves boss to destination

 //declares spellcard
	//TDrawLoop; //calls TDrawLoop task
	TFinalize; //calls TFinalize task
	MainTask; //calls MainTask task
}

@MainLoop{

	// CircleToShot means any player shoot hitting this will damage the boss, CircleToPlayer kills the player on colission
	yield; //necessary for task functions to work
}

task MainTask{
	spawnboss("clownpiece");
	
}

task startattacking{
}