| 10-29-2003, 06:25 PM | #1 |
Ok, the basic setup is I have an area with some troops seperated from the main group, that is under attack by an enemy town that only attacks them...what do I need to do to make this work? Much thanks in advance. |
| 10-29-2003, 06:58 PM | #2 |
You want one group of units to attack only another group of units, right? It could work like this, although this is very quick-and-dirty: Trigger 1 - initializing groups (this could be done many other ways, but just for the sake of argument...) Events - Map initialization Conditions - Actions - Add all units in RegionX to AttackingGroup A - Add all units in RegionY to TargetGroup Trigger 2 - first order to attack Events - elapsed game time XXX seconds (or whatever you want to start them attacking) Conditions - Actions - pick each unit in AttackingGroup and do: Order Picked unit to attack random unit from TargetGroup A - Turn on Trigger 3 Trigger 3 - one of the target units dies Events - a unit dies Conditions - dying unit is in group TargetGroup Actions - remove dying unit from TargetGroup Actions - if killing unit is in AttackingGroup, order killing unit to attack random unit from TargetGroup |
