08-30-2013, 03:57 AM
You can gather creature IDs using the following macros:
Creature.ByName(Name): returns a ID of the first creature with the given name;
Creature.Attacking() / Creature.Target(): returns a ID of the attacking creature (0 if not attacking);
Creature.Self(): returns ID of self creature.
You actually can attack a creature with the macro
Creature.Attack(ID), however I do not recommend to mimic Killer / Trainer features, because those features contains a lot more tests that the actual macros do.
Creature.ByName(Name): returns a ID of the first creature with the given name;
Creature.Attacking() / Creature.Target(): returns a ID of the attacking creature (0 if not attacking);
Creature.Self(): returns ID of self creature.
You actually can attack a creature with the macro
Creature.Attack(ID), however I do not recommend to mimic Killer / Trainer features, because those features contains a lot more tests that the actual macros do.