task CreateItem(type,x,y){
alternative(type)
case("SCORE"){
NotifyEvent(GetSystemID, EV_DROPITEM, [2, x, y, 10000]);
}
case("POWER_S"){
NotifyEvent(GetSystemID, EV_DROPITEM, [3, x, y, 10]);
}
case("POWER_B"){
NotifyEvent(GetSystemID, EV_DROPITEM, [4, x, y, 50]);
}
case("POWER_F"){
NotifyEvent(GetSystemID, EV_DROPITEM, [5, x, y, 1000]);
}
case("SPELL"){
NotifyEvent(GetSystemID, EV_DROPITEM, [6, x, y, 5000]);
}
case("1UP"){
NotifyEvent(GetSystemID, EV_DROPITEM, [7, x, y, 5000]);
}

}

function IsMusicSystemStart{
return GetCommonData("MusicSystem",false);
}

task PlayMusicA1(str,v,loopstart,loopend){
NotifyEventAll(EV_PLAYMUSIC, [str,v,loopstart,loopend]);
}

task StopMusic{
NotifyEventAll(EV_STOPMUSIC,0);
}

task BossExplode(time,num,min,max){
NotifyEventAll(EV_EXPLODE,[time,num,min,max]);
}

