NPC wait to attack error

I tried using

[code]Every turn when a walker (called Mr Hyde) is surprised:
if Mr Hyde can see the player:
say “One of the walkers turns towards you, moaning.”;
now all walkers that can see the player are ready.

Every turn:
repeat with Mr Hyde running through walkers that are violent:
if Mr Hyde can see the player, try Mr Hyde attacking the player.

Every turn:
repeat with Mr Hyde running through walkers that are ready:
if Mr Hyde can see the player, now Mr Hyde is violent.

Instead of someone attacking the player: say “[The actor] attacks you! Aargh!”.[/code]
but instead of working it just says “One of the walkers turns towards you, moaning.” every turn instead of attacking