Complicated Fighting for a game, HELP!PLZ!

O.k so I want certain animations to destroy enemy actors, but if I'm not using those attacking animations and collide with an enemy I want my charater to take damage.
I tried writing a code for this but I come up with an error and the game wont run
N e 1 no y? heres the code I tried
Ya......... it's a Zelda game



- Code: Select all
if (animindex == getAnimIndex("normal-link-attack"));
if (animindex == getAnimIndex("normal-link-downthrust"));
if (animindex == getAnimIndex("normal-link-lowattack"));
{
DestroyActor("Collide Actor");
}
else
{
health = health - 1;
healthtext.textNumber = healthtext.textNumber - 1;
}
Ya......... it's a Zelda game
