|
|
TYPES |
FUNCTIONS |
VARIABLES
Functions in common.ai
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
A
BACK TO TOP
B
BACK TO TOP
C
| Line | Constant | Type | Name | Parameters | Return Type |
| 2398 | | function | CampaignAI | integer farms, code heroes | nothing |
| 1541 | | function | CampaignAttacker | integer level, integer qty, integer unitid | nothing |
| 1548 | | function | CampaignAttackerEx | integer easy, integer med, integer hard, integer unitid | nothing |
| 2387 | | function | CampaignBasics | | nothing |
| 2340 | | function | CampaignBasicsA | | nothing |
| 1519 | | function | CampaignDefender | integer level, integer qty, integer unitid | nothing |
| 1530 | | function | CampaignDefenderEx | integer easy, integer med, integer hard, integer unitid | nothing |
| 122 | | native | CaptainAtGoal | | boolean |
| 110 | | native | CaptainAttack | real x, real y | nothing |
| 113 | | native | CaptainGoHome | | nothing |
| 117 | | native | CaptainGroupSize | | integer |
| 92 | | native | CaptainInCombat | boolean attack_captain | boolean |
| 116 | | native | CaptainIsEmpty | | boolean |
| 115 | | native | CaptainIsFull | | boolean |
| 114 | | native | CaptainIsHome | | boolean |
| 118 | | native | CaptainReadiness | | integer |
| 120 | | native | CaptainReadinessHP | | integer |
| 121 | | native | CaptainReadinessMa | | integer |
| 119 | | native | CaptainRetreating | | boolean |
| 112 | | native | CaptainVsPlayer | player id | nothing |
| 111 | | native | CaptainVsUnits | player id | nothing |
| 109 | | native | ClearCaptainTargets | | nothing |
| 95 | | native | ClearHarvestAI | | nothing |
| 135 | | native | CommandsWaiting | | integer |
| 1984 | | function | CommonSleepUntilTargetDead | unit target, boolean reform | nothing |
| 1779 | | function | CommonSuicideOnPlayer | boolean standard, boolean bldgs, integer seconds, player p, integer x, integer y | nothing |
| 1433 | | function | Conversions | integer desire, integer unitid | nothing |
| 1426 | | function | ConvertNeeds | integer unitid | nothing |
| 50 | | native | ConvertUnits | integer qty, integer id | boolean |
| 104 | | native | CreateCaptains | | nothing |
| 2050 | | function | CreepAttackEx | | nothing |
| 123 | | native | CreepsOnMap | | boolean |
BACK TO TOP
D
| Line | Constant | Type | Name | Parameters | Return Type |
| 5 | | native | DebugFI | string str, integer val | nothing |
| 4 | | native | DebugS | string str | nothing |
| 6 | | native | DebugUnitID | string str, integer val | nothing |
| 132 | | native | DisablePathing | | nothing |
| 7 | | native | DisplayText | integer p, string str | nothing |
| 8 | | native | DisplayTextI | integer p, string str, integer val | nothing |
| 9 | | native | DisplayTextII | integer p, string str, integer v1, integer v2 | nothing |
| 10 | | native | DisplayTextIII | integer p, string str, integer v1, integer v2, integer v3 | nothing |
| 11 | | native | DoAiScriptDebug | | boolean |
| 906 | | function | DoCampaignFarms | boolean state | nothing |
BACK TO TOP
E
BACK TO TOP
F
BACK TO TOP
G
BACK TO TOP
H
BACK TO TOP
I
| Line | Constant | Type | Name | Parameters | Return Type |
| 130 | | native | IgnoredUnits | integer unitid | integer |
| 772 | | function | InitAI | | nothing |
| 73 | | native | InitAssault | | nothing |
| 936 | | function | InitAssaultGroup | | nothing |
| 931 | | function | InitBuildArray | | nothing |
| 941 | | function | InitDefenseGroup | | nothing |
| 946 | | function | InitMeleeGroup | | nothing |
| 1464 | | function | Interleave3 | integer e1, integer m1, integer h1, integer u1, integer e2, integer m2, integer h2, integer u2, integer e3, integer m3, integer h3, integer u3 | nothing |
| 93 | | native | IsTowered | unit target | boolean |
BACK TO TOP
J
BACK TO TOP
K
BACK TO TOP
L
BACK TO TOP
M
BACK TO TOP
N
BACK TO TOP
O
BACK TO TOP
P
BACK TO TOP
Q
BACK TO TOP
R
BACK TO TOP
S
| Line | Constant | Type | Name | Parameters | Return Type |
| 1013 | | function | SecondaryTown | integer town, integer qty, integer unitid | nothing |
| 1018 | | function | SecTown | integer town, integer qty, integer unitid | nothing |
| 38 | | native | SetAllianceTarget | unit id | nothing |
| 133 | | native | SetAmphibious | | nothing |
| 1451 | | function | SetAssaultGroup | integer qty, integer max, integer unitid | nothing |
| 977 | | function | SetBuildAll | integer t, integer qty, integer unitid, integer town | nothing |
| 1041 | | function | SetBuildExpa | integer qty, integer unitid | nothing |
| 993 | | function | SetBuildNext | integer qty, integer unitid | nothing |
| 988 | | function | SetBuildUnit | integer qty, integer unitid | nothing |
| 1002 | | function | SetBuildUnitEx | integer easy, integer med, integer hard, integer unitid | nothing |
| 1023 | | function | SetBuildUpgr | integer qty, integer unitid | nothing |
| 1030 | | function | SetBuildUpgrEx | integer easy, integer med, integer hard, integer unitid | nothing |
| 52 | | native | SetCampaignAI | | nothing |
| 66 | | native | SetCaptainChanges | boolean allow | nothing |
| 105 | | native | SetCaptainHome | integer which, real x, real y | nothing |
| 57 | | native | SetDefendPlayer | boolean state | nothing |
| 43 | | native | SetExpansion | unit peon, integer id | boolean |
| 901 | | function | SetFormGroupTimeouts | boolean state | nothing |
| 887 | | function | SetGoldPeons | integer count | nothing |
| 64 | | native | SetGroupsFlee | boolean state | nothing |
| 892 | | function | SetHarvestLumber | boolean harvest | nothing |
| 59 | | native | SetHeroesBuyItems | boolean state | nothing |
| 58 | | native | SetHeroesFlee | boolean state | nothing |
| 62 | | native | SetHeroesTakeItems | boolean state | nothing |
| 45 | | native | SetHeroLevels | code func | nothing |
| 61 | | native | SetIgnoreInjured | boolean state | nothing |
| 1402 | | function | SetInitialWave | integer seconds | nothing |
| 53 | | native | SetMeleeAI | | nothing |
| 1510 | | function | SetMeleeGroup | integer unitid | nothing |
| 46 | | native | SetNewHeroes | boolean state | nothing |
| 55 | | native | SetPeonsRepair | boolean state | nothing |
| 41 | | native | SetProduce | integer qty, integer id, integer town | boolean |
| 56 | | native | SetRandomPaths | boolean state | nothing |
| 68 | | native | SetReplacementCount | integer qty | nothing |
| 961 | | function | SetReplacements | integer easy, integer med, integer hard | nothing |
| 2474 | | function | SetSkillArray | integer index, integer id | nothing |
| 65 | | native | SetSlowChopping | boolean state | nothing |
| 67 | | native | SetSmartArtillery | boolean state | nothing |
| 86 | | native | SetStagePoint | real x, real y | nothing |
| 54 | | native | SetTargetHeroes | boolean state | nothing |
| 63 | | native | SetUnitsFlee | boolean state | nothing |
| 44 | | native | SetUpgrade | integer id | boolean |
| 60 | | native | SetWatchMegaTargets | boolean state | nothing |
| 882 | | function | SetWoodPeons | integer count | nothing |
| 827 | | function | SetZepNextWave | | nothing |
| 107 | | native | ShiftTownSpot | real x, real y | nothing |
| 2135 | | function | SingleMeleeAttack | boolean needs_exp, boolean has_siege, boolean major_ok, boolean air_units | nothing |
| 2455 | | function | SkillArrays | | integer |
| 127 | | native | Sleep | real seconds | nothing |
| 1412 | | function | SleepForever | | nothing |
| 1692 | | function | SleepInCombat | | nothing |
| 1681 | | function | SleepUntilAtGoal | | nothing |
| 2010 | | function | SleepUntilTargetDead | unit target | nothing |
| 1382 | | function | StaggerSleep | real base, real spread | nothing |
| 779 | | function | StandardAI | code heroes, code peons, code attacks | nothing |
| 1397 | | function | StartBuildLoop | | nothing |
| 1307 | | function | StartExpansion | integer qty, integer hall | boolean |
| 79 | | native | StartGetEnemyBase | | nothing |
| 126 | | native | StartThread | code func | nothing |
| 972 | | function | StartTownBuilder | code func | nothing |
| 1219 | | function | StartUnit | integer ask_qty, integer unitid, integer town | boolean |
| 1046 | | function | StartUpgrade | integer level, integer upgid | boolean |
| 100 | | native | StopGathering | | nothing |
| 1876 | | function | SuicideOnce | integer easy, integer med, integer hard, integer unitid | nothing |
| 1827 | | function | SuicideOnPlayer | integer seconds, player p | nothing |
| 1941 | | function | SuicideOnPlayerEx | integer easy, integer med, integer hard, player p | nothing |
| 1725 | | function | SuicideOnPlayerWave | | nothing |
| 1837 | | function | SuicideOnPoint | integer seconds, player p, integer x, integer y | nothing |
| 1963 | | function | SuicideOnPointEx | integer easy, integer med, integer hard, player p, integer x, integer y | nothing |
| 1832 | | function | SuicideOnUnits | integer seconds, player p | nothing |
| 1952 | | function | SuicideOnUnitsEx | integer easy, integer med, integer hard, player p | nothing |
| 90 | | native | SuicidePlayer | player id, boolean check_full | boolean |
| 91 | | native | SuicidePlayerUnits | player id, boolean check_full | boolean |
| 831 | | function | SuicideSleep | integer seconds | nothing |
| 124 | | native | SuicideUnit | integer count, integer unitid | nothing |
| 1887 | | function | SuicideUnitA | integer unitid | nothing |
| 1895 | | function | SuicideUnitB | integer unitid, integer playerid | nothing |
| 125 | | native | SuicideUnitEx | integer ct, integer uid, integer pid | nothing |
| 1903 | | function | SuicideUnits | integer u1, integer u2, integer u3, integer u4, integer u5, integer u6, integer u7, integer u8, integer u9, integer uA | nothing |
| 1922 | | function | SuicideUnitsEx | integer playerid, integer u1, integer u2, integer u3, integer u4, integer u5, integer u6, integer u7, integer u8, integer u9, integer uA | nothing |
| 1842 | | function | SuicideUntilSignal | integer seconds, player p | nothing |
BACK TO TOP
T
| Line | Constant | Type | Name | Parameters | Return Type |
| 108 | | native | TeleportCaptain | real x, real y | nothing |
| 1169 | | function | TownCount | integer base | integer |
| 1164 | | function | TownCountDone | integer base | integer |
| 1102 | | function | TownCountEx | integer unitid, boolean only_done, integer townid | integer |
| 1186 | | function | TownCountTown | integer base, integer townid | integer |
| 29 | | native | TownHasHall | integer townid | boolean |
| 28 | | native | TownHasMine | integer townid | boolean |
| 131 | | native | TownThreatened | | boolean |
| 27 | | native | TownWithMine | | integer |
| 744 | | function | Trace | string message | nothing |
| 751 | | function | TraceI | string message, integer val | nothing |
| 758 | | function | TraceII | string message, integer v1, integer v2 | nothing |
| 765 | | function | TraceIII | string message, integer v1, integer v2, integer v3 | nothing |
BACK TO TOP
U
BACK TO TOP
V
BACK TO TOP
W
BACK TO TOP
X
BACK TO TOP
Y
BACK TO TOP
Z
BACK TO TOP

|