Region
A region is a group of tiles(usually under 100 tiles). Regions are used internally for pathfinding, AI, and some other things.
[attach=7802]
Box-pixel Radius
Not a true radius. Instead just takes the X +- value, and Y +- value, making it square or boxed like a location with equal dimensions. This greatly increases performance of the application.
Unit Behaviours
Air Units (In General)
- Always move and patrol to the exact center of a region as depicted in the above screenshot.
Unit Abilities
Notes: All abilities follow normal requirement procedures, doesn't target invincible units, etc.
Hero units do not use abilities except for Cloak.
Just because a unit is excluded from a primary target does not mean it isn't included in cluster calculations.
Spider Mines
- Hits 3 randomizers; one for region, one for X, one for Y. Places a mine within a 256x256 box-pixel radius of an "owned" region's center. The best way to make the AI "own" a region is to run an AI script at the location and place a buildings owned by the computer player in the region.
Recharge Shields
- The shield battery must have at least 50 energy.
- The target unit must have at most 40 shield points remaining.
- The target must not be engaged with an enemy.
- Follows some additional unknown rules.
Yamato Gun
- If idle, the target range is the entire map. Otherwise when provoked it will choose a target within a 512x512 box-pixel radius.
- Does not target Interceptors, Spider Mines, Scarabs, Zerg Eggs, or workers harvesting gas.
- Does not target heroes.
- Target must be a unit that has a HP+Shields total between 200 and 450.
- Exceptions are buildings that have a weapon (turret), and a loaded bunker.
Plague
- If idle, the target range is a 4096 box-pixel radius, otherwise it is a 288 box-pixel radius.
- Does not target Interceptors, Spider Mines, Scarabs, or workers harvesting gas.
- Does not target units that have already been plagued.
- Does not target heroes.
- Enemy unit cluster must have at least 250 HP total, and this value must be greater than 2 times the HP+Shields total of allies in the cluster.
Dark Swarm
- If idle, the target range is a 2048 box-pixel radius in campaign scripts or 1024 box-pixel radius in normal scripts. Otherwise it will be a 288 box-pixel radius when provoked.
- Does not target Interceptors, Spider Mines, Scarabs, or workers harvesting gas.
- Generally targets almost any unit (either that or unknown?).
- If the target is an air unit, it will cast swarm over the air unit's target.
- Occurs only if plague fails.
Parasite
- 1/256 chance of casting when running a campaign script, otherwise it will only cast it if it has full energy.
- 2048 box-pixel radius when idle. 288 box-pixel radius when provoked.
- Does not target Interceptors, Spider Mines, Scarabs, or workers harvesting gas.
- In a campaign script it only casts when the unit does not have parasite by anyone, otherwise it will cast if the unit doesn't have parasite by itself. (For example if another player parasited the unit, in a campaign the computer won't parasite the unit a second time for itself, but in a non-campaign script it will).
- In a non-campaign script, the unit must either be a clean detector(no blind,stasis,maelstrom,lockdown), be a transport, be a spellcaster(not hallucinations), be a worker, or have at least 300 HP+Shields.
Spawn Broodling
- In a campaign script has a 255/256 chance of casting. Otherwise it will only cast if it has less than maximum energy or parasite requirements fail.
- 2048 box-pixel radius when idle. 288 box-pixel radius when provoked.
- Does not target Interceptors, Spider Mines, Scarabs, or workers harvesting gas.
- Does not target heroes.
- Target must either have 100 HP+Shields, be a worker, siege tank, medic, or a ghost that is currently nuking.
- Exception to previous point when unit is provoked.
Ensnare
- Only casts if both parasite and spawn broodling requirements fail.
- Always casts in a campaign script, otherwise it must have full energy.
- If idle, the target range is a 2048 box-pixel radius in campaign scripts or 1024 box-pixel radius in normal scripts. Otherwise it will be a 288 box-pixel radius when provoked.
- Does not target Interceptors, Spider Mines, Scarabs, or workers harvesting gas.
- Does not target units already ensnared.
- Enemy unit cluster must have at least 250 HP+Shields total, and this value must be greater than 2 times the HP+Shields total of allies in the cluster.
- Will be cast as an exception in response to its own units being attacked by a cloaked unit.
Stasis Field
- If idle, the target range is a 2048 box-pixel radius in campaign scripts or 1024 box-pixel radius in normal scripts. Otherwise it will be a 288 box-pixel radius when provoked.
- Does not target Interceptors, Spider Mines, Scarabs, or workers harvesting gas.
- Only targets units owned by players 1-8.
- Enemy unit cluster must have at least 250 HP+Shields total, and this value must be greater than 2 times the HP+Shields total of allies in the cluster.
Recall
- Has several "unknown" requirements. (Needs research)
- Only casts if Stasis Field requirements fail.
- Target range is the entire map.
- Target unit must be targetting another unit.
- Target unit must be either Carrier, Gantrithor, Reaver, or Warbringer. (No other units are targetted)
- Target's shields must be at most 10.
Psionic Storm
- If idle, the target range is a 2048 box-pixel radius in campaign scripts or 1024 box-pixel radius in normal scripts. Otherwise it will be a 288 box-pixel radius when provoked.
- Does not target Interceptors, Spider Mines, Scarabs, or workers harvesting gas.
- Enemy unit cluster must have at least 250 HP+Shields total unless the unit was provoked, and this value must be greater than 2 times the HP+Shields total of allies in the cluster.
Hallucination
- Must have maximum energy.
- Only casts if Psionic Storm requirements fail.
- Only casts when idle.
- Targets units within a 1024 box-pixel radius.
- Only hallucinates Carriers, Scouts, Arbiters, and Archons. (No other units are targetted)
Lockdown
- If idle, the target range is a 2048 box-pixel radius in campaign scripts or 1024 box-pixel radius in normal scripts. Otherwise it will be a 288 box-pixel radius when provoked.
- Does not target Interceptors, Spider Mines, Scarabs, or workers harvesting gas.
- Unit must not be frozen with another ability.
- Targets loaded Shuttles, loaded Dropships, carriers, and reavers.
- Targets units that are targetting an allied unit.
Cloak
- All units with cloaking ability will automatically cloak when attacked, including heroes.
- Cloak is also used only in some very special (unknown/needs research) cases.
EMP Shockwave
- If idle, the target range is a 2048 box-pixel radius, otherwise it is a 288 box-pixel radius.
- Will prioritize EMP on shields over EMP on units with energy.
- Does not target Interceptors, Scarabs, or workers harvesting gas.
- Enemy unit cluster must have at least 200 Shields OR 200 Energy total.
- Does not include hallucinations in energy calculations.
Defensive Matrix
- Only casts if EMP Shockwave requirements fail.
- If idle, the target range is a 2048 box-pixel radius, otherwise it is a 288 box-pixel radius.
- Only targets units that have another target, and are not cloaked.
- Target unit must have at least 100 maximum HP, and have at most 75 HP remaining.
- Targets allies as well.
- Must not be matrixed.
Irradiate
- Only casts if both EMP Shockwave and Defensive Matrix requirements fail.
- If idle, the target range is a 2048 box-pixel radius, otherwise it is a 288 box-pixel radius.
- Does not target Interceptors, Spider Mines, Scarabs, Zerg Eggs, Larva, Lurker Eggs, or workers harvesting gas.
- Must not be irradiated.
- When a campaign script is run, targets only workers, overlords, and medics when idle. Targets everything when provoked or not running a campaign script.
Disruption Web
- If idle, the target range is a 4096 box-pixel radius in campaign scripts or 2048 box-pixel radius in normal scripts. Otherwise it will be a 288 box-pixel radius when provoked.
- Does not target Spider Mines, Scarabs, or workers harvesting gas.
- Targets turrets, spore colonies, cannons, and loaded bunkers whose first loaded unit is targetting an allied unit. (For example, if you load and SCV first, and then load marines, they will not cast Disruption Web on the bunker)
- Targets other ground units that can attack and are targetting an allied unit only if they are within a 256 pixel radius.
Restoration
- Target range is a 1024 box-pixel radius.
- Target unit's HP+Shields must be greater than 60.
- Unit must have one of the following status ailments: Ensnare, Plague, Irradiate, Lockdown, Maelstrom, Acid Spores.
- If an unknown condition is met, then it will check the entire map for units with parasite or maelstrom.
Optical Flare
- Only casts if Restoration requirements fail.
- Only casts when energy is at max.
- If idle, the target range is a 1024 box-pixel radius, otherwise it is a 288 box-pixel radius.
- Does not target Interceptors, Spider Mines, Scarabs, or workers harvesting gas.
- Does not target units that are blind.
- The maximum HP+Shields must be greater than 80.
- Will blind clean detectors(No blind,lockdown,maelstrom,stasis) as an exception.
Healing
- Will move to heal any organic unit that isn't at full health.
- Normal auto-heal behaviour applies.
Feedback
- If idle, the target range is a 2048 box-pixel radius in campaign scripts or 1024 box-pixel radius in normal scripts. Otherwise it will be a 288 box-pixel radius when provoked.
- Does not feedback heroes or hallucinations.
- Will feedback only if the target's energy is greater than its HP+Shields.
Mind Control
- Only casts when Feedback requirements fail.
- Target acquisition range is a 1024 box-pixel radius.
- Does not target Interceptors, Spider Mines, Scarabs, or workers harvesting gas.
- Does not target heroes.
- Will always mind control the following units: Siege Tank, Science Vessel, Battlecruiser, Medic, Ultralisk, Overlord, Queen, Defiler, Devourer, Dark Archon, Dark Templar, High Templar, Arbiter, Carrier, Reaver, and Lurker.
- Will mind control units that cost at least as much minerals and as much gas as a Protoss Dark Templar.
Maelstrom
- Only casts when both Feedback and Mind Control requirements fail.
- Does not cast when unit has as much energy as both Maelstrom and Mind Control.
- If idle, the target range is a 2048 box-pixel radius in campaign scripts or 1024 box-pixel radius in normal scripts. Otherwise it will be a 288 box-pixel radius when provoked.
- Does not target Zerg Larva, Zerg Egg, Lurker Egg, Cocoon, or workers harvesting gas.
- Does not target units that have been maelstromed.
- Enemy unit cluster must have at least 250 HP+Shields total unless the unit was provoked, and this value must be greater than 2 times the HP+Shields total of allies in the cluster.
- Targets loaded Overlords always as an exception.
Scanner Sweep
- A response to being attacked by cloaked units.
- Only scans if a unit with a weapon, a bunker, or a worker, is being attacked.
Attachments:
Post has been edited 5 time(s), last time on May 23 2011, 2:36 am by Heinermann.