JASS Tools
News
Download
Help
JASS Manual
-------------------------------------------------------------

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

LineConstantTypeNameParametersReturn Type
74nativeAddAssaultinteger qty, integer idboolean
75nativeAddDefendersinteger qty, integer idboolean
101nativeAddGuardPostinteger id, real x, real ynothing
2095functionAddSiegenothing
1407functionAddSleepSecondsinteger secondsnothing
2058functionAnyPlayerAttacknothing
87nativeAttackMoveKillunit targetnothing
2021functionAttackMoveKillAunit targetnothing
88nativeAttackMoveXYinteger x, integer ynothing
1712functionAttackMoveXYAinteger x, integer ynothing
2510functionAwaitMeleeHeroesnothing

BACK TO TOP

------------------------------------------------------------

B

LineConstantTypeNameParametersReturn Type
1174functionBasicExpansionboolean build_it, integer unitidnothing
2298functionBuildAttackersnothing
2322functionBuildDefendersnothing
1068functionBuildFactoryinteger unitidnothing
1387functionBuildLoopnothing

BACK TO TOP

------------------------------------------------------------

C

LineConstantTypeNameParametersReturn Type
2398functionCampaignAIinteger farms, code heroesnothing
1541functionCampaignAttackerinteger level, integer qty, integer unitidnothing
1548functionCampaignAttackerExinteger easy, integer med, integer hard, integer unitidnothing
2387functionCampaignBasicsnothing
2340functionCampaignBasicsAnothing
1519functionCampaignDefenderinteger level, integer qty, integer unitidnothing
1530functionCampaignDefenderExinteger easy, integer med, integer hard, integer unitidnothing
122nativeCaptainAtGoalboolean
110nativeCaptainAttackreal x, real ynothing
113nativeCaptainGoHomenothing
117nativeCaptainGroupSizeinteger
92nativeCaptainInCombatboolean attack_captainboolean
116nativeCaptainIsEmptyboolean
115nativeCaptainIsFullboolean
114nativeCaptainIsHomeboolean
118nativeCaptainReadinessinteger
120nativeCaptainReadinessHPinteger
121nativeCaptainReadinessMainteger
119nativeCaptainRetreatingboolean
112nativeCaptainVsPlayerplayer idnothing
111nativeCaptainVsUnitsplayer idnothing
109nativeClearCaptainTargetsnothing
95nativeClearHarvestAInothing
135nativeCommandsWaitinginteger
1984functionCommonSleepUntilTargetDeadunit target, boolean reformnothing
1779functionCommonSuicideOnPlayerboolean standard, boolean bldgs, integer seconds, player p, integer x, integer ynothing
1433functionConversionsinteger desire, integer unitidnothing
1426functionConvertNeedsinteger unitidnothing
50nativeConvertUnitsinteger qty, integer idboolean
104nativeCreateCaptainsnothing
2050functionCreepAttackExnothing
123nativeCreepsOnMapboolean

BACK TO TOP

------------------------------------------------------------

D

LineConstantTypeNameParametersReturn Type
5nativeDebugFIstring str, integer valnothing
4nativeDebugSstring strnothing
6nativeDebugUnitIDstring str, integer valnothing
132nativeDisablePathingnothing
7nativeDisplayTextinteger p, string strnothing
8nativeDisplayTextIinteger p, string str, integer valnothing
9nativeDisplayTextIIinteger p, string str, integer v1, integer v2nothing
10nativeDisplayTextIIIinteger p, string str, integer v1, integer v2, integer v3nothing
11nativeDoAiScriptDebugboolean
906functionDoCampaignFarmsboolean statenothing

BACK TO TOP

------------------------------------------------------------

E

LineConstantTypeNameParametersReturn Type
2077functionExpansionAttacknothing

BACK TO TOP

------------------------------------------------------------

F

LineConstantTypeNameParametersReturn Type
102nativeFillGuardPostsnothing
2293functionFoodAvailinteger baseinteger
2283functionFoodCapinteger
1193functionFoodPoolinteger food, boolean weak, integer id1, integer use1, boolean strong, integer id2, integer use2nothing
2288functionFoodSpaceinteger
2278functionFoodUsedinteger
1974functionForeverSuicideOnPlayerinteger seconds, player pnothing
1559functionFormGroupinteger seconds, boolean testReadynothing

BACK TO TOP

------------------------------------------------------------

G

LineConstantTypeNameParametersReturn Type
13nativeGetAiPlayerinteger
39nativeGetAllianceTargetunit
2107functionGetAllyCountplayer whichPlayerinteger
36nativeGetBuildingplayer punit
77nativeGetCreepCampinteger min, integer max, boolean flyers_okunit
81nativeGetEnemyBaseunit
83nativeGetEnemyExpansionunit
37nativeGetEnemyPowerinteger
82nativeGetExpansionFoeunit
98nativeGetExpansionPeonunit
84nativeGetExpansionXinteger
85nativeGetExpansionYinteger
921functionGetGoldinteger
26nativeGetGoldOwnedinteger
14nativeGetHeroIdinteger
15nativeGetHeroLevelAIinteger
136nativeGetLastCommandinteger
137nativeGetLastDatainteger
916functionGetMajorCreepunit
35nativeGetMegaTargetunit
25nativeGetMinesOwnedinteger
911functionGetMinorCreepunit
34nativeGetNextExpansioninteger
18nativeGetPlayerUnitTypeCountplayer p, integer unitidinteger
20nativeGetTownUnitCountinteger id, integer tn, boolean dninteger
23nativeGetUnitBuildTimeinteger unitidinteger
17nativeGetUnitCountinteger unitidinteger
19nativeGetUnitCountDoneinteger unitidinteger
1089functionGetUnitCountExinteger unitid, boolean only_done, integer townidinteger
21nativeGetUnitGoldCostinteger unitidinteger
22nativeGetUnitWoodCostinteger unitidinteger
32nativeGetUpgradeGoldCostinteger idinteger
31nativeGetUpgradeLevelinteger idinteger
33nativeGetUpgradeWoodCostinteger idinteger
926functionGetWoodinteger
2271functionGetZeppelinnothing
69nativeGroupTimedLifeboolean allownothing
1082functionGuardSecondaryinteger townid, integer qty, integer unitidnothing

BACK TO TOP

------------------------------------------------------------

H

LineConstantTypeNameParametersReturn Type
1077functionHallsCompletedinteger unitidboolean
96nativeHarvestGoldinteger town, integer peonsnothing
97nativeHarvestWoodinteger town, integer peonsnothing

BACK TO TOP

------------------------------------------------------------

I

LineConstantTypeNameParametersReturn Type
130nativeIgnoredUnitsinteger unitidinteger
772functionInitAInothing
73nativeInitAssaultnothing
936functionInitAssaultGroupnothing
931functionInitBuildArraynothing
941functionInitDefenseGroupnothing
946functionInitMeleeGroupnothing
1464functionInterleave3integer e1, integer m1, integer h1, integer u1, integer e2, integer m2, integer h2, integer u2, integer e3, integer m3, integer h3, integer u3nothing
93nativeIsToweredunit targetboolean

BACK TO TOP

------------------------------------------------------------

J

BACK TO TOP

------------------------------------------------------------

K

BACK TO TOP

------------------------------------------------------------

L

LineConstantTypeNameParametersReturn Type
89nativeLoadZepWaveinteger x, integer ynothing

BACK TO TOP

------------------------------------------------------------

M

LineConstantTypeNameParametersReturn Type
2042functionMajorCreepAttacknothing
819functionMaxinteger A, integer Binteger
139nativeMeleeDifficultyinteger
1204functionMeleeTownHallinteger townid, integer unitidnothing
49nativeMergeUnitsinteger qty, integer a, integer b, integer makeboolean
811functionMininteger A, integer Binteger
2034functionMinorCreepAttacknothing

BACK TO TOP

------------------------------------------------------------

N

BACK TO TOP

------------------------------------------------------------

O

LineConstantTypeNameParametersReturn Type
1344functionOneBuildLoopnothing

BACK TO TOP

------------------------------------------------------------

P

LineConstantTypeNameParametersReturn Type
2523functionPickMeleeHerorace raceidinteger
739functionPlayerExinteger slotplayer
1420functionPlayGamenothing
138nativePopLastCommandnothing
953functionPrepFullSuicidenothing
1656functionPrepSuicideOnPlayerinteger secondsboolean
1629functionPrepTimeinteger
47nativePurchaseZeppelinnothing

BACK TO TOP

------------------------------------------------------------

Q

BACK TO TOP

------------------------------------------------------------

R

LineConstantTypeNameParametersReturn Type
2015functionReformUntilTargetDeadunit targetnothing
70nativeRemoveInjuriesnothing
71nativeRemoveSiegenothing
106nativeResetCaptainLocsnothing
103nativeReturnGuardPostsnothing

BACK TO TOP

------------------------------------------------------------

S

LineConstantTypeNameParametersReturn Type
1013functionSecondaryTowninteger town, integer qty, integer unitidnothing
1018functionSecTowninteger town, integer qty, integer unitidnothing
38nativeSetAllianceTargetunit idnothing
133nativeSetAmphibiousnothing
1451functionSetAssaultGroupinteger qty, integer max, integer unitidnothing
977functionSetBuildAllinteger t, integer qty, integer unitid, integer townnothing
1041functionSetBuildExpainteger qty, integer unitidnothing
993functionSetBuildNextinteger qty, integer unitidnothing
988functionSetBuildUnitinteger qty, integer unitidnothing
1002functionSetBuildUnitExinteger easy, integer med, integer hard, integer unitidnothing
1023functionSetBuildUpgrinteger qty, integer unitidnothing
1030functionSetBuildUpgrExinteger easy, integer med, integer hard, integer unitidnothing
52nativeSetCampaignAInothing
66nativeSetCaptainChangesboolean allownothing
105nativeSetCaptainHomeinteger which, real x, real ynothing
57nativeSetDefendPlayerboolean statenothing
43nativeSetExpansionunit peon, integer idboolean
901functionSetFormGroupTimeoutsboolean statenothing
887functionSetGoldPeonsinteger countnothing
64nativeSetGroupsFleeboolean statenothing
892functionSetHarvestLumberboolean harvestnothing
59nativeSetHeroesBuyItemsboolean statenothing
58nativeSetHeroesFleeboolean statenothing
62nativeSetHeroesTakeItemsboolean statenothing
45nativeSetHeroLevelscode funcnothing
61nativeSetIgnoreInjuredboolean statenothing
1402functionSetInitialWaveinteger secondsnothing
53nativeSetMeleeAInothing
1510functionSetMeleeGroupinteger unitidnothing
46nativeSetNewHeroesboolean statenothing
55nativeSetPeonsRepairboolean statenothing
41nativeSetProduceinteger qty, integer id, integer townboolean
56nativeSetRandomPathsboolean statenothing
68nativeSetReplacementCountinteger qtynothing
961functionSetReplacementsinteger easy, integer med, integer hardnothing
2474functionSetSkillArrayinteger index, integer idnothing
65nativeSetSlowChoppingboolean statenothing
67nativeSetSmartArtilleryboolean statenothing
86nativeSetStagePointreal x, real ynothing
54nativeSetTargetHeroesboolean statenothing
63nativeSetUnitsFleeboolean statenothing
44nativeSetUpgradeinteger idboolean
60nativeSetWatchMegaTargetsboolean statenothing
882functionSetWoodPeonsinteger countnothing
827functionSetZepNextWavenothing
107nativeShiftTownSpotreal x, real ynothing
2135functionSingleMeleeAttackboolean needs_exp, boolean has_siege, boolean major_ok, boolean air_unitsnothing
2455functionSkillArraysinteger
127nativeSleepreal secondsnothing
1412functionSleepForevernothing
1692functionSleepInCombatnothing
1681functionSleepUntilAtGoalnothing
2010functionSleepUntilTargetDeadunit targetnothing
1382functionStaggerSleepreal base, real spreadnothing
779functionStandardAIcode heroes, code peons, code attacksnothing
1397functionStartBuildLoopnothing
1307functionStartExpansioninteger qty, integer hallboolean
79nativeStartGetEnemyBasenothing
126nativeStartThreadcode funcnothing
972functionStartTownBuildercode funcnothing
1219functionStartUnitinteger ask_qty, integer unitid, integer townboolean
1046functionStartUpgradeinteger level, integer upgidboolean
100nativeStopGatheringnothing
1876functionSuicideOnceinteger easy, integer med, integer hard, integer unitidnothing
1827functionSuicideOnPlayerinteger seconds, player pnothing
1941functionSuicideOnPlayerExinteger easy, integer med, integer hard, player pnothing
1725functionSuicideOnPlayerWavenothing
1837functionSuicideOnPointinteger seconds, player p, integer x, integer ynothing
1963functionSuicideOnPointExinteger easy, integer med, integer hard, player p, integer x, integer ynothing
1832functionSuicideOnUnitsinteger seconds, player pnothing
1952functionSuicideOnUnitsExinteger easy, integer med, integer hard, player pnothing
90nativeSuicidePlayerplayer id, boolean check_fullboolean
91nativeSuicidePlayerUnitsplayer id, boolean check_fullboolean
831functionSuicideSleepinteger secondsnothing
124nativeSuicideUnitinteger count, integer unitidnothing
1887functionSuicideUnitAinteger unitidnothing
1895functionSuicideUnitBinteger unitid, integer playeridnothing
125nativeSuicideUnitExinteger ct, integer uid, integer pidnothing
1903functionSuicideUnitsinteger u1, integer u2, integer u3, integer u4, integer u5, integer u6, integer u7, integer u8, integer u9, integer uAnothing
1922functionSuicideUnitsExinteger playerid, integer u1, integer u2, integer u3, integer u4, integer u5, integer u6, integer u7, integer u8, integer u9, integer uAnothing
1842functionSuicideUntilSignalinteger seconds, player pnothing

BACK TO TOP

------------------------------------------------------------

T

LineConstantTypeNameParametersReturn Type
108nativeTeleportCaptainreal x, real ynothing
1169functionTownCountinteger baseinteger
1164functionTownCountDoneinteger baseinteger
1102functionTownCountExinteger unitid, boolean only_done, integer townidinteger
1186functionTownCountTowninteger base, integer townidinteger
29nativeTownHasHallinteger townidboolean
28nativeTownHasMineinteger townidboolean
131nativeTownThreatenedboolean
27nativeTownWithMineinteger
744functionTracestring messagenothing
751functionTraceIstring message, integer valnothing
758functionTraceIIstring message, integer v1, integer v2nothing
765functionTraceIIIstring message, integer v1, integer v2, integer v3nothing

BACK TO TOP

------------------------------------------------------------

U

LineConstantTypeNameParametersReturn Type
128nativeUnitAliveunit idboolean
129nativeUnitInvisunit idboolean
42nativeUnsummonunit unitidnothing
2442functionUnsummonAllnothing
1181functionUpgradeAllinteger baseid, integer newidnothing

BACK TO TOP

------------------------------------------------------------

V

BACK TO TOP

------------------------------------------------------------

W

LineConstantTypeNameParametersReturn Type
848functionWaitForSignalinteger
1296functionWaitForTowninteger towns, integer townidnothing
1211functionWaitForUnitsinteger unitid, integer qtynothing
80nativeWaitGetEnemyBaseboolean
1624functionWavePrepareinteger unitidinteger

BACK TO TOP

------------------------------------------------------------

X

BACK TO TOP

------------------------------------------------------------

Y

BACK TO TOP

------------------------------------------------------------

Z

BACK TO TOP

------------------------------------------------------------
Copyright (c) 2003 Jeff Pang
Not affiliated or endorsed by Blizzard Entertainment
SourceForge.net Logo