ConvertRace(integer i)returns race
ConvertAllianceType(integer i)returns alliancetype
ConvertRacePref(integer i)returns racepreference
ConvertIGameState(integer i)returns igamestate
ConvertFGameState(integer i)returns fgamestate
ConvertPlayerState(integer i)returns playerstate
ConvertPlayerScore(integer i)returns playerscore
ConvertPlayerGameResult(integer i)returns playergameresult
ConvertUnitState(integer i)returns unitstate
ConvertAIDifficulty(integer i)returns aidifficulty
ConvertGameEvent(integer i)returns gameevent
ConvertPlayerEvent(integer i)returns playerevent
ConvertPlayerUnitEvent(integer i)returns playerunitevent
ConvertWidgetEvent(integer i)returns widgetevent
ConvertDialogEvent(integer i)returns dialogevent
ConvertUnitEvent(integer i)returns unitevent
ConvertLimitOp(integer i)returns limitop
ConvertUnitType(integer i)returns unittype
ConvertGameSpeed(integer i)returns gamespeed
ConvertPlacement(integer i)returns placement
ConvertStartLocPrio(integer i)returns startlocprio
ConvertGameDifficulty(integer i)returns gamedifficulty
ConvertGameType(integer i)returns gametype
ConvertMapFlag(integer i)returns mapflag
ConvertMapVisibility(integer i)returns mapvisibility
ConvertMapSetting(integer i)returns mapsetting
ConvertMapDensity(integer i)returns mapdensity
ConvertMapControl(integer i)returns mapcontrol
ConvertPlayerColor(integer i)returns playercolor
ConvertPlayerSlotState(integer i)returns playerslotstate
ConvertVolumeGroup(integer i)returns volumegroup
ConvertCameraField(integer i)returns camerafield
ConvertBlendMode(integer i)returns blendmode
ConvertRarityControl(integer i)returns raritycontrol
ConvertTexMapFlags(integer i)returns texmapflags
ConvertFogState(integer i)returns fogstate
ConvertEffectType(integer i)returns effecttype
ConvertVersion(integer i)returns version
ConvertItemType(integer i)returns itemtype
ConvertAttackType(integer i)returns attacktype
ConvertDamageType(integer i)returns damagetype
ConvertWeaponType(integer i)returns weapontype
ConvertSoundType(integer i)returns soundtype
ConvertPathingType(integer i)returns pathingtype
OrderId(string orderIdString)returns integer
OrderId2String(integer orderId)returns string
UnitId(string unitIdString)returns integer
UnitId2String(integer unitId)returns string
AbilityId(string abilityIdString)returns integer
AbilityId2String(integer abilityId)returns string
GetObjectName(integer objectId)returns string
Deg2Rad(real degrees)returns real
Rad2Deg(real radians)returns real
Sin(real radians)returns real
Cos(real radians)returns real
Tan(real radians)returns real
Asin(real y)returns real
Acos(real x)returns real
Atan(real x)returns real
Atan2(real y, real x)returns real
SquareRoot(real x)returns real
Pow(real x, real power)returns real
I2R(integer i)returns real
R2I(real r)returns integer
I2S(integer i)returns string
R2S(real r)returns string
R2SW(real r, integer width, integer precision)returns string
S2I(string s)returns integer
S2R(string s)returns real
GetHandleId(handle h)returns integer
SubString(string source, integer start, integer end)returns string
StringLength(string s)returns integer
StringCase(string source, boolean upper)returns string
StringHash(string s)returns integer
GetLocalizedString(string source)returns string
GetLocalizedHotkey(string source)returns integer
SetMapName(string name)
SetMapDescription(string description)
SetTeams(integer teamcount)
SetPlayers(integer playercount)
DefineStartLocation(integer whichStartLoc, real x, real y)
DefineStartLocationLoc(integer whichStartLoc, location whichLocation)
SetStartLocPrioCount(integer whichStartLoc, integer prioSlotCount)
SetStartLocPrio(integer whichStartLoc, integer prioSlotIndex, integer otherStartLocIndex, startlocprio priority)
GetStartLocPrioSlot(integer whichStartLoc, integer prioSlotIndex)returns integer
GetStartLocPrio(integer whichStartLoc, integer prioSlotIndex)returns startlocprio
SetGameTypeSupported(gametype whichGameType, boolean value)
SetMapFlag(mapflag whichMapFlag, boolean value)
SetGamePlacement(placement whichPlacementType)
SetGameSpeed(gamespeed whichspeed)
SetGameDifficulty(gamedifficulty whichdifficulty)
SetResourceDensity(mapdensity whichdensity)
SetCreatureDensity(mapdensity whichdensity)
GetTeams(nothing)returns integer
GetPlayers(nothing)returns integer
IsGameTypeSupported(gametype whichGameType)returns boolean
GetGameTypeSelected(nothing)returns gametype
IsMapFlagSet(mapflag whichMapFlag)returns boolean
GetGamePlacement(nothing)returns placement
GetGameSpeed(nothing)returns gamespeed
GetGameDifficulty(nothing)returns gamedifficulty
GetResourceDensity(nothing)returns mapdensity
GetCreatureDensity(nothing)returns mapdensity
GetStartLocationX(integer whichStartLocation)returns real
GetStartLocationY(integer whichStartLocation)returns real
GetStartLocationLoc(integer whichStartLocation)returns location
SetPlayerTeam(player whichPlayer, integer whichTeam)
SetPlayerStartLocation(player whichPlayer, integer startLocIndex)
ForcePlayerStartLocation(player whichPlayer, integer startLocIndex)
SetPlayerColor(player whichPlayer, playercolor color)
SetPlayerAlliance(player sourcePlayer, player otherPlayer, alliancetype whichAllianceSetting, boolean value)
SetPlayerTaxRate(player sourcePlayer, player otherPlayer, playerstate whichResource, integer rate)
SetPlayerRacePreference(player whichPlayer, racepreference whichRacePreference)
SetPlayerRaceSelectable(player whichPlayer, boolean value)
SetPlayerController(player whichPlayer, mapcontrol controlType)
SetPlayerName(player whichPlayer, string name)
SetPlayerOnScoreScreen(player whichPlayer, boolean flag)
GetPlayerTeam(player whichPlayer)returns integer
GetPlayerStartLocation(player whichPlayer)returns integer
GetPlayerColor(player whichPlayer)returns playercolor
GetPlayerSelectable(player whichPlayer)returns boolean
GetPlayerController(player whichPlayer)returns mapcontrol
GetPlayerSlotState(player whichPlayer)returns playerslotstate
GetPlayerTaxRate(player sourcePlayer, player otherPlayer, playerstate whichResource)returns integer
IsPlayerRacePrefSet(player whichPlayer, racepreference pref)returns boolean
GetPlayerName(player whichPlayer)returns string
CreateTimer(nothing)returns timer
DestroyTimer(timer whichTimer)
TimerStart(timer whichTimer, real timeout, boolean periodic, code handlerFunc)
TimerGetElapsed(timer whichTimer)returns real
TimerGetRemaining(timer whichTimer)returns real
TimerGetTimeout(timer whichTimer)returns real
PauseTimer(timer whichTimer)
ResumeTimer(timer whichTimer)
GetExpiredTimer(nothing)returns timer
CreateGroup(nothing)returns group
DestroyGroup(group whichGroup)
GroupAddUnit(group whichGroup, unit whichUnit)
GroupRemoveUnit(group whichGroup, unit whichUnit)
GroupClear(group whichGroup)
GroupEnumUnitsOfType(group whichGroup, string unitname, boolexpr filter)
GroupEnumUnitsOfPlayer(group whichGroup, player whichPlayer, boolexpr filter)
GroupEnumUnitsOfTypeCounted(group whichGroup, string unitname, boolexpr filter, integer countLimit)
GroupEnumUnitsInRect(group whichGroup, rect r, boolexpr filter)
GroupEnumUnitsInRectCounted(group whichGroup, rect r, boolexpr filter, integer countLimit)
GroupEnumUnitsInRange(group whichGroup, real x, real y, real radius, boolexpr filter)
GroupEnumUnitsInRangeOfLoc(group whichGroup, location whichLocation, real radius, boolexpr filter)
GroupEnumUnitsInRangeCounted(group whichGroup, real x, real y, real radius, boolexpr filter, integer countLimit)
GroupEnumUnitsInRangeOfLocCounted(group whichGroup, location whichLocation, real radius, boolexpr filter, integer countLimit)
GroupEnumUnitsSelected(group whichGroup, player whichPlayer, boolexpr filter)
GroupImmediateOrder(group whichGroup, string order)returns boolean
GroupImmediateOrderById(group whichGroup, integer order)returns boolean
GroupPointOrder(group whichGroup, string order, real x, real y)returns boolean
GroupPointOrderLoc(group whichGroup, string order, location whichLocation)returns boolean
GroupPointOrderById(group whichGroup, integer order, real x, real y)returns boolean
GroupPointOrderByIdLoc(group whichGroup, integer order, location whichLocation)returns boolean
GroupTargetOrder(group whichGroup, string order, widget targetWidget)returns boolean
GroupTargetOrderById(group whichGroup, integer order, widget targetWidget)returns boolean
ForGroup(group whichGroup, code callback)
FirstOfGroup(group whichGroup)returns unit
CreateForce(nothing)returns force
DestroyForce(force whichForce)
ForceAddPlayer(force whichForce, player whichPlayer)
ForceRemovePlayer(force whichForce, player whichPlayer)
ForceClear(force whichForce)
ForceEnumPlayers(force whichForce, boolexpr filter)
ForceEnumPlayersCounted(force whichForce, boolexpr filter, integer countLimit)
ForceEnumAllies(force whichForce, player whichPlayer, boolexpr filter)
ForceEnumEnemies(force whichForce, player whichPlayer, boolexpr filter)
ForForce(force whichForce, code callback)
Rect(real minx, real miny, real maxx, real maxy)returns rect
RectFromLoc(location min, location max)returns rect
RemoveRect(rect whichRect)
SetRect(rect whichRect, real minx, real miny, real maxx, real maxy)
SetRectFromLoc(rect whichRect, location min, location max)
MoveRectTo(rect whichRect, real newCenterX, real newCenterY)
MoveRectToLoc(rect whichRect, location newCenterLoc)
GetRectCenterX(rect whichRect)returns real
GetRectCenterY(rect whichRect)returns real
GetRectMinX(rect whichRect)returns real
GetRectMinY(rect whichRect)returns real
GetRectMaxX(rect whichRect)returns real
GetRectMaxY(rect whichRect)returns real
CreateRegion(nothing)returns region
RemoveRegion(region whichRegion)
RegionAddRect(region whichRegion, rect r)
RegionClearRect(region whichRegion, rect r)
RegionAddCell(region whichRegion, real x, real y)
RegionAddCellAtLoc(region whichRegion, location whichLocation)
RegionClearCell(region whichRegion, real x, real y)
RegionClearCellAtLoc(region whichRegion, location whichLocation)
Location(real x, real y)returns location
RemoveLocation(location whichLocation)
MoveLocation(location whichLocation, real newX, real newY)
GetLocationX(location whichLocation)returns real
GetLocationY(location whichLocation)returns real
GetLocationZ(location whichLocation)returns real
IsUnitInRegion(region whichRegion, unit whichUnit)returns boolean
IsPointInRegion(region whichRegion, real x, real y)returns boolean
IsLocationInRegion(region whichRegion, location whichLocation)returns boolean
GetWorldBounds(nothing)returns rect
CreateTrigger(nothing)returns trigger
DestroyTrigger(trigger whichTrigger)
ResetTrigger(trigger whichTrigger)
EnableTrigger(trigger whichTrigger)
DisableTrigger(trigger whichTrigger)
IsTriggerEnabled(trigger whichTrigger)returns boolean
TriggerWaitOnSleeps(trigger whichTrigger, boolean flag)
IsTriggerWaitOnSleeps(trigger whichTrigger)returns boolean
GetFilterUnit(nothing)returns unit
GetEnumUnit(nothing)returns unit
GetFilterDestructable(nothing)returns destructable
GetEnumDestructable(nothing)returns destructable
GetFilterItem(nothing)returns item
GetEnumItem(nothing)returns item
GetFilterPlayer(nothing)returns player
GetEnumPlayer(nothing)returns player
GetTriggeringTrigger(nothing)returns trigger
GetTriggerEventId(nothing)returns eventid
GetTriggerEvalCount(trigger whichTrigger)returns integer
GetTriggerExecCount(trigger whichTrigger)returns integer
ExecuteFunc(string funcName)
And(boolexpr operandA, boolexpr operandB)returns boolexpr
Or(boolexpr operandA, boolexpr operandB)returns boolexpr
Not(boolexpr operand)returns boolexpr
Condition(code func)returns conditionfunc
DestroyCondition(conditionfunc c)
Filter(code func)returns filterfunc
DestroyFilter(filterfunc f)
DestroyBoolExpr(boolexpr e)
TriggerRegisterVariableEvent(trigger whichTrigger, string varName, limitop opcode, real limitval)returns event
TriggerRegisterTimerEvent(trigger whichTrigger, real timeout, boolean periodic)returns event
TriggerRegisterTimerExpireEvent(trigger whichTrigger, timer t)returns event
TriggerRegisterGameStateEvent(trigger whichTrigger, gamestate whichState, limitop opcode, real limitval)returns event
TriggerRegisterDialogEvent(trigger whichTrigger, dialog whichDialog)returns event
TriggerRegisterDialogButtonEvent(trigger whichTrigger, button whichButton)returns event
GetEventGameState(nothing)returns gamestate
TriggerRegisterGameEvent(trigger whichTrigger, gameevent whichGameEvent)returns event
GetWinningPlayer(nothing)returns player
TriggerRegisterEnterRegion(trigger whichTrigger, region whichRegion, boolexpr filter)returns event
GetTriggeringRegion(nothing)returns region
GetEnteringUnit(nothing)returns unit
TriggerRegisterLeaveRegion(trigger whichTrigger, region whichRegion, boolexpr filter)returns event
GetLeavingUnit(nothing)returns unit
TriggerRegisterTrackableHitEvent(trigger whichTrigger, trackable t)returns event
TriggerRegisterTrackableTrackEvent(trigger whichTrigger, trackable t)returns event
GetTriggeringTrackable(nothing)returns trackable
GetClickedButton(nothing)returns button
GetClickedDialog(nothing)returns dialog
GetTournamentFinishSoonTimeRemaining(nothing)returns real
GetTournamentFinishNowRule(nothing)returns integer
GetTournamentFinishNowPlayer(nothing)returns player
GetTournamentScore(player whichPlayer)returns integer
GetSaveBasicFilename(nothing)returns string
TriggerRegisterPlayerEvent(trigger whichTrigger, player whichPlayer, playerevent whichPlayerEvent)returns event
GetTriggerPlayer(nothing)returns player
TriggerRegisterPlayerUnitEvent(trigger whichTrigger, player whichPlayer, playerunitevent whichPlayerUnitEvent, boolexpr filter)returns event
GetLevelingUnit(nothing)returns unit
GetLearningUnit(nothing)returns unit
GetLearnedSkill(nothing)returns integer
GetLearnedSkillLevel(nothing)returns integer
GetRevivableUnit(nothing)returns unit
GetRevivingUnit(nothing)returns unit
GetAttacker(nothing)returns unit
GetRescuer(nothing)returns unit
GetDyingUnit(nothing)returns unit
GetKillingUnit(nothing)returns unit
GetDecayingUnit(nothing)returns unit
GetConstructingStructure(nothing)returns unit
GetCancelledStructure(nothing)returns unit
GetConstructedStructure(nothing)returns unit
GetResearchingUnit(nothing)returns unit
GetResearched(nothing)returns integer
GetTrainedUnitType(nothing)returns integer
GetTrainedUnit(nothing)returns unit
GetDetectedUnit(nothing)returns unit
GetSummoningUnit(nothing)returns unit
GetSummonedUnit(nothing)returns unit
GetTransportUnit(nothing)returns unit
GetLoadedUnit(nothing)returns unit
GetSellingUnit(nothing)returns unit
GetSoldUnit(nothing)returns unit
GetBuyingUnit(nothing)returns unit
GetSoldItem(nothing)returns item
GetChangingUnit(nothing)returns unit
GetChangingUnitPrevOwner(nothing)returns player
GetManipulatingUnit(nothing)returns unit
GetManipulatedItem(nothing)returns item
GetOrderedUnit(nothing)returns unit
GetIssuedOrderId(nothing)returns integer
GetOrderPointX(nothing)returns real
GetOrderPointY(nothing)returns real
GetOrderPointLoc(nothing)returns location
GetOrderTarget(nothing)returns widget
GetOrderTargetDestructable(nothing)returns destructable
GetOrderTargetItem(nothing)returns item
GetOrderTargetUnit(nothing)returns unit
GetSpellAbilityUnit(nothing)returns unit
GetSpellAbilityId(nothing)returns integer
GetSpellAbility(nothing)returns ability
GetSpellTargetLoc(nothing)returns location
GetSpellTargetX	takesreturns real
GetSpellTargetY	takesreturns real
GetSpellTargetDestructable(nothing)returns destructable
GetSpellTargetItem(nothing)returns item
GetSpellTargetUnit(nothing)returns unit
TriggerRegisterPlayerAllianceChange(trigger whichTrigger, player whichPlayer, alliancetype whichAlliance)returns event
TriggerRegisterPlayerStateEvent(trigger whichTrigger, player whichPlayer, playerstate whichState, limitop opcode, real limitval)returns event
GetEventPlayerState(nothing)returns playerstate
TriggerRegisterPlayerChatEvent(trigger whichTrigger, player whichPlayer, string chatMessageToDetect, boolean exactMatchOnly)returns event
GetEventPlayerChatString(nothing)returns string
GetEventPlayerChatStringMatched(nothing)returns string
TriggerRegisterDeathEvent(trigger whichTrigger, widget whichWidget)returns event
GetTriggerUnit(nothing)returns unit
TriggerRegisterUnitStateEvent(trigger whichTrigger, unit whichUnit, unitstate whichState, limitop opcode, real limitval)returns event
GetEventUnitState(nothing)returns unitstate
TriggerRegisterUnitEvent(trigger whichTrigger, unit whichUnit, unitevent whichEvent)returns event
GetEventDamage(nothing)returns real
GetEventDamageSource(nothing)returns unit
GetEventDetectingPlayer(nothing)returns player
TriggerRegisterFilterUnitEvent(trigger whichTrigger, unit whichUnit, unitevent whichEvent, boolexpr filter)returns event
GetEventTargetUnit(nothing)returns unit
TriggerRegisterUnitInRange(trigger whichTrigger, unit whichUnit, real range, boolexpr filter)returns event
TriggerAddCondition(trigger whichTrigger, boolexpr condition)returns triggercondition
TriggerRemoveCondition(trigger whichTrigger, triggercondition whichCondition)
TriggerClearConditions(trigger whichTrigger)
TriggerAddAction(trigger whichTrigger, code actionFunc)returns triggeraction
TriggerRemoveAction(trigger whichTrigger, triggeraction whichAction)
TriggerClearActions(trigger whichTrigger)
TriggerSleepAction(real timeout)
TriggerWaitForSound(sound s, real offset)
TriggerEvaluate(trigger whichTrigger)returns boolean
TriggerExecute(trigger whichTrigger)
TriggerExecuteWait(trigger whichTrigger)
TriggerSyncStart(nothing)
TriggerSyncReady(nothing)
GetWidgetLife(widget whichWidget)returns real
SetWidgetLife(widget whichWidget, real newLife)
GetWidgetX(widget whichWidget)returns real
GetWidgetY(widget whichWidget)returns real
GetTriggerWidget(nothing)returns widget
CreateDestructable(integer objectid, real x, real y, real face, real scale, integer variation)returns destructable
CreateDestructableZ(integer objectid, real x, real y, real z, real face, real scale, integer variation)returns destructable
CreateDeadDestructable(integer objectid, real x, real y, real face, real scale, integer variation)returns destructable
CreateDeadDestructableZ(integer objectid, real x, real y, real z, real face, real scale, integer variation)returns destructable
RemoveDestructable(destructable d)
KillDestructable(destructable d)
SetDestructableInvulnerable(destructable d, boolean flag)
IsDestructableInvulnerable(destructable d)returns boolean
EnumDestructablesInRect(rect r, boolexpr filter, code actionFunc)
GetDestructableTypeId(destructable d)returns integer
GetDestructableX(destructable d)returns real
GetDestructableY(destructable d)returns real
SetDestructableLife(destructable d, real life)
GetDestructableLife(destructable d)returns real
SetDestructableMaxLife(destructable d, real max)
GetDestructableMaxLife(destructable d)returns real
DestructableRestoreLife(destructable d, real life, boolean birth)
QueueDestructableAnimation(destructable d, string whichAnimation)
SetDestructableAnimation(destructable d, string whichAnimation)
SetDestructableAnimationSpeed(destructable d, real speedFactor)
ShowDestructable(destructable d, boolean flag)
GetDestructableOccluderHeight(destructable d)returns real
SetDestructableOccluderHeight(destructable d, real height)
GetDestructableName(destructable d)returns string
GetTriggerDestructable(nothing)returns destructable
CreateItem(integer itemid, real x, real y)returns item
RemoveItem(item whichItem)
GetItemPlayer(item whichItem)returns player
GetItemTypeId(item i)returns integer
GetItemX(item i)returns real
GetItemY(item i)returns real
SetItemPosition(item i, real x, real y)
SetItemDropOnDeath(item whichItem, boolean flag)
SetItemDroppable(item i, boolean flag)
SetItemPawnable(item i, boolean flag)
SetItemPlayer(item whichItem, player whichPlayer, boolean changeColor)
SetItemInvulnerable(item whichItem, boolean flag)
IsItemInvulnerable(item whichItem)returns boolean
SetItemVisible(item whichItem, boolean show)
IsItemVisible(item whichItem)returns boolean
IsItemOwned(item whichItem)returns boolean
IsItemPowerup(item whichItem)returns boolean
IsItemSellable(item whichItem)returns boolean
IsItemPawnable(item whichItem)returns boolean
IsItemIdPowerup(integer itemId)returns boolean
IsItemIdSellable(integer itemId)returns boolean
IsItemIdPawnable(integer itemId)returns boolean
EnumItemsInRect(rect r, boolexpr filter, code actionFunc)
GetItemLevel(item whichItem)returns integer
GetItemType(item whichItem)returns itemtype
SetItemDropID(item whichItem, integer unitId)
GetItemName(item whichItem)returns string
GetItemCharges(item whichItem)returns integer
SetItemCharges(item whichItem, integer charges)
GetItemUserData(item whichItem)returns integer
SetItemUserData(item whichItem, integer data)
CreateUnit(player id, integer unitid, real x, real y, real face)returns unit
CreateUnitByName(player whichPlayer, string unitname, real x, real y, real face)returns unit
CreateUnitAtLoc(player id, integer unitid, location whichLocation, real face)returns unit
CreateUnitAtLocByName(player id, string unitname, location whichLocation, real face)returns unit
CreateCorpse(player whichPlayer, integer unitid, real x, real y, real face)returns unit
KillUnit(unit whichUnit)
RemoveUnit(unit whichUnit)
ShowUnit(unit whichUnit, boolean show)
SetUnitState(unit whichUnit, unitstate whichUnitState, real newVal)
SetUnitX(unit whichUnit, real newX)
SetUnitY(unit whichUnit, real newY)
SetUnitPosition(unit whichUnit, real newX, real newY)
SetUnitPositionLoc(unit whichUnit, location whichLocation)
SetUnitFacing(unit whichUnit, real facingAngle)
SetUnitFacingTimed(unit whichUnit, real facingAngle, real duration)
SetUnitMoveSpeed(unit whichUnit, real newSpeed)
SetUnitFlyHeight(unit whichUnit, real newHeight, real rate)
SetUnitTurnSpeed(unit whichUnit, real newTurnSpeed)
SetUnitPropWindow(unit whichUnit, real newPropWindowAngle)
SetUnitAcquireRange(unit whichUnit, real newAcquireRange)
SetUnitCreepGuard(unit whichUnit, boolean creepGuard)
GetUnitAcquireRange(unit whichUnit)returns real
GetUnitTurnSpeed(unit whichUnit)returns real
GetUnitPropWindow(unit whichUnit)returns real
GetUnitFlyHeight(unit whichUnit)returns real
GetUnitDefaultAcquireRange(unit whichUnit)returns real
GetUnitDefaultTurnSpeed(unit whichUnit)returns real
GetUnitDefaultPropWindow(unit whichUnit)returns real
GetUnitDefaultFlyHeight(unit whichUnit)returns real
SetUnitOwner(unit whichUnit, player whichPlayer, boolean changeColor)
SetUnitColor(unit whichUnit, playercolor whichColor)
SetUnitScale(unit whichUnit, real scaleX, real scaleY, real scaleZ)
SetUnitTimeScale(unit whichUnit, real timeScale)
SetUnitBlendTime(unit whichUnit, real blendTime)
SetUnitVertexColor(unit whichUnit, integer red, integer green, integer blue, integer alpha)
QueueUnitAnimation(unit whichUnit, string whichAnimation)
SetUnitAnimation(unit whichUnit, string whichAnimation)
SetUnitAnimationByIndex(unit whichUnit, integer whichAnimation)
SetUnitAnimationWithRarity(unit whichUnit, string whichAnimation, raritycontrol rarity)
AddUnitAnimationProperties(unit whichUnit, string animProperties, boolean add)
SetUnitLookAt(unit whichUnit, string whichBone, unit lookAtTarget, real offsetX, real offsetY, real offsetZ)
ResetUnitLookAt(unit whichUnit)
SetUnitRescuable(unit whichUnit, player byWhichPlayer, boolean flag)
SetUnitRescueRange(unit whichUnit, real range)
SetHeroStr(unit whichHero, integer newStr, boolean permanent)
SetHeroAgi(unit whichHero, integer newAgi, boolean permanent)
SetHeroInt(unit whichHero, integer newInt, boolean permanent)
GetHeroStr(unit whichHero, boolean includeBonuses)returns integer
GetHeroAgi(unit whichHero, boolean includeBonuses)returns integer
GetHeroInt(unit whichHero, boolean includeBonuses)returns integer
UnitStripHeroLevel(unit whichHero, integer howManyLevels)returns boolean
GetHeroXP(unit whichHero)returns integer
SetHeroXP(unit whichHero, integer newXpVal, boolean showEyeCandy)
GetHeroSkillPoints(unit whichHero)returns integer
UnitModifySkillPoints(unit whichHero, integer skillPointDelta)returns boolean
AddHeroXP(unit whichHero, integer xpToAdd, boolean showEyeCandy)
SetHeroLevel(unit whichHero, integer level, boolean showEyeCandy)
GetHeroLevel(unit whichHero)returns integer
GetUnitLevel(unit whichUnit)returns integer
GetHeroProperName(unit whichHero)returns string
SuspendHeroXP(unit whichHero, boolean flag)
IsSuspendedXP(unit whichHero)returns boolean
SelectHeroSkill(unit whichHero, integer abilcode)
GetUnitAbilityLevel(unit whichUnit, integer abilcode)returns integer
DecUnitAbilityLevel(unit whichUnit, integer abilcode)returns integer
IncUnitAbilityLevel(unit whichUnit, integer abilcode)returns integer
SetUnitAbilityLevel(unit whichUnit, integer abilcode, integer level)returns integer
ReviveHero(unit whichHero, real x, real y, boolean doEyecandy)returns boolean
ReviveHeroLoc(unit whichHero, location loc, boolean doEyecandy)returns boolean
SetUnitExploded(unit whichUnit, boolean exploded)
SetUnitInvulnerable(unit whichUnit, boolean flag)
PauseUnit(unit whichUnit, boolean flag)
IsUnitPaused(unit whichHero)returns boolean
SetUnitPathing(unit whichUnit, boolean flag)
ClearSelection(nothing)
SelectUnit(unit whichUnit, boolean flag)
GetUnitPointValue(unit whichUnit)returns integer
GetUnitPointValueByType(integer unitType)returns integer
UnitAddItem(unit whichUnit, item whichItem)returns boolean
UnitAddItemById(unit whichUnit, integer itemId)returns item
UnitAddItemToSlotById(unit whichUnit, integer itemId, integer itemSlot)returns boolean
UnitRemoveItem(unit whichUnit, item whichItem)
UnitRemoveItemFromSlot(unit whichUnit, integer itemSlot)returns item
UnitHasItem(unit whichUnit, item whichItem)returns boolean
UnitItemInSlot(unit whichUnit, integer itemSlot)returns item
UnitInventorySize(unit whichUnit)returns integer
UnitDropItemPoint(unit whichUnit, item whichItem, real x, real y)returns boolean
UnitDropItemSlot(unit whichUnit, item whichItem, integer slot)returns boolean
UnitDropItemTarget(unit whichUnit, item whichItem, widget target)returns boolean
UnitUseItem(unit whichUnit, item whichItem)returns boolean
UnitUseItemPoint(unit whichUnit, item whichItem, real x, real y)returns boolean
UnitUseItemTarget(unit whichUnit, item whichItem, widget target)returns boolean
GetUnitX(unit whichUnit)returns real
GetUnitY(unit whichUnit)returns real
GetUnitLoc(unit whichUnit)returns location
GetUnitFacing(unit whichUnit)returns real
GetUnitMoveSpeed(unit whichUnit)returns real
GetUnitDefaultMoveSpeed(unit whichUnit)returns real
GetUnitState(unit whichUnit, unitstate whichUnitState)returns real
GetOwningPlayer(unit whichUnit)returns player
GetUnitTypeId(unit whichUnit)returns integer
GetUnitRace(unit whichUnit)returns race
GetUnitName(unit whichUnit)returns string
GetUnitFoodUsed(unit whichUnit)returns integer
GetUnitFoodMade(unit whichUnit)returns integer
GetFoodMade(integer unitId)returns integer
GetFoodUsed(integer unitId)returns integer
SetUnitUseFood(unit whichUnit, boolean useFood)
GetUnitRallyPoint(unit whichUnit)returns location
GetUnitRallyUnit(unit whichUnit)returns unit
GetUnitRallyDestructable(unit whichUnit)returns destructable
IsUnitInGroup(unit whichUnit, group whichGroup)returns boolean
IsUnitInForce(unit whichUnit, force whichForce)returns boolean
IsUnitOwnedByPlayer(unit whichUnit, player whichPlayer)returns boolean
IsUnitAlly(unit whichUnit, player whichPlayer)returns boolean
IsUnitEnemy(unit whichUnit, player whichPlayer)returns boolean
IsUnitVisible(unit whichUnit, player whichPlayer)returns boolean
IsUnitDetected(unit whichUnit, player whichPlayer)returns boolean
IsUnitInvisible(unit whichUnit, player whichPlayer)returns boolean
IsUnitFogged(unit whichUnit, player whichPlayer)returns boolean
IsUnitMasked(unit whichUnit, player whichPlayer)returns boolean
IsUnitSelected(unit whichUnit, player whichPlayer)returns boolean
IsUnitRace(unit whichUnit, race whichRace)returns boolean
IsUnitType(unit whichUnit, unittype whichUnitType)returns boolean
IsUnit(unit whichUnit, unit whichSpecifiedUnit)returns boolean
IsUnitInRange(unit whichUnit, unit otherUnit, real distance)returns boolean
IsUnitInRangeXY(unit whichUnit, real x, real y, real distance)returns boolean
IsUnitInRangeLoc(unit whichUnit, location whichLocation, real distance)returns boolean
IsUnitHidden(unit whichUnit)returns boolean
IsUnitIllusion(unit whichUnit)returns boolean
IsUnitInTransport(unit whichUnit, unit whichTransport)returns boolean
IsUnitLoaded(unit whichUnit)returns boolean
IsHeroUnitId(integer unitId)returns boolean
IsUnitIdType(integer unitId, unittype whichUnitType)returns boolean
UnitShareVision(unit whichUnit, player whichPlayer, boolean share)
UnitSuspendDecay(unit whichUnit, boolean suspend)
UnitAddType(unit whichUnit, unittype whichUnitType)returns boolean
UnitRemoveType(unit whichUnit, unittype whichUnitType)returns boolean
UnitAddAbility(unit whichUnit, integer abilityId)returns boolean
UnitRemoveAbility(unit whichUnit, integer abilityId)returns boolean
UnitMakeAbilityPermanent(unit whichUnit, boolean permanent, integer abilityId)returns boolean
UnitRemoveBuffs(unit whichUnit, boolean removePositive, boolean removeNegative)
UnitRemoveBuffsEx(unit whichUnit, boolean removePositive, boolean removeNegative, boolean magic, boolean physical, boolean timedLife, boolean aura, boolean autoDispel)
UnitHasBuffsEx(unit whichUnit, boolean removePositive, boolean removeNegative, boolean magic, boolean physical, boolean timedLife, boolean aura, boolean autoDispel)returns boolean
UnitCountBuffsEx(unit whichUnit, boolean removePositive, boolean removeNegative, boolean magic, boolean physical, boolean timedLife, boolean aura, boolean autoDispel)returns integer
UnitAddSleep(unit whichUnit, boolean add)
UnitCanSleep(unit whichUnit)returns boolean
UnitAddSleepPerm(unit whichUnit, boolean add)
UnitCanSleepPerm(unit whichUnit)returns boolean
UnitIsSleeping(unit whichUnit)returns boolean
UnitWakeUp(unit whichUnit)
UnitApplyTimedLife(unit whichUnit, integer buffId, real duration)
UnitIgnoreAlarm(unit whichUnit, boolean flag)returns boolean
UnitIgnoreAlarmToggled(unit whichUnit)returns boolean
UnitResetCooldown(unit whichUnit)
UnitSetConstructionProgress(unit whichUnit, integer constructionPercentage)
UnitSetUpgradeProgress(unit whichUnit, integer upgradePercentage)
UnitPauseTimedLife(unit whichUnit, boolean flag)
UnitSetUsesAltIcon(unit whichUnit, boolean flag)
UnitDamagePoint(unit whichUnit, real delay, real radius, real x, real y, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType)returns boolean
UnitDamageTarget(unit whichUnit, widget target, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType)returns boolean
IssueImmediateOrder(unit whichUnit, string order)returns boolean
IssueImmediateOrderById(unit whichUnit, integer order)returns boolean
IssuePointOrder(unit whichUnit, string order, real x, real y)returns boolean
IssuePointOrderLoc(unit whichUnit, string order, location whichLocation)returns boolean
IssuePointOrderById(unit whichUnit, integer order, real x, real y)returns boolean
IssuePointOrderByIdLoc(unit whichUnit, integer order, location whichLocation)returns boolean
IssueTargetOrder(unit whichUnit, string order, widget targetWidget)returns boolean
IssueTargetOrderById(unit whichUnit, integer order, widget targetWidget)returns boolean
IssueInstantPointOrder(unit whichUnit, string order, real x, real y, widget instantTargetWidget)returns boolean
IssueInstantPointOrderById(unit whichUnit, integer order, real x, real y, widget instantTargetWidget)returns boolean
IssueInstantTargetOrder(unit whichUnit, string order, widget targetWidget, widget instantTargetWidget)returns boolean
IssueInstantTargetOrderById(unit whichUnit, integer order, widget targetWidget, widget instantTargetWidget)returns boolean
IssueBuildOrder(unit whichPeon, string unitToBuild, real x, real y)returns boolean
IssueBuildOrderById(unit whichPeon, integer unitId, real x, real y)returns boolean
IssueNeutralImmediateOrder(player forWhichPlayer, unit neutralStructure, string unitToBuild)returns boolean
IssueNeutralImmediateOrderById(player forWhichPlayer,unit neutralStructure, integer unitId )returns boolean
IssueNeutralPointOrder(player forWhichPlayer,unit neutralStructure, string unitToBuild, real x, real y )returns boolean
IssueNeutralPointOrderById(player forWhichPlayer,unit neutralStructure, integer unitId, real x, real y )returns boolean
IssueNeutralTargetOrder(player forWhichPlayer,unit neutralStructure, string unitToBuild, widget target )returns boolean
IssueNeutralTargetOrderById(player forWhichPlayer,unit neutralStructure, integer unitId, widget target )returns boolean
GetUnitCurrentOrder(unit whichUnit)returns integer
SetResourceAmount(unit whichUnit, integer amount)
AddResourceAmount(unit whichUnit, integer amount)
GetResourceAmount(unit whichUnit)returns integer
WaygateGetDestinationX(unit waygate)returns real
WaygateGetDestinationY(unit waygate)returns real
WaygateSetDestination(unit waygate, real x, real y)
WaygateActivate(unit waygate, boolean activate)
WaygateIsActive(unit waygate)returns boolean
AddItemToAllStock(integer itemId, integer currentStock, integer stockMax)
AddItemToStock(unit whichUnit, integer itemId, integer currentStock, integer stockMax)
AddUnitToAllStock(integer unitId, integer currentStock, integer stockMax)
AddUnitToStock(unit whichUnit, integer unitId, integer currentStock, integer stockMax)
RemoveItemFromAllStock(integer itemId)
RemoveItemFromStock(unit whichUnit, integer itemId)
RemoveUnitFromAllStock(integer unitId)
RemoveUnitFromStock(unit whichUnit, integer unitId)
SetAllItemTypeSlots(integer slots)
SetAllUnitTypeSlots(integer slots)
SetItemTypeSlots(unit whichUnit, integer slots)
SetUnitTypeSlots(unit whichUnit, integer slots)
GetUnitUserData(unit whichUnit)returns integer
SetUnitUserData(unit whichUnit, integer data)
Player(integer number)returns player
GetLocalPlayer(nothing)returns player
IsPlayerAlly(player whichPlayer, player otherPlayer)returns boolean
IsPlayerEnemy(player whichPlayer, player otherPlayer)returns boolean
IsPlayerInForce(player whichPlayer, force whichForce)returns boolean
IsPlayerObserver(player whichPlayer)returns boolean
IsVisibleToPlayer(real x, real y, player whichPlayer)returns boolean
IsLocationVisibleToPlayer(location whichLocation, player whichPlayer)returns boolean
IsFoggedToPlayer(real x, real y, player whichPlayer)returns boolean
IsLocationFoggedToPlayer(location whichLocation, player whichPlayer)returns boolean
IsMaskedToPlayer(real x, real y, player whichPlayer)returns boolean
IsLocationMaskedToPlayer(location whichLocation, player whichPlayer)returns boolean
GetPlayerRace(player whichPlayer)returns race
GetPlayerId(player whichPlayer)returns integer
GetPlayerUnitCount(player whichPlayer, boolean includeIncomplete)returns integer
GetPlayerTypedUnitCount(player whichPlayer, string unitName, boolean includeIncomplete, boolean includeUpgrades)returns integer
GetPlayerStructureCount(player whichPlayer, boolean includeIncomplete)returns integer
GetPlayerState(player whichPlayer, playerstate whichPlayerState)returns integer
GetPlayerScore(player whichPlayer, playerscore whichPlayerScore)returns integer
GetPlayerAlliance(player sourcePlayer, player otherPlayer, alliancetype whichAllianceSetting)returns boolean
GetPlayerHandicap(player whichPlayer)returns real
GetPlayerHandicapXP(player whichPlayer)returns real
SetPlayerHandicap(player whichPlayer, real handicap)
SetPlayerHandicapXP(player whichPlayer, real handicap)
SetPlayerTechMaxAllowed(player whichPlayer, integer techid, integer maximum)
GetPlayerTechMaxAllowed(player whichPlayer, integer techid)returns integer
AddPlayerTechResearched(player whichPlayer, integer techid, integer levels)
SetPlayerTechResearched(player whichPlayer, integer techid, integer setToLevel)
GetPlayerTechResearched(player whichPlayer, integer techid, boolean specificonly)returns boolean
GetPlayerTechCount(player whichPlayer, integer techid, boolean specificonly)returns integer
SetPlayerUnitsOwner(player whichPlayer, integer newOwner)
CripplePlayer(player whichPlayer, force toWhichPlayers, boolean flag)
SetPlayerAbilityAvailable(player whichPlayer, integer abilid, boolean avail)
SetPlayerState(player whichPlayer, playerstate whichPlayerState, integer value)
RemovePlayer(player whichPlayer, playergameresult gameResult)
CachePlayerHeroData(player whichPlayer)
SetFogStateRect(player forWhichPlayer, fogstate whichState, rect where, boolean useSharedVision)
SetFogStateRadius(player forWhichPlayer, fogstate whichState, real centerx, real centerY, real radius, boolean useSharedVision)
SetFogStateRadiusLoc(player forWhichPlayer, fogstate whichState, location center, real radius, boolean useSharedVision)
FogMaskEnable(boolean enable)
IsFogMaskEnabled(nothing)returns boolean
FogEnable(boolean enable)
IsFogEnabled(nothing)returns boolean
CreateFogModifierRect(player forWhichPlayer, fogstate whichState, rect where, boolean useSharedVision, boolean afterUnits)returns fogmodifier
CreateFogModifierRadius(player forWhichPlayer, fogstate whichState, real centerx, real centerY, real radius, boolean useSharedVision, boolean afterUnits)returns fogmodifier
CreateFogModifierRadiusLoc(player forWhichPlayer, fogstate whichState, location center, real radius, boolean useSharedVision, boolean afterUnits)returns fogmodifier
DestroyFogModifier(fogmodifier whichFogModifier)
FogModifierStart(fogmodifier whichFogModifier)
FogModifierStop(fogmodifier whichFogModifier)
VersionGet(nothing)returns version
VersionCompatible(version whichVersion)returns boolean
VersionSupported(version whichVersion)returns boolean
EndGame(boolean doScoreScreen)
ChangeLevel(string newLevel, boolean doScoreScreen)
RestartGame(boolean doScoreScreen)
ReloadGame(nothing)
SetCampaignMenuRace(race r)
SetCampaignMenuRaceEx(integer campaignIndex)
ForceCampaignSelectScreen(nothing)
LoadGame(string saveFileName, boolean doScoreScreen)
SaveGame(string saveFileName)
RenameSaveDirectory(string sourceDirName, string destDirName)returns boolean
RemoveSaveDirectory(string sourceDirName)returns boolean
CopySaveGame(string sourceSaveName, string destSaveName)returns boolean
SaveGameExists(string saveName)returns boolean
SyncSelections(nothing)
SetFloatGameState(fgamestate whichFloatGameState, real value)
GetFloatGameState(fgamestate whichFloatGameState)returns real
SetIntegerGameState(igamestate whichIntegerGameState, integer value)
GetIntegerGameState(igamestate whichIntegerGameState)returns integer
SetTutorialCleared(boolean cleared)
SetMissionAvailable(integer campaignNumber, integer missionNumber, boolean available)
SetCampaignAvailable(integer campaignNumber, boolean available)
SetOpCinematicAvailable(integer campaignNumber, boolean available)
SetEdCinematicAvailable(integer campaignNumber, boolean available)
GetDefaultDifficulty(nothing)returns gamedifficulty
SetDefaultDifficulty(gamedifficulty g)
SetCustomCampaignButtonVisible(integer whichButton, boolean visible)
GetCustomCampaignButtonVisible(integer whichButton)returns boolean
DoNotSaveReplay(nothing)
DialogCreate(nothing)returns dialog
DialogDestroy(dialog whichDialog)
DialogClear(dialog whichDialog)
DialogSetMessage(dialog whichDialog, string messageText)
DialogAddButton(dialog whichDialog, string buttonText, integer hotkey)returns button
DialogAddQuitButton(dialog whichDialog, boolean doScoreScreen, string buttonText, integer hotkey)returns button
DialogDisplay(player whichPlayer, dialog whichDialog, boolean flag)
ReloadGameCachesFromDisk(nothing)returns boolean
InitGameCache(string campaignFile)returns gamecache
SaveGameCache(gamecache whichCache)returns boolean
StoreInteger	takes
StoreReal	takes
StoreBoolean	takes
StoreUnit	takesreturns boolean
StoreString	takesreturns boolean
SyncStoredInteger(gamecache cache, string missionKey, string key)
SyncStoredReal(gamecache cache, string missionKey, string key)
SyncStoredBoolean(gamecache cache, string missionKey, string key)
SyncStoredUnit(gamecache cache, string missionKey, string key)
SyncStoredString(gamecache cache, string missionKey, string key)
HaveStoredInteger	takesreturns boolean
HaveStoredReal	takesreturns boolean
HaveStoredBoolean	takesreturns boolean
HaveStoredUnit	takesreturns boolean
HaveStoredString	takesreturns boolean
FlushGameCache	takes
FlushStoredMission	takes
FlushStoredInteger	takes
FlushStoredReal	takes
FlushStoredBoolean	takes
FlushStoredUnit	takes
FlushStoredString	takes
GetStoredInteger	takesreturns integer
GetStoredReal	takesreturns real
GetStoredBoolean	takesreturns boolean
GetStoredString	takesreturns string
RestoreUnit	takesreturns unit
InitHashtable(nothing)returns hashtable
SaveInteger	takes
SaveReal	takes
SaveBoolean	takes
SaveStr	takesreturns boolean
SavePlayerHandle	takesreturns boolean
SaveWidgetHandle	takesreturns boolean
SaveDestructableHandle	takesreturns boolean
SaveItemHandle	takesreturns boolean
SaveUnitHandle	takesreturns boolean
SaveAbilityHandle	takesreturns boolean
SaveTimerHandle	takesreturns boolean
SaveTriggerHandle	takesreturns boolean
SaveTriggerConditionHandle	takesreturns boolean
SaveTriggerActionHandle	takesreturns boolean
SaveTriggerEventHandle	takesreturns boolean
SaveForceHandle	takesreturns boolean
SaveGroupHandle	takesreturns boolean
SaveLocationHandle	takesreturns boolean
SaveRectHandle	takesreturns boolean
SaveBooleanExprHandle	takesreturns boolean
SaveSoundHandle	takesreturns boolean
SaveEffectHandle	takesreturns boolean
SaveUnitPoolHandle	takesreturns boolean
SaveItemPoolHandle	takesreturns boolean
SaveQuestHandle	takesreturns boolean
SaveQuestItemHandle	takesreturns boolean
SaveDefeatConditionHandle	takesreturns boolean
SaveTimerDialogHandle	takesreturns boolean
SaveLeaderboardHandle	takesreturns boolean
SaveMultiboardHandle	takesreturns boolean
SaveMultiboardItemHandle	takesreturns boolean
SaveTrackableHandle	takesreturns boolean
SaveDialogHandle	takesreturns boolean
SaveButtonHandle	takesreturns boolean
SaveTextTagHandle	takesreturns boolean
SaveLightningHandle	takesreturns boolean
SaveImageHandle	takesreturns boolean
SaveUbersplatHandle	takesreturns boolean
SaveRegionHandle	takesreturns boolean
SaveFogStateHandle	takesreturns boolean
SaveFogModifierHandle	takesreturns boolean
SaveAgentHandle	takesreturns boolean
SaveHashtableHandle	takesreturns boolean
LoadInteger	takesreturns integer
LoadReal	takesreturns real
LoadBoolean	takesreturns boolean
LoadStr(hashtable table, integer parentKey, integer childKey)returns string
LoadPlayerHandle	takesreturns player
LoadWidgetHandle	takesreturns widget
LoadDestructableHandle	takesreturns destructable
LoadItemHandle	takesreturns item
LoadUnitHandle	takesreturns unit
LoadAbilityHandle	takesreturns ability
LoadTimerHandle	takesreturns timer
LoadTriggerHandle	takesreturns trigger
LoadTriggerConditionHandle	takesreturns triggercondition
LoadTriggerActionHandle	takesreturns triggeraction
LoadTriggerEventHandle	takesreturns event
LoadForceHandle	takesreturns force
LoadGroupHandle	takesreturns group
LoadLocationHandle	takesreturns location
LoadRectHandle	takesreturns rect
LoadBooleanExprHandle	takesreturns boolexpr
LoadSoundHandle	takesreturns sound
LoadEffectHandle	takesreturns effect
LoadUnitPoolHandle	takesreturns unitpool
LoadItemPoolHandle	takesreturns itempool
LoadQuestHandle	takesreturns quest
LoadQuestItemHandle	takesreturns questitem
LoadDefeatConditionHandle	takesreturns defeatcondition
LoadTimerDialogHandle	takesreturns timerdialog
LoadLeaderboardHandle	takesreturns leaderboard
LoadMultiboardHandle	takesreturns multiboard
LoadMultiboardItemHandle	takesreturns multiboarditem
LoadTrackableHandle	takesreturns trackable
LoadDialogHandle	takesreturns dialog
LoadButtonHandle	takesreturns button
LoadTextTagHandle	takesreturns texttag
LoadLightningHandle	takesreturns lightning
LoadImageHandle	takesreturns image
LoadUbersplatHandle	takesreturns ubersplat
LoadRegionHandle	takesreturns region
LoadFogStateHandle	takesreturns fogstate
LoadFogModifierHandle	takesreturns fogmodifier
LoadHashtableHandle	takesreturns hashtable
HaveSavedInteger	takesreturns boolean
HaveSavedReal	takesreturns boolean
HaveSavedBoolean	takesreturns boolean
HaveSavedString	takesreturns boolean
HaveSavedHandle(hashtable table, integer parentKey, integer childKey)returns boolean
RemoveSavedInteger	takes
RemoveSavedReal	takes
RemoveSavedBoolean	takes
RemoveSavedString	takes
RemoveSavedHandle	takes
FlushParentHashtable	takes
FlushChildHashtable	takes
GetRandomInt(integer lowBound, integer highBound)returns integer
GetRandomReal(real lowBound, real highBound)returns real
CreateUnitPool(nothing)returns unitpool
DestroyUnitPool(unitpool whichPool)
UnitPoolAddUnitType(unitpool whichPool, integer unitId, real weight)
UnitPoolRemoveUnitType(unitpool whichPool, integer unitId)
PlaceRandomUnit(unitpool whichPool, player forWhichPlayer, real x, real y, real facing)returns unit
CreateItemPool(nothing)returns itempool
DestroyItemPool(itempool whichItemPool)
ItemPoolAddItemType(itempool whichItemPool, integer itemId, real weight)
ItemPoolRemoveItemType(itempool whichItemPool, integer itemId)
PlaceRandomItem(itempool whichItemPool, real x, real y)returns item
ChooseRandomCreep(integer level)returns integer
ChooseRandomNPBuilding(nothing)returns integer
ChooseRandomItem(integer level)returns integer
ChooseRandomItemEx(itemtype whichType, integer level)returns integer
SetRandomSeed(integer seed)
SetTerrainFog(real a, real b, real c, real d, real e)
ResetTerrainFog(nothing)
SetUnitFog(real a, real b, real c, real d, real e)
SetTerrainFogEx(integer style, real zstart, real zend, real density, real red, real green, real blue)
DisplayTextToPlayer(player toPlayer, real x, real y, string message)
DisplayTimedTextToPlayer(player toPlayer, real x, real y, real duration, string message)
DisplayTimedTextFromPlayer(player toPlayer, real x, real y, real duration, string message)
ClearTextMessages(nothing)
SetDayNightModels(string terrainDNCFile, string unitDNCFile)
SetSkyModel(string skyModelFile)
EnableUserControl(boolean b)
EnableUserUI(boolean b)
SuspendTimeOfDay(boolean b)
SetTimeOfDayScale(real r)
GetTimeOfDayScale(nothing)returns real
ShowInterface(boolean flag, real fadeDuration)
PauseGame(boolean flag)
UnitAddIndicator(unit whichUnit, integer red, integer green, integer blue, integer alpha)
AddIndicator(widget whichWidget, integer red, integer green, integer blue, integer alpha)
PingMinimap(real x, real y, real duration)
PingMinimapEx(real x, real y, real duration, integer red, integer green, integer blue, boolean extraEffects)
EnableOcclusion(boolean flag)
SetIntroShotText(string introText)
SetIntroShotModel(string introModelPath)
EnableWorldFogBoundary(boolean b)
PlayModelCinematic(string modelName)
PlayCinematic(string movieName)
ForceUIKey(string key)
ForceUICancel(nothing)
DisplayLoadDialog(nothing)
SetAltMinimapIcon(string iconPath)
DisableRestartMission(boolean flag)
CreateTextTag(nothing)returns texttag
DestroyTextTag(texttag t)
SetTextTagText(texttag t, string s, real height)
SetTextTagPos(texttag t, real x, real y, real heightOffset)
SetTextTagPosUnit(texttag t, unit whichUnit, real heightOffset)
SetTextTagColor(texttag t, integer red, integer green, integer blue, integer alpha)
SetTextTagVelocity(texttag t, real xvel, real yvel)
SetTextTagVisibility(texttag t, boolean flag)
SetTextTagSuspended(texttag t, boolean flag)
SetTextTagPermanent(texttag t, boolean flag)
SetTextTagAge(texttag t, real age)
SetTextTagLifespan(texttag t, real lifespan)
SetTextTagFadepoint(texttag t, real fadepoint)
SetReservedLocalHeroButtons(integer reserved)
GetAllyColorFilterState(nothing)returns integer
SetAllyColorFilterState(integer state)
GetCreepCampFilterState(nothing)returns boolean
SetCreepCampFilterState(boolean state)
EnableMinimapFilterButtons(boolean enableAlly, boolean enableCreep)
EnableDragSelect(boolean state, boolean ui)
EnablePreSelect(boolean state, boolean ui)
EnableSelect(boolean state, boolean ui)
CreateTrackable(string trackableModelPath, real x, real y, real facing)returns trackable
CreateQuest(nothing)returns quest
DestroyQuest(quest whichQuest)
QuestSetTitle(quest whichQuest, string title)
QuestSetDescription(quest whichQuest, string description)
QuestSetIconPath(quest whichQuest, string iconPath)
QuestSetRequired(quest whichQuest, boolean required)
QuestSetCompleted(quest whichQuest, boolean completed)
QuestSetDiscovered(quest whichQuest, boolean discovered)
QuestSetFailed(quest whichQuest, boolean failed)
QuestSetEnabled(quest whichQuest, boolean enabled)
IsQuestRequired(quest whichQuest)returns boolean
IsQuestCompleted(quest whichQuest)returns boolean
IsQuestDiscovered(quest whichQuest)returns boolean
IsQuestFailed(quest whichQuest)returns boolean
IsQuestEnabled(quest whichQuest)returns boolean
QuestCreateItem(quest whichQuest)returns questitem
QuestItemSetDescription(questitem whichQuestItem, string description)
QuestItemSetCompleted(questitem whichQuestItem, boolean completed)
IsQuestItemCompleted(questitem whichQuestItem)returns boolean
CreateDefeatCondition(nothing)returns defeatcondition
DestroyDefeatCondition(defeatcondition whichCondition)
DefeatConditionSetDescription(defeatcondition whichCondition, string description)
FlashQuestDialogButton(nothing)
ForceQuestDialogUpdate(nothing)
CreateTimerDialog(timer t)returns timerdialog
DestroyTimerDialog(timerdialog whichDialog)
TimerDialogSetTitle(timerdialog whichDialog, string title)
TimerDialogSetTitleColor(timerdialog whichDialog, integer red, integer green, integer blue, integer alpha)
TimerDialogSetTimeColor(timerdialog whichDialog, integer red, integer green, integer blue, integer alpha)
TimerDialogSetSpeed(timerdialog whichDialog, real speedMultFactor)
TimerDialogDisplay(timerdialog whichDialog, boolean display)
IsTimerDialogDisplayed(timerdialog whichDialog)returns boolean
TimerDialogSetRealTimeRemaining(timerdialog whichDialog, real timeRemaining)
CreateLeaderboard(nothing)returns leaderboard
DestroyLeaderboard(leaderboard lb)
LeaderboardDisplay(leaderboard lb, boolean show)
IsLeaderboardDisplayed(leaderboard lb)returns boolean
LeaderboardGetItemCount(leaderboard lb)returns integer
LeaderboardSetSizeByItemCount(leaderboard lb, integer count)
LeaderboardAddItem(leaderboard lb, string label, integer value, player p)
LeaderboardRemoveItem(leaderboard lb, integer index)
LeaderboardRemovePlayerItem(leaderboard lb, player p)
LeaderboardClear(leaderboard lb)
LeaderboardSortItemsByValue(leaderboard lb, boolean ascending)
LeaderboardSortItemsByPlayer(leaderboard lb, boolean ascending)
LeaderboardSortItemsByLabel(leaderboard lb, boolean ascending)
LeaderboardHasPlayerItem(leaderboard lb, player p)returns boolean
LeaderboardGetPlayerIndex(leaderboard lb, player p)returns integer
LeaderboardSetLabel(leaderboard lb, string label)
LeaderboardGetLabelText(leaderboard lb)returns string
PlayerSetLeaderboard(player toPlayer, leaderboard lb)
PlayerGetLeaderboard(player toPlayer)returns leaderboard
LeaderboardSetLabelColor(leaderboard lb, integer red, integer green, integer blue, integer alpha)
LeaderboardSetValueColor(leaderboard lb, integer red, integer green, integer blue, integer alpha)
LeaderboardSetStyle(leaderboard lb, boolean showLabel, boolean showNames, boolean showValues, boolean showIcons)
LeaderboardSetItemValue(leaderboard lb, integer whichItem, integer val)
LeaderboardSetItemLabel(leaderboard lb, integer whichItem, string val)
LeaderboardSetItemStyle(leaderboard lb, integer whichItem, boolean showLabel, boolean showValue, boolean showIcon)
LeaderboardSetItemLabelColor(leaderboard lb, integer whichItem, integer red, integer green, integer blue, integer alpha)
LeaderboardSetItemValueColor(leaderboard lb, integer whichItem, integer red, integer green, integer blue, integer alpha)
CreateMultiboard(nothing)returns multiboard
DestroyMultiboard(multiboard lb)
MultiboardDisplay(multiboard lb, boolean show)
IsMultiboardDisplayed(multiboard lb)returns boolean
MultiboardMinimize(multiboard lb, boolean minimize)
IsMultiboardMinimized(multiboard lb)returns boolean
MultiboardClear(multiboard lb)
MultiboardSetTitleText(multiboard lb, string label)
MultiboardGetTitleText(multiboard lb)returns string
MultiboardSetTitleTextColor(multiboard lb, integer red, integer green, integer blue, integer alpha)
MultiboardGetRowCount(multiboard lb)returns integer
MultiboardGetColumnCount(multiboard lb)returns integer
MultiboardSetColumnCount(multiboard lb, integer count)
MultiboardSetRowCount(multiboard lb, integer count)
MultiboardSetItemsStyle(multiboard lb, boolean showValues, boolean showIcons)
MultiboardSetItemsValue(multiboard lb, string value)
MultiboardSetItemsValueColor(multiboard lb, integer red, integer green, integer blue, integer alpha)
MultiboardSetItemsWidth(multiboard lb, real width)
MultiboardSetItemsIcon(multiboard lb, string iconPath)
MultiboardGetItem(multiboard lb, integer row, integer column)returns multiboarditem
MultiboardReleaseItem(multiboarditem mbi)
MultiboardSetItemStyle(multiboarditem mbi, boolean showValue, boolean showIcon)
MultiboardSetItemValue(multiboarditem mbi, string val)
MultiboardSetItemValueColor(multiboarditem mbi, integer red, integer green, integer blue, integer alpha)
MultiboardSetItemWidth(multiboarditem mbi, real width)
MultiboardSetItemIcon(multiboarditem mbi, string iconFileName)
MultiboardSuppressDisplay(boolean flag)
SetCameraPosition(real x, real y)
SetCameraQuickPosition(real x, real y)
SetCameraBounds(real x1, real y1, real x2, real y2, real x3, real y3, real x4, real y4)
StopCamera(nothing)
ResetToGameCamera(real duration)
PanCameraTo(real x, real y)
PanCameraToTimed(real x, real y, real duration)
PanCameraToWithZ(real x, real y, real zOffsetDest)
PanCameraToTimedWithZ(real x, real y, real zOffsetDest, real duration)
SetCinematicCamera(string cameraModelFile)
SetCameraRotateMode(real x, real y, real radiansToSweep, real duration)
SetCameraField(camerafield whichField, real value, real duration)
AdjustCameraField(camerafield whichField, real offset, real duration)
SetCameraTargetController(unit whichUnit, real xoffset, real yoffset, boolean inheritOrientation)
SetCameraOrientController(unit whichUnit, real xoffset, real yoffset)
CreateCameraSetup(nothing)returns camerasetup
CameraSetupSetField(camerasetup whichSetup, camerafield whichField, real value, real duration)
CameraSetupGetField(camerasetup whichSetup, camerafield whichField)returns real
CameraSetupSetDestPosition(camerasetup whichSetup, real x, real y, real duration)
CameraSetupGetDestPositionLoc(camerasetup whichSetup)returns location
CameraSetupGetDestPositionX(camerasetup whichSetup)returns real
CameraSetupGetDestPositionY(camerasetup whichSetup)returns real
CameraSetupApply(camerasetup whichSetup, boolean doPan, boolean panTimed)
CameraSetupApplyWithZ(camerasetup whichSetup, real zDestOffset)
CameraSetupApplyForceDuration(camerasetup whichSetup, boolean doPan, real forceDuration)
CameraSetupApplyForceDurationWithZ(camerasetup whichSetup, real zDestOffset, real forceDuration)
CameraSetTargetNoise(real mag, real velocity)
CameraSetSourceNoise(real mag, real velocity)
CameraSetTargetNoiseEx(real mag, real velocity, boolean vertOnly)
CameraSetSourceNoiseEx(real mag, real velocity, boolean vertOnly)
CameraSetSmoothingFactor(real factor)
SetCineFilterTexture(string filename)
SetCineFilterBlendMode(blendmode whichMode)
SetCineFilterTexMapFlags(texmapflags whichFlags)
SetCineFilterStartUV(real minu, real minv, real maxu, real maxv)
SetCineFilterEndUV(real minu, real minv, real maxu, real maxv)
SetCineFilterStartColor(integer red, integer green, integer blue, integer alpha)
SetCineFilterEndColor(integer red, integer green, integer blue, integer alpha)
SetCineFilterDuration(real duration)
DisplayCineFilter(boolean flag)
IsCineFilterDisplayed(nothing)returns boolean
SetCinematicScene(integer portraitUnitId, playercolor color, string speakerTitle, string text, real sceneDuration, real voiceoverDuration)
EndCinematicScene(nothing)
ForceCinematicSubtitles(boolean flag)
GetCameraMargin(integer whichMargin)returns real
GetCameraBoundMinX(nothing)returns real
GetCameraBoundMinY(nothing)returns real
GetCameraBoundMaxX(nothing)returns real
GetCameraBoundMaxY(nothing)returns real
GetCameraField(camerafield whichField)returns real
GetCameraTargetPositionX(nothing)returns real
GetCameraTargetPositionY(nothing)returns real
GetCameraTargetPositionZ(nothing)returns real
GetCameraTargetPositionLoc(nothing)returns location
GetCameraEyePositionX(nothing)returns real
GetCameraEyePositionY(nothing)returns real
GetCameraEyePositionZ(nothing)returns real
GetCameraEyePositionLoc(nothing)returns location
NewSoundEnvironment(string environmentName)
CreateSound(string fileName, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate, string eaxSetting)returns sound
CreateSoundFilenameWithLabel(string fileName, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate, string SLKEntryName)returns sound
CreateSoundFromLabel(string soundLabel, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate)returns sound
CreateMIDISound(string soundLabel, integer fadeInRate, integer fadeOutRate)returns sound
SetSoundParamsFromLabel(sound soundHandle, string soundLabel)
SetSoundDistanceCutoff(sound soundHandle, real cutoff)
SetSoundChannel(sound soundHandle, integer channel)
SetSoundVolume(sound soundHandle, integer volume)
SetSoundPitch(sound soundHandle, real pitch)
SetSoundPlayPosition(sound soundHandle, integer millisecs)
SetSoundDistances(sound soundHandle, real minDist, real maxDist)
SetSoundConeAngles(sound soundHandle, real inside, real outside, integer outsideVolume)
SetSoundConeOrientation(sound soundHandle, real x, real y, real z)
SetSoundPosition(sound soundHandle, real x, real y, real z)
SetSoundVelocity(sound soundHandle, real x, real y, real z)
AttachSoundToUnit(sound soundHandle, unit whichUnit)
StartSound(sound soundHandle)
StopSound(sound soundHandle, boolean killWhenDone, boolean fadeOut)
KillSoundWhenDone(sound soundHandle)
SetMapMusic(string musicName, boolean random, integer index)
ClearMapMusic(nothing)
PlayMusic(string musicName)
PlayMusicEx(string musicName, integer frommsecs, integer fadeinmsecs)
StopMusic(boolean fadeOut)
ResumeMusic(nothing)
PlayThematicMusic(string musicFileName)
PlayThematicMusicEx(string musicFileName, integer frommsecs)
EndThematicMusic(nothing)
SetMusicVolume(integer volume)
SetMusicPlayPosition(integer millisecs)
SetThematicMusicPlayPosition(integer millisecs)
SetSoundDuration(sound soundHandle, integer duration)
GetSoundDuration(sound soundHandle)returns integer
GetSoundFileDuration(string musicFileName)returns integer
VolumeGroupSetVolume(volumegroup vgroup, real scale)
VolumeGroupReset(nothing)
GetSoundIsPlaying(sound soundHandle)returns boolean
GetSoundIsLoading(sound soundHandle)returns boolean
RegisterStackedSound(sound soundHandle, boolean byPosition, real rectwidth, real rectheight)
UnregisterStackedSound(sound soundHandle, boolean byPosition, real rectwidth, real rectheight)
AddWeatherEffect(rect where, integer effectID)returns weathereffect
RemoveWeatherEffect(weathereffect whichEffect)
EnableWeatherEffect(weathereffect whichEffect, boolean enable)
TerrainDeformCrater(real x, real y, real radius, real depth, integer duration, boolean permanent)returns terraindeformation
TerrainDeformRipple(real x, real y, real radius, real depth, integer duration, integer count, real spaceWaves, real timeWaves, real radiusStartPct, boolean limitNeg)returns terraindeformation
TerrainDeformWave(real x, real y, real dirX, real dirY, real distance, real speed, real radius, real depth, integer trailTime, integer count)returns terraindeformation
TerrainDeformRandom(real x, real y, real radius, real minDelta, real maxDelta, integer duration, integer updateInterval)returns terraindeformation
TerrainDeformStop(terraindeformation deformation, integer duration)
TerrainDeformStopAll(nothing)
AddSpecialEffect(string modelName, real x, real y)returns effect
AddSpecialEffectLoc(string modelName, location where)returns effect
AddSpecialEffectTarget(string modelName, widget targetWidget, string attachPointName)returns effect
DestroyEffect(effect whichEffect)
AddSpellEffect(string abilityString, effecttype t, real x, real y)returns effect
AddSpellEffectLoc(string abilityString, effecttype t,location where )returns effect
AddSpellEffectById(integer abilityId, effecttype t,real x, real y )returns effect
AddSpellEffectByIdLoc(integer abilityId, effecttype t,location where )returns effect
AddSpellEffectTarget(string modelName, effecttype t, widget targetWidget, string attachPoint)returns effect
AddSpellEffectTargetById(integer abilityId, effecttype t, widget targetWidget, string attachPoint)returns effect
AddLightning(string codeName, boolean checkVisibility, real x1, real y1, real x2, real y2)returns lightning
AddLightningEx(string codeName, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2, real z2)returns lightning
DestroyLightning(lightning whichBolt)returns boolean
MoveLightning(lightning whichBolt, boolean checkVisibility, real x1, real y1, real x2, real y2)returns boolean
MoveLightningEx(lightning whichBolt, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2, real z2)returns boolean
GetLightningColorA(lightning whichBolt)returns real
GetLightningColorR(lightning whichBolt)returns real
GetLightningColorG(lightning whichBolt)returns real
GetLightningColorB(lightning whichBolt)returns real
SetLightningColor(lightning whichBolt, real r, real g, real b, real a)returns boolean
GetAbilityEffect(string abilityString, effecttype t, integer index)returns string
GetAbilityEffectById(integer abilityId, effecttype t, integer index)returns string
GetAbilitySound(string abilityString, soundtype t)returns string
GetAbilitySoundById(integer abilityId, soundtype t)returns string
GetTerrainCliffLevel(real x, real y)returns integer
SetWaterBaseColor(integer red, integer green, integer blue, integer alpha)
SetWaterDeforms(boolean val)
GetTerrainType(real x, real y)returns integer
GetTerrainVariance(real x, real y)returns integer
SetTerrainType(real x, real y, integer terrainType, integer variation, integer area, integer shape)
IsTerrainPathable(real x, real y, pathingtype t)returns boolean
SetTerrainPathable(real x, real y, pathingtype t, boolean flag)
CreateImage(string file, real sizeX, real sizeY, real sizeZ, real posX, real posY, real posZ, real originX, real originY, real originZ, integer imageType)returns image
DestroyImage(image whichImage)
ShowImage(image whichImage, boolean flag)
SetImageConstantHeight(image whichImage, boolean flag, real height)
SetImagePosition(image whichImage, real x, real y, real z)
SetImageColor(image whichImage, integer red, integer green, integer blue, integer alpha)
SetImageRender(image whichImage, boolean flag)
SetImageRenderAlways(image whichImage, boolean flag)
SetImageAboveWater(image whichImage, boolean flag, boolean useWaterAlpha)
SetImageType(image whichImage, integer imageType)
CreateUbersplat(real x, real y, string name, integer red, integer green, integer blue, integer alpha, boolean forcePaused, boolean noBirthTime)returns ubersplat
DestroyUbersplat(ubersplat whichSplat)
ResetUbersplat(ubersplat whichSplat)
FinishUbersplat(ubersplat whichSplat)
ShowUbersplat(ubersplat whichSplat, boolean flag)
SetUbersplatRender(ubersplat whichSplat, boolean flag)
SetUbersplatRenderAlways(ubersplat whichSplat, boolean flag)
SetBlight(player whichPlayer, real x, real y, real radius, boolean addBlight)
SetBlightRect(player whichPlayer, rect r, boolean addBlight)
SetBlightPoint(player whichPlayer, real x, real y, boolean addBlight)
SetBlightLoc(player whichPlayer, location whichLocation, real radius, boolean addBlight)
CreateBlightedGoldmine(player id, real x, real y, real face)returns unit
IsPointBlighted(real x, real y)returns boolean
SetDoodadAnimation(real x, real y, real radius, integer doodadID, boolean nearestOnly, string animName, boolean animRandom)
SetDoodadAnimationRect(rect r, integer doodadID, string animName, boolean animRandom)
StartMeleeAI(player num, string script)
StartCampaignAI(player num, string script)
CommandAI(player num, integer command, integer data)
PauseCompAI(player p, boolean pause)
GetAIDifficulty(player num)returns aidifficulty
RemoveGuardPosition(unit hUnit)
RecycleGuardPosition(unit hUnit)
RemoveAllGuardPositions(player num)
Cheat(string cheatStr)
IsNoVictoryCheat(nothing)returns boolean
IsNoDefeatCheat(nothing)returns boolean
Preload(string filename)
PreloadEnd(real timeout)
PreloadStart(nothing)
PreloadRefresh(nothing)
PreloadEndEx(nothing)
PreloadGenClear(nothing)
PreloadGenStart(nothing)
PreloadGenEnd(string filename)
BJDebugMsg(string msg)
RMinBJ(real a, real b)returns real
RMaxBJ(real a, real b)returns real
RAbsBJ(real a)returns real
RSignBJ(real a)returns real
IMinBJ(integer a, integer b)returns integer
IMaxBJ(integer a, integer b)returns integer
IAbsBJ(integer a)returns integer
ISignBJ(integer a)returns integer
SinBJ(real degrees)returns real
CosBJ(real degrees)returns real
TanBJ(real degrees)returns real
AsinBJ(real degrees)returns real
AcosBJ(real degrees)returns real
AtanBJ(real degrees)returns real
Atan2BJ(real y, real x)returns real
AngleBetweenPoints(location locA, location locB)returns real
DistanceBetweenPoints(location locA, location locB)returns real
PolarProjectionBJ(location source, real dist, real angle)returns location
GetRandomDirectionDeg(nothing)returns real
GetRandomPercentageBJ(nothing)returns real
GetRandomLocInRect(rect whichRect)returns location
ModuloInteger(integer dividend, integer divisor)returns integer
ModuloReal(real dividend, real divisor)returns real
OffsetLocation(location loc, real dx, real dy)returns location
OffsetRectBJ(rect r, real dx, real dy)returns rect
RectFromCenterSizeBJ(location center, real width, real height)returns rect
RectContainsCoords(rect r, real x, real y)returns boolean
RectContainsLoc(rect r, location loc)returns boolean
RectContainsUnit(rect r, unit whichUnit)returns boolean
RectContainsItem(item whichItem, rect r)returns boolean
ConditionalTriggerExecute(trigger trig)
TriggerExecuteBJ(trigger trig, boolean checkConditions)returns boolean
PostTriggerExecuteBJ(trigger trig, boolean checkConditions)returns boolean
QueuedTriggerCheck(nothing)
QueuedTriggerGetIndex(trigger trig)returns integer
QueuedTriggerRemoveByIndex(integer trigIndex)returns boolean
QueuedTriggerAttemptExec(nothing)returns boolean
QueuedTriggerAddBJ(trigger trig, boolean checkConditions)returns boolean
QueuedTriggerRemoveBJ(trigger trig)
QueuedTriggerDoneBJ(nothing)
QueuedTriggerClearBJ(nothing)
QueuedTriggerClearInactiveBJ(nothing)
QueuedTriggerCountBJ(nothing)returns integer
IsTriggerQueueEmptyBJ(nothing)returns boolean
IsTriggerQueuedBJ(trigger trig)returns boolean
GetForLoopIndexA(nothing)returns integer
SetForLoopIndexA(integer newIndex)
GetForLoopIndexB(nothing)returns integer
SetForLoopIndexB(integer newIndex)
PolledWait(real duration)
IntegerTertiaryOp(boolean flag, integer valueA, integer valueB)returns integer
DoNothing(nothing)
CommentString(string commentString)
StringIdentity(string theString)returns string
GetBooleanAnd(boolean valueA, boolean valueB)returns boolean
GetBooleanOr(boolean valueA, boolean valueB)returns boolean
PercentToInt(real percentage, integer max)returns integer
PercentTo255(real percentage)returns integer
GetTimeOfDay(nothing)returns real
SetTimeOfDay(real whatTime)
SetTimeOfDayScalePercentBJ(real scalePercent)
GetTimeOfDayScalePercentBJ(nothing)returns real
PlaySound(string soundName)
CompareLocationsBJ(location A, location B)returns boolean
CompareRectsBJ(rect A, rect B)returns boolean
GetRectFromCircleBJ(location center, real radius)returns rect
GetCurrentCameraSetup(nothing)returns camerasetup
CameraSetupApplyForPlayer(boolean doPan, camerasetup whichSetup, player whichPlayer, real duration)
CameraSetupGetFieldSwap(camerafield whichField, camerasetup whichSetup)returns real
SetCameraFieldForPlayer(player whichPlayer, camerafield whichField, real value, real duration)
SetCameraTargetControllerNoZForPlayer(player whichPlayer, unit whichUnit, real xoffset, real yoffset, boolean inheritOrientation)
SetCameraPositionForPlayer(player whichPlayer, real x, real y)
SetCameraPositionLocForPlayer(player whichPlayer, location loc)
RotateCameraAroundLocBJ(real degrees, location loc, player whichPlayer, real duration)
PanCameraToForPlayer(player whichPlayer, real x, real y)
PanCameraToLocForPlayer(player whichPlayer, location loc)
PanCameraToTimedForPlayer(player whichPlayer, real x, real y, real duration)
PanCameraToTimedLocForPlayer(player whichPlayer, location loc, real duration)
PanCameraToTimedLocWithZForPlayer(player whichPlayer, location loc, real zOffset, real duration)
SmartCameraPanBJ(player whichPlayer, location loc, real duration)
SetCinematicCameraForPlayer(player whichPlayer, string cameraModelFile)
ResetToGameCameraForPlayer(player whichPlayer, real duration)
CameraSetSourceNoiseForPlayer(player whichPlayer, real magnitude, real velocity)
CameraSetTargetNoiseForPlayer(player whichPlayer, real magnitude, real velocity)
CameraSetEQNoiseForPlayer(player whichPlayer, real magnitude)
CameraClearNoiseForPlayer(player whichPlayer)
GetCurrentCameraBoundsMapRectBJ(nothing)returns rect
GetCameraBoundsMapRect(nothing)returns rect
GetPlayableMapRect(nothing)returns rect
GetEntireMapRect(nothing)returns rect
SetCameraBoundsToRect(rect r)
SetCameraBoundsToRectForPlayerBJ(player whichPlayer, rect r)
AdjustCameraBoundsBJ(integer adjustMethod, real dxWest, real dxEast, real dyNorth, real dySouth)
AdjustCameraBoundsForPlayerBJ(integer adjustMethod, player whichPlayer, real dxWest, real dxEast, real dyNorth, real dySouth)
SetCameraQuickPositionForPlayer(player whichPlayer, real x, real y)
SetCameraQuickPositionLocForPlayer(player whichPlayer, location loc)
SetCameraQuickPositionLoc(location loc)
StopCameraForPlayerBJ(player whichPlayer)
SetCameraOrientControllerForPlayerBJ(player whichPlayer, unit whichUnit, real xoffset, real yoffset)
CameraSetSmoothingFactorBJ(real factor)
CameraResetSmoothingFactorBJ(nothing)
DisplayTextToForce(force toForce, string message)
DisplayTimedTextToForce(force toForce, real duration, string message)
ClearTextMessagesBJ(force toForce)
SubStringBJ(string source, integer start, integer end)returns string
GetHandleIdBJ(handle h)returns integer
StringHashBJ(string s)returns integer
TriggerRegisterTimerEventPeriodic(trigger trig, real timeout)returns event
TriggerRegisterTimerEventSingle(trigger trig, real timeout)returns event
TriggerRegisterTimerExpireEventBJ(trigger trig, timer t)returns event
TriggerRegisterPlayerUnitEventSimple(trigger trig, player whichPlayer, playerunitevent whichEvent)returns event
TriggerRegisterAnyUnitEventBJ(trigger trig, playerunitevent whichEvent)
TriggerRegisterPlayerSelectionEventBJ(trigger trig, player whichPlayer, boolean selected)returns event
TriggerRegisterPlayerKeyEventBJ(trigger trig, player whichPlayer, integer keType, integer keKey)returns event
TriggerRegisterPlayerEventVictory(trigger trig, player whichPlayer)returns event
TriggerRegisterPlayerEventDefeat(trigger trig, player whichPlayer)returns event
TriggerRegisterPlayerEventLeave(trigger trig, player whichPlayer)returns event
TriggerRegisterPlayerEventAllianceChanged(trigger trig, player whichPlayer)returns event
TriggerRegisterPlayerEventEndCinematic(trigger trig, player whichPlayer)returns event
TriggerRegisterGameStateEventTimeOfDay(trigger trig, limitop opcode, real limitval)returns event
TriggerRegisterEnterRegionSimple(trigger trig, region whichRegion)returns event
TriggerRegisterLeaveRegionSimple(trigger trig, region whichRegion)returns event
TriggerRegisterEnterRectSimple(trigger trig, rect r)returns event
TriggerRegisterLeaveRectSimple(trigger trig, rect r)returns event
TriggerRegisterDistanceBetweenUnits(trigger trig, unit whichUnit, boolexpr condition, real range)returns event
TriggerRegisterUnitInRangeSimple(trigger trig, real range, unit whichUnit)returns event
TriggerRegisterUnitLifeEvent(trigger trig, unit whichUnit, limitop opcode, real limitval)returns event
TriggerRegisterUnitManaEvent(trigger trig, unit whichUnit, limitop opcode, real limitval)returns event
TriggerRegisterDialogEventBJ(trigger trig, dialog whichDialog)returns event
TriggerRegisterShowSkillEventBJ(trigger trig)returns event
TriggerRegisterBuildSubmenuEventBJ(trigger trig)returns event
TriggerRegisterGameLoadedEventBJ(trigger trig)returns event
TriggerRegisterGameSavedEventBJ(trigger trig)returns event
RegisterDestDeathInRegionEnum(nothing)
TriggerRegisterDestDeathInRegionEvent(trigger trig, rect r)
AddWeatherEffectSaveLast(rect where, integer effectID)returns weathereffect
GetLastCreatedWeatherEffect(nothing)returns weathereffect
RemoveWeatherEffectBJ(weathereffect whichWeatherEffect)
TerrainDeformationCraterBJ(real duration, boolean permanent, location where, real radius, real depth)returns terraindeformation
TerrainDeformationRippleBJ(real duration, boolean limitNeg, location where, real startRadius, real endRadius, real depth, real wavePeriod, real waveWidth)returns terraindeformation
TerrainDeformationWaveBJ(real duration, location source, location target, real radius, real depth, real trailDelay)returns terraindeformation
TerrainDeformationRandomBJ(real duration, location where, real radius, real minDelta, real maxDelta, real updateInterval)returns terraindeformation
TerrainDeformationStopBJ(terraindeformation deformation, real duration)
GetLastCreatedTerrainDeformation(nothing)returns terraindeformation
AddLightningLoc(string codeName, location where1, location where2)returns lightning
DestroyLightningBJ(lightning whichBolt)returns boolean
MoveLightningLoc(lightning whichBolt, location where1, location where2)returns boolean
GetLightningColorABJ(lightning whichBolt)returns real
GetLightningColorRBJ(lightning whichBolt)returns real
GetLightningColorGBJ(lightning whichBolt)returns real
GetLightningColorBBJ(lightning whichBolt)returns real
SetLightningColorBJ(lightning whichBolt, real r, real g, real b, real a)returns boolean
GetLastCreatedLightningBJ(nothing)returns lightning
GetAbilityEffectBJ(integer abilcode, effecttype t, integer index)returns string
GetAbilitySoundBJ(integer abilcode, soundtype t)returns string
GetTerrainCliffLevelBJ(location where)returns integer
GetTerrainTypeBJ(location where)returns integer
GetTerrainVarianceBJ(location where)returns integer
SetTerrainTypeBJ(location where, integer terrainType, integer variation, integer area, integer shape)
IsTerrainPathableBJ(location where, pathingtype t)returns boolean
SetTerrainPathableBJ(location where, pathingtype t, boolean flag)
SetWaterBaseColorBJ(real red, real green, real blue, real transparency)
CreateFogModifierRectSimple(player whichPlayer, fogstate whichFogState, rect r, boolean afterUnits)returns fogmodifier
CreateFogModifierRadiusLocSimple(player whichPlayer, fogstate whichFogState, location center, real radius, boolean afterUnits)returns fogmodifier
CreateFogModifierRectBJ(boolean enabled, player whichPlayer, fogstate whichFogState, rect r)returns fogmodifier
CreateFogModifierRadiusLocBJ(boolean enabled, player whichPlayer, fogstate whichFogState, location center, real radius)returns fogmodifier
GetLastCreatedFogModifier(nothing)returns fogmodifier
FogEnableOn(nothing)
FogEnableOff(nothing)
FogMaskEnableOn(nothing)
FogMaskEnableOff(nothing)
UseTimeOfDayBJ(boolean flag)
SetTerrainFogExBJ(integer style, real zstart, real zend, real density, real red, real green, real blue)
ResetTerrainFogBJ(nothing)
SetDoodadAnimationBJ(string animName, integer doodadID, real radius, location center)
SetDoodadAnimationRectBJ(string animName, integer doodadID, rect r)
AddUnitAnimationPropertiesBJ(boolean add, string animProperties, unit whichUnit)
CreateImageBJ(string file, real size, location where, real zOffset, integer imageType)returns image
ShowImageBJ(boolean flag, image whichImage)
SetImagePositionBJ(image whichImage, location where, real zOffset)
SetImageColorBJ(image whichImage, real red, real green, real blue, real alpha)
GetLastCreatedImage(nothing)returns image
CreateUbersplatBJ(location where, string name, real red, real green, real blue, real alpha, boolean forcePaused, boolean noBirthTime)returns ubersplat
ShowUbersplatBJ(boolean flag, ubersplat whichSplat)
GetLastCreatedUbersplat(nothing)returns ubersplat
PlaySoundBJ(sound soundHandle)
StopSoundBJ(sound soundHandle, boolean fadeOut)
SetSoundVolumeBJ(sound soundHandle, real volumePercent)
SetSoundOffsetBJ(real newOffset, sound soundHandle)
SetSoundDistanceCutoffBJ(sound soundHandle, real cutoff)
SetSoundPitchBJ(sound soundHandle, real pitch)
SetSoundPositionLocBJ(sound soundHandle, location loc, real z)
AttachSoundToUnitBJ(sound soundHandle, unit whichUnit)
SetSoundConeAnglesBJ(sound soundHandle, real inside, real outside, real outsideVolumePercent)
KillSoundWhenDoneBJ(sound soundHandle)
PlaySoundAtPointBJ(sound soundHandle, real volumePercent, location loc, real z)
PlaySoundOnUnitBJ(sound soundHandle, real volumePercent, unit whichUnit)
PlaySoundFromOffsetBJ(sound soundHandle, real volumePercent, real startingOffset)
PlayMusicBJ(string musicFileName)
PlayMusicExBJ(string musicFileName, real startingOffset, real fadeInTime)
SetMusicOffsetBJ(real newOffset)
PlayThematicMusicBJ(string musicName)
PlayThematicMusicExBJ(string musicName, real startingOffset)
SetThematicMusicOffsetBJ(real newOffset)
EndThematicMusicBJ(nothing)
StopMusicBJ(boolean fadeOut)
ResumeMusicBJ(nothing)
SetMusicVolumeBJ(real volumePercent)
GetSoundDurationBJ(sound soundHandle)returns real
GetSoundFileDurationBJ(string musicFileName)returns real
GetLastPlayedSound(nothing)returns sound
GetLastPlayedMusic(nothing)returns string
VolumeGroupSetVolumeBJ(volumegroup vgroup, real percent)
SetCineModeVolumeGroupsImmediateBJ(nothing)
SetCineModeVolumeGroupsBJ(nothing)
SetSpeechVolumeGroupsImmediateBJ(nothing)
SetSpeechVolumeGroupsBJ(nothing)
VolumeGroupResetImmediateBJ(nothing)
VolumeGroupResetBJ(nothing)
GetSoundIsPlayingBJ(sound soundHandle)returns boolean
WaitForSoundBJ(sound soundHandle, real offset)
SetMapMusicIndexedBJ(string musicName, integer index)
SetMapMusicRandomBJ(string musicName)
ClearMapMusicBJ(nothing)
SetStackedSoundBJ(boolean add, sound soundHandle, rect r)
StartSoundForPlayerBJ(player whichPlayer, sound soundHandle)
VolumeGroupSetVolumeForPlayerBJ(player whichPlayer, volumegroup vgroup, real scale)
EnableDawnDusk(boolean flag)
IsDawnDuskEnabled(nothing)returns boolean
SetAmbientDaySound(string inLabel)
SetAmbientNightSound(string inLabel)
AddSpecialEffectLocBJ(location where, string modelName)returns effect
AddSpecialEffectTargetUnitBJ(string attachPointName, widget targetWidget, string modelName)returns effect
DestroyEffectBJ(effect whichEffect)
GetLastCreatedEffectBJ(nothing)returns effect
GetItemLoc(item whichItem)returns location
GetItemLifeBJ(widget whichWidget)returns real
SetItemLifeBJ(widget whichWidget, real life)
AddHeroXPSwapped(integer xpToAdd, unit whichHero, boolean showEyeCandy)
SetHeroLevelBJ(unit whichHero, integer newLevel, boolean showEyeCandy)
DecUnitAbilityLevelSwapped(integer abilcode, unit whichUnit)returns integer
IncUnitAbilityLevelSwapped(integer abilcode, unit whichUnit)returns integer
SetUnitAbilityLevelSwapped(integer abilcode, unit whichUnit, integer level)returns integer
GetUnitAbilityLevelSwapped(integer abilcode, unit whichUnit)returns integer
UnitHasBuffBJ(unit whichUnit, integer buffcode)returns boolean
UnitRemoveBuffBJ(integer buffcode, unit whichUnit)returns boolean
UnitAddItemSwapped(item whichItem, unit whichHero)returns boolean
UnitAddItemByIdSwapped(integer itemId, unit whichHero)returns item
UnitRemoveItemSwapped(item whichItem, unit whichHero)
UnitRemoveItemFromSlotSwapped(integer itemSlot, unit whichHero)returns item
CreateItemLoc(integer itemId, location loc)returns item
GetLastCreatedItem(nothing)returns item
GetLastRemovedItem(nothing)returns item
SetItemPositionLoc(item whichItem, location loc)
GetLearnedSkillBJ(nothing)returns integer
SuspendHeroXPBJ(boolean flag, unit whichHero)
SetPlayerHandicapXPBJ(player whichPlayer, real handicapPercent)
GetPlayerHandicapXPBJ(player whichPlayer)returns real
SetPlayerHandicapBJ(player whichPlayer, real handicapPercent)
GetPlayerHandicapBJ(player whichPlayer)returns real
GetHeroStatBJ(integer whichStat, unit whichHero, boolean includeBonuses)returns integer
SetHeroStat(unit whichHero, integer whichStat, integer value)
ModifyHeroStat(integer whichStat, unit whichHero, integer modifyMethod, integer value)
ModifyHeroSkillPoints(unit whichHero, integer modifyMethod, integer value)returns boolean
UnitDropItemPointBJ(unit whichUnit, item whichItem, real x, real y)returns boolean
UnitDropItemPointLoc(unit whichUnit, item whichItem, location loc)returns boolean
UnitDropItemSlotBJ(unit whichUnit, item whichItem, integer slot)returns boolean
UnitDropItemTargetBJ(unit whichUnit, item whichItem, widget target)returns boolean
UnitUseItemDestructable(unit whichUnit, item whichItem, widget target)returns boolean
UnitUseItemPointLoc(unit whichUnit, item whichItem, location loc)returns boolean
UnitItemInSlotBJ(unit whichUnit, integer itemSlot)returns item
GetInventoryIndexOfItemTypeBJ(unit whichUnit, integer itemId)returns integer
GetItemOfTypeFromUnitBJ(unit whichUnit, integer itemId)returns item
UnitHasItemOfTypeBJ(unit whichUnit, integer itemId)returns boolean
UnitInventoryCount(unit whichUnit)returns integer
UnitInventorySizeBJ(unit whichUnit)returns integer
SetItemInvulnerableBJ(item whichItem, boolean flag)
SetItemDropOnDeathBJ(item whichItem, boolean flag)
SetItemDroppableBJ(item whichItem, boolean flag)
SetItemPlayerBJ(item whichItem, player whichPlayer, boolean changeColor)
SetItemVisibleBJ(boolean show, item whichItem)
IsItemHiddenBJ(item whichItem)returns boolean
ChooseRandomItemBJ(integer level)returns integer
ChooseRandomItemExBJ(integer level, itemtype whichType)returns integer
ChooseRandomNPBuildingBJ(nothing)returns integer
ChooseRandomCreepBJ(integer level)returns integer
EnumItemsInRectBJ(rect r, code actionFunc)
RandomItemInRectBJEnum(nothing)
RandomItemInRectBJ(rect r, boolexpr filter)returns item
RandomItemInRectSimpleBJ(rect r)returns item
CheckItemStatus(item whichItem, integer status)returns boolean
CheckItemcodeStatus(integer itemId, integer status)returns boolean
UnitId2OrderIdBJ(integer unitId)returns integer
String2UnitIdBJ(string unitIdString)returns integer
UnitId2StringBJ(integer unitId)returns string
String2OrderIdBJ(string orderIdString)returns integer
OrderId2StringBJ(integer orderId)returns string
GetIssuedOrderIdBJ(nothing)returns integer
GetKillingUnitBJ(nothing)returns unit
CreateUnitAtLocSaveLast(player id, integer unitid, location loc, real face)returns unit
GetLastCreatedUnit(nothing)returns unit
CreateNUnitsAtLoc(integer count, integer unitId, player whichPlayer, location loc, real face)returns group
CreateNUnitsAtLocFacingLocBJ(integer count, integer unitId, player whichPlayer, location loc, location lookAt)returns group
GetLastCreatedGroupEnum(nothing)
GetLastCreatedGroup(nothing)returns group
CreateCorpseLocBJ(integer unitid, player whichPlayer, location loc)returns unit
UnitSuspendDecayBJ(boolean suspend, unit whichUnit)
DelayedSuspendDecayStopAnimEnum(nothing)
DelayedSuspendDecayBoneEnum(nothing)
DelayedSuspendDecayFleshEnum(nothing)
DelayedSuspendDecay(nothing)
DelayedSuspendDecayCreate(nothing)
CreatePermanentCorpseLocBJ(integer style, integer unitid, player whichPlayer, location loc, real facing)returns unit
GetUnitStateSwap(unitstate whichState, unit whichUnit)returns real
GetUnitStatePercent(unit whichUnit, unitstate whichState, unitstate whichMaxState)returns real
GetUnitLifePercent(unit whichUnit)returns real
GetUnitManaPercent(unit whichUnit)returns real
SelectUnitSingle(unit whichUnit)
SelectGroupBJEnum(nothing)
SelectGroupBJ(group g)
SelectUnitAdd(unit whichUnit)
SelectUnitRemove(unit whichUnit)
ClearSelectionForPlayer(player whichPlayer)
SelectUnitForPlayerSingle(unit whichUnit, player whichPlayer)
SelectGroupForPlayerBJ(group g, player whichPlayer)
SelectUnitAddForPlayer(unit whichUnit, player whichPlayer)
SelectUnitRemoveForPlayer(unit whichUnit, player whichPlayer)
SetUnitLifeBJ(unit whichUnit, real newValue)
SetUnitManaBJ(unit whichUnit, real newValue)
SetUnitLifePercentBJ(unit whichUnit, real percent)
SetUnitManaPercentBJ(unit whichUnit, real percent)
IsUnitDeadBJ(unit whichUnit)returns boolean
IsUnitAliveBJ(unit whichUnit)returns boolean
IsUnitGroupDeadBJEnum(nothing)
IsUnitGroupDeadBJ(group g)returns boolean
IsUnitGroupEmptyBJEnum(nothing)
IsUnitGroupEmptyBJ(group g)returns boolean
IsUnitGroupInRectBJEnum(nothing)
IsUnitGroupInRectBJ(group g, rect r)returns boolean
IsUnitHiddenBJ(unit whichUnit)returns boolean
ShowUnitHide(unit whichUnit)
ShowUnitShow(unit whichUnit)
IssueHauntOrderAtLocBJFilter(nothing)returns boolean
IssueHauntOrderAtLocBJ(unit whichPeon, location loc)returns boolean
IssueBuildOrderByIdLocBJ(unit whichPeon, integer unitId, location loc)returns boolean
IssueTrainOrderByIdBJ(unit whichUnit, integer unitId)returns boolean
GroupTrainOrderByIdBJ(group g, integer unitId)returns boolean
IssueUpgradeOrderByIdBJ(unit whichUnit, integer techId)returns boolean
GetAttackedUnitBJ(nothing)returns unit
SetUnitFlyHeightBJ(unit whichUnit, real newHeight, real rate)
SetUnitTurnSpeedBJ(unit whichUnit, real turnSpeed)
SetUnitPropWindowBJ(unit whichUnit, real propWindow)
GetUnitPropWindowBJ(unit whichUnit)returns real
GetUnitDefaultPropWindowBJ(unit whichUnit)returns real
SetUnitBlendTimeBJ(unit whichUnit, real blendTime)
SetUnitAcquireRangeBJ(unit whichUnit, real acquireRange)
UnitSetCanSleepBJ(unit whichUnit, boolean canSleep)
UnitCanSleepBJ(unit whichUnit)returns boolean
UnitWakeUpBJ(unit whichUnit)
UnitIsSleepingBJ(unit whichUnit)returns boolean
WakePlayerUnitsEnum(nothing)
WakePlayerUnits(player whichPlayer)
EnableCreepSleepBJ(boolean enable)
UnitGenerateAlarms(unit whichUnit, boolean generate)returns boolean
DoesUnitGenerateAlarms(unit whichUnit)returns boolean
PauseAllUnitsBJEnum(nothing)
PauseAllUnitsBJ(boolean pause)
PauseUnitBJ(boolean pause, unit whichUnit)
IsUnitPausedBJ(unit whichUnit)returns boolean
UnitPauseTimedLifeBJ(boolean flag, unit whichUnit)
UnitApplyTimedLifeBJ(real duration, integer buffId, unit whichUnit)
UnitShareVisionBJ(boolean share, unit whichUnit, player whichPlayer)
UnitRemoveBuffsBJ(integer buffType, unit whichUnit)
UnitRemoveBuffsExBJ(integer polarity, integer resist, unit whichUnit, boolean bTLife, boolean bAura)
UnitCountBuffsExBJ(integer polarity, integer resist, unit whichUnit, boolean bTLife, boolean bAura)returns integer
UnitRemoveAbilityBJ(integer abilityId, unit whichUnit)returns boolean
UnitAddAbilityBJ(integer abilityId, unit whichUnit)returns boolean
UnitRemoveTypeBJ(unittype whichType, unit whichUnit)returns boolean
UnitAddTypeBJ(unittype whichType, unit whichUnit)returns boolean
UnitMakeAbilityPermanentBJ(boolean permanent, integer abilityId, unit whichUnit)returns boolean
SetUnitExplodedBJ(unit whichUnit, boolean exploded)
ExplodeUnitBJ(unit whichUnit)
GetTransportUnitBJ(nothing)returns unit
GetLoadedUnitBJ(nothing)returns unit
IsUnitInTransportBJ(unit whichUnit, unit whichTransport)returns boolean
IsUnitLoadedBJ(unit whichUnit)returns boolean
IsUnitIllusionBJ(unit whichUnit)returns boolean
ReplaceUnitBJ(unit whichUnit, integer newUnitId, integer unitStateMethod)returns unit
GetLastReplacedUnitBJ(nothing)returns unit
SetUnitPositionLocFacingBJ(unit whichUnit, location loc, real facing)
SetUnitPositionLocFacingLocBJ(unit whichUnit, location loc, location lookAt)
AddItemToStockBJ(integer itemId, unit whichUnit, integer currentStock, integer stockMax)
AddUnitToStockBJ(integer unitId, unit whichUnit, integer currentStock, integer stockMax)
RemoveItemFromStockBJ(integer itemId, unit whichUnit)
RemoveUnitFromStockBJ(integer unitId, unit whichUnit)
SetUnitUseFoodBJ(boolean enable, unit whichUnit)
UnitDamagePointLoc(unit whichUnit, real delay, real radius, location loc, real amount, attacktype whichAttack, damagetype whichDamage)returns boolean
UnitDamageTargetBJ(unit whichUnit, unit target, real amount, attacktype whichAttack, damagetype whichDamage)returns boolean
CreateDestructableLoc(integer objectid, location loc, real facing, real scale, integer variation)returns destructable
CreateDeadDestructableLocBJ(integer objectid, location loc, real facing, real scale, integer variation)returns destructable
GetLastCreatedDestructable(nothing)returns destructable
ShowDestructableBJ(boolean flag, destructable d)
SetDestructableInvulnerableBJ(destructable d, boolean flag)
IsDestructableInvulnerableBJ(destructable d)returns boolean
GetDestructableLoc(destructable whichDestructable)returns location
EnumDestructablesInRectAll(rect r, code actionFunc)
EnumDestructablesInCircleBJFilter(nothing)returns boolean
IsDestructableDeadBJ(destructable d)returns boolean
IsDestructableAliveBJ(destructable d)returns boolean
RandomDestructableInRectBJEnum(nothing)
RandomDestructableInRectBJ(rect r, boolexpr filter)returns destructable
RandomDestructableInRectSimpleBJ(rect r)returns destructable
EnumDestructablesInCircleBJ(real radius, location loc, code actionFunc)
SetDestructableLifePercentBJ(destructable d, real percent)
SetDestructableMaxLifeBJ(destructable d, real max)
ModifyGateBJ(integer gateOperation, destructable d)
GetElevatorHeight(destructable d)returns integer
ChangeElevatorHeight(destructable d, integer newHeight)
NudgeUnitsInRectEnum(nothing)
NudgeItemsInRectEnum(nothing)
NudgeObjectsInRect(rect nudgeArea)
NearbyElevatorExistsEnum(nothing)
NearbyElevatorExists(real x, real y)returns boolean
FindElevatorWallBlockerEnum(nothing)
ChangeElevatorWallBlocker(real x, real y, real facing, boolean open)
ChangeElevatorWalls(boolean open, integer walls, destructable d)
WaygateActivateBJ(boolean activate, unit waygate)
WaygateIsActiveBJ(unit waygate)returns boolean
WaygateSetDestinationLocBJ(unit waygate, location loc)
WaygateGetDestinationLocBJ(unit waygate)returns location
UnitSetUsesAltIconBJ(boolean flag, unit whichUnit)
ForceUIKeyBJ(player whichPlayer, string key)
ForceUICancelBJ(player whichPlayer)
ForGroupBJ(group whichGroup, code callback)
GroupAddUnitSimple(unit whichUnit, group whichGroup)
GroupRemoveUnitSimple(unit whichUnit, group whichGroup)
GroupAddGroupEnum(nothing)
GroupAddGroup(group sourceGroup, group destGroup)
GroupRemoveGroupEnum(nothing)
GroupRemoveGroup(group sourceGroup, group destGroup)
ForceAddPlayerSimple(player whichPlayer, force whichForce)
ForceRemovePlayerSimple(player whichPlayer, force whichForce)
GroupPickRandomUnitEnum(nothing)
GroupPickRandomUnit(group whichGroup)returns unit
ForcePickRandomPlayerEnum(nothing)
ForcePickRandomPlayer(force whichForce)returns player
EnumUnitsSelected(player whichPlayer, boolexpr enumFilter, code enumAction)
GetUnitsInRectMatching(rect r, boolexpr filter)returns group
GetUnitsInRectAll(rect r)returns group
GetUnitsInRectOfPlayerFilter(nothing)returns boolean
GetUnitsInRectOfPlayer(rect r, player whichPlayer)returns group
GetUnitsInRangeOfLocMatching(real radius, location whichLocation, boolexpr filter)returns group
GetUnitsInRangeOfLocAll(real radius, location whichLocation)returns group
GetUnitsOfTypeIdAllFilter(nothing)returns boolean
GetUnitsOfTypeIdAll(integer unitid)returns group
GetUnitsOfPlayerMatching(player whichPlayer, boolexpr filter)returns group
GetUnitsOfPlayerAll(player whichPlayer)returns group
GetUnitsOfPlayerAndTypeIdFilter(nothing)returns boolean
GetUnitsOfPlayerAndTypeId(player whichPlayer, integer unitid)returns group
GetUnitsSelectedAll(player whichPlayer)returns group
GetForceOfPlayer(player whichPlayer)returns force
GetPlayersAll(nothing)returns force
GetPlayersByMapControl(mapcontrol whichControl)returns force
GetPlayersAllies(player whichPlayer)returns force
GetPlayersEnemies(player whichPlayer)returns force
GetPlayersMatching(boolexpr filter)returns force
CountUnitsInGroupEnum(nothing)
CountUnitsInGroup(group g)returns integer
CountPlayersInForceEnum(nothing)
CountPlayersInForceBJ(force f)returns integer
GetRandomSubGroupEnum(nothing)
GetRandomSubGroup(integer count, group sourceGroup)returns group
LivingPlayerUnitsOfTypeIdFilter(nothing)returns boolean
CountLivingPlayerUnitsOfTypeId(integer unitId, player whichPlayer)returns integer
ResetUnitAnimation(unit whichUnit)
SetUnitTimeScalePercent(unit whichUnit, real percentScale)
SetUnitScalePercent(unit whichUnit, real percentScaleX, real percentScaleY, real percentScaleZ)
SetUnitVertexColorBJ(unit whichUnit, real red, real green, real blue, real transparency)
UnitAddIndicatorBJ(unit whichUnit, real red, real green, real blue, real transparency)
DestructableAddIndicatorBJ(destructable whichDestructable, real red, real green, real blue, real transparency)
ItemAddIndicatorBJ(item whichItem, real red, real green, real blue, real transparency)
SetUnitFacingToFaceLocTimed(unit whichUnit, location target, real duration)
SetUnitFacingToFaceUnitTimed(unit whichUnit, unit target, real duration)
QueueUnitAnimationBJ(unit whichUnit, string whichAnimation)
SetDestructableAnimationBJ(destructable d, string whichAnimation)
QueueDestructableAnimationBJ(destructable d, string whichAnimation)
SetDestAnimationSpeedPercent(destructable d, real percentScale)
DialogDisplayBJ(boolean flag, dialog whichDialog, player whichPlayer)
DialogSetMessageBJ(dialog whichDialog, string message)
DialogAddButtonBJ(dialog whichDialog, string buttonText)returns button
DialogAddButtonWithHotkeyBJ(dialog whichDialog, string buttonText, integer hotkey)returns button
DialogClearBJ(dialog whichDialog)
GetLastCreatedButtonBJ(nothing)returns button
GetClickedButtonBJ(nothing)returns button
GetClickedDialogBJ(nothing)returns dialog
SetPlayerAllianceBJ(player sourcePlayer, alliancetype whichAllianceSetting, boolean value, player otherPlayer)
SetPlayerAllianceStateAllyBJ(player sourcePlayer, player otherPlayer, boolean flag)
SetPlayerAllianceStateVisionBJ(player sourcePlayer, player otherPlayer, boolean flag)
SetPlayerAllianceStateControlBJ(player sourcePlayer, player otherPlayer, boolean flag)
SetPlayerAllianceStateFullControlBJ(player sourcePlayer, player otherPlayer, boolean flag)
SetPlayerAllianceStateBJ(player sourcePlayer, player otherPlayer, integer allianceState)
SetForceAllianceStateBJ(force sourceForce, force targetForce, integer allianceState)
PlayersAreCoAllied(player playerA, player playerB)returns boolean
ShareEverythingWithTeamAI(player whichPlayer)
ShareEverythingWithTeam(player whichPlayer)
ConfigureNeutralVictim(nothing)
MakeUnitsPassiveForPlayerEnum(nothing)
MakeUnitsPassiveForPlayer(player whichPlayer)
MakeUnitsPassiveForTeam(player whichPlayer)
AllowVictoryDefeat(playergameresult gameResult)returns boolean
EndGameBJ(nothing)
MeleeVictoryDialogBJ(player whichPlayer, boolean leftGame)
MeleeDefeatDialogBJ(player whichPlayer, boolean leftGame)
GameOverDialogBJ(player whichPlayer, boolean leftGame)
RemovePlayerPreserveUnitsBJ(player whichPlayer, playergameresult gameResult, boolean leftGame)
CustomVictoryOkBJ(nothing)
CustomVictoryQuitBJ(nothing)
CustomVictoryDialogBJ(player whichPlayer)
CustomVictorySkipBJ(player whichPlayer)
CustomVictoryBJ(player whichPlayer, boolean showDialog, boolean showScores)
CustomDefeatRestartBJ(nothing)
CustomDefeatReduceDifficultyBJ(nothing)
CustomDefeatLoadBJ(nothing)
CustomDefeatQuitBJ(nothing)
CustomDefeatDialogBJ(player whichPlayer, string message)
CustomDefeatBJ(player whichPlayer, string message)
SetNextLevelBJ(string nextLevel)
SetPlayerOnScoreScreenBJ(boolean flag, player whichPlayer)
CreateQuestBJ(integer questType, string title, string description, string iconPath)returns quest
DestroyQuestBJ(quest whichQuest)
QuestSetEnabledBJ(boolean enabled, quest whichQuest)
QuestSetTitleBJ(quest whichQuest, string title)
QuestSetDescriptionBJ(quest whichQuest, string description)
QuestSetCompletedBJ(quest whichQuest, boolean completed)
QuestSetFailedBJ(quest whichQuest, boolean failed)
QuestSetDiscoveredBJ(quest whichQuest, boolean discovered)
GetLastCreatedQuestBJ(nothing)returns quest
CreateQuestItemBJ(quest whichQuest, string description)returns questitem
QuestItemSetDescriptionBJ(questitem whichQuestItem, string description)
QuestItemSetCompletedBJ(questitem whichQuestItem, boolean completed)
GetLastCreatedQuestItemBJ(nothing)returns questitem
CreateDefeatConditionBJ(string description)returns defeatcondition
DestroyDefeatConditionBJ(defeatcondition whichCondition)
DefeatConditionSetDescriptionBJ(defeatcondition whichCondition, string description)
GetLastCreatedDefeatConditionBJ(nothing)returns defeatcondition
FlashQuestDialogButtonBJ(nothing)
QuestMessageBJ(force f, integer messageType, string message)
StartTimerBJ(timer t, boolean periodic, real timeout)returns timer
CreateTimerBJ(boolean periodic, real timeout)returns timer
DestroyTimerBJ(timer whichTimer)
PauseTimerBJ(boolean pause, timer whichTimer)
GetLastCreatedTimerBJ(nothing)returns timer
CreateTimerDialogBJ(timer t, string title)returns timerdialog
DestroyTimerDialogBJ(timerdialog td)
TimerDialogSetTitleBJ(timerdialog td, string title)
TimerDialogSetTitleColorBJ(timerdialog td, real red, real green, real blue, real transparency)
TimerDialogSetTimeColorBJ(timerdialog td, real red, real green, real blue, real transparency)
TimerDialogSetSpeedBJ(timerdialog td, real speedMultFactor)
TimerDialogDisplayForPlayerBJ(boolean show, timerdialog td, player whichPlayer)
TimerDialogDisplayBJ(boolean show, timerdialog td)
GetLastCreatedTimerDialogBJ(nothing)returns timerdialog
LeaderboardResizeBJ(leaderboard lb)
LeaderboardSetPlayerItemValueBJ(player whichPlayer, leaderboard lb, integer val)
LeaderboardSetPlayerItemLabelBJ(player whichPlayer, leaderboard lb, string val)
LeaderboardSetPlayerItemStyleBJ(player whichPlayer, leaderboard lb, boolean showLabel, boolean showValue, boolean showIcon)
LeaderboardSetPlayerItemLabelColorBJ(player whichPlayer, leaderboard lb, real red, real green, real blue, real transparency)
LeaderboardSetPlayerItemValueColorBJ(player whichPlayer, leaderboard lb, real red, real green, real blue, real transparency)
LeaderboardSetLabelColorBJ(leaderboard lb, real red, real green, real blue, real transparency)
LeaderboardSetValueColorBJ(leaderboard lb, real red, real green, real blue, real transparency)
LeaderboardSetLabelBJ(leaderboard lb, string label)
LeaderboardSetStyleBJ(leaderboard lb, boolean showLabel, boolean showNames, boolean showValues, boolean showIcons)
LeaderboardGetItemCountBJ(leaderboard lb)returns integer
LeaderboardHasPlayerItemBJ(leaderboard lb, player whichPlayer)returns boolean
ForceSetLeaderboardBJ(leaderboard lb, force toForce)
CreateLeaderboardBJ(force toForce, string label)returns leaderboard
DestroyLeaderboardBJ(leaderboard lb)
LeaderboardDisplayBJ(boolean show, leaderboard lb)
LeaderboardAddItemBJ(player whichPlayer, leaderboard lb, string label, integer value)
LeaderboardRemovePlayerItemBJ(player whichPlayer, leaderboard lb)
LeaderboardSortItemsBJ(leaderboard lb, integer sortType, boolean ascending)
LeaderboardSortItemsByPlayerBJ(leaderboard lb, boolean ascending)
LeaderboardSortItemsByLabelBJ(leaderboard lb, boolean ascending)
LeaderboardGetPlayerIndexBJ(player whichPlayer, leaderboard lb)returns integer
LeaderboardGetIndexedPlayerBJ(integer position, leaderboard lb)returns player
PlayerGetLeaderboardBJ(player whichPlayer)returns leaderboard
GetLastCreatedLeaderboard(nothing)returns leaderboard
CreateMultiboardBJ(integer cols, integer rows, string title)returns multiboard
DestroyMultiboardBJ(multiboard mb)
GetLastCreatedMultiboard(nothing)returns multiboard
MultiboardDisplayBJ(boolean show, multiboard mb)
MultiboardMinimizeBJ(boolean minimize, multiboard mb)
MultiboardSetTitleTextColorBJ(multiboard mb, real red, real green, real blue, real transparency)
MultiboardAllowDisplayBJ(boolean flag)
MultiboardSetItemStyleBJ(multiboard mb, integer col, integer row, boolean showValue, boolean showIcon)
MultiboardSetItemValueBJ(multiboard mb, integer col, integer row, string val)
MultiboardSetItemColorBJ(multiboard mb, integer col, integer row, real red, real green, real blue, real transparency)
MultiboardSetItemWidthBJ(multiboard mb, integer col, integer row, real width)
MultiboardSetItemIconBJ(multiboard mb, integer col, integer row, string iconFileName)
TextTagSize2Height(real size)returns real
TextTagSpeed2Velocity(real speed)returns real
SetTextTagColorBJ(texttag tt, real red, real green, real blue, real transparency)
SetTextTagVelocityBJ(texttag tt, real speed, real angle)
SetTextTagTextBJ(texttag tt, string s, real size)
SetTextTagPosBJ(texttag tt, location loc, real zOffset)
SetTextTagPosUnitBJ(texttag tt, unit whichUnit, real zOffset)
SetTextTagSuspendedBJ(texttag tt, boolean flag)
SetTextTagPermanentBJ(texttag tt, boolean flag)
SetTextTagAgeBJ(texttag tt, real age)
SetTextTagLifespanBJ(texttag tt, real lifespan)
SetTextTagFadepointBJ(texttag tt, real fadepoint)
CreateTextTagLocBJ(string s, location loc, real zOffset, real size, real red, real green, real blue, real transparency)returns texttag
CreateTextTagUnitBJ(string s, unit whichUnit, real zOffset, real size, real red, real green, real blue, real transparency)returns texttag
DestroyTextTagBJ(texttag tt)
ShowTextTagForceBJ(boolean show, texttag tt, force whichForce)
GetLastCreatedTextTag(nothing)returns texttag
PauseGameOn(nothing)
PauseGameOff(nothing)
SetUserControlForceOn(force whichForce)
SetUserControlForceOff(force whichForce)
ShowInterfaceForceOn(force whichForce, real fadeDuration)
ShowInterfaceForceOff(force whichForce, real fadeDuration)
PingMinimapForForce(force whichForce, real x, real y, real duration)
PingMinimapLocForForce(force whichForce, location loc, real duration)
PingMinimapForPlayer(player whichPlayer, real x, real y, real duration)
PingMinimapLocForPlayer(player whichPlayer, location loc, real duration)
PingMinimapForForceEx(force whichForce, real x, real y, real duration, integer style, real red, real green, real blue)
PingMinimapLocForForceEx(force whichForce, location loc, real duration, integer style, real red, real green, real blue)
EnableWorldFogBoundaryBJ(boolean enable, force f)
EnableOcclusionBJ(boolean enable, force f)
CancelCineSceneBJ(nothing)
TryInitCinematicBehaviorBJ(nothing)
SetCinematicSceneBJ(sound soundHandle, integer portraitUnitId, playercolor color, string speakerTitle, string text, real sceneDuration, real voiceoverDuration)
GetTransmissionDuration(sound soundHandle, integer timeType, real timeVal)returns real
WaitTransmissionDuration(sound soundHandle, integer timeType, real timeVal)
DoTransmissionBasicsXYBJ(integer unitId, playercolor color, real x, real y, sound soundHandle, string unitName, string message, real duration)
TransmissionFromUnitWithNameBJ(force toForce, unit whichUnit, string unitName, sound soundHandle, string message, integer timeType, real timeVal, boolean wait)
TransmissionFromUnitTypeWithNameBJ(force toForce, player fromPlayer, integer unitId, string unitName, location loc, sound soundHandle, string message, integer timeType, real timeVal, boolean wait)
GetLastTransmissionDurationBJ(nothing)returns real
ForceCinematicSubtitlesBJ(boolean flag)
CinematicModeExBJ(boolean cineMode, force forForce, real interfaceFadeTime)
CinematicModeBJ(boolean cineMode, force forForce)
DisplayCineFilterBJ(boolean flag)
CinematicFadeCommonBJ(real red, real green, real blue, real duration, string tex, real startTrans, real endTrans)
FinishCinematicFadeBJ(nothing)
FinishCinematicFadeAfterBJ(real duration)
ContinueCinematicFadeBJ(nothing)
ContinueCinematicFadeAfterBJ(real duration, real red, real green, real blue, real trans, string tex)
AbortCinematicFadeBJ(nothing)
CinematicFadeBJ(integer fadetype, real duration, string tex, real red, real green, real blue, real trans)
CinematicFilterGenericBJ(real duration, blendmode bmode, string tex, real red0, real green0, real blue0, real trans0, real red1, real green1, real blue1, real trans1)
RescueUnitBJ(unit whichUnit, player rescuer, boolean changeColor)
TriggerActionUnitRescuedBJ(nothing)
TryInitRescuableTriggersBJ(nothing)
SetRescueUnitColorChangeBJ(boolean changeColor)
SetRescueBuildingColorChangeBJ(boolean changeColor)
MakeUnitRescuableToForceBJEnum(nothing)
MakeUnitRescuableToForceBJ(unit whichUnit, boolean isRescuable, force whichForce)
InitRescuableBehaviorBJ(nothing)
SetPlayerTechResearchedSwap(integer techid, integer levels, player whichPlayer)
SetPlayerTechMaxAllowedSwap(integer techid, integer maximum, player whichPlayer)
SetPlayerMaxHeroesAllowed(integer maximum, player whichPlayer)
GetPlayerTechCountSimple(integer techid, player whichPlayer)returns integer
GetPlayerTechMaxAllowedSwap(integer techid, player whichPlayer)returns integer
SetPlayerAbilityAvailableBJ(boolean avail, integer abilid, player whichPlayer)
SetCampaignMenuRaceBJ(integer campaignNumber)
SetMissionAvailableBJ(boolean available, integer missionIndex)
SetCampaignAvailableBJ(boolean available, integer campaignNumber)
SetCinematicAvailableBJ(boolean available, integer cinematicIndex)
InitGameCacheBJ(string campaignFile)returns gamecache
SaveGameCacheBJ(gamecache cache)returns boolean
GetLastCreatedGameCacheBJ(nothing)returns gamecache
InitHashtableBJ(nothing)returns hashtable
GetLastCreatedHashtableBJ(nothing)returns hashtable
StoreRealBJ(real value, string key, string missionKey, gamecache cache)
StoreIntegerBJ(integer value, string key, string missionKey, gamecache cache)
StoreBooleanBJ(boolean value, string key, string missionKey, gamecache cache)
StoreStringBJ(string value, string key, string missionKey, gamecache cache)returns boolean
StoreUnitBJ(unit whichUnit, string key, string missionKey, gamecache cache)returns boolean
SaveRealBJ(real value, integer key, integer missionKey, hashtable table)
SaveIntegerBJ(integer value, integer key, integer missionKey, hashtable table)
SaveBooleanBJ(boolean value, integer key, integer missionKey, hashtable table)
SaveStringBJ(string value, integer key, integer missionKey, hashtable table)returns boolean
SavePlayerHandleBJ(player whichPlayer, integer key, integer missionKey, hashtable table)returns boolean
SaveWidgetHandleBJ(widget whichWidget, integer key, integer missionKey, hashtable table)returns boolean
SaveDestructableHandleBJ(destructable whichDestructable, integer key, integer missionKey, hashtable table)returns boolean
SaveItemHandleBJ(item whichItem, integer key, integer missionKey, hashtable table)returns boolean
SaveUnitHandleBJ(unit whichUnit, integer key, integer missionKey, hashtable table)returns boolean
SaveAbilityHandleBJ(ability whichAbility, integer key, integer missionKey, hashtable table)returns boolean
SaveTimerHandleBJ(timer whichTimer, integer key, integer missionKey, hashtable table)returns boolean
SaveTriggerHandleBJ(trigger whichTrigger, integer key, integer missionKey, hashtable table)returns boolean
SaveTriggerConditionHandleBJ(triggercondition whichTriggercondition, integer key, integer missionKey, hashtable table)returns boolean
SaveTriggerActionHandleBJ(triggeraction whichTriggeraction, integer key, integer missionKey, hashtable table)returns boolean
SaveTriggerEventHandleBJ(event whichEvent, integer key, integer missionKey, hashtable table)returns boolean
SaveForceHandleBJ(force whichForce, integer key, integer missionKey, hashtable table)returns boolean
SaveGroupHandleBJ(group whichGroup, integer key, integer missionKey, hashtable table)returns boolean
SaveLocationHandleBJ(location whichLocation, integer key, integer missionKey, hashtable table)returns boolean
SaveRectHandleBJ(rect whichRect, integer key, integer missionKey, hashtable table)returns boolean
SaveBooleanExprHandleBJ(boolexpr whichBoolexpr, integer key, integer missionKey, hashtable table)returns boolean
SaveSoundHandleBJ(sound whichSound, integer key, integer missionKey, hashtable table)returns boolean
SaveEffectHandleBJ(effect whichEffect, integer key, integer missionKey, hashtable table)returns boolean
SaveUnitPoolHandleBJ(unitpool whichUnitpool, integer key, integer missionKey, hashtable table)returns boolean
SaveItemPoolHandleBJ(itempool whichItempool, integer key, integer missionKey, hashtable table)returns boolean
SaveQuestHandleBJ(quest whichQuest, integer key, integer missionKey, hashtable table)returns boolean
SaveQuestItemHandleBJ(questitem whichQuestitem, integer key, integer missionKey, hashtable table)returns boolean
SaveDefeatConditionHandleBJ(defeatcondition whichDefeatcondition, integer key, integer missionKey, hashtable table)returns boolean
SaveTimerDialogHandleBJ(timerdialog whichTimerdialog, integer key, integer missionKey, hashtable table)returns boolean
SaveLeaderboardHandleBJ(leaderboard whichLeaderboard, integer key, integer missionKey, hashtable table)returns boolean
SaveMultiboardHandleBJ(multiboard whichMultiboard, integer key, integer missionKey, hashtable table)returns boolean
SaveMultiboardItemHandleBJ(multiboarditem whichMultiboarditem, integer key, integer missionKey, hashtable table)returns boolean
SaveTrackableHandleBJ(trackable whichTrackable, integer key, integer missionKey, hashtable table)returns boolean
SaveDialogHandleBJ(dialog whichDialog, integer key, integer missionKey, hashtable table)returns boolean
SaveButtonHandleBJ(button whichButton, integer key, integer missionKey, hashtable table)returns boolean
SaveTextTagHandleBJ(texttag whichTexttag, integer key, integer missionKey, hashtable table)returns boolean
SaveLightningHandleBJ(lightning whichLightning, integer key, integer missionKey, hashtable table)returns boolean
SaveImageHandleBJ(image whichImage, integer key, integer missionKey, hashtable table)returns boolean
SaveUbersplatHandleBJ(ubersplat whichUbersplat, integer key, integer missionKey, hashtable table)returns boolean
SaveRegionHandleBJ(region whichRegion, integer key, integer missionKey, hashtable table)returns boolean
SaveFogStateHandleBJ(fogstate whichFogState, integer key, integer missionKey, hashtable table)returns boolean
SaveFogModifierHandleBJ(fogmodifier whichFogModifier, integer key, integer missionKey, hashtable table)returns boolean
SaveAgentHandleBJ(agent whichAgent, integer key, integer missionKey, hashtable table)returns boolean
SaveHashtableHandleBJ(hashtable whichHashtable, integer key, integer missionKey, hashtable table)returns boolean
GetStoredRealBJ(string key, string missionKey, gamecache cache)returns real
GetStoredIntegerBJ(string key, string missionKey, gamecache cache)returns integer
GetStoredBooleanBJ(string key, string missionKey, gamecache cache)returns boolean
GetStoredStringBJ(string key, string missionKey, gamecache cache)returns string
LoadRealBJ(integer key, integer missionKey, hashtable table)returns real
LoadIntegerBJ(integer key, integer missionKey, hashtable table)returns integer
LoadBooleanBJ(integer key, integer missionKey, hashtable table)returns boolean
LoadStringBJ(integer key, integer missionKey, hashtable table)returns string
LoadPlayerHandleBJ(integer key, integer missionKey, hashtable table)returns player
LoadWidgetHandleBJ(integer key, integer missionKey, hashtable table)returns widget
LoadDestructableHandleBJ(integer key, integer missionKey, hashtable table)returns destructable
LoadItemHandleBJ(integer key, integer missionKey, hashtable table)returns item
LoadUnitHandleBJ(integer key, integer missionKey, hashtable table)returns unit
LoadAbilityHandleBJ(integer key, integer missionKey, hashtable table)returns ability
LoadTimerHandleBJ(integer key, integer missionKey, hashtable table)returns timer
LoadTriggerHandleBJ(integer key, integer missionKey, hashtable table)returns trigger
LoadTriggerConditionHandleBJ(integer key, integer missionKey, hashtable table)returns triggercondition
LoadTriggerActionHandleBJ(integer key, integer missionKey, hashtable table)returns triggeraction
LoadTriggerEventHandleBJ(integer key, integer missionKey, hashtable table)returns event
LoadForceHandleBJ(integer key, integer missionKey, hashtable table)returns force
LoadGroupHandleBJ(integer key, integer missionKey, hashtable table)returns group
LoadLocationHandleBJ(integer key, integer missionKey, hashtable table)returns location
LoadRectHandleBJ(integer key, integer missionKey, hashtable table)returns rect
LoadBooleanExprHandleBJ(integer key, integer missionKey, hashtable table)returns boolexpr
LoadSoundHandleBJ(integer key, integer missionKey, hashtable table)returns sound
LoadEffectHandleBJ(integer key, integer missionKey, hashtable table)returns effect
LoadUnitPoolHandleBJ(integer key, integer missionKey, hashtable table)returns unitpool
LoadItemPoolHandleBJ(integer key, integer missionKey, hashtable table)returns itempool
LoadQuestHandleBJ(integer key, integer missionKey, hashtable table)returns quest
LoadQuestItemHandleBJ(integer key, integer missionKey, hashtable table)returns questitem
LoadDefeatConditionHandleBJ(integer key, integer missionKey, hashtable table)returns defeatcondition
LoadTimerDialogHandleBJ(integer key, integer missionKey, hashtable table)returns timerdialog
LoadLeaderboardHandleBJ(integer key, integer missionKey, hashtable table)returns leaderboard
LoadMultiboardHandleBJ(integer key, integer missionKey, hashtable table)returns multiboard
LoadMultiboardItemHandleBJ(integer key, integer missionKey, hashtable table)returns multiboarditem
LoadTrackableHandleBJ(integer key, integer missionKey, hashtable table)returns trackable
LoadDialogHandleBJ(integer key, integer missionKey, hashtable table)returns dialog
LoadButtonHandleBJ(integer key, integer missionKey, hashtable table)returns button
LoadTextTagHandleBJ(integer key, integer missionKey, hashtable table)returns texttag
LoadLightningHandleBJ(integer key, integer missionKey, hashtable table)returns lightning
LoadImageHandleBJ(integer key, integer missionKey, hashtable table)returns image
LoadUbersplatHandleBJ(integer key, integer missionKey, hashtable table)returns ubersplat
LoadRegionHandleBJ(integer key, integer missionKey, hashtable table)returns region
LoadFogStateHandleBJ(integer key, integer missionKey, hashtable table)returns fogstate
LoadFogModifierHandleBJ(integer key, integer missionKey, hashtable table)returns fogmodifier
LoadHashtableHandleBJ(integer key, integer missionKey, hashtable table)returns hashtable
RestoreUnitLocFacingAngleBJ(string key, string missionKey, gamecache cache, player forWhichPlayer, location loc, real facing)returns unit
RestoreUnitLocFacingPointBJ(string key, string missionKey, gamecache cache, player forWhichPlayer, location loc, location lookAt)returns unit
GetLastRestoredUnitBJ(nothing)returns unit
FlushGameCacheBJ(gamecache cache)
FlushStoredMissionBJ(string missionKey, gamecache cache)
FlushParentHashtableBJ(hashtable table)
FlushChildHashtableBJ(integer missionKey, hashtable table)
HaveStoredValue(string key, integer valueType, string missionKey, gamecache cache)returns boolean
HaveSavedValue(integer key, integer valueType, integer missionKey, hashtable table)returns boolean
ShowCustomCampaignButton(boolean show, integer whichButton)
IsCustomCampaignButtonVisibile(integer whichButton)returns boolean
LoadGameBJ(string loadFileName, boolean doScoreScreen)
SaveAndChangeLevelBJ(string saveFileName, string newLevel, boolean doScoreScreen)
SaveAndLoadGameBJ(string saveFileName, string loadFileName, boolean doScoreScreen)
RenameSaveDirectoryBJ(string sourceDirName, string destDirName)returns boolean
RemoveSaveDirectoryBJ(string sourceDirName)returns boolean
CopySaveGameBJ(string sourceSaveName, string destSaveName)returns boolean
GetPlayerStartLocationX(player whichPlayer)returns real
GetPlayerStartLocationY(player whichPlayer)returns real
GetPlayerStartLocationLoc(player whichPlayer)returns location
GetRectCenter(rect whichRect)returns location
IsPlayerSlotState(player whichPlayer, playerslotstate whichState)returns boolean
GetFadeFromSeconds(real seconds)returns integer
AdjustPlayerStateSimpleBJ(player whichPlayer, playerstate whichPlayerState, integer delta)
AdjustPlayerStateBJ(integer delta, player whichPlayer, playerstate whichPlayerState)
SetPlayerStateBJ(player whichPlayer, playerstate whichPlayerState, integer value)
SetPlayerFlagBJ(playerstate whichPlayerFlag, boolean flag, player whichPlayer)
SetPlayerTaxRateBJ(integer rate, playerstate whichResource, player sourcePlayer, player otherPlayer)
GetPlayerTaxRateBJ(playerstate whichResource, player sourcePlayer, player otherPlayer)returns integer
IsPlayerFlagSetBJ(playerstate whichPlayerFlag, player whichPlayer)returns boolean
AddResourceAmountBJ(integer delta, unit whichUnit)
GetConvertedPlayerId(player whichPlayer)returns integer
ConvertedPlayer(integer convertedPlayerId)returns player
GetRectWidthBJ(rect r)returns real
GetRectHeightBJ(rect r)returns real
BlightGoldMineForPlayerBJ(unit goldMine, player whichPlayer)returns unit
BlightGoldMineForPlayer(unit goldMine, player whichPlayer)returns unit
GetLastHauntedGoldMine(nothing)returns unit
IsPointBlightedBJ(location where)returns boolean
SetPlayerColorBJEnum(nothing)
SetPlayerColorBJ(player whichPlayer, playercolor color, boolean changeExisting)
SetPlayerUnitAvailableBJ(integer unitId, boolean allowed, player whichPlayer)
LockGameSpeedBJ(nothing)
UnlockGameSpeedBJ(nothing)
IssueTargetOrderBJ(unit whichUnit, string order, widget targetWidget)returns boolean
IssuePointOrderLocBJ(unit whichUnit, string order, location whichLocation)returns boolean
IssueTargetDestructableOrder(unit whichUnit, string order, widget targetWidget)returns boolean
IssueTargetItemOrder(unit whichUnit, string order, widget targetWidget)returns boolean
IssueImmediateOrderBJ(unit whichUnit, string order)returns boolean
GroupTargetOrderBJ(group whichGroup, string order, widget targetWidget)returns boolean
GroupPointOrderLocBJ(group whichGroup, string order, location whichLocation)returns boolean
GroupImmediateOrderBJ(group whichGroup, string order)returns boolean
GroupTargetDestructableOrder(group whichGroup, string order, widget targetWidget)returns boolean
GroupTargetItemOrder(group whichGroup, string order, widget targetWidget)returns boolean
GetDyingDestructable(nothing)returns destructable
SetUnitRallyPoint(unit whichUnit, location targPos)
SetUnitRallyUnit(unit whichUnit, unit targUnit)
SetUnitRallyDestructable(unit whichUnit, destructable targDest)
SaveDyingWidget(nothing)
SetBlightRectBJ(boolean addBlight, player whichPlayer, rect r)
SetBlightRadiusLocBJ(boolean addBlight, player whichPlayer, location loc, real radius)
GetAbilityName(integer abilcode)returns string
MeleeStartingVisibility(nothing)
MeleeStartingResources(nothing)
ReducePlayerTechMaxAllowed(player whichPlayer, integer techId, integer limit)
MeleeStartingHeroLimit(nothing)
MeleeTrainedUnitIsHeroBJFilter(nothing)returns boolean
MeleeGrantItemsToHero(unit whichUnit)
MeleeGrantItemsToTrainedHero(nothing)
MeleeGrantItemsToHiredHero(nothing)
MeleeGrantHeroItems(nothing)
MeleeClearExcessUnit(nothing)
MeleeClearNearbyUnits(real x, real y, real range)
MeleeClearExcessUnits(nothing)
MeleeEnumFindNearestMine(nothing)
MeleeFindNearestMine(location src, real range)returns unit
MeleeRandomHeroLoc(player p, integer id1, integer id2, integer id3, integer id4, location loc)returns unit
MeleeGetProjectedLoc(location src, location targ, real distance, real deltaAngle)returns location
MeleeGetNearestValueWithin(real val, real minVal, real maxVal)returns real
MeleeGetLocWithinRect(location src, rect r)returns location
MeleeStartingUnitsHuman(player whichPlayer, location startLoc, boolean doHeroes, boolean doCamera, boolean doPreload)
MeleeStartingUnitsOrc(player whichPlayer, location startLoc, boolean doHeroes, boolean doCamera, boolean doPreload)
MeleeStartingUnitsUndead(player whichPlayer, location startLoc, boolean doHeroes, boolean doCamera, boolean doPreload)
MeleeStartingUnitsNightElf(player whichPlayer, location startLoc, boolean doHeroes, boolean doCamera, boolean doPreload)
MeleeStartingUnitsUnknownRace(player whichPlayer, location startLoc, boolean doHeroes, boolean doCamera, boolean doPreload)
MeleeStartingUnits(nothing)
MeleeStartingUnitsForPlayer(race whichRace, player whichPlayer, location loc, boolean doHeroes)
PickMeleeAI(player num, string s1, string s2, string s3)
MeleeStartingAI(nothing)
LockGuardPosition(unit targ)
MeleePlayerIsOpponent(integer playerIndex, integer opponentIndex)returns boolean
MeleeGetAllyStructureCount(player whichPlayer)returns integer
MeleeGetAllyCount(player whichPlayer)returns integer
MeleeGetAllyKeyStructureCount(player whichPlayer)returns integer
MeleeDoDrawEnum(nothing)
MeleeDoVictoryEnum(nothing)
MeleeDoDefeat(player whichPlayer)
MeleeDoDefeatEnum(nothing)
MeleeDoLeave(player whichPlayer)
MeleeRemoveObservers(nothing)
MeleeCheckForVictors(nothing)returns force
MeleeCheckForLosersAndVictors(nothing)
MeleeGetCrippledWarningMessage(player whichPlayer)returns string
MeleeGetCrippledTimerMessage(player whichPlayer)returns string
MeleeGetCrippledRevealedMessage(player whichPlayer)returns string
MeleeExposePlayer(player whichPlayer, boolean expose)
MeleeExposeAllPlayers(nothing)
MeleeCrippledPlayerTimeout(nothing)
MeleePlayerIsCrippled(player whichPlayer)returns boolean
MeleeCheckForCrippledPlayers(nothing)
MeleeCheckLostUnit(unit lostUnit)
MeleeCheckAddedUnit(unit addedUnit)
MeleeTriggerActionConstructCancel(nothing)
MeleeTriggerActionUnitDeath(nothing)
MeleeTriggerActionUnitConstructionStart(nothing)
MeleeTriggerActionPlayerDefeated(nothing)
MeleeTriggerActionPlayerLeft(nothing)
MeleeTriggerActionAllianceChange(nothing)
MeleeTriggerTournamentFinishSoon(nothing)
MeleeWasUserPlayer(player whichPlayer)returns boolean
MeleeTournamentFinishNowRuleA(integer multiplier)
MeleeTriggerTournamentFinishNow(nothing)
MeleeInitVictoryDefeat(nothing)
CheckInitPlayerSlotAvailability(nothing)
SetPlayerSlotAvailable(player whichPlayer, mapcontrol control)
TeamInitPlayerSlots(integer teamCount)
MeleeInitPlayerSlots(nothing)
FFAInitPlayerSlots(nothing)
OneOnOneInitPlayerSlots(nothing)
InitGenericPlayerSlots(nothing)
SetDNCSoundsDawn(nothing)
SetDNCSoundsDusk(nothing)
SetDNCSoundsDay(nothing)
SetDNCSoundsNight(nothing)
InitDNCSounds(nothing)
InitBlizzardGlobals(nothing)
InitQueuedTriggers(nothing)
InitMapRects(nothing)
InitSummonableCaps(nothing)
UpdateStockAvailability(item whichItem)
UpdateEachStockBuildingEnum(nothing)
UpdateEachStockBuilding(itemtype iType, integer iLevel)
PerformStockUpdates(nothing)
StartStockUpdates(nothing)
RemovePurchasedItem(nothing)
InitNeutralBuildings(nothing)
MarkGameStarted(nothing)
DetectGameStarted(nothing)
InitBlizzard(nothing)
RandomDistReset(nothing)
RandomDistAddItem(integer inID, integer inChance)
RandomDistChoose(nothing)returns integer
UnitDropItem(unit inUnit, integer inItemID)returns item
