This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cw4:ai_orbitals [2021/03/31 15:54] – Karsten75 | cw4:ai_orbitals [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| $raincooldown: | $raincooldown: | ||
| $orbitalbombcooldown: | $orbitalbombcooldown: | ||
| + | |||
| + | $$ignoreunits:" | ||
| + | |||
| + | : | ||
| + | #First, find all ignoreunits | ||
| + | GetUnitsByType(< | ||
| + | if(GetListCount(< | ||
| + | do (GetListCount(< | ||
| + | trace2(GetUnitCell(< | ||
| + | ApplyToDamageMap(< | ||
| + | loop | ||
| + | endif | ||
| + | GetMaxCreeperCellWithDamage | ||
| + | if(GetListCount(< | ||
| + | do (GetListCount(< | ||
| + | ApplyToDamageMap(< | ||
| + | loop | ||
| + | endif | ||
| + | ClearList(< | ||
| :Frame | :Frame | ||
| GetOrbitalCount < | GetOrbitalCount < | ||
| SetOrbitalCount(0) | SetOrbitalCount(0) | ||
| - | + | #trace(< | |
| - | trace(< | + | |
| # | # | ||
| if ((< | if ((< | ||
| - | | + | @FindBestTarget |
| + | CreateUnitOnTerrain(" | ||
| < | < | ||
| 1 -> | 1 -> | ||
| Line 37: | Line 56: | ||
| endif | endif | ||
| if((< | if((< | ||
| - | | + | |
| < | < | ||
| 2 -> | 2 -> | ||
| Line 54: | Line 73: | ||
| if ((< | if ((< | ||
| #If we're not in the middle of, or recovering from a Conversion Bomb | #If we're not in the middle of, or recovering from a Conversion Bomb | ||
| - | | + | @FindBestTarget |
| + | CreateUnitOnTerrain(" | ||
| < | < | ||
| 1 -> | 1 -> | ||
| Line 71: | Line 91: | ||
| :Once | :Once | ||
| RegisterForMSG(" | RegisterForMSG(" | ||
| + | 0 -> | ||
| + | 0 -> | ||
| 0 -> | 0 -> | ||
| 0 -> | 0 -> | ||