If they are all the same ID, then you will need to do an NPC List search to find each NPC that matches that ID. Then, you can perform whatever within that same part of the loop.
If you need it to happen multiple times, then the best way is to do it on a timer, as EVENT_ATTACK is not for each round.
|