Goddammit adding any comments gives me a script_enemy_main error WHY DO YOU DO THIS TO ME
#TouhouDanmakufu
#Title[Hibachi]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main
{
let frame = 0;
let attack = 5;
@Initialize
{
LoadUserShotData(GetCurrentScriptDirectory ~ "supershot\supershot.txt");
SetLife(18000);
SetInvincibility(60);
MagicCircle(false);
SetRateScoreSystemEnable(false);
PlayMusic(GetCurrentScriptDirectory ~ "bgm\]-[_-34(#!.mp3");
SetMovePosition02(GetCenterX, GetCenterY - 120, 10);
}
@MainLoop
{
SetCollisionA(GetX, GetY, 32);
SetCollisionB(GetX, GetY, 16);
Bombimmunity;
if(GetLife<18000 && attack == 5)
{
pew;
attack = 6;
}
if(GetPlayerLife==1){SetLife(0);}
frame++;
yield;
}
@DrawLoop
{
}
@Finalize
{
}
function Wait(frames){loop(frames){yield;}}
task Bombimmunity
{
if(OnBomb)
{
SetDamageRate(0,0);
}
else
{
SetDamageRate(100, 0);
}
}
task pew
{
}
task pew2
{
ascent(j in 0..60)
{
ascent(i in 0..30)
{
CreateShot02(GetX+50*cos(i*360/30+j*4.5), GetY+50*sin(i*360/30+j*4.5), 4, i*360/30+j*4.5, -0.02, 2, PURPLE21, 10);
}
Wait(6);
}
Wait(30);
pew;
}
}