I would like to make units that enter a zone randomly attack any enemy regardless how far it is away.
Units will be entering the zone in groups of 5-25+ every 9-15 seconds if that that's any useful information that should be known.
If at all possible I would like the regular AI to still proceed after the unit begins attacking, for example. If an scv or marine attacks the unit, the unit should respond to the attack.
The units WILL be blocked from attacking what players don't want it to attack.
What I mean by this is, I would like the units to attack the first thing possible if it can, But I dont want the units to give up because of something it randomly targeted something it couldn't reach. I want the AI seem like it is a little smarter than just attacking the first thing it sees. Going after probes or scvs its kinda neat.
I dont know if I am wording this right or if its making any sense...
"Last Created Units" in your first action there refers to nothing because whenever you use "Last Created" anything, it is referring to the last thing of that type created within the same trigger.
To fix that, get rid of that first line and changed the second line to order the triggering unit (The unit entering the region) to attack a random place in the ally attack region.
The priority of a unit in the data editor will determine what it engages first (assuming there are different enemy options close to being within range to decide between attacking.)
Rollback Post to RevisionRollBack
Stuff I've worked on: Carbot's StarCrafts Mod (2014-present) StarCraft 2 Hotkey Trainer (2010) | Mineralz Evolution (2011+) | Dungeon Legacy (2013+) | Phoenix TLMC 4 Entry (2014) Assisted: City of Tempest (2012) | BarCraft (2013) | Poker Defense (2014) and a few more.
To post a comment, please login or register a new account.
I would like to make units that enter a zone randomly attack any enemy regardless how far it is away.
Units will be entering the zone in groups of 5-25+ every 9-15 seconds if that that's any useful information that should be known.
If at all possible I would like the regular AI to still proceed after the unit begins attacking, for example. If an scv or marine attacks the unit, the unit should respond to the attack.
The units WILL be blocked from attacking what players don't want it to attack.
This is what I have now but it doesn't work.
Can you explain this further? The rest of it isn't to hard but depending how you want this, could make things difficult
What I mean by this is, I would like the units to attack the first thing possible if it can, But I dont want the units to give up because of something it randomly targeted something it couldn't reach. I want the AI seem like it is a little smarter than just attacking the first thing it sees. Going after probes or scvs its kinda neat.
I dont know if I am wording this right or if its making any sense...
I like the idea. sort of like a Hit List of perfered Targets.
Exactly! - Dark.... But yes you got it :P
"Last Created Units" in your first action there refers to nothing because whenever you use "Last Created" anything, it is referring to the last thing of that type created within the same trigger. To fix that, get rid of that first line and changed the second line to order the triggering unit (The unit entering the region) to attack a random place in the ally attack region.
The priority of a unit in the data editor will determine what it engages first (assuming there are different enemy options close to being within range to decide between attacking.)
Stuff I've worked on:
Carbot's StarCrafts Mod (2014-present) StarCraft 2 Hotkey Trainer (2010) | Mineralz Evolution (2011+) | Dungeon Legacy (2013+) | Phoenix TLMC 4 Entry (2014) Assisted: City of Tempest (2012) | BarCraft (2013) | Poker Defense (2014) and a few more.