This article is a stub . You can help Hegemony III: Clash of the Ancients Wiki by expanding it .
This article is a stub . You can help Hegemony III: Clash of the Ancients Wiki by expanding it .
In order to see which parameters are required, type in "commands('Function Name')" into the console (F2). Also be aware that this list is far from complete; the devs compiled it in 2016 and it hasn't been thorouhgly updated since. If you can't find here what you're looking for then it's worth trying commands("@") with a few keywords to see if there is some function in game that has not been added to this list, yet.
Function name
Scope (global if blank)
activatefilesystem
activescripts
addframedelayedcall
addplayboundshollow
addpressureplate
addthreadcallback
adddefendtarget
AiDefendGoal
isbusy
AiDifficultyManager
numactivegoals
AiDifficultyManager
resetparameters
AiDifficultyManager
setparamnum
AiDifficultyManager
setparamobj
AiDifficultyManager
setparamstring
AiDifficultyManager
update
AiDifficultyManager
addtarget
AiFactionGoal
dooffense
AiFactionGoal
dotraderoutes
AiFactionGoal
doupgrades
AiFactionGoal
getplaystyle
AiFactionGoal
setaggression
AiFactionGoal
setplaystyle
AiFactionGoal
settargetdefend
AiFactionGoal
addpoiobject
AiGoal
addpoipos
AiGoal
addreinforcement
AiGoal
cancel
AiGoal
getbase
AiGoal
getfaction
AiGoal
getid
AiGoal
getreinforcements
AiGoal
gettargetobj
AiGoal
gettaskforce
AiGoal
gettype
AiGoal
hastaskforce
AiGoal
istargetingplayer
AiGoal
isvalid
AiGoal
setconqueror
AiGoal
setinterruptable
AiGoal
setnocapture
AiGoal
setnodefend
AiGoal
setnoraid
AiGoal
setnoreinforce
AiGoal
setnoretreat
AiGoal
setstayinbounds
AiGoal
aipause
aiplay
aistep
arrayConcat
arrowhere
close
ArrowHere
think
ArrowHere
arrowmanoeuvre
close
ArrowManoeuvre
think
ArrowManoeuvre
awardquestvictorypoints
bakeany
blockprelude
brigade
addunits
Brigade
canconstruct
Brigade
canharvestresources
Brigade
cansiege
Brigade
disband
Brigade
earnsxp
Brigade
enter
Brigade
getage
Brigade
getcentrepos
Brigade
getcost
Brigade
getdir
Brigade
gethome
Brigade
getmaxunits
Brigade
getmorale
Brigade
getname
Brigade
getnumunits
Brigade
getpedia
Brigade
getportrait
Brigade
getpos
Brigade
getrecruitsperunit
Brigade
getsubclass
Brigade
gettalkinghead
Brigade
gettaskforce
Brigade
gettooltip
Brigade
gettotalxp
Brigade
gettype
Brigade
getxp
Brigade
givexp
Brigade
halt
Brigade
hasrouted
Brigade
hassurrendered
Brigade
iscombat
Brigade
isgeneral
Brigade
isinsupply
Brigade
isscout
Brigade
isvehicle
Brigade
iswaterunit
Brigade
moveto
Brigade
resetcost
Brigade
retrain
Brigade
rout
Brigade
setcost
Brigade
setdir
Brigade
sethome
Brigade
setname
Brigade
setnumunits
Brigade
setpedia
Brigade
setportrait
Brigade
setpos
Brigade
setstance
Brigade
setstate
Brigade
settooltip
Brigade
surrender
Brigade
brigadehere
brigadesbegin
brigadesnext
brigadetype
canconstruct
BrigadeType
canharvestresources
BrigadeType
cansiege
BrigadeType
earnsxp
BrigadeType
getbuildicon
BrigadeType
getcost
BrigadeType
getmaxunits
BrigadeType
getname
BrigadeType
getportrait
BrigadeType
getrecruitsperunit
BrigadeType
getstattooltip
BrigadeType
getsubclass
BrigadeType
gettitle
BrigadeType
gettooltip
BrigadeType
iscombat
BrigadeType
isvehicle
BrigadeType
iswaterunit
BrigadeType
dodamage
Building
getdamage
Building
getraiddamage
Building
liberate
Building
setstate
Building
updateminipos
Building
buildingsbegin
buildingsnext
builtinusage
callquestevent
cameraboundsclear
cameraboundsset
cameracentremappos
cameradesc
cameradirget
cameradirset
cameragetvisiblemapwidth
cameraheightforarea
camerajump
camerapathload
camerapathsave
cameraposget
cameraposset
camerasetzoomtoheight
cameratoid
cameratrack
cameraupdatepos
camerazoomget
camerazoomset
canceltaskoncapture
canceltaskonhostile
capturecitycomplete
checkcallstack
checkcasualties
checkdiscovers
checkexits
chooserandomfromlist
changeassimilation
City
dogrowthdamage
City
getassimilation
City
getpop
City
getpopgrowth
City
getraiddamage
City
getraiderrecruits
City
getrandomraiderbrigadetype
City
getrandomtransportshiptype
City
getrequiredassimilation
City
getrequiredpopgrowth
City
getrequiredwoodgrowth
City
gettaxrate
City
settaxrate
City
getrecruitmentrate
City
setrecruitmentrate
City
getconsumptionrate
City
setconsumptionrate
City
incpop
City
raze
City
rebel
City
getrebellionlevel
City
setpop
City
setpopgrowth
City
setraiderrecruits
City
CleanString
CleanStringXml
clearconsole
cleardebuggoal
clearfog
clipboard
closescriptwindows
closewindowundercursor
clusterpositions
commands
configscenario
countunitsoftype
crash
createentity
createfactionobjective
creategeneral
createofficer
dayssincelastevent
dayssincelasteventfortarget
dayssincelasttaskfortarget
deactivatefilesystem
debugdifficultymanager
debugmode
debugmsg
debugparentgoal
debugselectedbrigadegoal
debugselecteddefendgoal
debugselectedfactiongoal
decompile
delay
delaydays
deleteprops
deselectall
dialog
disableunresponsivescriptdetection
distributeresource
doesfileexist
doesobjectiveexist
doesshowinvaderintro
doesshowtutorials
doesstringexist
doessubtaskexist
doestaskexist
dofile
dofilebg
dofuncbg
draw
drawpropreflections
drawproprefractions
drawunitreflections
drawunitrefractions
dumpcitylist
dumpfactionresourcelist
dumpresources
dumpscripts
enabledifficultymanager
endscreen
addtocontainer
Entity
addtraderouteto
Entity
canconquerroute
Entity
capture
Entity
containnewbrigade
Entity
discover
Entity
disttonearbyfaction
Entity
disttonearbyobject
Entity
enumcontents
Entity
findentrance
Entity
getasadvisor
Entity
getattribute
Entity
getcmdcount
Entity
getcmdpos
Entity
getcmdtarget
Entity
getcmdtype
Entity
getconstructionstage
Entity
getcontainer
Entity
getdefenderthreat
Entity
getentitytype
Entity
getfaction
Entity
getfortsonroute
Entity
getgeneral
Entity
getid
Entity
getlastcaptureday
Entity
getnativefaction
Entity
getnearbyobjects
Entity
getportrait
Entity
getpos
Entity
getradius
Entity
getresource
Entity
getresourcecapacity
Entity
getseasonalsupplyproduction
Entity
getsupplyproduction
Entity
gettag
Entity
gettitle
Entity
getupgradeprogress
Entity
getupgradesbegin
Entity
getupgradesnext
Entity
getwallprogress
Entity
giveresource
Entity
giveupgrade
Entity
hasbuff
Entity
isaccessible
Entity
isconnectedbyland
Entity
isconnectedbywater
Entity
isdiscovered
Entity
isfoggy
Entity
isnearfaction
Entity
isoutofsupply
Entity
isrouteclear
Entity
isundermeleeattack
Entity
isvalid
Entity
isvisible
Entity
listcontents
Entity
minimalview
Entity
numbuiltfortsonroute
Entity
numfortsonroute
Entity
rebel
Entity
refreshnearbyobjects
Entity
remove
Entity
removeupgrade
Entity
select
Entity
setattribute
Entity
setcaptorfaction
Entity
setcustomtitle
Entity
setfaction
Entity
setfactionbyname
Entity
setfactionbyname
Entity
setresource
Entity
setstance
Entity
settag
Entity
updatefog
Entity
__eq
Entity
enumfactions
enumobjectives
enumpressureplatebrigades
enumsubtasks
enumtasks
eventenable
faction
addgoal
Faction
addgold
Faction
canraidplayer
Faction
citiescapturedbyplayer
Faction
cleareffect
Faction
cleargoals
Faction
createtaskforce
Faction
customeffect
Faction
customeffecttable
Faction
daydiscovered
Faction
discover
Faction
doesneedfood
Faction
doesneedgold
Faction
doesneedwood
Faction
findrandomdeserter
Faction
generateadvisor
Faction
getactiveplayerhostility
Faction
getadjectivename
Faction
getadvisor
Faction
getadvisorname
Faction
getadvisorportrait
Faction
getaggression
Faction
getattribute
Faction
getattributesdesc
Faction
getbaseattribute
Faction
getbaseincome
Faction
getbrigadelist
Faction
getbrigades
Faction
getbuildings
Faction
getcapital
Faction
getcities
Faction
getcityquestgiver
Faction
getcollectivename
Faction
getcombatbrigadespecs
Faction
getconquerscript
Faction
getconquesttarget
Faction
getcostoftruce
Faction
getdifficultyplanthreshold
Faction
geteffect
Faction
getexpenses
Faction
getfactiongoal
Faction
getfactiongroup
Faction
getfactiongroupstring
Faction
getformalname
Faction
getgeneralportrait
Faction
getgeneraltype
Faction
getgoalbytag
Faction
getgold
Faction
gethostility
Faction
getid
Faction
getincome
Faction
getintimidation
Faction
getking
Faction
getlastrelationcostchange
Faction
getlastrelationstatechange
Faction
getlogoatlas
Faction
getlogoimgsrc
Faction
getlogosprite
Faction
getname
Faction
getnonbrigades
Faction
getnumgeneralportraits
Faction
getobjects
Faction
getrandomgeneralname
Faction
getrandomgeneralportrait
Faction
getrelationcost
Faction
getskillpoints
Faction
getstring
Faction
getsupplycapacity
Faction
getsupplyconsumption
Faction
getsupplyproduction
Faction
getsupplyrate
Faction
gettaskforce
Faction
gettotalpop
Faction
gettotalsupplies
Faction
gettotalwood
Faction
gettransporttype
Faction
getwoodcapacity
Faction
getwoodproduction
Faction
getwoodrate
Faction
givegold
Faction
giveskill
Faction
giveskillpoints
Faction
givewindowtooltip
Faction
hasbeendiscovered
Faction
hastrucewithfaction
Faction
incdifficultyplanthreshold
Faction
inchostility
Faction
initintimidation
Faction
ishostiletofaction
Faction
isindie
Faction
isnormal
Faction
isplayer
Faction
isplayerneighbour
Faction
israider
Faction
istargetingplayer
Faction
lastattackcmdday
Faction
lastbuildingattackday
Faction
lastunitattackday
Faction
launchattackonplayer
Faction
neweffect
Faction
newgoaldefend
Faction
newgoaldifficultymanager
Faction
newgoalfactionmanager
Faction
newgoalraid
Faction
newgoalraidfrompos
Faction
numcities
Faction
numnativecities
Faction
playerunitskilled
Faction
raiddamagefromplayer
Faction
randomizeaggression
Faction
removegoal
Faction
safedaysofgold
Faction
setattribute
Faction
setbaseincome
Faction
setcapital
Faction
setconquerscript
Faction
setdifficultyplanthreshold
Faction
setdiplomacyhidden
Faction
setdiplomacylocked
Faction
setfactionrelation
Faction
sethostility
Faction
setintimidation
Faction
setking
Faction
setminhostility
Faction
setrelationcost
Faction
setskillpoints
Faction
spendgold
Faction
unitsenslavedbyplayer
Faction
unitskilledbyplayer
Faction
__eq
Faction
launch
FactionEffect
setattribute
FactionEffect
setendscript
FactionEffect
seticon
FactionEffect
setliticon
FactionEffect
setstartscript
FactionEffect
settimelimit
FactionEffect
settitle
FactionEffect
settooltip
FactionEffect
fadefog
feature
lock
Feature
locked
Feature
next
Feature
__tostring
Feature
featurestatus
filterobjects
findbestobject
findclosestobjtofaction
findglobals
fog
build
Fort
connectedto
Fort
dismantle
Fort
dodamage
Fort
findoffshorefleetpos
Fort
forcecache
Fort
gethitpoints
Fort
getlocalbrigades
Fort
getmaxhitpoints
Fort
getmaxmorale
Fort
getmorale
Fort
getmilitarymorale
Fort
getname
Fort
getrecruitcapacity
Fort
getrecruits
Fort
getreflections
Fort
getrefractions
Fort
getregion
Fort
getsize
Fort
getstringname
Fort
hasupgrade
Fort
isbuilt
Fort
isoccupied
Fort
israiderbase
Fort
setactiveburnlevel
Fort
setbuilt
Fort
sethitpoints
Fort
setrecruits
Fort
setreflections
Fort
setrefractions
Fort
setstate
Fort
upgrades
Fort
getglobalpopgrowth
setglobalpopgrowth
getmaxglobalpopgrowth
getglobalrecruitment
setglobalrecruitment
getmaxglobalrecruitment
getglobalresearch
setglobalresearch
getmaxglobalresearch
fortsbegin
fortsnext
fortsnextbyobj
gameinprogress
gathersupplies
general
generalfromtalkinghead
generalspec
generateobjectives
generatescripttags
getabsframesecs
getadjacentregion
getadjusteddifficulty
getaifooddemand
getaigoal
getaigolddemand
getairecruitdemand
getaiwooddemand
getappdatadir
GetAttrDisplay
getbadregionpos
getbasepath
getbestairesourcedemand
getbestplayerreward
getcitiesoffaction
getcitiesoffactionnearfaction
getcommandpage
getcontextcommand
getcontexttarget
getcurrenttab
getcursorpos
getcursorposterrain
getday
getdifficulty
getdifficultydesc
getdifficultymanager
getdocsdir
geteditormode
getentity
getentitybytag
geterrorstringforresource
getfactionbyid
getfactionbyname
getfactiongoal
getfactionsbegin
getfactionsnext
getfeaturelocks
getfilebynumberfrom
getfocus
getfog
getfolderbynumberfrom
getfortbyname
getfortbyname
getfortfromregion
getgamespeed
getgcspikes
getgctimeavg
getgctimepeak
gethighlighted
gethistory
getmainscene
getmaxdifficulty
getmaxhostileneighbours
getmaxraidsize
getmessageonevent
getminhostileneighbours
getminraidsize
getmodsbegin
getmodsnext
getnextregion
getnumedges
getnumfilesin
getnumfoldersin
getparentregion
getpause
getpauseonevent
getpergamestat
getplaybounds
getplayerfaction
getpropoffsets
getregionflags
getregionpos
getresourceicon
getresourcerewardperdesc
getrootwindow
getscrollback
getseason
getselected
getselectedbrigadegoal
getselectedfactiongoal
getstring
getsubtaskstringforresource
gettargetresourceamount
gettaskparameter
gettimegamedays
gettimeofday
gettimeplayed
gettimerealsecs
gettraderoutes
getupgradestringname
getwindow
getwindowbottom
getwindowtop
getwindowundercursor
getworkshopfolder
givefarm
setclickscript
GuiButton
guicoordstoterrain
gettext
GuiInput
setfilter
GuiInput
settext
GuiInput
gettext
GuiPage
measure
GuiPage
settext
GuiPage
guiping
close
GuiPing
think
GuiPing
history
implementplan
interchangeall
interpolatebellcurve
interpolatedoublescurve
interpolateivdoublescurve
interpolatescurve
isdatafolderactive
isdebugmode
isdifficultymanagerenabled
isinopenwaterregion
isinplaybounds
isinwaterregion
isobjreserved
isplayeridle
issteamactive
isvisiblerecursive
killscript
findspawnpos
LandingSite
lasttaskcompleteday
lasttaskdiscoveredday
launchbrowser
levelupwindow
listbrigades
listbrokenregions
listbuildings
listfactions
listfeatures
listforts
listobjectives
listsplitforts
listsubtasks
listtasks
listunusedprops
loadarcascii
loaddem
loadfilesystem
loadgame
loadgeotiff
loadmap
loadstringfile
loadxmlfromfile
logai
logevent
logeventfortarget
logmessage
logtaskfortarget
add
LuaFlagset
eq
LuaFlagset
has
LuaFlagset
sub
LuaFlagset
unm
LuaFlagset
makebrigades
makebrigadestf
mapping
close
MapPing
think
MapPing
matchentity
musicforceupdate
musicintensity
musicnewsection
musicsection
newfaction
newstag
nextchapter
numactivetasks
numbrigadesonplate
numevents
numeventsfortarget
numhostileneighbours
numtasksfortarget
numtexturesqueued
objectivediscover
objectiveload
objectiveloadxml
paneltabselected
pdump
pedia
placeholderxml
addint
PlaceholderXml
addplaceholders
PlaceholderXml
addstring
PlaceholderXml
addstringref
PlaceholderXml
addxml
PlaceholderXml
baketostring
PlaceholderXml
getresultstring
PlaceholderXml
getresultxml
PlaceholderXml
__tostring
PlaceholderXml
playcutscene
playguisound
playseasons
playsound
polygon
addpoint
Polygon
clear
Polygon
getcentre
Polygon
getdimensions
Polygon
getextents
Polygon
getpoint
Polygon
getsize
Polygon
reverse
Polygon
setcircle
Polygon
truncate
Polygon
__add
Polygon
__tostring
Polygon
pprint
pprintex
pregenerateobjectives
print
printallsubtasks
printscriptwindows
printtocode
printwindowsundercursor
processchunk
profiler
putinfort
queuefuncbg
quit
readyforobjective
readyforpreludetask
regiondiscover
rejecttruce
reloadshaders
reloadsoundgroups
reloadstrings
reloadtextures
removeplaybounds
removepressureplate
resetdevice
rev
revisionnum
rewardbrigade
routmany
sanitycheck
saveconsole
savefogmap
savegame
saveglyphatlases
saveheightfieldmap
savemap
savemaprelease
savescenario
savesnowmask
screenshot
sdraw
selectregion
setbuildinglodbias
setcampaignname
setcontrolmap
setcurrenttab
setcustomdate
setday
setdebuggoal
setdifficulty
setfog
setgamespeed
setgraphmode
sethistory
setloadhook
setmaxsyncchildren
setmessageonevent
setobjreserved
setpause
setpauseonevent
setpauseoverride
setplaybounds
setplayerfaction
setplaying
setregionflags
setscenariotag
setscrollback
setseasontarget
setshowinvaderintro
setshowtutorials
setstatusreplacementint
setstatusreplacementstring
setstatusreplacementstringref
setstormday
settalkingheadoptionsxml
setwindangle
setwindstrength
showcaption
showdiplomacy
showerror
showerrorxml
showfactionskills
showgui
showmenu
showtip
sleepmany
sleepuntil
isplaying
Sound
stop
Sound
soundstatsactivesounds
soundstatsactivesoundsprint
soundstatsavgframetime
soundstatsoggdata
soundstatsoggdataprint
soundstatstotaloggsize
soundstatstotalwavsize
soundstatswavdata
soundstatswavdataprint
spawnplayerattack
SpawnRaiderAttack
SplitAtlasName
statusdisable
statusint
statusisdisabled
statusstring
statusstringref
subtaskgetscript
subtaskisdone
subtaskload
subtaskloadxml
subtaskmapfactionfilter
subtaskmapobjtypefilter
subtaskmapsize
subtaskmapsprite
subtaskposfollow
subtaskresetscript
subtasksetpos
swapprops
tagprofilerframe
talkinghead
close
TalkingHead
getpos
TalkingHead
ready
TalkingHead
result
TalkingHead
setpos
TalkingHead
talkingheadaisighted
talkingheadaisightedcustom
talkingheadlock
talkingheadnewobjective
talkingheadnews
talkingheadrelease
talkingheadrewardbase
talkingheadrewardcity
talkingheadrewardgold
talkingheadupdatesettings
targetcity
taskcancel
taskdiscover
addbrigade
TaskForce
cleargoal
TaskForce
getbrigades
TaskForce
getfaction
TaskForce
getgoal
TaskForce
getthreat
TaskForce
newgoalholdground
TaskForce
newgoalmove
TaskForce
newgoaloffense
TaskForce
newgoalraid
TaskForce
setgoal
TaskForce
setinterruptable
TaskForce
setnocapture
TaskForce
setnoretreat
TaskForce
setstayinbounds
TaskForce
taskgetscript
taskisdone
taskload
taskloadxml
taskresetscript
tasktrack
terraincoordstogui
tometric
trackself
unpackAll
updatedifficultymanager
updatefactionconquestmults
updatelogdata
updateresourcesubtask
usecaptions
vec2d
abs
Vec2D
distance
Vec2D
mag
Vec2D
mag2
Vec2D
__add
Vec2D
__div
Vec2D
__eq
Vec2D
__mul
Vec2D
__sub
Vec2D
__tostring
Vec2D
__unm
Vec2D
ver
versionstring
victorywindow
waitbuilt
waitbuiltparams
waitburnfarms
waitburnfarmsparams
waitcapture
waitcaptureparams
waitcontrol
waitcontrolparams
waitdefeat
waitdefeatbase
waitdefeatfort
waitdefeatn
waitdefeatnfaction
waitdefeatntag
waitdemolish
waitdemolishparams
waitdiscover
waitescort
waitgiveresource
waitoccupy
waitoccupyany
waitplate
waitplatebrigade
waitrazecitypopparams
waitsubtask
waitsubtaskany
waitsubtasks
waitupgrade
wake
whoami
addchild
Window
arrangechildren
Window
children
Window
children
Window
cleartint
Window
close
Window
closechildren
Window
fadein
Window
fadeout
Window
getangle
Window
getaspect
Window
getchild
Window
getchildbytype
Window
getchildrenbegin
Window
getchildrennext
Window
getdepth
Window
getid
Window
getname
Window
getopacity
Window
getparent
Window
getpos
Window
getposabs
Window
getrttiname
Window
getsaturation
Window
getsize
Window
gettopmostat
Window
gettype
Window
gettype
Window
isdisabled
Window
isvalid
Window
isvisible
Window
paramfloatset
Window
paramvectorset
Window
printchildren
Window
setangle
Window
setdepth
Window
setdisabled
Window
setfocus
Window
setmodal
Window
setname
Window
setnopersist
Window
setopacity
Window
setpagepos
Window
setpos
Window
setposstr
Window
setsaturation
Window
setshader
Window
setsize
Window
setsizestr
Window
setspriteparams
Window
settextureparam
Window
settint
Window
settooltip
Window
settooltipattribute
Window
settooltipattributexml
Window
settooltipcursor
Window
settooltippos
Window
settooltipsize
Window
setvisible
Window
workshopupload
writecitystratmap
writefogregions
xml
addchild
Xml
baketostring
Xml
haschild
Xml
replacechildren
Xml
setattribute
Xml
setname
Xml
__tostring
Xml