PDA

View Full Version : BigEnemy script help



xXVolvagiaXx
02-19-2011, 04:12 PM
I was looking for a way to make enemies bigger (making an octorock 2x2 instead of 1x1) and was given this script.

For some reason when I import it and go to compile it gives me a syntax error on line 14, expecting assign or semicolon on token {

I'm pretty new to scripting, so it's complete gibberish to me lol. I just copy/paste them into my games. Any help is greatly appreciated. :D

xXVolvagiaXx
02-19-2011, 04:14 PM
Here's the script:


global script BigEnemies
{
void run()
{
while(true)
{
ExtendEnemies();
Waitframe();
}
}

void ExtendEnemies
{
npc enemy;

for(int i=Screen->NumNPCs(); i>0; i--)
{
enemy=Screen->LoadNPC(i);

if(enemy->Extend==0 && enemy->Attributes[10]!=0)
{
if(enemy->Attributes[10]==1)
enemy->Extend=1;
else if(enemy->Attributes[10]==2)
enemy->Extend=2;
}
}
}
}