Skip to content
Home
Post Code
Jass (Warcraft III)
Wurst
GUI (Warcraft III)
Galaxy (StarCraft II)
GUI (StarCraft II)
C++
Java
Delphi
Text
Search Code
Compare Code
Uploads
Draw
Create New Drawing
View Drawings
Graph
Log in
[code][color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Native types. All native functions take extended handle types when[/i][/color] [color=999999][i]// possible to help prevent passing bad values to native functions[/i][/color] [color=999999][i]//[/i][/color] type agent extends handle [color=999999][i]// all reference counted objects[/i][/color] type event extends agent [color=999999][i]// a reference to an event registration[/i][/color] type player extends agent [color=999999][i]// a single player reference[/i][/color] type widget extends agent [color=999999][i]// an interactive game object with life[/i][/color] type [color=AA77FF]unit[/color] extends widget [color=999999][i]// a single unit reference[/i][/color] type destructable extends widget type item extends widget type ability extends agent type buff extends ability type force extends agent type group extends agent type [color=AA77FF]trigger[/color] extends agent type triggercondition extends agent type triggeraction extends handle type timer extends agent type location extends agent type [color=AA77FF]region[/color] extends agent type rect extends agent type boolexpr extends agent type sound extends agent type conditionfunc extends boolexpr type filterfunc extends boolexpr type unitpool extends handle type itempool extends handle type race extends handle type alliancetype extends handle type racepreference extends handle type gamestate extends handle type igamestate extends gamestate type fgamestate extends gamestate type playerstate extends handle type playerscore extends handle type playergameresult extends handle type unitstate extends handle type aidifficulty extends handle type eventid extends handle type gameevent extends eventid type playerevent extends eventid type playerunitevent extends eventid type unitevent extends eventid type limitop extends eventid type widgetevent extends eventid type dialogevent extends eventid type unittype extends handle type gamespeed extends handle type gamedifficulty extends handle type gametype extends handle type mapflag extends handle type mapvisibility extends handle type mapsetting extends handle type mapdensity extends handle type mapcontrol extends handle type playerslotstate extends handle type volumegroup extends handle type camerafield extends handle type camerasetup extends handle type playercolor extends handle type placement extends handle type startlocprio extends handle type raritycontrol extends handle type blendmode extends handle type texmapflags extends handle type effect extends agent type effecttype extends handle type weathereffect extends handle type terraindeformation extends handle type fogstate extends handle type fogmodifier extends agent type dialog extends agent type button extends agent type quest extends agent type questitem extends agent type defeatcondition extends agent type timerdialog extends agent type leaderboard extends agent type multiboard extends agent type multiboarditem extends agent type trackable extends agent type gamecache extends agent type version extends handle type itemtype extends handle type texttag extends handle type attacktype extends handle type damagetype extends handle type weapontype extends handle type soundtype extends handle type lightning extends handle type pathingtype extends handle type mousebuttontype extends handle type image extends handle type ubersplat extends handle type hashtable extends agent constant [color=7777FF][b]native[/b][/color] ConvertRace takes integer i returns race constant [color=7777FF][b]native[/b][/color] ConvertAllianceType takes integer i returns alliancetype constant [color=7777FF][b]native[/b][/color] ConvertRacePref takes integer i returns racepreference constant [color=7777FF][b]native[/b][/color] ConvertIGameState takes integer i returns igamestate constant [color=7777FF][b]native[/b][/color] ConvertFGameState takes integer i returns fgamestate constant [color=7777FF][b]native[/b][/color] ConvertPlayerState takes integer i returns playerstate constant [color=7777FF][b]native[/b][/color] ConvertPlayerScore takes integer i returns playerscore constant [color=7777FF][b]native[/b][/color] ConvertPlayerGameResult takes integer i returns playergameresult constant [color=7777FF][b]native[/b][/color] ConvertUnitState takes integer i returns unitstate constant [color=7777FF][b]native[/b][/color] ConvertAIDifficulty takes integer i returns aidifficulty constant [color=7777FF][b]native[/b][/color] ConvertGameEvent takes integer i returns gameevent constant [color=7777FF][b]native[/b][/color] ConvertPlayerEvent takes integer i returns playerevent constant [color=7777FF][b]native[/b][/color] ConvertPlayerUnitEvent takes integer i returns playerunitevent constant [color=7777FF][b]native[/b][/color] ConvertWidgetEvent takes integer i returns widgetevent constant [color=7777FF][b]native[/b][/color] ConvertDialogEvent takes integer i returns dialogevent constant [color=7777FF][b]native[/b][/color] ConvertUnitEvent takes integer i returns unitevent constant [color=7777FF][b]native[/b][/color] ConvertLimitOp takes integer i returns limitop constant [color=7777FF][b]native[/b][/color] ConvertUnitType takes integer i returns unittype constant [color=7777FF][b]native[/b][/color] ConvertGameSpeed takes integer i returns gamespeed constant [color=7777FF][b]native[/b][/color] ConvertPlacement takes integer i returns placement constant [color=7777FF][b]native[/b][/color] ConvertStartLocPrio takes integer i returns startlocprio constant [color=7777FF][b]native[/b][/color] ConvertGameDifficulty takes integer i returns gamedifficulty constant [color=7777FF][b]native[/b][/color] ConvertGameType takes integer i returns gametype constant [color=7777FF][b]native[/b][/color] ConvertMapFlag takes integer i returns mapflag constant [color=7777FF][b]native[/b][/color] ConvertMapVisibility takes integer i returns mapvisibility constant [color=7777FF][b]native[/b][/color] ConvertMapSetting takes integer i returns mapsetting constant [color=7777FF][b]native[/b][/color] ConvertMapDensity takes integer i returns mapdensity constant [color=7777FF][b]native[/b][/color] ConvertMapControl takes integer i returns mapcontrol constant [color=7777FF][b]native[/b][/color] ConvertPlayerColor takes integer i returns playercolor constant [color=7777FF][b]native[/b][/color] ConvertPlayerSlotState takes integer i returns playerslotstate constant [color=7777FF][b]native[/b][/color] ConvertVolumeGroup takes integer i returns volumegroup constant [color=7777FF][b]native[/b][/color] ConvertCameraField takes integer i returns camerafield constant [color=7777FF][b]native[/b][/color] ConvertBlendMode takes integer i returns blendmode constant [color=7777FF][b]native[/b][/color] ConvertRarityControl takes integer i returns raritycontrol constant [color=7777FF][b]native[/b][/color] ConvertTexMapFlags takes integer i returns texmapflags constant [color=7777FF][b]native[/b][/color] ConvertFogState takes integer i returns fogstate constant [color=7777FF][b]native[/b][/color] ConvertEffectType takes integer i returns effecttype constant [color=7777FF][b]native[/b][/color] ConvertVersion takes integer i returns version constant [color=7777FF][b]native[/b][/color] ConvertItemType takes integer i returns itemtype constant [color=7777FF][b]native[/b][/color] ConvertAttackType takes integer i returns attacktype constant [color=7777FF][b]native[/b][/color] ConvertDamageType takes integer i returns damagetype constant [color=7777FF][b]native[/b][/color] ConvertWeaponType takes integer i returns weapontype constant [color=7777FF][b]native[/b][/color] ConvertSoundType takes integer i returns soundtype constant [color=7777FF][b]native[/b][/color] ConvertPathingType takes integer i returns pathingtype constant [color=7777FF][b]native[/b][/color] ConvertMouseButtonType takes integer i returns mousebuttontype constant [color=7777FF][b]native[/b][/color] OrderId takes [color=AA77FF]string[/color] orderIdString returns integer constant [color=7777FF][b]native[/b][/color] OrderId2String takes integer orderId returns [color=AA77FF]string[/color] constant [color=7777FF][b]native[/b][/color] UnitId takes [color=AA77FF]string[/color] unitIdString returns integer constant [color=7777FF][b]native[/b][/color] UnitId2String takes integer unitId returns [color=AA77FF]string[/color] [color=999999][i]// Not currently working correctly...[/i][/color] constant [color=7777FF][b]native[/b][/color] AbilityId takes [color=AA77FF]string[/color] abilityIdString returns integer constant [color=7777FF][b]native[/b][/color] AbilityId2String takes integer abilityId returns [color=AA77FF]string[/color] [color=999999][i]// Looks up the "name" field for any object (unit, item, ability)[/i][/color] constant [color=7777FF][b]native[/b][/color] GetObjectName takes integer objectId returns [color=AA77FF]string[/color] constant [color=7777FF][b]native[/b][/color] GetBJMaxPlayers takes nothing returns integer constant [color=7777FF][b]native[/b][/color] GetBJPlayerNeutralVictim takes nothing returns integer constant [color=7777FF][b]native[/b][/color] GetBJPlayerNeutralExtra takes nothing returns integer constant [color=7777FF][b]native[/b][/color] GetBJMaxPlayerSlots takes nothing returns integer constant [color=7777FF][b]native[/b][/color] GetPlayerNeutralPassive takes nothing returns integer constant [color=7777FF][b]native[/b][/color] GetPlayerNeutralAggressive takes nothing returns integer globals [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Game Constants[/i][/color] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// pfff[/i][/color] constant boolean FALSE [b]=[/b] [color=7777FF][b]false[/b][/color] constant boolean TRUE [b]=[/b] [color=7777FF][b]true[/b][/color] constant integer JASS_MAX_ARRAY_SIZE [b]=[/b] [color=FFFF77]8192[/color] constant integer PLAYER_NEUTRAL_PASSIVE [b]=[/b] GetPlayerNeutralPassive[b]([/b][b])[/b] constant integer PLAYER_NEUTRAL_AGGRESSIVE [b]=[/b] GetPlayerNeutralAggressive[b]([/b][b])[/b] constant playercolor PLAYER_COLOR_RED [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]0[/color][b])[/b] constant playercolor PLAYER_COLOR_BLUE [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]1[/color][b])[/b] constant playercolor PLAYER_COLOR_CYAN [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]2[/color][b])[/b] constant playercolor PLAYER_COLOR_PURPLE [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]3[/color][b])[/b] constant playercolor PLAYER_COLOR_YELLOW [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]4[/color][b])[/b] constant playercolor PLAYER_COLOR_ORANGE [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]5[/color][b])[/b] constant playercolor PLAYER_COLOR_GREEN [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]6[/color][b])[/b] constant playercolor PLAYER_COLOR_PINK [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]7[/color][b])[/b] constant playercolor PLAYER_COLOR_LIGHT_GRAY [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]8[/color][b])[/b] constant playercolor PLAYER_COLOR_LIGHT_BLUE [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]9[/color][b])[/b] constant playercolor PLAYER_COLOR_AQUA [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]10[/color][b])[/b] constant playercolor PLAYER_COLOR_BROWN [b]=[/b] ConvertPlayerColor[b]([/b][color=FFFF77]11[/color][b])[/b] constant race RACE_HUMAN [b]=[/b] ConvertRace[b]([/b][color=FFFF77]1[/color][b])[/b] constant race RACE_ORC [b]=[/b] ConvertRace[b]([/b][color=FFFF77]2[/color][b])[/b] constant race RACE_UNDEAD [b]=[/b] ConvertRace[b]([/b][color=FFFF77]3[/color][b])[/b] constant race RACE_NIGHTELF [b]=[/b] ConvertRace[b]([/b][color=FFFF77]4[/color][b])[/b] constant race RACE_DEMON [b]=[/b] ConvertRace[b]([/b][color=FFFF77]5[/color][b])[/b] constant race RACE_OTHER [b]=[/b] ConvertRace[b]([/b][color=FFFF77]7[/color][b])[/b] constant playergameresult PLAYER_GAME_RESULT_VICTORY [b]=[/b] ConvertPlayerGameResult[b]([/b][color=FFFF77]0[/color][b])[/b] constant playergameresult PLAYER_GAME_RESULT_DEFEAT [b]=[/b] ConvertPlayerGameResult[b]([/b][color=FFFF77]1[/color][b])[/b] constant playergameresult PLAYER_GAME_RESULT_TIE [b]=[/b] ConvertPlayerGameResult[b]([/b][color=FFFF77]2[/color][b])[/b] constant playergameresult PLAYER_GAME_RESULT_NEUTRAL [b]=[/b] ConvertPlayerGameResult[b]([/b][color=FFFF77]3[/color][b])[/b] constant alliancetype ALLIANCE_PASSIVE [b]=[/b] ConvertAllianceType[b]([/b][color=FFFF77]0[/color][b])[/b] constant alliancetype ALLIANCE_HELP_REQUEST [b]=[/b] ConvertAllianceType[b]([/b][color=FFFF77]1[/color][b])[/b] constant alliancetype ALLIANCE_HELP_RESPONSE [b]=[/b] ConvertAllianceType[b]([/b][color=FFFF77]2[/color][b])[/b] constant alliancetype ALLIANCE_SHARED_XP [b]=[/b] ConvertAllianceType[b]([/b][color=FFFF77]3[/color][b])[/b] constant alliancetype ALLIANCE_SHARED_SPELLS [b]=[/b] ConvertAllianceType[b]([/b][color=FFFF77]4[/color][b])[/b] constant alliancetype ALLIANCE_SHARED_VISION [b]=[/b] ConvertAllianceType[b]([/b][color=FFFF77]5[/color][b])[/b] constant alliancetype ALLIANCE_SHARED_CONTROL [b]=[/b] ConvertAllianceType[b]([/b][color=FFFF77]6[/color][b])[/b] constant alliancetype ALLIANCE_SHARED_ADVANCED_CONTROL[b]=[/b] ConvertAllianceType[b]([/b][color=FFFF77]7[/color][b])[/b] constant alliancetype ALLIANCE_RESCUABLE [b]=[/b] ConvertAllianceType[b]([/b][color=FFFF77]8[/color][b])[/b] constant alliancetype ALLIANCE_SHARED_VISION_FORCED [b]=[/b] ConvertAllianceType[b]([/b][color=FFFF77]9[/color][b])[/b] constant version VERSION_REIGN_OF_CHAOS [b]=[/b] ConvertVersion[b]([/b][color=FFFF77]0[/color][b])[/b] constant version VERSION_FROZEN_THRONE [b]=[/b] ConvertVersion[b]([/b][color=FFFF77]1[/color][b])[/b] constant attacktype ATTACK_TYPE_NORMAL [b]=[/b] ConvertAttackType[b]([/b][color=FFFF77]0[/color][b])[/b] constant attacktype ATTACK_TYPE_MELEE [b]=[/b] ConvertAttackType[b]([/b][color=FFFF77]1[/color][b])[/b] constant attacktype ATTACK_TYPE_PIERCE [b]=[/b] ConvertAttackType[b]([/b][color=FFFF77]2[/color][b])[/b] constant attacktype ATTACK_TYPE_SIEGE [b]=[/b] ConvertAttackType[b]([/b][color=FFFF77]3[/color][b])[/b] constant attacktype ATTACK_TYPE_MAGIC [b]=[/b] ConvertAttackType[b]([/b][color=FFFF77]4[/color][b])[/b] constant attacktype ATTACK_TYPE_CHAOS [b]=[/b] ConvertAttackType[b]([/b][color=FFFF77]5[/color][b])[/b] constant attacktype ATTACK_TYPE_HERO [b]=[/b] ConvertAttackType[b]([/b][color=FFFF77]6[/color][b])[/b] constant damagetype DAMAGE_TYPE_UNKNOWN [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]0[/color][b])[/b] constant damagetype DAMAGE_TYPE_NORMAL [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]4[/color][b])[/b] constant damagetype DAMAGE_TYPE_ENHANCED [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]5[/color][b])[/b] constant damagetype DAMAGE_TYPE_FIRE [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]8[/color][b])[/b] constant damagetype DAMAGE_TYPE_COLD [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]9[/color][b])[/b] constant damagetype DAMAGE_TYPE_LIGHTNING [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]10[/color][b])[/b] constant damagetype DAMAGE_TYPE_POISON [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]11[/color][b])[/b] constant damagetype DAMAGE_TYPE_DISEASE [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]12[/color][b])[/b] constant damagetype DAMAGE_TYPE_DIVINE [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]13[/color][b])[/b] constant damagetype DAMAGE_TYPE_MAGIC [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]14[/color][b])[/b] constant damagetype DAMAGE_TYPE_SONIC [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]15[/color][b])[/b] constant damagetype DAMAGE_TYPE_ACID [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]16[/color][b])[/b] constant damagetype DAMAGE_TYPE_FORCE [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]17[/color][b])[/b] constant damagetype DAMAGE_TYPE_DEATH [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]18[/color][b])[/b] constant damagetype DAMAGE_TYPE_MIND [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]19[/color][b])[/b] constant damagetype DAMAGE_TYPE_PLANT [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]20[/color][b])[/b] constant damagetype DAMAGE_TYPE_DEFENSIVE [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]21[/color][b])[/b] constant damagetype DAMAGE_TYPE_DEMOLITION [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]22[/color][b])[/b] constant damagetype DAMAGE_TYPE_SLOW_POISON [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]23[/color][b])[/b] constant damagetype DAMAGE_TYPE_SPIRIT_LINK [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]24[/color][b])[/b] constant damagetype DAMAGE_TYPE_SHADOW_STRIKE [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]25[/color][b])[/b] constant damagetype DAMAGE_TYPE_UNIVERSAL [b]=[/b] ConvertDamageType[b]([/b][color=FFFF77]26[/color][b])[/b] constant weapontype WEAPON_TYPE_WHOKNOWS [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]0[/color][b])[/b] constant weapontype WEAPON_TYPE_METAL_LIGHT_CHOP [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]1[/color][b])[/b] constant weapontype WEAPON_TYPE_METAL_MEDIUM_CHOP [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]2[/color][b])[/b] constant weapontype WEAPON_TYPE_METAL_HEAVY_CHOP [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]3[/color][b])[/b] constant weapontype WEAPON_TYPE_METAL_LIGHT_SLICE [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]4[/color][b])[/b] constant weapontype WEAPON_TYPE_METAL_MEDIUM_SLICE [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]5[/color][b])[/b] constant weapontype WEAPON_TYPE_METAL_HEAVY_SLICE [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]6[/color][b])[/b] constant weapontype WEAPON_TYPE_METAL_MEDIUM_BASH [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]7[/color][b])[/b] constant weapontype WEAPON_TYPE_METAL_HEAVY_BASH [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]8[/color][b])[/b] constant weapontype WEAPON_TYPE_METAL_MEDIUM_STAB [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]9[/color][b])[/b] constant weapontype WEAPON_TYPE_METAL_HEAVY_STAB [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]10[/color][b])[/b] constant weapontype WEAPON_TYPE_WOOD_LIGHT_SLICE [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]11[/color][b])[/b] constant weapontype WEAPON_TYPE_WOOD_MEDIUM_SLICE [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]12[/color][b])[/b] constant weapontype WEAPON_TYPE_WOOD_HEAVY_SLICE [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]13[/color][b])[/b] constant weapontype WEAPON_TYPE_WOOD_LIGHT_BASH [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]14[/color][b])[/b] constant weapontype WEAPON_TYPE_WOOD_MEDIUM_BASH [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]15[/color][b])[/b] constant weapontype WEAPON_TYPE_WOOD_HEAVY_BASH [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]16[/color][b])[/b] constant weapontype WEAPON_TYPE_WOOD_LIGHT_STAB [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]17[/color][b])[/b] constant weapontype WEAPON_TYPE_WOOD_MEDIUM_STAB [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]18[/color][b])[/b] constant weapontype WEAPON_TYPE_CLAW_LIGHT_SLICE [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]19[/color][b])[/b] constant weapontype WEAPON_TYPE_CLAW_MEDIUM_SLICE [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]20[/color][b])[/b] constant weapontype WEAPON_TYPE_CLAW_HEAVY_SLICE [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]21[/color][b])[/b] constant weapontype WEAPON_TYPE_AXE_MEDIUM_CHOP [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]22[/color][b])[/b] constant weapontype WEAPON_TYPE_ROCK_HEAVY_BASH [b]=[/b] ConvertWeaponType[b]([/b][color=FFFF77]23[/color][b])[/b] constant pathingtype PATHING_TYPE_ANY [b]=[/b] ConvertPathingType[b]([/b][color=FFFF77]0[/color][b])[/b] constant pathingtype PATHING_TYPE_WALKABILITY [b]=[/b] ConvertPathingType[b]([/b][color=FFFF77]1[/color][b])[/b] constant pathingtype PATHING_TYPE_FLYABILITY [b]=[/b] ConvertPathingType[b]([/b][color=FFFF77]2[/color][b])[/b] constant pathingtype PATHING_TYPE_BUILDABILITY [b]=[/b] ConvertPathingType[b]([/b][color=FFFF77]3[/color][b])[/b] constant pathingtype PATHING_TYPE_PEONHARVESTPATHING [b]=[/b] ConvertPathingType[b]([/b][color=FFFF77]4[/color][b])[/b] constant pathingtype PATHING_TYPE_BLIGHTPATHING [b]=[/b] ConvertPathingType[b]([/b][color=FFFF77]5[/color][b])[/b] constant pathingtype PATHING_TYPE_FLOATABILITY [b]=[/b] ConvertPathingType[b]([/b][color=FFFF77]6[/color][b])[/b] constant pathingtype PATHING_TYPE_AMPHIBIOUSPATHING [b]=[/b] ConvertPathingType[b]([/b][color=FFFF77]7[/color][b])[/b] constant mousebuttontype MOUSE_BUTTON_TYPE_LEFT [b]=[/b] ConvertMouseButtonType[b]([/b][color=FFFF77]1[/color][b])[/b] constant mousebuttontype MOUSE_BUTTON_TYPE_MIDDLE [b]=[/b] ConvertMouseButtonType[b]([/b][color=FFFF77]2[/color][b])[/b] constant mousebuttontype MOUSE_BUTTON_TYPE_RIGHT [b]=[/b] ConvertMouseButtonType[b]([/b][color=FFFF77]3[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Map Setup Constants[/i][/color] [color=999999][i]//===================================================[/i][/color] constant racepreference RACE_PREF_HUMAN [b]=[/b] ConvertRacePref[b]([/b][color=FFFF77]1[/color][b])[/b] constant racepreference RACE_PREF_ORC [b]=[/b] ConvertRacePref[b]([/b][color=FFFF77]2[/color][b])[/b] constant racepreference RACE_PREF_NIGHTELF [b]=[/b] ConvertRacePref[b]([/b][color=FFFF77]4[/color][b])[/b] constant racepreference RACE_PREF_UNDEAD [b]=[/b] ConvertRacePref[b]([/b][color=FFFF77]8[/color][b])[/b] constant racepreference RACE_PREF_DEMON [b]=[/b] ConvertRacePref[b]([/b][color=FFFF77]16[/color][b])[/b] constant racepreference RACE_PREF_RANDOM [b]=[/b] ConvertRacePref[b]([/b][color=FFFF77]32[/color][b])[/b] constant racepreference RACE_PREF_USER_SELECTABLE [b]=[/b] ConvertRacePref[b]([/b][color=FFFF77]64[/color][b])[/b] constant mapcontrol MAP_CONTROL_USER [b]=[/b] ConvertMapControl[b]([/b][color=FFFF77]0[/color][b])[/b] constant mapcontrol MAP_CONTROL_COMPUTER [b]=[/b] ConvertMapControl[b]([/b][color=FFFF77]1[/color][b])[/b] constant mapcontrol MAP_CONTROL_RESCUABLE [b]=[/b] ConvertMapControl[b]([/b][color=FFFF77]2[/color][b])[/b] constant mapcontrol MAP_CONTROL_NEUTRAL [b]=[/b] ConvertMapControl[b]([/b][color=FFFF77]3[/color][b])[/b] constant mapcontrol MAP_CONTROL_CREEP [b]=[/b] ConvertMapControl[b]([/b][color=FFFF77]4[/color][b])[/b] constant mapcontrol MAP_CONTROL_NONE [b]=[/b] ConvertMapControl[b]([/b][color=FFFF77]5[/color][b])[/b] constant gametype GAME_TYPE_MELEE [b]=[/b] ConvertGameType[b]([/b][color=FFFF77]1[/color][b])[/b] constant gametype GAME_TYPE_FFA [b]=[/b] ConvertGameType[b]([/b][color=FFFF77]2[/color][b])[/b] constant gametype GAME_TYPE_USE_MAP_SETTINGS [b]=[/b] ConvertGameType[b]([/b][color=FFFF77]4[/color][b])[/b] constant gametype GAME_TYPE_BLIZ [b]=[/b] ConvertGameType[b]([/b][color=FFFF77]8[/color][b])[/b] constant gametype GAME_TYPE_ONE_ON_ONE [b]=[/b] ConvertGameType[b]([/b][color=FFFF77]16[/color][b])[/b] constant gametype GAME_TYPE_TWO_TEAM_PLAY [b]=[/b] ConvertGameType[b]([/b][color=FFFF77]32[/color][b])[/b] constant gametype GAME_TYPE_THREE_TEAM_PLAY [b]=[/b] ConvertGameType[b]([/b][color=FFFF77]64[/color][b])[/b] constant gametype GAME_TYPE_FOUR_TEAM_PLAY [b]=[/b] ConvertGameType[b]([/b][color=FFFF77]128[/color][b])[/b] constant mapflag MAP_FOG_HIDE_TERRAIN [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]1[/color][b])[/b] constant mapflag MAP_FOG_MAP_EXPLORED [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]2[/color][b])[/b] constant mapflag MAP_FOG_ALWAYS_VISIBLE [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]4[/color][b])[/b] constant mapflag MAP_USE_HANDICAPS [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]8[/color][b])[/b] constant mapflag MAP_OBSERVERS [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]16[/color][b])[/b] constant mapflag MAP_OBSERVERS_ON_DEATH [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]32[/color][b])[/b] constant mapflag MAP_FIXED_COLORS [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]128[/color][b])[/b] constant mapflag MAP_LOCK_RESOURCE_TRADING [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]256[/color][b])[/b] constant mapflag MAP_RESOURCE_TRADING_ALLIES_ONLY [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]512[/color][b])[/b] constant mapflag MAP_LOCK_ALLIANCE_CHANGES [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]1024[/color][b])[/b] constant mapflag MAP_ALLIANCE_CHANGES_HIDDEN [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]2048[/color][b])[/b] constant mapflag MAP_CHEATS [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]4096[/color][b])[/b] constant mapflag MAP_CHEATS_HIDDEN [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]8192[/color][b])[/b] constant mapflag MAP_LOCK_SPEED [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]8192[/color][b]*[/b][color=FFFF77]2[/color][b])[/b] constant mapflag MAP_LOCK_RANDOM_SEED [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]8192[/color][b]*[/b][color=FFFF77]4[/color][b])[/b] constant mapflag MAP_SHARED_ADVANCED_CONTROL [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]8192[/color][b]*[/b][color=FFFF77]8[/color][b])[/b] constant mapflag MAP_RANDOM_HERO [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]8192[/color][b]*[/b][color=FFFF77]16[/color][b])[/b] constant mapflag MAP_RANDOM_RACES [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]8192[/color][b]*[/b][color=FFFF77]32[/color][b])[/b] constant mapflag MAP_RELOADED [b]=[/b] ConvertMapFlag[b]([/b][color=FFFF77]8192[/color][b]*[/b][color=FFFF77]64[/color][b])[/b] constant placement MAP_PLACEMENT_RANDOM [b]=[/b] ConvertPlacement[b]([/b][color=FFFF77]0[/color][b])[/b] [color=999999][i]// random among all slots[/i][/color] constant placement MAP_PLACEMENT_FIXED [b]=[/b] ConvertPlacement[b]([/b][color=FFFF77]1[/color][b])[/b] [color=999999][i]// player 0 in start loc 0...[/i][/color] constant placement MAP_PLACEMENT_USE_MAP_SETTINGS [b]=[/b] ConvertPlacement[b]([/b][color=FFFF77]2[/color][b])[/b] [color=999999][i]// whatever was specified by the script[/i][/color] constant placement MAP_PLACEMENT_TEAMS_TOGETHER [b]=[/b] ConvertPlacement[b]([/b][color=FFFF77]3[/color][b])[/b] [color=999999][i]// random with allies next to each other[/i][/color] constant startlocprio MAP_LOC_PRIO_LOW [b]=[/b] ConvertStartLocPrio[b]([/b][color=FFFF77]0[/color][b])[/b] constant startlocprio MAP_LOC_PRIO_HIGH [b]=[/b] ConvertStartLocPrio[b]([/b][color=FFFF77]1[/color][b])[/b] constant startlocprio MAP_LOC_PRIO_NOT [b]=[/b] ConvertStartLocPrio[b]([/b][color=FFFF77]2[/color][b])[/b] constant mapdensity MAP_DENSITY_NONE [b]=[/b] ConvertMapDensity[b]([/b][color=FFFF77]0[/color][b])[/b] constant mapdensity MAP_DENSITY_LIGHT [b]=[/b] ConvertMapDensity[b]([/b][color=FFFF77]1[/color][b])[/b] constant mapdensity MAP_DENSITY_MEDIUM [b]=[/b] ConvertMapDensity[b]([/b][color=FFFF77]2[/color][b])[/b] constant mapdensity MAP_DENSITY_HEAVY [b]=[/b] ConvertMapDensity[b]([/b][color=FFFF77]3[/color][b])[/b] constant gamedifficulty MAP_DIFFICULTY_EASY [b]=[/b] ConvertGameDifficulty[b]([/b][color=FFFF77]0[/color][b])[/b] constant gamedifficulty MAP_DIFFICULTY_NORMAL [b]=[/b] ConvertGameDifficulty[b]([/b][color=FFFF77]1[/color][b])[/b] constant gamedifficulty MAP_DIFFICULTY_HARD [b]=[/b] ConvertGameDifficulty[b]([/b][color=FFFF77]2[/color][b])[/b] constant gamedifficulty MAP_DIFFICULTY_INSANE [b]=[/b] ConvertGameDifficulty[b]([/b][color=FFFF77]3[/color][b])[/b] constant gamespeed MAP_SPEED_SLOWEST [b]=[/b] ConvertGameSpeed[b]([/b][color=FFFF77]0[/color][b])[/b] constant gamespeed MAP_SPEED_SLOW [b]=[/b] ConvertGameSpeed[b]([/b][color=FFFF77]1[/color][b])[/b] constant gamespeed MAP_SPEED_NORMAL [b]=[/b] ConvertGameSpeed[b]([/b][color=FFFF77]2[/color][b])[/b] constant gamespeed MAP_SPEED_FAST [b]=[/b] ConvertGameSpeed[b]([/b][color=FFFF77]3[/color][b])[/b] constant gamespeed MAP_SPEED_FASTEST [b]=[/b] ConvertGameSpeed[b]([/b][color=FFFF77]4[/color][b])[/b] constant playerslotstate PLAYER_SLOT_STATE_EMPTY [b]=[/b] ConvertPlayerSlotState[b]([/b][color=FFFF77]0[/color][b])[/b] constant playerslotstate PLAYER_SLOT_STATE_PLAYING [b]=[/b] ConvertPlayerSlotState[b]([/b][color=FFFF77]1[/color][b])[/b] constant playerslotstate PLAYER_SLOT_STATE_LEFT [b]=[/b] ConvertPlayerSlotState[b]([/b][color=FFFF77]2[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Sound Constants[/i][/color] [color=999999][i]//===================================================[/i][/color] constant volumegroup SOUND_VOLUMEGROUP_UNITMOVEMENT [b]=[/b] ConvertVolumeGroup[b]([/b][color=FFFF77]0[/color][b])[/b] constant volumegroup SOUND_VOLUMEGROUP_UNITSOUNDS [b]=[/b] ConvertVolumeGroup[b]([/b][color=FFFF77]1[/color][b])[/b] constant volumegroup SOUND_VOLUMEGROUP_COMBAT [b]=[/b] ConvertVolumeGroup[b]([/b][color=FFFF77]2[/color][b])[/b] constant volumegroup SOUND_VOLUMEGROUP_SPELLS [b]=[/b] ConvertVolumeGroup[b]([/b][color=FFFF77]3[/color][b])[/b] constant volumegroup SOUND_VOLUMEGROUP_UI [b]=[/b] ConvertVolumeGroup[b]([/b][color=FFFF77]4[/color][b])[/b] constant volumegroup SOUND_VOLUMEGROUP_MUSIC [b]=[/b] ConvertVolumeGroup[b]([/b][color=FFFF77]5[/color][b])[/b] constant volumegroup SOUND_VOLUMEGROUP_AMBIENTSOUNDS [b]=[/b] ConvertVolumeGroup[b]([/b][color=FFFF77]6[/color][b])[/b] constant volumegroup SOUND_VOLUMEGROUP_FIRE [b]=[/b] ConvertVolumeGroup[b]([/b][color=FFFF77]7[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Game, Player, and Unit States[/i][/color] [color=999999][i]//[/i][/color] [color=999999][i]// For use with TriggerRegister<X>StateEvent[/i][/color] [color=999999][i]//[/i][/color] [color=999999][i]//===================================================[/i][/color] constant igamestate GAME_STATE_DIVINE_INTERVENTION [b]=[/b] ConvertIGameState[b]([/b][color=FFFF77]0[/color][b])[/b] constant igamestate GAME_STATE_DISCONNECTED [b]=[/b] ConvertIGameState[b]([/b][color=FFFF77]1[/color][b])[/b] constant fgamestate GAME_STATE_TIME_OF_DAY [b]=[/b] ConvertFGameState[b]([/b][color=FFFF77]2[/color][b])[/b] constant playerstate PLAYER_STATE_GAME_RESULT [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]0[/color][b])[/b] [color=999999][i]// current resource levels[/i][/color] [color=999999][i]//[/i][/color] constant playerstate PLAYER_STATE_RESOURCE_GOLD [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]1[/color][b])[/b] constant playerstate PLAYER_STATE_RESOURCE_LUMBER [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]2[/color][b])[/b] constant playerstate PLAYER_STATE_RESOURCE_HERO_TOKENS [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]3[/color][b])[/b] constant playerstate PLAYER_STATE_RESOURCE_FOOD_CAP [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]4[/color][b])[/b] constant playerstate PLAYER_STATE_RESOURCE_FOOD_USED [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]5[/color][b])[/b] constant playerstate PLAYER_STATE_FOOD_CAP_CEILING [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]6[/color][b])[/b] constant playerstate PLAYER_STATE_GIVES_BOUNTY [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]7[/color][b])[/b] constant playerstate PLAYER_STATE_ALLIED_VICTORY [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]8[/color][b])[/b] constant playerstate PLAYER_STATE_PLACED [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]9[/color][b])[/b] constant playerstate PLAYER_STATE_OBSERVER_ON_DEATH [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]10[/color][b])[/b] constant playerstate PLAYER_STATE_OBSERVER [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]11[/color][b])[/b] constant playerstate PLAYER_STATE_UNFOLLOWABLE [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]12[/color][b])[/b] [color=999999][i]// taxation rate for each resource[/i][/color] [color=999999][i]//[/i][/color] constant playerstate PLAYER_STATE_GOLD_UPKEEP_RATE [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]13[/color][b])[/b] constant playerstate PLAYER_STATE_LUMBER_UPKEEP_RATE [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]14[/color][b])[/b] [color=999999][i]// cumulative resources collected by the player during the mission[/i][/color] [color=999999][i]//[/i][/color] constant playerstate PLAYER_STATE_GOLD_GATHERED [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]15[/color][b])[/b] constant playerstate PLAYER_STATE_LUMBER_GATHERED [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]16[/color][b])[/b] constant playerstate PLAYER_STATE_NO_CREEP_SLEEP [b]=[/b] ConvertPlayerState[b]([/b][color=FFFF77]25[/color][b])[/b] constant unitstate UNIT_STATE_LIFE [b]=[/b] ConvertUnitState[b]([/b][color=FFFF77]0[/color][b])[/b] constant unitstate UNIT_STATE_MAX_LIFE [b]=[/b] ConvertUnitState[b]([/b][color=FFFF77]1[/color][b])[/b] constant unitstate UNIT_STATE_MANA [b]=[/b] ConvertUnitState[b]([/b][color=FFFF77]2[/color][b])[/b] constant unitstate UNIT_STATE_MAX_MANA [b]=[/b] ConvertUnitState[b]([/b][color=FFFF77]3[/color][b])[/b] constant aidifficulty AI_DIFFICULTY_NEWBIE [b]=[/b] ConvertAIDifficulty[b]([/b][color=FFFF77]0[/color][b])[/b] constant aidifficulty AI_DIFFICULTY_NORMAL [b]=[/b] ConvertAIDifficulty[b]([/b][color=FFFF77]1[/color][b])[/b] constant aidifficulty AI_DIFFICULTY_INSANE [b]=[/b] ConvertAIDifficulty[b]([/b][color=FFFF77]2[/color][b])[/b] [color=999999][i]// player score values[/i][/color] constant playerscore PLAYER_SCORE_UNITS_TRAINED [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]0[/color][b])[/b] constant playerscore PLAYER_SCORE_UNITS_KILLED [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]1[/color][b])[/b] constant playerscore PLAYER_SCORE_STRUCT_BUILT [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]2[/color][b])[/b] constant playerscore PLAYER_SCORE_STRUCT_RAZED [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]3[/color][b])[/b] constant playerscore PLAYER_SCORE_TECH_PERCENT [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]4[/color][b])[/b] constant playerscore PLAYER_SCORE_FOOD_MAXPROD [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]5[/color][b])[/b] constant playerscore PLAYER_SCORE_FOOD_MAXUSED [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]6[/color][b])[/b] constant playerscore PLAYER_SCORE_HEROES_KILLED [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]7[/color][b])[/b] constant playerscore PLAYER_SCORE_ITEMS_GAINED [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]8[/color][b])[/b] constant playerscore PLAYER_SCORE_MERCS_HIRED [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]9[/color][b])[/b] constant playerscore PLAYER_SCORE_GOLD_MINED_TOTAL [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]10[/color][b])[/b] constant playerscore PLAYER_SCORE_GOLD_MINED_UPKEEP [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]11[/color][b])[/b] constant playerscore PLAYER_SCORE_GOLD_LOST_UPKEEP [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]12[/color][b])[/b] constant playerscore PLAYER_SCORE_GOLD_LOST_TAX [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]13[/color][b])[/b] constant playerscore PLAYER_SCORE_GOLD_GIVEN [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]14[/color][b])[/b] constant playerscore PLAYER_SCORE_GOLD_RECEIVED [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]15[/color][b])[/b] constant playerscore PLAYER_SCORE_LUMBER_TOTAL [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]16[/color][b])[/b] constant playerscore PLAYER_SCORE_LUMBER_LOST_UPKEEP [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]17[/color][b])[/b] constant playerscore PLAYER_SCORE_LUMBER_LOST_TAX [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]18[/color][b])[/b] constant playerscore PLAYER_SCORE_LUMBER_GIVEN [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]19[/color][b])[/b] constant playerscore PLAYER_SCORE_LUMBER_RECEIVED [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]20[/color][b])[/b] constant playerscore PLAYER_SCORE_UNIT_TOTAL [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]21[/color][b])[/b] constant playerscore PLAYER_SCORE_HERO_TOTAL [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]22[/color][b])[/b] constant playerscore PLAYER_SCORE_RESOURCE_TOTAL [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]23[/color][b])[/b] constant playerscore PLAYER_SCORE_TOTAL [b]=[/b] ConvertPlayerScore[b]([/b][color=FFFF77]24[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Game, Player and Unit Events[/i][/color] [color=999999][i]//[/i][/color] [color=999999][i]// When an event causes a trigger to fire these[/i][/color] [color=999999][i]// values allow the action code to determine which[/i][/color] [color=999999][i]// event was dispatched and therefore which set of[/i][/color] [color=999999][i]// native functions should be used to get information[/i][/color] [color=999999][i]// about the event.[/i][/color] [color=999999][i]//[/i][/color] [color=999999][i]// Do NOT change the order or value of these constants[/i][/color] [color=999999][i]// without insuring that the JASS_GAME_EVENTS_WAR3 enum[/i][/color] [color=999999][i]// is changed to match.[/i][/color] [color=999999][i]//[/i][/color] [color=999999][i]//===================================================[/i][/color] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// For use with TriggerRegisterGameEvent[/i][/color] [color=999999][i]//===================================================[/i][/color] constant gameevent EVENT_GAME_VICTORY [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]0[/color][b])[/b] constant gameevent EVENT_GAME_END_LEVEL [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]1[/color][b])[/b] constant gameevent EVENT_GAME_VARIABLE_LIMIT [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]2[/color][b])[/b] constant gameevent EVENT_GAME_STATE_LIMIT [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]3[/color][b])[/b] constant gameevent EVENT_GAME_TIMER_EXPIRED [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]4[/color][b])[/b] constant gameevent EVENT_GAME_ENTER_REGION [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]5[/color][b])[/b] constant gameevent EVENT_GAME_LEAVE_REGION [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]6[/color][b])[/b] constant gameevent EVENT_GAME_TRACKABLE_HIT [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]7[/color][b])[/b] constant gameevent EVENT_GAME_TRACKABLE_TRACK [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]8[/color][b])[/b] constant gameevent EVENT_GAME_SHOW_SKILL [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]9[/color][b])[/b] constant gameevent EVENT_GAME_BUILD_SUBMENU [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]10[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// For use with TriggerRegisterPlayerEvent[/i][/color] [color=999999][i]//===================================================[/i][/color] constant playerevent EVENT_PLAYER_STATE_LIMIT [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]11[/color][b])[/b] constant playerevent EVENT_PLAYER_ALLIANCE_CHANGED [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]12[/color][b])[/b] constant playerevent EVENT_PLAYER_DEFEAT [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]13[/color][b])[/b] constant playerevent EVENT_PLAYER_VICTORY [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]14[/color][b])[/b] constant playerevent EVENT_PLAYER_LEAVE [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]15[/color][b])[/b] constant playerevent EVENT_PLAYER_CHAT [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]16[/color][b])[/b] constant playerevent EVENT_PLAYER_END_CINEMATIC [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]17[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// For use with TriggerRegisterPlayerUnitEvent[/i][/color] [color=999999][i]//===================================================[/i][/color] constant playerunitevent EVENT_PLAYER_UNIT_ATTACKED [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]18[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_RESCUED [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]19[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_DEATH [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]20[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_DECAY [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]21[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_DETECTED [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]22[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_HIDDEN [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]23[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_SELECTED [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]24[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_DESELECTED [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]25[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_CONSTRUCT_START [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]26[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]27[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_CONSTRUCT_FINISH [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]28[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_UPGRADE_START [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]29[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_UPGRADE_CANCEL [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]30[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_UPGRADE_FINISH [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]31[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_TRAIN_START [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]32[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_TRAIN_CANCEL [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]33[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_TRAIN_FINISH [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]34[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_RESEARCH_START [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]35[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_RESEARCH_CANCEL [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]36[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_RESEARCH_FINISH [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]37[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_ORDER [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]38[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]39[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]40[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_UNIT_ORDER [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]40[/color][b])[/b] [color=999999][i]// for compat[/i][/color] constant playerunitevent EVENT_PLAYER_HERO_LEVEL [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]41[/color][b])[/b] constant playerunitevent EVENT_PLAYER_HERO_SKILL [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]42[/color][b])[/b] constant playerunitevent EVENT_PLAYER_HERO_REVIVABLE [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]43[/color][b])[/b] constant playerunitevent EVENT_PLAYER_HERO_REVIVE_START [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]44[/color][b])[/b] constant playerunitevent EVENT_PLAYER_HERO_REVIVE_CANCEL [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]45[/color][b])[/b] constant playerunitevent EVENT_PLAYER_HERO_REVIVE_FINISH [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]46[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_SUMMON [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]47[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_DROP_ITEM [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]48[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_PICKUP_ITEM [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]49[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_USE_ITEM [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]50[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_LOADED [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]51[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// For use with TriggerRegisterUnitEvent[/i][/color] [color=999999][i]//===================================================[/i][/color] constant unitevent EVENT_UNIT_DAMAGED [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]52[/color][b])[/b] constant unitevent EVENT_UNIT_DEATH [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]53[/color][b])[/b] constant unitevent EVENT_UNIT_DECAY [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]54[/color][b])[/b] constant unitevent EVENT_UNIT_DETECTED [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]55[/color][b])[/b] constant unitevent EVENT_UNIT_HIDDEN [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]56[/color][b])[/b] constant unitevent EVENT_UNIT_SELECTED [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]57[/color][b])[/b] constant unitevent EVENT_UNIT_DESELECTED [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]58[/color][b])[/b] constant unitevent EVENT_UNIT_STATE_LIMIT [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]59[/color][b])[/b] [color=999999][i]// Events which may have a filter for the "other unit"[/i][/color] [color=999999][i]//[/i][/color] constant unitevent EVENT_UNIT_ACQUIRED_TARGET [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]60[/color][b])[/b] constant unitevent EVENT_UNIT_TARGET_IN_RANGE [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]61[/color][b])[/b] constant unitevent EVENT_UNIT_ATTACKED [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]62[/color][b])[/b] constant unitevent EVENT_UNIT_RESCUED [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]63[/color][b])[/b] constant unitevent EVENT_UNIT_CONSTRUCT_CANCEL [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]64[/color][b])[/b] constant unitevent EVENT_UNIT_CONSTRUCT_FINISH [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]65[/color][b])[/b] constant unitevent EVENT_UNIT_UPGRADE_START [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]66[/color][b])[/b] constant unitevent EVENT_UNIT_UPGRADE_CANCEL [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]67[/color][b])[/b] constant unitevent EVENT_UNIT_UPGRADE_FINISH [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]68[/color][b])[/b] [color=999999][i]// Events which involve the specified unit performing[/i][/color] [color=999999][i]// training of other units[/i][/color] [color=999999][i]//[/i][/color] constant unitevent EVENT_UNIT_TRAIN_START [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]69[/color][b])[/b] constant unitevent EVENT_UNIT_TRAIN_CANCEL [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]70[/color][b])[/b] constant unitevent EVENT_UNIT_TRAIN_FINISH [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]71[/color][b])[/b] constant unitevent EVENT_UNIT_RESEARCH_START [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]72[/color][b])[/b] constant unitevent EVENT_UNIT_RESEARCH_CANCEL [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]73[/color][b])[/b] constant unitevent EVENT_UNIT_RESEARCH_FINISH [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]74[/color][b])[/b] constant unitevent EVENT_UNIT_ISSUED_ORDER [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]75[/color][b])[/b] constant unitevent EVENT_UNIT_ISSUED_POINT_ORDER [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]76[/color][b])[/b] constant unitevent EVENT_UNIT_ISSUED_TARGET_ORDER [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]77[/color][b])[/b] constant unitevent EVENT_UNIT_HERO_LEVEL [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]78[/color][b])[/b] constant unitevent EVENT_UNIT_HERO_SKILL [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]79[/color][b])[/b] constant unitevent EVENT_UNIT_HERO_REVIVABLE [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]80[/color][b])[/b] constant unitevent EVENT_UNIT_HERO_REVIVE_START [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]81[/color][b])[/b] constant unitevent EVENT_UNIT_HERO_REVIVE_CANCEL [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]82[/color][b])[/b] constant unitevent EVENT_UNIT_HERO_REVIVE_FINISH [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]83[/color][b])[/b] constant unitevent EVENT_UNIT_SUMMON [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]84[/color][b])[/b] constant unitevent EVENT_UNIT_DROP_ITEM [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]85[/color][b])[/b] constant unitevent EVENT_UNIT_PICKUP_ITEM [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]86[/color][b])[/b] constant unitevent EVENT_UNIT_USE_ITEM [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]87[/color][b])[/b] constant unitevent EVENT_UNIT_LOADED [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]88[/color][b])[/b] constant widgetevent EVENT_WIDGET_DEATH [b]=[/b] ConvertWidgetEvent[b]([/b][color=FFFF77]89[/color][b])[/b] constant dialogevent EVENT_DIALOG_BUTTON_CLICK [b]=[/b] ConvertDialogEvent[b]([/b][color=FFFF77]90[/color][b])[/b] constant dialogevent EVENT_DIALOG_CLICK [b]=[/b] ConvertDialogEvent[b]([/b][color=FFFF77]91[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Frozen Throne Expansion Events[/i][/color] [color=999999][i]// Need to be added here to preserve compat[/i][/color] [color=999999][i]//===================================================[/i][/color] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// For use with TriggerRegisterGameEvent[/i][/color] [color=999999][i]//===================================================[/i][/color] constant gameevent EVENT_GAME_LOADED [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]256[/color][b])[/b] constant gameevent EVENT_GAME_TOURNAMENT_FINISH_SOON [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]257[/color][b])[/b] constant gameevent EVENT_GAME_TOURNAMENT_FINISH_NOW [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]258[/color][b])[/b] constant gameevent EVENT_GAME_SAVE [b]=[/b] ConvertGameEvent[b]([/b][color=FFFF77]259[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// For use with TriggerRegisterPlayerEvent[/i][/color] [color=999999][i]//===================================================[/i][/color] constant playerevent EVENT_PLAYER_ARROW_LEFT_DOWN [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]261[/color][b])[/b] constant playerevent EVENT_PLAYER_ARROW_LEFT_UP [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]262[/color][b])[/b] constant playerevent EVENT_PLAYER_ARROW_RIGHT_DOWN [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]263[/color][b])[/b] constant playerevent EVENT_PLAYER_ARROW_RIGHT_UP [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]264[/color][b])[/b] constant playerevent EVENT_PLAYER_ARROW_DOWN_DOWN [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]265[/color][b])[/b] constant playerevent EVENT_PLAYER_ARROW_DOWN_UP [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]266[/color][b])[/b] constant playerevent EVENT_PLAYER_ARROW_UP_DOWN [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]267[/color][b])[/b] constant playerevent EVENT_PLAYER_ARROW_UP_UP [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]268[/color][b])[/b] constant playerevent EVENT_PLAYER_MOUSE_DOWN [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]269[/color][b])[/b] constant playerevent EVENT_PLAYER_MOUSE_UP [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]270[/color][b])[/b] constant playerevent EVENT_PLAYER_MOUSE_MOVE [b]=[/b] ConvertPlayerEvent[b]([/b][color=FFFF77]271[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// For use with TriggerRegisterPlayerUnitEvent[/i][/color] [color=999999][i]//===================================================[/i][/color] constant playerunitevent EVENT_PLAYER_UNIT_SELL [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]272[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_CHANGE_OWNER [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]273[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_SELL_ITEM [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]274[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_SPELL_CHANNEL [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]275[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_SPELL_CAST [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]276[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_SPELL_EFFECT [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]277[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_SPELL_FINISH [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]278[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_SPELL_ENDCAST [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]279[/color][b])[/b] constant playerunitevent EVENT_PLAYER_UNIT_PAWN_ITEM [b]=[/b] ConvertPlayerUnitEvent[b]([/b][color=FFFF77]280[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// For use with TriggerRegisterUnitEvent[/i][/color] [color=999999][i]//===================================================[/i][/color] constant unitevent EVENT_UNIT_SELL [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]289[/color][b])[/b] constant unitevent EVENT_UNIT_CHANGE_OWNER [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]290[/color][b])[/b] constant unitevent EVENT_UNIT_SELL_ITEM [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]291[/color][b])[/b] constant unitevent EVENT_UNIT_SPELL_CHANNEL [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]292[/color][b])[/b] constant unitevent EVENT_UNIT_SPELL_CAST [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]293[/color][b])[/b] constant unitevent EVENT_UNIT_SPELL_EFFECT [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]294[/color][b])[/b] constant unitevent EVENT_UNIT_SPELL_FINISH [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]295[/color][b])[/b] constant unitevent EVENT_UNIT_SPELL_ENDCAST [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]296[/color][b])[/b] constant unitevent EVENT_UNIT_PAWN_ITEM [b]=[/b] ConvertUnitEvent[b]([/b][color=FFFF77]297[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Limit Event API constants[/i][/color] [color=999999][i]// variable, player state, game state, and unit state events[/i][/color] [color=999999][i]// ( do NOT change the order of these... )[/i][/color] [color=999999][i]//===================================================[/i][/color] constant limitop LESS_THAN [b]=[/b] ConvertLimitOp[b]([/b][color=FFFF77]0[/color][b])[/b] constant limitop LESS_THAN_OR_EQUAL [b]=[/b] ConvertLimitOp[b]([/b][color=FFFF77]1[/color][b])[/b] constant limitop EQUAL [b]=[/b] ConvertLimitOp[b]([/b][color=FFFF77]2[/color][b])[/b] constant limitop GREATER_THAN_OR_EQUAL [b]=[/b] ConvertLimitOp[b]([/b][color=FFFF77]3[/color][b])[/b] constant limitop GREATER_THAN [b]=[/b] ConvertLimitOp[b]([/b][color=FFFF77]4[/color][b])[/b] constant limitop NOT_EQUAL [b]=[/b] ConvertLimitOp[b]([/b][color=FFFF77]5[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Unit Type Constants for use with IsUnitType()[/i][/color] [color=999999][i]//===================================================[/i][/color] constant unittype UNIT_TYPE_HERO [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]0[/color][b])[/b] constant unittype UNIT_TYPE_DEAD [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]1[/color][b])[/b] constant unittype UNIT_TYPE_STRUCTURE [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]2[/color][b])[/b] constant unittype UNIT_TYPE_FLYING [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]3[/color][b])[/b] constant unittype UNIT_TYPE_GROUND [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]4[/color][b])[/b] constant unittype UNIT_TYPE_ATTACKS_FLYING [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]5[/color][b])[/b] constant unittype UNIT_TYPE_ATTACKS_GROUND [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]6[/color][b])[/b] constant unittype UNIT_TYPE_MELEE_ATTACKER [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]7[/color][b])[/b] constant unittype UNIT_TYPE_RANGED_ATTACKER [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]8[/color][b])[/b] constant unittype UNIT_TYPE_GIANT [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]9[/color][b])[/b] constant unittype UNIT_TYPE_SUMMONED [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]10[/color][b])[/b] constant unittype UNIT_TYPE_STUNNED [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]11[/color][b])[/b] constant unittype UNIT_TYPE_PLAGUED [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]12[/color][b])[/b] constant unittype UNIT_TYPE_SNARED [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]13[/color][b])[/b] constant unittype UNIT_TYPE_UNDEAD [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]14[/color][b])[/b] constant unittype UNIT_TYPE_MECHANICAL [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]15[/color][b])[/b] constant unittype UNIT_TYPE_PEON [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]16[/color][b])[/b] constant unittype UNIT_TYPE_SAPPER [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]17[/color][b])[/b] constant unittype UNIT_TYPE_TOWNHALL [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]18[/color][b])[/b] constant unittype UNIT_TYPE_ANCIENT [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]19[/color][b])[/b] constant unittype UNIT_TYPE_TAUREN [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]20[/color][b])[/b] constant unittype UNIT_TYPE_POISONED [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]21[/color][b])[/b] constant unittype UNIT_TYPE_POLYMORPHED [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]22[/color][b])[/b] constant unittype UNIT_TYPE_SLEEPING [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]23[/color][b])[/b] constant unittype UNIT_TYPE_RESISTANT [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]24[/color][b])[/b] constant unittype UNIT_TYPE_ETHEREAL [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]25[/color][b])[/b] constant unittype UNIT_TYPE_MAGIC_IMMUNE [b]=[/b] ConvertUnitType[b]([/b][color=FFFF77]26[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Unit Type Constants for use with ChooseRandomItemEx()[/i][/color] [color=999999][i]//===================================================[/i][/color] constant itemtype ITEM_TYPE_PERMANENT [b]=[/b] ConvertItemType[b]([/b][color=FFFF77]0[/color][b])[/b] constant itemtype ITEM_TYPE_CHARGED [b]=[/b] ConvertItemType[b]([/b][color=FFFF77]1[/color][b])[/b] constant itemtype ITEM_TYPE_POWERUP [b]=[/b] ConvertItemType[b]([/b][color=FFFF77]2[/color][b])[/b] constant itemtype ITEM_TYPE_ARTIFACT [b]=[/b] ConvertItemType[b]([/b][color=FFFF77]3[/color][b])[/b] constant itemtype ITEM_TYPE_PURCHASABLE [b]=[/b] ConvertItemType[b]([/b][color=FFFF77]4[/color][b])[/b] constant itemtype ITEM_TYPE_CAMPAIGN [b]=[/b] ConvertItemType[b]([/b][color=FFFF77]5[/color][b])[/b] constant itemtype ITEM_TYPE_MISCELLANEOUS [b]=[/b] ConvertItemType[b]([/b][color=FFFF77]6[/color][b])[/b] constant itemtype ITEM_TYPE_UNKNOWN [b]=[/b] ConvertItemType[b]([/b][color=FFFF77]7[/color][b])[/b] constant itemtype ITEM_TYPE_ANY [b]=[/b] ConvertItemType[b]([/b][color=FFFF77]8[/color][b])[/b] [color=999999][i]// Deprecated, should use ITEM_TYPE_POWERUP[/i][/color] constant itemtype ITEM_TYPE_TOME [b]=[/b] ConvertItemType[b]([/b][color=FFFF77]2[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Animatable Camera Fields[/i][/color] [color=999999][i]//===================================================[/i][/color] constant camerafield CAMERA_FIELD_TARGET_DISTANCE [b]=[/b] ConvertCameraField[b]([/b][color=FFFF77]0[/color][b])[/b] constant camerafield CAMERA_FIELD_FARZ [b]=[/b] ConvertCameraField[b]([/b][color=FFFF77]1[/color][b])[/b] constant camerafield CAMERA_FIELD_ANGLE_OF_ATTACK [b]=[/b] ConvertCameraField[b]([/b][color=FFFF77]2[/color][b])[/b] constant camerafield CAMERA_FIELD_FIELD_OF_VIEW [b]=[/b] ConvertCameraField[b]([/b][color=FFFF77]3[/color][b])[/b] constant camerafield CAMERA_FIELD_ROLL [b]=[/b] ConvertCameraField[b]([/b][color=FFFF77]4[/color][b])[/b] constant camerafield CAMERA_FIELD_ROTATION [b]=[/b] ConvertCameraField[b]([/b][color=FFFF77]5[/color][b])[/b] constant camerafield CAMERA_FIELD_ZOFFSET [b]=[/b] ConvertCameraField[b]([/b][color=FFFF77]6[/color][b])[/b] constant blendmode BLEND_MODE_NONE [b]=[/b] ConvertBlendMode[b]([/b][color=FFFF77]0[/color][b])[/b] constant blendmode BLEND_MODE_DONT_CARE [b]=[/b] ConvertBlendMode[b]([/b][color=FFFF77]0[/color][b])[/b] constant blendmode BLEND_MODE_KEYALPHA [b]=[/b] ConvertBlendMode[b]([/b][color=FFFF77]1[/color][b])[/b] constant blendmode BLEND_MODE_BLEND [b]=[/b] ConvertBlendMode[b]([/b][color=FFFF77]2[/color][b])[/b] constant blendmode BLEND_MODE_ADDITIVE [b]=[/b] ConvertBlendMode[b]([/b][color=FFFF77]3[/color][b])[/b] constant blendmode BLEND_MODE_MODULATE [b]=[/b] ConvertBlendMode[b]([/b][color=FFFF77]4[/color][b])[/b] constant blendmode BLEND_MODE_MODULATE_2X [b]=[/b] ConvertBlendMode[b]([/b][color=FFFF77]5[/color][b])[/b] constant raritycontrol RARITY_FREQUENT [b]=[/b] ConvertRarityControl[b]([/b][color=FFFF77]0[/color][b])[/b] constant raritycontrol RARITY_RARE [b]=[/b] ConvertRarityControl[b]([/b][color=FFFF77]1[/color][b])[/b] constant texmapflags TEXMAP_FLAG_NONE [b]=[/b] ConvertTexMapFlags[b]([/b][color=FFFF77]0[/color][b])[/b] constant texmapflags TEXMAP_FLAG_WRAP_U [b]=[/b] ConvertTexMapFlags[b]([/b][color=FFFF77]1[/color][b])[/b] constant texmapflags TEXMAP_FLAG_WRAP_V [b]=[/b] ConvertTexMapFlags[b]([/b][color=FFFF77]2[/color][b])[/b] constant texmapflags TEXMAP_FLAG_WRAP_UV [b]=[/b] ConvertTexMapFlags[b]([/b][color=FFFF77]3[/color][b])[/b] constant fogstate FOG_OF_WAR_MASKED [b]=[/b] ConvertFogState[b]([/b][color=FFFF77]1[/color][b])[/b] constant fogstate FOG_OF_WAR_FOGGED [b]=[/b] ConvertFogState[b]([/b][color=FFFF77]2[/color][b])[/b] constant fogstate FOG_OF_WAR_VISIBLE [b]=[/b] ConvertFogState[b]([/b][color=FFFF77]4[/color][b])[/b] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Camera Margin constants for use with GetCameraMargin[/i][/color] [color=999999][i]//===================================================[/i][/color] constant integer CAMERA_MARGIN_LEFT [b]=[/b] [color=FFFF77]0[/color] constant integer CAMERA_MARGIN_RIGHT [b]=[/b] [color=FFFF77]1[/color] constant integer CAMERA_MARGIN_TOP [b]=[/b] [color=FFFF77]2[/color] constant integer CAMERA_MARGIN_BOTTOM [b]=[/b] [color=FFFF77]3[/color] [color=999999][i]//===================================================[/i][/color] [color=999999][i]// Effect API constants[/i][/color] [color=999999][i]//===================================================[/i][/color] constant effecttype EFFECT_TYPE_EFFECT [b]=[/b] ConvertEffectType[b]([/b][color=FFFF77]0[/color][b])[/b] constant effecttype EFFECT_TYPE_TARGET [b]=[/b] ConvertEffectType[b]([/b][color=FFFF77]1[/color][b])[/b] constant effecttype EFFECT_TYPE_CASTER [b]=[/b] ConvertEffectType[b]([/b][color=FFFF77]2[/color][b])[/b] constant effecttype EFFECT_TYPE_SPECIAL [b]=[/b] ConvertEffectType[b]([/b][color=FFFF77]3[/color][b])[/b] constant effecttype EFFECT_TYPE_AREA_EFFECT [b]=[/b] ConvertEffectType[b]([/b][color=FFFF77]4[/color][b])[/b] constant effecttype EFFECT_TYPE_MISSILE [b]=[/b] ConvertEffectType[b]([/b][color=FFFF77]5[/color][b])[/b] constant effecttype EFFECT_TYPE_LIGHTNING [b]=[/b] ConvertEffectType[b]([/b][color=FFFF77]6[/color][b])[/b] constant soundtype SOUND_TYPE_EFFECT [b]=[/b] ConvertSoundType[b]([/b][color=FFFF77]0[/color][b])[/b] constant soundtype SOUND_TYPE_EFFECT_LOOPED [b]=[/b] ConvertSoundType[b]([/b][color=FFFF77]1[/color][b])[/b] endglobals [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// MathAPI[/i][/color] [color=7777FF][b]native[/b][/color] Deg2Rad takes real degrees returns real [color=7777FF][b]native[/b][/color] Rad2Deg takes real radians returns real [color=7777FF][b]native[/b][/color] Sin takes real radians returns real [color=7777FF][b]native[/b][/color] Cos takes real radians returns real [color=7777FF][b]native[/b][/color] Tan takes real radians returns real [color=999999][i]// Expect values between -1 and 1...returns 0 for invalid input[/i][/color] [color=7777FF][b]native[/b][/color] Asin takes real y returns real [color=7777FF][b]native[/b][/color] Acos takes real x returns real [color=7777FF][b]native[/b][/color] Atan takes real x returns real [color=999999][i]// Returns 0 if x and y are both 0[/i][/color] [color=7777FF][b]native[/b][/color] Atan2 takes real y[b],[/b] real x returns real [color=999999][i]// Returns 0 if x <= 0[/i][/color] [color=7777FF][b]native[/b][/color] SquareRoot takes real x returns real [color=999999][i]// computes x to the y power[/i][/color] [color=999999][i]// y == 0.0 => 1[/i][/color] [color=999999][i]// x ==0.0 and y < 0 => 0[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] Pow takes real x[b],[/b] real power returns real [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// String Utility API[/i][/color] [color=7777FF][b]native[/b][/color] I2R takes integer i returns real [color=7777FF][b]native[/b][/color] R2I takes real r returns integer [color=7777FF][b]native[/b][/color] I2S takes integer i returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] R2S takes real r returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] R2SW takes real r[b],[/b] integer width[b],[/b] integer precision returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] S2I takes [color=AA77FF]string[/color] s returns integer [color=7777FF][b]native[/b][/color] S2R takes [color=AA77FF]string[/color] s returns real [color=7777FF][b]native[/b][/color] GetHandleId takes handle h returns integer [color=7777FF][b]native[/b][/color] SubString takes [color=AA77FF]string[/color] source[b],[/b] integer start[b],[/b] integer end returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] StringLength takes [color=AA77FF]string[/color] s returns integer [color=7777FF][b]native[/b][/color] StringCase takes [color=AA77FF]string[/color] source[b],[/b] boolean upper returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] StringHash takes [color=AA77FF]string[/color] s returns integer [color=7777FF][b]native[/b][/color] GetLocalizedString takes [color=AA77FF]string[/color] source returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetLocalizedHotkey takes [color=AA77FF]string[/color] source returns integer [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Map Setup API[/i][/color] [color=999999][i]//[/i][/color] [color=999999][i]// These are native functions for describing the map configuration[/i][/color] [color=999999][i]// these funcs should only be used in the "config" function of[/i][/color] [color=999999][i]// a map script. The functions should also be called in this order[/i][/color] [color=999999][i]// ( i.e. call SetPlayers before SetPlayerColor...[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] SetMapName takes [color=AA77FF]string[/color] name returns nothing [color=7777FF][b]native[/b][/color] SetMapDescription takes [color=AA77FF]string[/color] description returns nothing [color=7777FF][b]native[/b][/color] SetTeams takes integer teamcount returns nothing [color=7777FF][b]native[/b][/color] SetPlayers takes integer playercount returns nothing [color=7777FF][b]native[/b][/color] DefineStartLocation takes integer whichStartLoc[b],[/b] real x[b],[/b] real y returns nothing [color=7777FF][b]native[/b][/color] DefineStartLocationLoc takes integer whichStartLoc[b],[/b] location whichLocation returns nothing [color=7777FF][b]native[/b][/color] SetStartLocPrioCount takes integer whichStartLoc[b],[/b] integer prioSlotCount returns nothing [color=7777FF][b]native[/b][/color] SetStartLocPrio takes integer whichStartLoc[b],[/b] integer prioSlotIndex[b],[/b] integer otherStartLocIndex[b],[/b] startlocprio priority returns nothing [color=7777FF][b]native[/b][/color] GetStartLocPrioSlot takes integer whichStartLoc[b],[/b] integer prioSlotIndex returns integer [color=7777FF][b]native[/b][/color] GetStartLocPrio takes integer whichStartLoc[b],[/b] integer prioSlotIndex returns startlocprio [color=7777FF][b]native[/b][/color] SetGameTypeSupported takes gametype whichGameType[b],[/b] boolean value returns nothing [color=7777FF][b]native[/b][/color] SetMapFlag takes mapflag whichMapFlag[b],[/b] boolean value returns nothing [color=7777FF][b]native[/b][/color] SetGamePlacement takes placement whichPlacementType returns nothing [color=7777FF][b]native[/b][/color] SetGameSpeed takes gamespeed whichspeed returns nothing [color=7777FF][b]native[/b][/color] SetGameDifficulty takes gamedifficulty whichdifficulty returns nothing [color=7777FF][b]native[/b][/color] SetResourceDensity takes mapdensity whichdensity returns nothing [color=7777FF][b]native[/b][/color] SetCreatureDensity takes mapdensity whichdensity returns nothing [color=7777FF][b]native[/b][/color] GetTeams takes nothing returns integer [color=7777FF][b]native[/b][/color] GetPlayers takes nothing returns integer [color=7777FF][b]native[/b][/color] IsGameTypeSupported takes gametype whichGameType returns boolean [color=7777FF][b]native[/b][/color] GetGameTypeSelected takes nothing returns gametype [color=7777FF][b]native[/b][/color] IsMapFlagSet takes mapflag whichMapFlag returns boolean constant [color=7777FF][b]native[/b][/color] GetGamePlacement takes nothing returns placement constant [color=7777FF][b]native[/b][/color] GetGameSpeed takes nothing returns gamespeed constant [color=7777FF][b]native[/b][/color] GetGameDifficulty takes nothing returns gamedifficulty constant [color=7777FF][b]native[/b][/color] GetResourceDensity takes nothing returns mapdensity constant [color=7777FF][b]native[/b][/color] GetCreatureDensity takes nothing returns mapdensity constant [color=7777FF][b]native[/b][/color] GetStartLocationX takes integer whichStartLocation returns real constant [color=7777FF][b]native[/b][/color] GetStartLocationY takes integer whichStartLocation returns real constant [color=7777FF][b]native[/b][/color] GetStartLocationLoc takes integer whichStartLocation returns location [color=7777FF][b]native[/b][/color] SetPlayerTeam takes player whichPlayer[b],[/b] integer whichTeam returns nothing [color=7777FF][b]native[/b][/color] SetPlayerStartLocation takes player whichPlayer[b],[/b] integer startLocIndex returns nothing [color=999999][i]// forces player to have the specified start loc and marks the start loc as occupied[/i][/color] [color=999999][i]// which removes it from consideration for subsequently placed players[/i][/color] [color=999999][i]// ( i.e. you can use this to put people in a fixed loc and then[/i][/color] [color=999999][i]// use random placement for any unplaced players etc )[/i][/color] [color=7777FF][b]native[/b][/color] ForcePlayerStartLocation takes player whichPlayer[b],[/b] integer startLocIndex returns nothing [color=7777FF][b]native[/b][/color] SetPlayerColor takes player whichPlayer[b],[/b] playercolor color returns nothing [color=7777FF][b]native[/b][/color] SetPlayerAlliance takes player sourcePlayer[b],[/b] player otherPlayer[b],[/b] alliancetype whichAllianceSetting[b],[/b] boolean value returns nothing [color=7777FF][b]native[/b][/color] SetPlayerTaxRate takes player sourcePlayer[b],[/b] player otherPlayer[b],[/b] playerstate whichResource[b],[/b] integer rate returns nothing [color=7777FF][b]native[/b][/color] SetPlayerRacePreference takes player whichPlayer[b],[/b] racepreference whichRacePreference returns nothing [color=7777FF][b]native[/b][/color] SetPlayerRaceSelectable takes player whichPlayer[b],[/b] boolean value returns nothing [color=7777FF][b]native[/b][/color] SetPlayerController takes player whichPlayer[b],[/b] mapcontrol controlType returns nothing [color=7777FF][b]native[/b][/color] SetPlayerName takes player whichPlayer[b],[/b] [color=AA77FF]string[/color] name returns nothing [color=7777FF][b]native[/b][/color] SetPlayerOnScoreScreen takes player whichPlayer[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] GetPlayerTeam takes player whichPlayer returns integer [color=7777FF][b]native[/b][/color] GetPlayerStartLocation takes player whichPlayer returns integer [color=7777FF][b]native[/b][/color] GetPlayerColor takes player whichPlayer returns playercolor [color=7777FF][b]native[/b][/color] GetPlayerSelectable takes player whichPlayer returns boolean [color=7777FF][b]native[/b][/color] GetPlayerController takes player whichPlayer returns mapcontrol [color=7777FF][b]native[/b][/color] GetPlayerSlotState takes player whichPlayer returns playerslotstate [color=7777FF][b]native[/b][/color] GetPlayerTaxRate takes player sourcePlayer[b],[/b] player otherPlayer[b],[/b] playerstate whichResource returns integer [color=7777FF][b]native[/b][/color] IsPlayerRacePrefSet takes player whichPlayer[b],[/b] racepreference pref returns boolean [color=7777FF][b]native[/b][/color] GetPlayerName takes player whichPlayer returns [color=AA77FF]string[/color] [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Timer API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] CreateTimer takes nothing returns timer [color=7777FF][b]native[/b][/color] DestroyTimer takes timer whichTimer returns nothing [color=7777FF][b]native[/b][/color] TimerStart takes timer whichTimer[b],[/b] real timeout[b],[/b] boolean periodic[b],[/b] code handlerFunc returns nothing [color=7777FF][b]native[/b][/color] TimerGetElapsed takes timer whichTimer returns real [color=7777FF][b]native[/b][/color] TimerGetRemaining takes timer whichTimer returns real [color=7777FF][b]native[/b][/color] TimerGetTimeout takes timer whichTimer returns real [color=7777FF][b]native[/b][/color] PauseTimer takes timer whichTimer returns nothing [color=7777FF][b]native[/b][/color] ResumeTimer takes timer whichTimer returns nothing [color=7777FF][b]native[/b][/color] GetExpiredTimer takes nothing returns timer [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Group API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] CreateGroup takes nothing returns group [color=7777FF][b]native[/b][/color] DestroyGroup takes group whichGroup returns nothing [color=7777FF][b]native[/b][/color] GroupAddUnit takes group whichGroup[b],[/b] [color=AA77FF]unit[/color] whichUnit returns nothing [color=7777FF][b]native[/b][/color] GroupRemoveUnit takes group whichGroup[b],[/b] [color=AA77FF]unit[/color] whichUnit returns nothing [color=7777FF][b]native[/b][/color] GroupClear takes group whichGroup returns nothing [color=7777FF][b]native[/b][/color] GroupEnumUnitsOfType takes group whichGroup[b],[/b] [color=AA77FF]string[/color] unitname[b],[/b] boolexpr filter returns nothing [color=7777FF][b]native[/b][/color] GroupEnumUnitsOfPlayer takes group whichGroup[b],[/b] player whichPlayer[b],[/b] boolexpr filter returns nothing [color=7777FF][b]native[/b][/color] GroupEnumUnitsOfTypeCounted takes group whichGroup[b],[/b] [color=AA77FF]string[/color] unitname[b],[/b] boolexpr filter[b],[/b] integer countLimit returns nothing [color=7777FF][b]native[/b][/color] GroupEnumUnitsInRect takes group whichGroup[b],[/b] rect r[b],[/b] boolexpr filter returns nothing [color=7777FF][b]native[/b][/color] GroupEnumUnitsInRectCounted takes group whichGroup[b],[/b] rect r[b],[/b] boolexpr filter[b],[/b] integer countLimit returns nothing [color=7777FF][b]native[/b][/color] GroupEnumUnitsInRange takes group whichGroup[b],[/b] real x[b],[/b] real y[b],[/b] real radius[b],[/b] boolexpr filter returns nothing [color=7777FF][b]native[/b][/color] GroupEnumUnitsInRangeOfLoc takes group whichGroup[b],[/b] location whichLocation[b],[/b] real radius[b],[/b] boolexpr filter returns nothing [color=7777FF][b]native[/b][/color] GroupEnumUnitsInRangeCounted takes group whichGroup[b],[/b] real x[b],[/b] real y[b],[/b] real radius[b],[/b] boolexpr filter[b],[/b] integer countLimit returns nothing [color=7777FF][b]native[/b][/color] GroupEnumUnitsInRangeOfLocCounted takes group whichGroup[b],[/b] location whichLocation[b],[/b] real radius[b],[/b] boolexpr filter[b],[/b] integer countLimit returns nothing [color=7777FF][b]native[/b][/color] GroupEnumUnitsSelected takes group whichGroup[b],[/b] player whichPlayer[b],[/b] boolexpr filter returns nothing [color=7777FF][b]native[/b][/color] GroupImmediateOrder takes group whichGroup[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]order[/color] returns boolean [color=7777FF][b]native[/b][/color] GroupImmediateOrderById takes group whichGroup[b],[/b] integer [color=AA77FF]order[/color] returns boolean [color=7777FF][b]native[/b][/color] GroupPointOrder takes group whichGroup[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]order[/color][b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] GroupPointOrderLoc takes group whichGroup[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]order[/color][b],[/b] location whichLocation returns boolean [color=7777FF][b]native[/b][/color] GroupPointOrderById takes group whichGroup[b],[/b] integer [color=AA77FF]order[/color][b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] GroupPointOrderByIdLoc takes group whichGroup[b],[/b] integer [color=AA77FF]order[/color][b],[/b] location whichLocation returns boolean [color=7777FF][b]native[/b][/color] GroupTargetOrder takes group whichGroup[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]order[/color][b],[/b] widget targetWidget returns boolean [color=7777FF][b]native[/b][/color] GroupTargetOrderById takes group whichGroup[b],[/b] integer [color=AA77FF]order[/color][b],[/b] widget targetWidget returns boolean [color=999999][i]// This will be difficult to support with potentially disjoint, cell-based regions[/i][/color] [color=999999][i]// as it would involve enumerating all the cells that are covered by a particularregion[/i][/color] [color=999999][i]// a better implementation would be a trigger that adds relevant units as they enter[/i][/color] [color=999999][i]// and removes them if they leave...[/i][/color] [color=7777FF][b]native[/b][/color] ForGroup takes group whichGroup[b],[/b] code callback returns nothing [color=7777FF][b]native[/b][/color] FirstOfGroup takes group whichGroup returns [color=AA77FF]unit[/color] [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Force API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] CreateForce takes nothing returns force [color=7777FF][b]native[/b][/color] DestroyForce takes force whichForce returns nothing [color=7777FF][b]native[/b][/color] ForceAddPlayer takes force whichForce[b],[/b] player whichPlayer returns nothing [color=7777FF][b]native[/b][/color] ForceRemovePlayer takes force whichForce[b],[/b] player whichPlayer returns nothing [color=7777FF][b]native[/b][/color] ForceClear takes force whichForce returns nothing [color=7777FF][b]native[/b][/color] ForceEnumPlayers takes force whichForce[b],[/b] boolexpr filter returns nothing [color=7777FF][b]native[/b][/color] ForceEnumPlayersCounted takes force whichForce[b],[/b] boolexpr filter[b],[/b] integer countLimit returns nothing [color=7777FF][b]native[/b][/color] ForceEnumAllies takes force whichForce[b],[/b] player whichPlayer[b],[/b] boolexpr filter returns nothing [color=7777FF][b]native[/b][/color] ForceEnumEnemies takes force whichForce[b],[/b] player whichPlayer[b],[/b] boolexpr filter returns nothing [color=7777FF][b]native[/b][/color] ForForce takes force whichForce[b],[/b] code callback returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Region and Location API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] Rect takes real minx[b],[/b] real miny[b],[/b] real maxx[b],[/b] real maxy returns rect [color=7777FF][b]native[/b][/color] RectFromLoc takes location min[b],[/b] location max returns rect [color=7777FF][b]native[/b][/color] RemoveRect takes rect whichRect returns nothing [color=7777FF][b]native[/b][/color] SetRect takes rect whichRect[b],[/b] real minx[b],[/b] real miny[b],[/b] real maxx[b],[/b] real maxy returns nothing [color=7777FF][b]native[/b][/color] SetRectFromLoc takes rect whichRect[b],[/b] location min[b],[/b] location max returns nothing [color=7777FF][b]native[/b][/color] MoveRectTo takes rect whichRect[b],[/b] real newCenterX[b],[/b] real newCenterY returns nothing [color=7777FF][b]native[/b][/color] MoveRectToLoc takes rect whichRect[b],[/b] location newCenterLoc returns nothing [color=7777FF][b]native[/b][/color] GetRectCenterX takes rect whichRect returns real [color=7777FF][b]native[/b][/color] GetRectCenterY takes rect whichRect returns real [color=7777FF][b]native[/b][/color] GetRectMinX takes rect whichRect returns real [color=7777FF][b]native[/b][/color] GetRectMinY takes rect whichRect returns real [color=7777FF][b]native[/b][/color] GetRectMaxX takes rect whichRect returns real [color=7777FF][b]native[/b][/color] GetRectMaxY takes rect whichRect returns real [color=7777FF][b]native[/b][/color] CreateRegion takes nothing returns [color=AA77FF]region[/color] [color=7777FF][b]native[/b][/color] RemoveRegion takes [color=AA77FF]region[/color] whichRegion returns nothing [color=7777FF][b]native[/b][/color] RegionAddRect takes [color=AA77FF]region[/color] whichRegion[b],[/b] rect r returns nothing [color=7777FF][b]native[/b][/color] RegionClearRect takes [color=AA77FF]region[/color] whichRegion[b],[/b] rect r returns nothing [color=7777FF][b]native[/b][/color] RegionAddCell takes [color=AA77FF]region[/color] whichRegion[b],[/b] real x[b],[/b] real y returns nothing [color=7777FF][b]native[/b][/color] RegionAddCellAtLoc takes [color=AA77FF]region[/color] whichRegion[b],[/b] location whichLocation returns nothing [color=7777FF][b]native[/b][/color] RegionClearCell takes [color=AA77FF]region[/color] whichRegion[b],[/b] real x[b],[/b] real y returns nothing [color=7777FF][b]native[/b][/color] RegionClearCellAtLoc takes [color=AA77FF]region[/color] whichRegion[b],[/b] location whichLocation returns nothing [color=7777FF][b]native[/b][/color] Location takes real x[b],[/b] real y returns location [color=7777FF][b]native[/b][/color] RemoveLocation takes location whichLocation returns nothing [color=7777FF][b]native[/b][/color] MoveLocation takes location whichLocation[b],[/b] real newX[b],[/b] real newY returns nothing [color=7777FF][b]native[/b][/color] GetLocationX takes location whichLocation returns real [color=7777FF][b]native[/b][/color] GetLocationY takes location whichLocation returns real [color=999999][i]// This function is asynchronous. The values it returns are not guaranteed synchronous between each player.[/i][/color] [color=999999][i]// If you attempt to use it in a synchronous manner, it may cause a desync.[/i][/color] [color=7777FF][b]native[/b][/color] GetLocationZ takes location whichLocation returns real [color=7777FF][b]native[/b][/color] IsUnitInRegion takes [color=AA77FF]region[/color] whichRegion[b],[/b] [color=AA77FF]unit[/color] whichUnit returns boolean [color=7777FF][b]native[/b][/color] IsPointInRegion takes [color=AA77FF]region[/color] whichRegion[b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] IsLocationInRegion takes [color=AA77FF]region[/color] whichRegion[b],[/b] location whichLocation returns boolean [color=999999][i]// Returns full map bounds, including unplayable borders, in world coordinates[/i][/color] [color=7777FF][b]native[/b][/color] GetWorldBounds takes nothing returns rect [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Native trigger interface[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] CreateTrigger takes nothing returns [color=AA77FF]trigger[/color] [color=7777FF][b]native[/b][/color] DestroyTrigger takes [color=AA77FF]trigger[/color] whichTrigger returns nothing [color=7777FF][b]native[/b][/color] ResetTrigger takes [color=AA77FF]trigger[/color] whichTrigger returns nothing [color=7777FF][b]native[/b][/color] EnableTrigger takes [color=AA77FF]trigger[/color] whichTrigger returns nothing [color=7777FF][b]native[/b][/color] DisableTrigger takes [color=AA77FF]trigger[/color] whichTrigger returns nothing [color=7777FF][b]native[/b][/color] IsTriggerEnabled takes [color=AA77FF]trigger[/color] whichTrigger returns boolean [color=7777FF][b]native[/b][/color] TriggerWaitOnSleeps takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] IsTriggerWaitOnSleeps takes [color=AA77FF]trigger[/color] whichTrigger returns boolean constant [color=7777FF][b]native[/b][/color] GetFilterUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetEnumUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetFilterDestructable takes nothing returns destructable constant [color=7777FF][b]native[/b][/color] GetEnumDestructable takes nothing returns destructable constant [color=7777FF][b]native[/b][/color] GetFilterItem takes nothing returns item constant [color=7777FF][b]native[/b][/color] GetEnumItem takes nothing returns item constant [color=7777FF][b]native[/b][/color] GetFilterPlayer takes nothing returns player constant [color=7777FF][b]native[/b][/color] GetEnumPlayer takes nothing returns player constant [color=7777FF][b]native[/b][/color] GetTriggeringTrigger takes nothing returns [color=AA77FF]trigger[/color] constant [color=7777FF][b]native[/b][/color] GetTriggerEventId takes nothing returns eventid constant [color=7777FF][b]native[/b][/color] GetTriggerEvalCount takes [color=AA77FF]trigger[/color] whichTrigger returns integer constant [color=7777FF][b]native[/b][/color] GetTriggerExecCount takes [color=AA77FF]trigger[/color] whichTrigger returns integer [color=7777FF][b]native[/b][/color] ExecuteFunc takes [color=AA77FF]string[/color] funcName returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Boolean Expr API ( for compositing trigger conditions and unit filter funcs...)[/i][/color] [color=999999][i]//============================================================================[/i][/color] [color=7777FF][b]native[/b][/color] And takes boolexpr operandA[b],[/b] boolexpr operandB returns boolexpr [color=7777FF][b]native[/b][/color] Or takes boolexpr operandA[b],[/b] boolexpr operandB returns boolexpr [color=7777FF][b]native[/b][/color] Not takes boolexpr operand returns boolexpr [color=7777FF][b]native[/b][/color] Condition takes code func returns conditionfunc [color=7777FF][b]native[/b][/color] DestroyCondition takes conditionfunc c returns nothing [color=7777FF][b]native[/b][/color] Filter takes code func returns filterfunc [color=7777FF][b]native[/b][/color] DestroyFilter takes filterfunc f returns nothing [color=7777FF][b]native[/b][/color] DestroyBoolExpr takes boolexpr e returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Trigger Game Event API[/i][/color] [color=999999][i]//============================================================================[/i][/color] [color=7777FF][b]native[/b][/color] TriggerRegisterVariableEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] [color=AA77FF]string[/color] varName[b],[/b] limitop opcode[b],[/b] real limitval returns event [color=999999][i]// EVENT_GAME_VARIABLE_LIMIT[/i][/color] [color=999999][i]//constant native string GetTriggeringVariableName takes nothing returns string[/i][/color] [color=999999][i]// Creates it's own timer and triggers when it expires[/i][/color] [color=7777FF][b]native[/b][/color] TriggerRegisterTimerEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] real timeout[b],[/b] boolean periodic returns event [color=999999][i]// Triggers when the timer you tell it about expires[/i][/color] [color=7777FF][b]native[/b][/color] TriggerRegisterTimerExpireEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] timer t returns event [color=7777FF][b]native[/b][/color] TriggerRegisterGameStateEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] gamestate whichState[b],[/b] limitop opcode[b],[/b] real limitval returns event [color=7777FF][b]native[/b][/color] TriggerRegisterDialogEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] dialog whichDialog returns event [color=7777FF][b]native[/b][/color] TriggerRegisterDialogButtonEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] button whichButton returns event [color=999999][i]// EVENT_GAME_STATE_LIMIT[/i][/color] constant [color=7777FF][b]native[/b][/color] GetEventGameState takes nothing returns gamestate [color=7777FF][b]native[/b][/color] TriggerRegisterGameEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] gameevent whichGameEvent returns event [color=999999][i]// EVENT_GAME_VICTORY[/i][/color] constant [color=7777FF][b]native[/b][/color] GetWinningPlayer takes nothing returns player [color=7777FF][b]native[/b][/color] TriggerRegisterEnterRegion takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] [color=AA77FF]region[/color] whichRegion[b],[/b] boolexpr filter returns event [color=999999][i]// EVENT_GAME_ENTER_REGION[/i][/color] constant [color=7777FF][b]native[/b][/color] GetTriggeringRegion takes nothing returns [color=AA77FF]region[/color] constant [color=7777FF][b]native[/b][/color] GetEnteringUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_GAME_LEAVE_REGION[/i][/color] [color=7777FF][b]native[/b][/color] TriggerRegisterLeaveRegion takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] [color=AA77FF]region[/color] whichRegion[b],[/b] boolexpr filter returns event constant [color=7777FF][b]native[/b][/color] GetLeavingUnit takes nothing returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] TriggerRegisterTrackableHitEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] trackable t returns event [color=7777FF][b]native[/b][/color] TriggerRegisterTrackableTrackEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] trackable t returns event [color=999999][i]// EVENT_GAME_TRACKABLE_HIT[/i][/color] [color=999999][i]// EVENT_GAME_TRACKABLE_TRACK[/i][/color] constant [color=7777FF][b]native[/b][/color] GetTriggeringTrackable takes nothing returns trackable [color=999999][i]// EVENT_DIALOG_BUTTON_CLICK[/i][/color] constant [color=7777FF][b]native[/b][/color] GetClickedButton takes nothing returns button constant [color=7777FF][b]native[/b][/color] GetClickedDialog takes nothing returns dialog [color=999999][i]// EVENT_GAME_TOURNAMENT_FINISH_SOON[/i][/color] constant [color=7777FF][b]native[/b][/color] GetTournamentFinishSoonTimeRemaining takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetTournamentFinishNowRule takes nothing returns integer constant [color=7777FF][b]native[/b][/color] GetTournamentFinishNowPlayer takes nothing returns player constant [color=7777FF][b]native[/b][/color] GetTournamentScore takes player whichPlayer returns integer [color=999999][i]// EVENT_GAME_SAVE[/i][/color] constant [color=7777FF][b]native[/b][/color] GetSaveBasicFilename takes nothing returns [color=AA77FF]string[/color] [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Trigger Player Based Event API[/i][/color] [color=999999][i]//============================================================================[/i][/color] [color=7777FF][b]native[/b][/color] TriggerRegisterPlayerEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] player whichPlayer[b],[/b] playerevent whichPlayerEvent returns event [color=999999][i]// EVENT_PLAYER_DEFEAT[/i][/color] [color=999999][i]// EVENT_PLAYER_VICTORY[/i][/color] constant [color=7777FF][b]native[/b][/color] GetTriggerPlayer takes nothing returns player [color=7777FF][b]native[/b][/color] TriggerRegisterPlayerUnitEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] player whichPlayer[b],[/b] playerunitevent whichPlayerUnitEvent[b],[/b] boolexpr filter returns event [color=999999][i]// EVENT_PLAYER_HERO_LEVEL[/i][/color] [color=999999][i]// EVENT_UNIT_HERO_LEVEL[/i][/color] constant [color=7777FF][b]native[/b][/color] GetLevelingUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_HERO_SKILL[/i][/color] [color=999999][i]// EVENT_UNIT_HERO_SKILL[/i][/color] constant [color=7777FF][b]native[/b][/color] GetLearningUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetLearnedSkill takes nothing returns integer constant [color=7777FF][b]native[/b][/color] GetLearnedSkillLevel takes nothing returns integer [color=999999][i]// EVENT_PLAYER_HERO_REVIVABLE[/i][/color] constant [color=7777FF][b]native[/b][/color] GetRevivableUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_HERO_REVIVE_START[/i][/color] [color=999999][i]// EVENT_PLAYER_HERO_REVIVE_CANCEL[/i][/color] [color=999999][i]// EVENT_PLAYER_HERO_REVIVE_FINISH[/i][/color] [color=999999][i]// EVENT_UNIT_HERO_REVIVE_START[/i][/color] [color=999999][i]// EVENT_UNIT_HERO_REVIVE_CANCEL[/i][/color] [color=999999][i]// EVENT_UNIT_HERO_REVIVE_FINISH[/i][/color] constant [color=7777FF][b]native[/b][/color] GetRevivingUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_ATTACKED[/i][/color] constant [color=7777FF][b]native[/b][/color] GetAttacker takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_RESCUED[/i][/color] constant [color=7777FF][b]native[/b][/color] GetRescuer takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_DEATH[/i][/color] constant [color=7777FF][b]native[/b][/color] GetDyingUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetKillingUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_DECAY[/i][/color] constant [color=7777FF][b]native[/b][/color] GetDecayingUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_SELECTED[/i][/color] [color=999999][i]//constant native GetSelectedUnit takes nothing returns unit[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_CONSTRUCT_START[/i][/color] constant [color=7777FF][b]native[/b][/color] GetConstructingStructure takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_CONSTRUCT_FINISH[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL[/i][/color] constant [color=7777FF][b]native[/b][/color] GetCancelledStructure takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetConstructedStructure takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_RESEARCH_START[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_RESEARCH_CANCEL[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_RESEARCH_FINISH[/i][/color] constant [color=7777FF][b]native[/b][/color] GetResearchingUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetResearched takes nothing returns integer [color=999999][i]// EVENT_PLAYER_UNIT_TRAIN_START[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_TRAIN_CANCEL[/i][/color] constant [color=7777FF][b]native[/b][/color] GetTrainedUnitType takes nothing returns integer [color=999999][i]// EVENT_PLAYER_UNIT_TRAIN_FINISH[/i][/color] constant [color=7777FF][b]native[/b][/color] GetTrainedUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_DETECTED[/i][/color] constant [color=7777FF][b]native[/b][/color] GetDetectedUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_SUMMONED[/i][/color] constant [color=7777FF][b]native[/b][/color] GetSummoningUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetSummonedUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_LOADED[/i][/color] constant [color=7777FF][b]native[/b][/color] GetTransportUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetLoadedUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_SELL[/i][/color] constant [color=7777FF][b]native[/b][/color] GetSellingUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetSoldUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetBuyingUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_PLAYER_UNIT_SELL_ITEM[/i][/color] constant [color=7777FF][b]native[/b][/color] GetSoldItem takes nothing returns item [color=999999][i]// EVENT_PLAYER_UNIT_CHANGE_OWNER[/i][/color] constant [color=7777FF][b]native[/b][/color] GetChangingUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetChangingUnitPrevOwner takes nothing returns player [color=999999][i]// EVENT_PLAYER_UNIT_DROP_ITEM[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_PICKUP_ITEM[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_USE_ITEM[/i][/color] constant [color=7777FF][b]native[/b][/color] GetManipulatingUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetManipulatedItem takes nothing returns item [color=999999][i]// EVENT_PLAYER_UNIT_ISSUED_ORDER[/i][/color] constant [color=7777FF][b]native[/b][/color] GetOrderedUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetIssuedOrderId takes nothing returns integer [color=999999][i]// EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER[/i][/color] constant [color=7777FF][b]native[/b][/color] GetOrderPointX takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetOrderPointY takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetOrderPointLoc takes nothing returns location [color=999999][i]// EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER[/i][/color] constant [color=7777FF][b]native[/b][/color] GetOrderTarget takes nothing returns widget constant [color=7777FF][b]native[/b][/color] GetOrderTargetDestructable takes nothing returns destructable constant [color=7777FF][b]native[/b][/color] GetOrderTargetItem takes nothing returns item constant [color=7777FF][b]native[/b][/color] GetOrderTargetUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_UNIT_SPELL_CHANNEL[/i][/color] [color=999999][i]// EVENT_UNIT_SPELL_CAST[/i][/color] [color=999999][i]// EVENT_UNIT_SPELL_EFFECT[/i][/color] [color=999999][i]// EVENT_UNIT_SPELL_FINISH[/i][/color] [color=999999][i]// EVENT_UNIT_SPELL_ENDCAST[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_SPELL_CHANNEL[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_SPELL_CAST[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_SPELL_EFFECT[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_SPELL_FINISH[/i][/color] [color=999999][i]// EVENT_PLAYER_UNIT_SPELL_ENDCAST[/i][/color] constant [color=7777FF][b]native[/b][/color] GetSpellAbilityUnit takes nothing returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetSpellAbilityId takes nothing returns integer constant [color=7777FF][b]native[/b][/color] GetSpellAbility takes nothing returns ability constant [color=7777FF][b]native[/b][/color] GetSpellTargetLoc takes nothing returns location constant [color=7777FF][b]native[/b][/color] GetSpellTargetX takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetSpellTargetY takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetSpellTargetDestructable takes nothing returns destructable constant [color=7777FF][b]native[/b][/color] GetSpellTargetItem takes nothing returns item constant [color=7777FF][b]native[/b][/color] GetSpellTargetUnit takes nothing returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] TriggerRegisterPlayerAllianceChange takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] player whichPlayer[b],[/b] alliancetype whichAlliance returns event [color=7777FF][b]native[/b][/color] TriggerRegisterPlayerStateEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] player whichPlayer[b],[/b] playerstate whichState[b],[/b] limitop opcode[b],[/b] real limitval returns event [color=999999][i]// EVENT_PLAYER_STATE_LIMIT[/i][/color] constant [color=7777FF][b]native[/b][/color] GetEventPlayerState takes nothing returns playerstate [color=7777FF][b]native[/b][/color] TriggerRegisterPlayerChatEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] player whichPlayer[b],[/b] [color=AA77FF]string[/color] chatMessageToDetect[b],[/b] boolean exactMatchOnly returns event [color=999999][i]// EVENT_PLAYER_CHAT[/i][/color] [color=999999][i]// returns the actual string they typed in ( same as what you registered for[/i][/color] [color=999999][i]// if you required exact match )[/i][/color] constant [color=7777FF][b]native[/b][/color] GetEventPlayerChatString takes nothing returns [color=AA77FF]string[/color] [color=999999][i]// returns the string that you registered for[/i][/color] constant [color=7777FF][b]native[/b][/color] GetEventPlayerChatStringMatched takes nothing returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] TriggerRegisterDeathEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] widget whichWidget returns event [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Trigger Unit Based Event API[/i][/color] [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// returns handle to unit which triggered the most recent event when called from[/i][/color] [color=999999][i]// within a trigger action function...returns null handle when used incorrectly[/i][/color] constant [color=7777FF][b]native[/b][/color] GetTriggerUnit takes nothing returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] TriggerRegisterUnitStateEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] [color=AA77FF]unit[/color] whichUnit[b],[/b] unitstate whichState[b],[/b] limitop opcode[b],[/b] real limitval returns event [color=999999][i]// EVENT_UNIT_STATE_LIMIT[/i][/color] constant [color=7777FF][b]native[/b][/color] GetEventUnitState takes nothing returns unitstate [color=7777FF][b]native[/b][/color] TriggerRegisterUnitEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] [color=AA77FF]unit[/color] whichUnit[b],[/b] unitevent whichEvent returns event [color=999999][i]// EVENT_UNIT_DAMAGED[/i][/color] constant [color=7777FF][b]native[/b][/color] GetEventDamage takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetEventDamageSource takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_UNIT_DEATH[/i][/color] [color=999999][i]// EVENT_UNIT_DECAY[/i][/color] [color=999999][i]// Use the GetDyingUnit and GetDecayingUnit funcs above[/i][/color] [color=999999][i]// EVENT_UNIT_DETECTED[/i][/color] constant [color=7777FF][b]native[/b][/color] GetEventDetectingPlayer takes nothing returns player [color=7777FF][b]native[/b][/color] TriggerRegisterFilterUnitEvent takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] [color=AA77FF]unit[/color] whichUnit[b],[/b] unitevent whichEvent[b],[/b] boolexpr filter returns event [color=999999][i]// EVENT_UNIT_ACQUIRED_TARGET[/i][/color] [color=999999][i]// EVENT_UNIT_TARGET_IN_RANGE[/i][/color] constant [color=7777FF][b]native[/b][/color] GetEventTargetUnit takes nothing returns [color=AA77FF]unit[/color] [color=999999][i]// EVENT_UNIT_ATTACKED[/i][/color] [color=999999][i]// Use GetAttacker from the Player Unit Event API Below...[/i][/color] [color=999999][i]// EVENT_UNIT_RESCUEDED[/i][/color] [color=999999][i]// Use GetRescuer from the Player Unit Event API Below...[/i][/color] [color=999999][i]// EVENT_UNIT_CONSTRUCT_CANCEL[/i][/color] [color=999999][i]// EVENT_UNIT_CONSTRUCT_FINISH[/i][/color] [color=999999][i]// See the Player Unit Construction Event API above for event info funcs[/i][/color] [color=999999][i]// EVENT_UNIT_TRAIN_START[/i][/color] [color=999999][i]// EVENT_UNIT_TRAIN_CANCELLED[/i][/color] [color=999999][i]// EVENT_UNIT_TRAIN_FINISH[/i][/color] [color=999999][i]// See the Player Unit Training Event API above for event info funcs[/i][/color] [color=999999][i]// EVENT_UNIT_SELL[/i][/color] [color=999999][i]// See the Player Unit Sell Event API above for event info funcs[/i][/color] [color=999999][i]// EVENT_UNIT_DROP_ITEM[/i][/color] [color=999999][i]// EVENT_UNIT_PICKUP_ITEM[/i][/color] [color=999999][i]// EVENT_UNIT_USE_ITEM[/i][/color] [color=999999][i]// See the Player Unit/Item manipulation Event API above for event info funcs[/i][/color] [color=999999][i]// EVENT_UNIT_ISSUED_ORDER[/i][/color] [color=999999][i]// EVENT_UNIT_ISSUED_POINT_ORDER[/i][/color] [color=999999][i]// EVENT_UNIT_ISSUED_TARGET_ORDER[/i][/color] [color=999999][i]// See the Player Unit Order Event API above for event info funcs[/i][/color] [color=7777FF][b]native[/b][/color] TriggerRegisterUnitInRange takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] [color=AA77FF]unit[/color] whichUnit[b],[/b] real range[b],[/b] boolexpr filter returns event [color=7777FF][b]native[/b][/color] TriggerAddCondition takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] boolexpr condition returns triggercondition [color=7777FF][b]native[/b][/color] TriggerRemoveCondition takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] triggercondition whichCondition returns nothing [color=7777FF][b]native[/b][/color] TriggerClearConditions takes [color=AA77FF]trigger[/color] whichTrigger returns nothing [color=7777FF][b]native[/b][/color] TriggerAddAction takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] code actionFunc returns triggeraction [color=7777FF][b]native[/b][/color] TriggerRemoveAction takes [color=AA77FF]trigger[/color] whichTrigger[b],[/b] triggeraction whichAction returns nothing [color=7777FF][b]native[/b][/color] TriggerClearActions takes [color=AA77FF]trigger[/color] whichTrigger returns nothing [color=7777FF][b]native[/b][/color] TriggerSleepAction takes real timeout returns nothing [color=7777FF][b]native[/b][/color] TriggerWaitForSound takes sound s[b],[/b] real offset returns nothing [color=7777FF][b]native[/b][/color] TriggerEvaluate takes [color=AA77FF]trigger[/color] whichTrigger returns boolean [color=7777FF][b]native[/b][/color] TriggerExecute takes [color=AA77FF]trigger[/color] whichTrigger returns nothing [color=7777FF][b]native[/b][/color] TriggerExecuteWait takes [color=AA77FF]trigger[/color] whichTrigger returns nothing [color=7777FF][b]native[/b][/color] TriggerSyncStart takes nothing returns nothing [color=7777FF][b]native[/b][/color] TriggerSyncReady takes nothing returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Widget API[/i][/color] [color=7777FF][b]native[/b][/color] GetWidgetLife takes widget whichWidget returns real [color=7777FF][b]native[/b][/color] SetWidgetLife takes widget whichWidget[b],[/b] real newLife returns nothing [color=7777FF][b]native[/b][/color] GetWidgetX takes widget whichWidget returns real [color=7777FF][b]native[/b][/color] GetWidgetY takes widget whichWidget returns real constant [color=7777FF][b]native[/b][/color] GetTriggerWidget takes nothing returns widget [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Destructable Object API[/i][/color] [color=999999][i]// Facing arguments are specified in degrees[/i][/color] [color=7777FF][b]native[/b][/color] CreateDestructable takes integer objectid[b],[/b] real x[b],[/b] real y[b],[/b] real face[b],[/b] real scale[b],[/b] integer variation returns destructable [color=7777FF][b]native[/b][/color] CreateDestructableZ takes integer objectid[b],[/b] real x[b],[/b] real y[b],[/b] real z[b],[/b] real face[b],[/b] real scale[b],[/b] integer variation returns destructable [color=7777FF][b]native[/b][/color] CreateDeadDestructable takes integer objectid[b],[/b] real x[b],[/b] real y[b],[/b] real face[b],[/b] real scale[b],[/b] integer variation returns destructable [color=7777FF][b]native[/b][/color] CreateDeadDestructableZ takes integer objectid[b],[/b] real x[b],[/b] real y[b],[/b] real z[b],[/b] real face[b],[/b] real scale[b],[/b] integer variation returns destructable [color=7777FF][b]native[/b][/color] RemoveDestructable takes destructable d returns nothing [color=7777FF][b]native[/b][/color] KillDestructable takes destructable d returns nothing [color=7777FF][b]native[/b][/color] SetDestructableInvulnerable takes destructable d[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] IsDestructableInvulnerable takes destructable d returns boolean [color=7777FF][b]native[/b][/color] EnumDestructablesInRect takes rect r[b],[/b] boolexpr filter[b],[/b] code actionFunc returns nothing [color=7777FF][b]native[/b][/color] GetDestructableTypeId takes destructable d returns integer [color=7777FF][b]native[/b][/color] GetDestructableX takes destructable d returns real [color=7777FF][b]native[/b][/color] GetDestructableY takes destructable d returns real [color=7777FF][b]native[/b][/color] SetDestructableLife takes destructable d[b],[/b] real life returns nothing [color=7777FF][b]native[/b][/color] GetDestructableLife takes destructable d returns real [color=7777FF][b]native[/b][/color] SetDestructableMaxLife takes destructable d[b],[/b] real max returns nothing [color=7777FF][b]native[/b][/color] GetDestructableMaxLife takes destructable d returns real [color=7777FF][b]native[/b][/color] DestructableRestoreLife takes destructable d[b],[/b] real life[b],[/b] boolean birth returns nothing [color=7777FF][b]native[/b][/color] QueueDestructableAnimation takes destructable d[b],[/b] [color=AA77FF]string[/color] whichAnimation returns nothing [color=7777FF][b]native[/b][/color] SetDestructableAnimation takes destructable d[b],[/b] [color=AA77FF]string[/color] whichAnimation returns nothing [color=7777FF][b]native[/b][/color] SetDestructableAnimationSpeed takes destructable d[b],[/b] real speedFactor returns nothing [color=7777FF][b]native[/b][/color] ShowDestructable takes destructable d[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] GetDestructableOccluderHeight takes destructable d returns real [color=7777FF][b]native[/b][/color] SetDestructableOccluderHeight takes destructable d[b],[/b] real height returns nothing [color=7777FF][b]native[/b][/color] GetDestructableName takes destructable d returns [color=AA77FF]string[/color] constant [color=7777FF][b]native[/b][/color] GetTriggerDestructable takes nothing returns destructable [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Item API[/i][/color] [color=7777FF][b]native[/b][/color] CreateItem takes integer itemid[b],[/b] real x[b],[/b] real y returns item [color=7777FF][b]native[/b][/color] RemoveItem takes item whichItem returns nothing [color=7777FF][b]native[/b][/color] GetItemPlayer takes item whichItem returns player [color=7777FF][b]native[/b][/color] GetItemTypeId takes item i returns integer [color=7777FF][b]native[/b][/color] GetItemX takes item i returns real [color=7777FF][b]native[/b][/color] GetItemY takes item i returns real [color=7777FF][b]native[/b][/color] SetItemPosition takes item i[b],[/b] real x[b],[/b] real y returns nothing [color=7777FF][b]native[/b][/color] SetItemDropOnDeath takes item whichItem[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetItemDroppable takes item i[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetItemPawnable takes item i[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetItemPlayer takes item whichItem[b],[/b] player whichPlayer[b],[/b] boolean changeColor returns nothing [color=7777FF][b]native[/b][/color] SetItemInvulnerable takes item whichItem[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] IsItemInvulnerable takes item whichItem returns boolean [color=7777FF][b]native[/b][/color] SetItemVisible takes item whichItem[b],[/b] boolean show returns nothing [color=7777FF][b]native[/b][/color] IsItemVisible takes item whichItem returns boolean [color=7777FF][b]native[/b][/color] IsItemOwned takes item whichItem returns boolean [color=7777FF][b]native[/b][/color] IsItemPowerup takes item whichItem returns boolean [color=7777FF][b]native[/b][/color] IsItemSellable takes item whichItem returns boolean [color=7777FF][b]native[/b][/color] IsItemPawnable takes item whichItem returns boolean [color=7777FF][b]native[/b][/color] IsItemIdPowerup takes integer itemId returns boolean [color=7777FF][b]native[/b][/color] IsItemIdSellable takes integer itemId returns boolean [color=7777FF][b]native[/b][/color] IsItemIdPawnable takes integer itemId returns boolean [color=7777FF][b]native[/b][/color] EnumItemsInRect takes rect r[b],[/b] boolexpr filter[b],[/b] code actionFunc returns nothing [color=7777FF][b]native[/b][/color] GetItemLevel takes item whichItem returns integer [color=7777FF][b]native[/b][/color] GetItemType takes item whichItem returns itemtype [color=7777FF][b]native[/b][/color] SetItemDropID takes item whichItem[b],[/b] integer unitId returns nothing constant [color=7777FF][b]native[/b][/color] GetItemName takes item whichItem returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetItemCharges takes item whichItem returns integer [color=7777FF][b]native[/b][/color] SetItemCharges takes item whichItem[b],[/b] integer charges returns nothing [color=7777FF][b]native[/b][/color] GetItemUserData takes item whichItem returns integer [color=7777FF][b]native[/b][/color] SetItemUserData takes item whichItem[b],[/b] integer data returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Unit API[/i][/color] [color=999999][i]// Facing arguments are specified in degrees[/i][/color] [color=7777FF][b]native[/b][/color] CreateUnit takes player id[b],[/b] integer unitid[b],[/b] real x[b],[/b] real y[b],[/b] real face returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] CreateUnitByName takes player whichPlayer[b],[/b] [color=AA77FF]string[/color] unitname[b],[/b] real x[b],[/b] real y[b],[/b] real face returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] CreateUnitAtLoc takes player id[b],[/b] integer unitid[b],[/b] location whichLocation[b],[/b] real face returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] CreateUnitAtLocByName takes player id[b],[/b] [color=AA77FF]string[/color] unitname[b],[/b] location whichLocation[b],[/b] real face returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] CreateCorpse takes player whichPlayer[b],[/b] integer unitid[b],[/b] real x[b],[/b] real y[b],[/b] real face returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] KillUnit takes [color=AA77FF]unit[/color] whichUnit returns nothing [color=7777FF][b]native[/b][/color] RemoveUnit takes [color=AA77FF]unit[/color] whichUnit returns nothing [color=7777FF][b]native[/b][/color] ShowUnit takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean show returns nothing [color=7777FF][b]native[/b][/color] SetUnitState takes [color=AA77FF]unit[/color] whichUnit[b],[/b] unitstate whichUnitState[b],[/b] real newVal returns nothing [color=7777FF][b]native[/b][/color] SetUnitX takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real newX returns nothing [color=7777FF][b]native[/b][/color] SetUnitY takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real newY returns nothing [color=7777FF][b]native[/b][/color] SetUnitPosition takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real newX[b],[/b] real newY returns nothing [color=7777FF][b]native[/b][/color] SetUnitPositionLoc takes [color=AA77FF]unit[/color] whichUnit[b],[/b] location whichLocation returns nothing [color=7777FF][b]native[/b][/color] SetUnitFacing takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real facingAngle returns nothing [color=7777FF][b]native[/b][/color] SetUnitFacingTimed takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real facingAngle[b],[/b] real duration returns nothing [color=7777FF][b]native[/b][/color] SetUnitMoveSpeed takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real newSpeed returns nothing [color=7777FF][b]native[/b][/color] SetUnitFlyHeight takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real newHeight[b],[/b] real rate returns nothing [color=7777FF][b]native[/b][/color] SetUnitTurnSpeed takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real newTurnSpeed returns nothing [color=7777FF][b]native[/b][/color] SetUnitPropWindow takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real newPropWindowAngle returns nothing [color=7777FF][b]native[/b][/color] SetUnitAcquireRange takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real newAcquireRange returns nothing [color=7777FF][b]native[/b][/color] SetUnitCreepGuard takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean creepGuard returns nothing [color=7777FF][b]native[/b][/color] GetUnitAcquireRange takes [color=AA77FF]unit[/color] whichUnit returns real [color=7777FF][b]native[/b][/color] GetUnitTurnSpeed takes [color=AA77FF]unit[/color] whichUnit returns real [color=7777FF][b]native[/b][/color] GetUnitPropWindow takes [color=AA77FF]unit[/color] whichUnit returns real [color=7777FF][b]native[/b][/color] GetUnitFlyHeight takes [color=AA77FF]unit[/color] whichUnit returns real [color=7777FF][b]native[/b][/color] GetUnitDefaultAcquireRange takes [color=AA77FF]unit[/color] whichUnit returns real [color=7777FF][b]native[/b][/color] GetUnitDefaultTurnSpeed takes [color=AA77FF]unit[/color] whichUnit returns real [color=7777FF][b]native[/b][/color] GetUnitDefaultPropWindow takes [color=AA77FF]unit[/color] whichUnit returns real [color=7777FF][b]native[/b][/color] GetUnitDefaultFlyHeight takes [color=AA77FF]unit[/color] whichUnit returns real [color=7777FF][b]native[/b][/color] SetUnitOwner takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer[b],[/b] boolean changeColor returns nothing [color=7777FF][b]native[/b][/color] SetUnitColor takes [color=AA77FF]unit[/color] whichUnit[b],[/b] playercolor whichColor returns nothing [color=7777FF][b]native[/b][/color] SetUnitScale takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real scaleX[b],[/b] real scaleY[b],[/b] real scaleZ returns nothing [color=7777FF][b]native[/b][/color] SetUnitTimeScale takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real timeScale returns nothing [color=7777FF][b]native[/b][/color] SetUnitBlendTime takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real blendTime returns nothing [color=7777FF][b]native[/b][/color] SetUnitVertexColor takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] QueueUnitAnimation takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] whichAnimation returns nothing [color=7777FF][b]native[/b][/color] SetUnitAnimation takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] whichAnimation returns nothing [color=7777FF][b]native[/b][/color] SetUnitAnimationByIndex takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer whichAnimation returns nothing [color=7777FF][b]native[/b][/color] SetUnitAnimationWithRarity takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] whichAnimation[b],[/b] raritycontrol rarity returns nothing [color=7777FF][b]native[/b][/color] AddUnitAnimationProperties takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] animProperties[b],[/b] boolean add returns nothing [color=7777FF][b]native[/b][/color] SetUnitLookAt takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] whichBone[b],[/b] [color=AA77FF]unit[/color] lookAtTarget[b],[/b] real offsetX[b],[/b] real offsetY[b],[/b] real offsetZ returns nothing [color=7777FF][b]native[/b][/color] ResetUnitLookAt takes [color=AA77FF]unit[/color] whichUnit returns nothing [color=7777FF][b]native[/b][/color] SetUnitRescuable takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player byWhichPlayer[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetUnitRescueRange takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real range returns nothing [color=7777FF][b]native[/b][/color] SetHeroStr takes [color=AA77FF]unit[/color] whichHero[b],[/b] integer newStr[b],[/b] boolean permanent returns nothing [color=7777FF][b]native[/b][/color] SetHeroAgi takes [color=AA77FF]unit[/color] whichHero[b],[/b] integer newAgi[b],[/b] boolean permanent returns nothing [color=7777FF][b]native[/b][/color] SetHeroInt takes [color=AA77FF]unit[/color] whichHero[b],[/b] integer newInt[b],[/b] boolean permanent returns nothing [color=7777FF][b]native[/b][/color] GetHeroStr takes [color=AA77FF]unit[/color] whichHero[b],[/b] boolean includeBonuses returns integer [color=7777FF][b]native[/b][/color] GetHeroAgi takes [color=AA77FF]unit[/color] whichHero[b],[/b] boolean includeBonuses returns integer [color=7777FF][b]native[/b][/color] GetHeroInt takes [color=AA77FF]unit[/color] whichHero[b],[/b] boolean includeBonuses returns integer [color=7777FF][b]native[/b][/color] UnitStripHeroLevel takes [color=AA77FF]unit[/color] whichHero[b],[/b] integer howManyLevels returns boolean [color=7777FF][b]native[/b][/color] GetHeroXP takes [color=AA77FF]unit[/color] whichHero returns integer [color=7777FF][b]native[/b][/color] SetHeroXP takes [color=AA77FF]unit[/color] whichHero[b],[/b] integer newXpVal[b],[/b] boolean showEyeCandy returns nothing [color=7777FF][b]native[/b][/color] GetHeroSkillPoints takes [color=AA77FF]unit[/color] whichHero returns integer [color=7777FF][b]native[/b][/color] UnitModifySkillPoints takes [color=AA77FF]unit[/color] whichHero[b],[/b] integer skillPointDelta returns boolean [color=7777FF][b]native[/b][/color] AddHeroXP takes [color=AA77FF]unit[/color] whichHero[b],[/b] integer xpToAdd[b],[/b] boolean showEyeCandy returns nothing [color=7777FF][b]native[/b][/color] SetHeroLevel takes [color=AA77FF]unit[/color] whichHero[b],[/b] integer level[b],[/b] boolean showEyeCandy returns nothing constant [color=7777FF][b]native[/b][/color] GetHeroLevel takes [color=AA77FF]unit[/color] whichHero returns integer constant [color=7777FF][b]native[/b][/color] GetUnitLevel takes [color=AA77FF]unit[/color] whichUnit returns integer [color=7777FF][b]native[/b][/color] GetHeroProperName takes [color=AA77FF]unit[/color] whichHero returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] SuspendHeroXP takes [color=AA77FF]unit[/color] whichHero[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] IsSuspendedXP takes [color=AA77FF]unit[/color] whichHero returns boolean [color=7777FF][b]native[/b][/color] SelectHeroSkill takes [color=AA77FF]unit[/color] whichHero[b],[/b] integer abilcode returns nothing [color=7777FF][b]native[/b][/color] GetUnitAbilityLevel takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilcode returns integer [color=7777FF][b]native[/b][/color] DecUnitAbilityLevel takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilcode returns integer [color=7777FF][b]native[/b][/color] IncUnitAbilityLevel takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilcode returns integer [color=7777FF][b]native[/b][/color] SetUnitAbilityLevel takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilcode[b],[/b] integer level returns integer [color=7777FF][b]native[/b][/color] ReviveHero takes [color=AA77FF]unit[/color] whichHero[b],[/b] real x[b],[/b] real y[b],[/b] boolean doEyecandy returns boolean [color=7777FF][b]native[/b][/color] ReviveHeroLoc takes [color=AA77FF]unit[/color] whichHero[b],[/b] location loc[b],[/b] boolean doEyecandy returns boolean [color=7777FF][b]native[/b][/color] SetUnitExploded takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean exploded returns nothing [color=7777FF][b]native[/b][/color] SetUnitInvulnerable takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] PauseUnit takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] IsUnitPaused takes [color=AA77FF]unit[/color] whichHero returns boolean [color=7777FF][b]native[/b][/color] SetUnitPathing takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] ClearSelection takes nothing returns nothing [color=7777FF][b]native[/b][/color] SelectUnit takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] GetUnitPointValue takes [color=AA77FF]unit[/color] whichUnit returns integer [color=7777FF][b]native[/b][/color] GetUnitPointValueByType takes integer unitType returns integer [color=999999][i]//native SetUnitPointValueByType takes integer unitType, integer newPointValue returns nothing[/i][/color] [color=7777FF][b]native[/b][/color] UnitAddItem takes [color=AA77FF]unit[/color] whichUnit[b],[/b] item whichItem returns boolean [color=7777FF][b]native[/b][/color] UnitAddItemById takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer itemId returns item [color=7777FF][b]native[/b][/color] UnitAddItemToSlotById takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer itemId[b],[/b] integer itemSlot returns boolean [color=7777FF][b]native[/b][/color] UnitRemoveItem takes [color=AA77FF]unit[/color] whichUnit[b],[/b] item whichItem returns nothing [color=7777FF][b]native[/b][/color] UnitRemoveItemFromSlot takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer itemSlot returns item [color=7777FF][b]native[/b][/color] UnitHasItem takes [color=AA77FF]unit[/color] whichUnit[b],[/b] item whichItem returns boolean [color=7777FF][b]native[/b][/color] UnitItemInSlot takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer itemSlot returns item [color=7777FF][b]native[/b][/color] UnitInventorySize takes [color=AA77FF]unit[/color] whichUnit returns integer [color=7777FF][b]native[/b][/color] UnitDropItemPoint takes [color=AA77FF]unit[/color] whichUnit[b],[/b] item whichItem[b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] UnitDropItemSlot takes [color=AA77FF]unit[/color] whichUnit[b],[/b] item whichItem[b],[/b] integer slot returns boolean [color=7777FF][b]native[/b][/color] UnitDropItemTarget takes [color=AA77FF]unit[/color] whichUnit[b],[/b] item whichItem[b],[/b] widget target returns boolean [color=7777FF][b]native[/b][/color] UnitUseItem takes [color=AA77FF]unit[/color] whichUnit[b],[/b] item whichItem returns boolean [color=7777FF][b]native[/b][/color] UnitUseItemPoint takes [color=AA77FF]unit[/color] whichUnit[b],[/b] item whichItem[b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] UnitUseItemTarget takes [color=AA77FF]unit[/color] whichUnit[b],[/b] item whichItem[b],[/b] widget target returns boolean constant [color=7777FF][b]native[/b][/color] GetUnitX takes [color=AA77FF]unit[/color] whichUnit returns real constant [color=7777FF][b]native[/b][/color] GetUnitY takes [color=AA77FF]unit[/color] whichUnit returns real constant [color=7777FF][b]native[/b][/color] GetUnitLoc takes [color=AA77FF]unit[/color] whichUnit returns location constant [color=7777FF][b]native[/b][/color] GetUnitFacing takes [color=AA77FF]unit[/color] whichUnit returns real constant [color=7777FF][b]native[/b][/color] GetUnitMoveSpeed takes [color=AA77FF]unit[/color] whichUnit returns real constant [color=7777FF][b]native[/b][/color] GetUnitDefaultMoveSpeed takes [color=AA77FF]unit[/color] whichUnit returns real constant [color=7777FF][b]native[/b][/color] GetUnitState takes [color=AA77FF]unit[/color] whichUnit[b],[/b] unitstate whichUnitState returns real constant [color=7777FF][b]native[/b][/color] GetOwningPlayer takes [color=AA77FF]unit[/color] whichUnit returns player constant [color=7777FF][b]native[/b][/color] GetUnitTypeId takes [color=AA77FF]unit[/color] whichUnit returns integer constant [color=7777FF][b]native[/b][/color] GetUnitRace takes [color=AA77FF]unit[/color] whichUnit returns race constant [color=7777FF][b]native[/b][/color] GetUnitName takes [color=AA77FF]unit[/color] whichUnit returns [color=AA77FF]string[/color] constant [color=7777FF][b]native[/b][/color] GetUnitFoodUsed takes [color=AA77FF]unit[/color] whichUnit returns integer constant [color=7777FF][b]native[/b][/color] GetUnitFoodMade takes [color=AA77FF]unit[/color] whichUnit returns integer constant [color=7777FF][b]native[/b][/color] GetFoodMade takes integer unitId returns integer constant [color=7777FF][b]native[/b][/color] GetFoodUsed takes integer unitId returns integer [color=7777FF][b]native[/b][/color] SetUnitUseFood takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean useFood returns nothing constant [color=7777FF][b]native[/b][/color] GetUnitRallyPoint takes [color=AA77FF]unit[/color] whichUnit returns location constant [color=7777FF][b]native[/b][/color] GetUnitRallyUnit takes [color=AA77FF]unit[/color] whichUnit returns [color=AA77FF]unit[/color] constant [color=7777FF][b]native[/b][/color] GetUnitRallyDestructable takes [color=AA77FF]unit[/color] whichUnit returns destructable constant [color=7777FF][b]native[/b][/color] IsUnitInGroup takes [color=AA77FF]unit[/color] whichUnit[b],[/b] group whichGroup returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitInForce takes [color=AA77FF]unit[/color] whichUnit[b],[/b] force whichForce returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitOwnedByPlayer takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitAlly takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitEnemy takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitVisible takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitDetected takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitInvisible takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitFogged takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitMasked takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitSelected takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitRace takes [color=AA77FF]unit[/color] whichUnit[b],[/b] race whichRace returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitType takes [color=AA77FF]unit[/color] whichUnit[b],[/b] unittype whichUnitType returns boolean constant [color=7777FF][b]native[/b][/color] IsUnit takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]unit[/color] whichSpecifiedUnit returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitInRange takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]unit[/color] otherUnit[b],[/b] real distance returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitInRangeXY takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real x[b],[/b] real y[b],[/b] real distance returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitInRangeLoc takes [color=AA77FF]unit[/color] whichUnit[b],[/b] location whichLocation[b],[/b] real distance returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitHidden takes [color=AA77FF]unit[/color] whichUnit returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitIllusion takes [color=AA77FF]unit[/color] whichUnit returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitInTransport takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]unit[/color] whichTransport returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitLoaded takes [color=AA77FF]unit[/color] whichUnit returns boolean constant [color=7777FF][b]native[/b][/color] IsHeroUnitId takes integer unitId returns boolean constant [color=7777FF][b]native[/b][/color] IsUnitIdType takes integer unitId[b],[/b] unittype whichUnitType returns boolean [color=7777FF][b]native[/b][/color] UnitShareVision takes [color=AA77FF]unit[/color] whichUnit[b],[/b] player whichPlayer[b],[/b] boolean share returns nothing [color=7777FF][b]native[/b][/color] UnitSuspendDecay takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean suspend returns nothing [color=7777FF][b]native[/b][/color] UnitAddType takes [color=AA77FF]unit[/color] whichUnit[b],[/b] unittype whichUnitType returns boolean [color=7777FF][b]native[/b][/color] UnitRemoveType takes [color=AA77FF]unit[/color] whichUnit[b],[/b] unittype whichUnitType returns boolean [color=7777FF][b]native[/b][/color] UnitAddAbility takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilityId returns boolean [color=7777FF][b]native[/b][/color] UnitRemoveAbility takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilityId returns boolean [color=7777FF][b]native[/b][/color] UnitMakeAbilityPermanent takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean permanent[b],[/b] integer abilityId returns boolean [color=7777FF][b]native[/b][/color] UnitRemoveBuffs takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean removePositive[b],[/b] boolean removeNegative returns nothing [color=7777FF][b]native[/b][/color] UnitRemoveBuffsEx takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean removePositive[b],[/b] boolean removeNegative[b],[/b] boolean magic[b],[/b] boolean physical[b],[/b] boolean timedLife[b],[/b] boolean aura[b],[/b] boolean autoDispel returns nothing [color=7777FF][b]native[/b][/color] UnitHasBuffsEx takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean removePositive[b],[/b] boolean removeNegative[b],[/b] boolean magic[b],[/b] boolean physical[b],[/b] boolean timedLife[b],[/b] boolean aura[b],[/b] boolean autoDispel returns boolean [color=7777FF][b]native[/b][/color] UnitCountBuffsEx takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean removePositive[b],[/b] boolean removeNegative[b],[/b] boolean magic[b],[/b] boolean physical[b],[/b] boolean timedLife[b],[/b] boolean aura[b],[/b] boolean autoDispel returns integer [color=7777FF][b]native[/b][/color] UnitAddSleep takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean add returns nothing [color=7777FF][b]native[/b][/color] UnitCanSleep takes [color=AA77FF]unit[/color] whichUnit returns boolean [color=7777FF][b]native[/b][/color] UnitAddSleepPerm takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean add returns nothing [color=7777FF][b]native[/b][/color] UnitCanSleepPerm takes [color=AA77FF]unit[/color] whichUnit returns boolean [color=7777FF][b]native[/b][/color] UnitIsSleeping takes [color=AA77FF]unit[/color] whichUnit returns boolean [color=7777FF][b]native[/b][/color] UnitWakeUp takes [color=AA77FF]unit[/color] whichUnit returns nothing [color=7777FF][b]native[/b][/color] UnitApplyTimedLife takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer buffId[b],[/b] real duration returns nothing [color=7777FF][b]native[/b][/color] UnitIgnoreAlarm takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean flag returns boolean [color=7777FF][b]native[/b][/color] UnitIgnoreAlarmToggled takes [color=AA77FF]unit[/color] whichUnit returns boolean [color=7777FF][b]native[/b][/color] UnitResetCooldown takes [color=AA77FF]unit[/color] whichUnit returns nothing [color=7777FF][b]native[/b][/color] UnitSetConstructionProgress takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer constructionPercentage returns nothing [color=7777FF][b]native[/b][/color] UnitSetUpgradeProgress takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer upgradePercentage returns nothing [color=7777FF][b]native[/b][/color] UnitPauseTimedLife takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] UnitSetUsesAltIcon takes [color=AA77FF]unit[/color] whichUnit[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] UnitDamagePoint takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real delay[b],[/b] real radius[b],[/b] real x[b],[/b] real y[b],[/b] real amount[b],[/b] boolean attack[b],[/b] boolean ranged[b],[/b] attacktype attackType[b],[/b] damagetype damageType[b],[/b] weapontype weaponType returns boolean [color=7777FF][b]native[/b][/color] UnitDamageTarget takes [color=AA77FF]unit[/color] whichUnit[b],[/b] widget target[b],[/b] real amount[b],[/b] boolean attack[b],[/b] boolean ranged[b],[/b] attacktype attackType[b],[/b] damagetype damageType[b],[/b] weapontype weaponType returns boolean [color=7777FF][b]native[/b][/color] IssueImmediateOrder takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]order[/color] returns boolean [color=7777FF][b]native[/b][/color] IssueImmediateOrderById takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer [color=AA77FF]order[/color] returns boolean [color=7777FF][b]native[/b][/color] IssuePointOrder takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]order[/color][b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] IssuePointOrderLoc takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]order[/color][b],[/b] location whichLocation returns boolean [color=7777FF][b]native[/b][/color] IssuePointOrderById takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer [color=AA77FF]order[/color][b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] IssuePointOrderByIdLoc takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer [color=AA77FF]order[/color][b],[/b] location whichLocation returns boolean [color=7777FF][b]native[/b][/color] IssueTargetOrder takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]order[/color][b],[/b] widget targetWidget returns boolean [color=7777FF][b]native[/b][/color] IssueTargetOrderById takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer [color=AA77FF]order[/color][b],[/b] widget targetWidget returns boolean [color=7777FF][b]native[/b][/color] IssueInstantPointOrder takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]order[/color][b],[/b] real x[b],[/b] real y[b],[/b] widget instantTargetWidget returns boolean [color=7777FF][b]native[/b][/color] IssueInstantPointOrderById takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer [color=AA77FF]order[/color][b],[/b] real x[b],[/b] real y[b],[/b] widget instantTargetWidget returns boolean [color=7777FF][b]native[/b][/color] IssueInstantTargetOrder takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]order[/color][b],[/b] widget targetWidget[b],[/b] widget instantTargetWidget returns boolean [color=7777FF][b]native[/b][/color] IssueInstantTargetOrderById takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer [color=AA77FF]order[/color][b],[/b] widget targetWidget[b],[/b] widget instantTargetWidget returns boolean [color=7777FF][b]native[/b][/color] IssueBuildOrder takes [color=AA77FF]unit[/color] whichPeon[b],[/b] [color=AA77FF]string[/color] unitToBuild[b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] IssueBuildOrderById takes [color=AA77FF]unit[/color] whichPeon[b],[/b] integer unitId[b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] IssueNeutralImmediateOrder takes player forWhichPlayer[b],[/b] [color=AA77FF]unit[/color] neutralStructure[b],[/b] [color=AA77FF]string[/color] unitToBuild returns boolean [color=7777FF][b]native[/b][/color] IssueNeutralImmediateOrderById takes player forWhichPlayer[b],[/b][color=AA77FF]unit[/color] neutralStructure[b],[/b] integer unitId returns boolean [color=7777FF][b]native[/b][/color] IssueNeutralPointOrder takes player forWhichPlayer[b],[/b][color=AA77FF]unit[/color] neutralStructure[b],[/b] [color=AA77FF]string[/color] unitToBuild[b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] IssueNeutralPointOrderById takes player forWhichPlayer[b],[/b][color=AA77FF]unit[/color] neutralStructure[b],[/b] integer unitId[b],[/b] real x[b],[/b] real y returns boolean [color=7777FF][b]native[/b][/color] IssueNeutralTargetOrder takes player forWhichPlayer[b],[/b][color=AA77FF]unit[/color] neutralStructure[b],[/b] [color=AA77FF]string[/color] unitToBuild[b],[/b] widget target returns boolean [color=7777FF][b]native[/b][/color] IssueNeutralTargetOrderById takes player forWhichPlayer[b],[/b][color=AA77FF]unit[/color] neutralStructure[b],[/b] integer unitId[b],[/b] widget target returns boolean [color=7777FF][b]native[/b][/color] GetUnitCurrentOrder takes [color=AA77FF]unit[/color] whichUnit returns integer [color=7777FF][b]native[/b][/color] SetResourceAmount takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer amount returns nothing [color=7777FF][b]native[/b][/color] AddResourceAmount takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer amount returns nothing [color=7777FF][b]native[/b][/color] GetResourceAmount takes [color=AA77FF]unit[/color] whichUnit returns integer [color=7777FF][b]native[/b][/color] WaygateGetDestinationX takes [color=AA77FF]unit[/color] waygate returns real [color=7777FF][b]native[/b][/color] WaygateGetDestinationY takes [color=AA77FF]unit[/color] waygate returns real [color=7777FF][b]native[/b][/color] WaygateSetDestination takes [color=AA77FF]unit[/color] waygate[b],[/b] real x[b],[/b] real y returns nothing [color=7777FF][b]native[/b][/color] WaygateActivate takes [color=AA77FF]unit[/color] waygate[b],[/b] boolean activate returns nothing [color=7777FF][b]native[/b][/color] WaygateIsActive takes [color=AA77FF]unit[/color] waygate returns boolean [color=7777FF][b]native[/b][/color] AddItemToAllStock takes integer itemId[b],[/b] integer currentStock[b],[/b] integer stockMax returns nothing [color=7777FF][b]native[/b][/color] AddItemToStock takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer itemId[b],[/b] integer currentStock[b],[/b] integer stockMax returns nothing [color=7777FF][b]native[/b][/color] AddUnitToAllStock takes integer unitId[b],[/b] integer currentStock[b],[/b] integer stockMax returns nothing [color=7777FF][b]native[/b][/color] AddUnitToStock takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer unitId[b],[/b] integer currentStock[b],[/b] integer stockMax returns nothing [color=7777FF][b]native[/b][/color] RemoveItemFromAllStock takes integer itemId returns nothing [color=7777FF][b]native[/b][/color] RemoveItemFromStock takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer itemId returns nothing [color=7777FF][b]native[/b][/color] RemoveUnitFromAllStock takes integer unitId returns nothing [color=7777FF][b]native[/b][/color] RemoveUnitFromStock takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer unitId returns nothing [color=7777FF][b]native[/b][/color] SetAllItemTypeSlots takes integer slots returns nothing [color=7777FF][b]native[/b][/color] SetAllUnitTypeSlots takes integer slots returns nothing [color=7777FF][b]native[/b][/color] SetItemTypeSlots takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer slots returns nothing [color=7777FF][b]native[/b][/color] SetUnitTypeSlots takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer slots returns nothing [color=7777FF][b]native[/b][/color] GetUnitUserData takes [color=AA77FF]unit[/color] whichUnit returns integer [color=7777FF][b]native[/b][/color] SetUnitUserData takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer data returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Player API[/i][/color] constant [color=7777FF][b]native[/b][/color] Player takes integer number returns player constant [color=7777FF][b]native[/b][/color] GetLocalPlayer takes nothing returns player constant [color=7777FF][b]native[/b][/color] IsPlayerAlly takes player whichPlayer[b],[/b] player otherPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsPlayerEnemy takes player whichPlayer[b],[/b] player otherPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsPlayerInForce takes player whichPlayer[b],[/b] force whichForce returns boolean constant [color=7777FF][b]native[/b][/color] IsPlayerObserver takes player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsVisibleToPlayer takes real x[b],[/b] real y[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsLocationVisibleToPlayer takes location whichLocation[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsFoggedToPlayer takes real x[b],[/b] real y[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsLocationFoggedToPlayer takes location whichLocation[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsMaskedToPlayer takes real x[b],[/b] real y[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] IsLocationMaskedToPlayer takes location whichLocation[b],[/b] player whichPlayer returns boolean constant [color=7777FF][b]native[/b][/color] GetPlayerRace takes player whichPlayer returns race constant [color=7777FF][b]native[/b][/color] GetPlayerId takes player whichPlayer returns integer constant [color=7777FF][b]native[/b][/color] GetPlayerUnitCount takes player whichPlayer[b],[/b] boolean includeIncomplete returns integer constant [color=7777FF][b]native[/b][/color] GetPlayerTypedUnitCount takes player whichPlayer[b],[/b] [color=AA77FF]string[/color] unitName[b],[/b] boolean includeIncomplete[b],[/b] boolean includeUpgrades returns integer constant [color=7777FF][b]native[/b][/color] GetPlayerStructureCount takes player whichPlayer[b],[/b] boolean includeIncomplete returns integer constant [color=7777FF][b]native[/b][/color] GetPlayerState takes player whichPlayer[b],[/b] playerstate whichPlayerState returns integer constant [color=7777FF][b]native[/b][/color] GetPlayerScore takes player whichPlayer[b],[/b] playerscore whichPlayerScore returns integer constant [color=7777FF][b]native[/b][/color] GetPlayerAlliance takes player sourcePlayer[b],[/b] player otherPlayer[b],[/b] alliancetype whichAllianceSetting returns boolean constant [color=7777FF][b]native[/b][/color] GetPlayerHandicap takes player whichPlayer returns real constant [color=7777FF][b]native[/b][/color] GetPlayerHandicapXP takes player whichPlayer returns real constant [color=7777FF][b]native[/b][/color] SetPlayerHandicap takes player whichPlayer[b],[/b] real handicap returns nothing constant [color=7777FF][b]native[/b][/color] SetPlayerHandicapXP takes player whichPlayer[b],[/b] real handicap returns nothing constant [color=7777FF][b]native[/b][/color] SetPlayerTechMaxAllowed takes player whichPlayer[b],[/b] integer techid[b],[/b] integer maximum returns nothing constant [color=7777FF][b]native[/b][/color] GetPlayerTechMaxAllowed takes player whichPlayer[b],[/b] integer techid returns integer constant [color=7777FF][b]native[/b][/color] AddPlayerTechResearched takes player whichPlayer[b],[/b] integer techid[b],[/b] integer levels returns nothing constant [color=7777FF][b]native[/b][/color] SetPlayerTechResearched takes player whichPlayer[b],[/b] integer techid[b],[/b] integer setToLevel returns nothing constant [color=7777FF][b]native[/b][/color] GetPlayerTechResearched takes player whichPlayer[b],[/b] integer techid[b],[/b] boolean specificonly returns boolean constant [color=7777FF][b]native[/b][/color] GetPlayerTechCount takes player whichPlayer[b],[/b] integer techid[b],[/b] boolean specificonly returns integer [color=7777FF][b]native[/b][/color] SetPlayerUnitsOwner takes player whichPlayer[b],[/b] integer newOwner returns nothing [color=7777FF][b]native[/b][/color] CripplePlayer takes player whichPlayer[b],[/b] force toWhichPlayers[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetPlayerAbilityAvailable takes player whichPlayer[b],[/b] integer abilid[b],[/b] boolean avail returns nothing [color=7777FF][b]native[/b][/color] SetPlayerState takes player whichPlayer[b],[/b] playerstate whichPlayerState[b],[/b] integer value returns nothing [color=7777FF][b]native[/b][/color] RemovePlayer takes player whichPlayer[b],[/b] playergameresult gameResult returns nothing [color=999999][i]// Used to store hero level data for the scorescreen[/i][/color] [color=999999][i]// before units are moved to neutral passive in melee games[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] CachePlayerHeroData takes player whichPlayer returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Fog of War API[/i][/color] [color=7777FF][b]native[/b][/color] SetFogStateRect takes player forWhichPlayer[b],[/b] fogstate whichState[b],[/b] rect where[b],[/b] boolean useSharedVision returns nothing [color=7777FF][b]native[/b][/color] SetFogStateRadius takes player forWhichPlayer[b],[/b] fogstate whichState[b],[/b] real centerx[b],[/b] real centerY[b],[/b] real radius[b],[/b] boolean useSharedVision returns nothing [color=7777FF][b]native[/b][/color] SetFogStateRadiusLoc takes player forWhichPlayer[b],[/b] fogstate whichState[b],[/b] location center[b],[/b] real radius[b],[/b] boolean useSharedVision returns nothing [color=7777FF][b]native[/b][/color] FogMaskEnable takes boolean enable returns nothing [color=7777FF][b]native[/b][/color] IsFogMaskEnabled takes nothing returns boolean [color=7777FF][b]native[/b][/color] FogEnable takes boolean enable returns nothing [color=7777FF][b]native[/b][/color] IsFogEnabled takes nothing returns boolean [color=7777FF][b]native[/b][/color] CreateFogModifierRect takes player forWhichPlayer[b],[/b] fogstate whichState[b],[/b] rect where[b],[/b] boolean useSharedVision[b],[/b] boolean afterUnits returns fogmodifier [color=7777FF][b]native[/b][/color] CreateFogModifierRadius takes player forWhichPlayer[b],[/b] fogstate whichState[b],[/b] real centerx[b],[/b] real centerY[b],[/b] real radius[b],[/b] boolean useSharedVision[b],[/b] boolean afterUnits returns fogmodifier [color=7777FF][b]native[/b][/color] CreateFogModifierRadiusLoc takes player forWhichPlayer[b],[/b] fogstate whichState[b],[/b] location center[b],[/b] real radius[b],[/b] boolean useSharedVision[b],[/b] boolean afterUnits returns fogmodifier [color=7777FF][b]native[/b][/color] DestroyFogModifier takes fogmodifier whichFogModifier returns nothing [color=7777FF][b]native[/b][/color] FogModifierStart takes fogmodifier whichFogModifier returns nothing [color=7777FF][b]native[/b][/color] FogModifierStop takes fogmodifier whichFogModifier returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Game API[/i][/color] [color=7777FF][b]native[/b][/color] VersionGet takes nothing returns version [color=7777FF][b]native[/b][/color] VersionCompatible takes version whichVersion returns boolean [color=7777FF][b]native[/b][/color] VersionSupported takes version whichVersion returns boolean [color=7777FF][b]native[/b][/color] EndGame takes boolean doScoreScreen returns nothing [color=999999][i]// Async only![/i][/color] [color=7777FF][b]native[/b][/color] ChangeLevel takes [color=AA77FF]string[/color] newLevel[b],[/b] boolean doScoreScreen returns nothing [color=7777FF][b]native[/b][/color] RestartGame takes boolean doScoreScreen returns nothing [color=7777FF][b]native[/b][/color] ReloadGame takes nothing returns nothing [color=999999][i]// %%% SetCampaignMenuRace is deprecated. It must remain to support[/i][/color] [color=999999][i]// old maps which use it, but all new maps should use SetCampaignMenuRaceEx[/i][/color] [color=7777FF][b]native[/b][/color] SetCampaignMenuRace takes race r returns nothing [color=7777FF][b]native[/b][/color] SetCampaignMenuRaceEx takes integer campaignIndex returns nothing [color=7777FF][b]native[/b][/color] ForceCampaignSelectScreen takes nothing returns nothing [color=7777FF][b]native[/b][/color] LoadGame takes [color=AA77FF]string[/color] saveFileName[b],[/b] boolean doScoreScreen returns nothing [color=7777FF][b]native[/b][/color] SaveGame takes [color=AA77FF]string[/color] saveFileName returns nothing [color=7777FF][b]native[/b][/color] RenameSaveDirectory takes [color=AA77FF]string[/color] sourceDirName[b],[/b] [color=AA77FF]string[/color] destDirName returns boolean [color=7777FF][b]native[/b][/color] RemoveSaveDirectory takes [color=AA77FF]string[/color] sourceDirName returns boolean [color=7777FF][b]native[/b][/color] CopySaveGame takes [color=AA77FF]string[/color] sourceSaveName[b],[/b] [color=AA77FF]string[/color] destSaveName returns boolean [color=7777FF][b]native[/b][/color] SaveGameExists takes [color=AA77FF]string[/color] saveName returns boolean [color=7777FF][b]native[/b][/color] SyncSelections takes nothing returns nothing [color=7777FF][b]native[/b][/color] SetFloatGameState takes fgamestate whichFloatGameState[b],[/b] real value returns nothing constant [color=7777FF][b]native[/b][/color] GetFloatGameState takes fgamestate whichFloatGameState returns real [color=7777FF][b]native[/b][/color] SetIntegerGameState takes igamestate whichIntegerGameState[b],[/b] integer value returns nothing constant [color=7777FF][b]native[/b][/color] GetIntegerGameState takes igamestate whichIntegerGameState returns integer [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Campaign API[/i][/color] [color=7777FF][b]native[/b][/color] SetTutorialCleared takes boolean cleared returns nothing [color=7777FF][b]native[/b][/color] SetMissionAvailable takes integer campaignNumber[b],[/b] integer missionNumber[b],[/b] boolean available returns nothing [color=7777FF][b]native[/b][/color] SetCampaignAvailable takes integer campaignNumber[b],[/b] boolean available returns nothing [color=7777FF][b]native[/b][/color] SetOpCinematicAvailable takes integer campaignNumber[b],[/b] boolean available returns nothing [color=7777FF][b]native[/b][/color] SetEdCinematicAvailable takes integer campaignNumber[b],[/b] boolean available returns nothing [color=7777FF][b]native[/b][/color] GetDefaultDifficulty takes nothing returns gamedifficulty [color=7777FF][b]native[/b][/color] SetDefaultDifficulty takes gamedifficulty g returns nothing [color=7777FF][b]native[/b][/color] SetCustomCampaignButtonVisible takes integer whichButton[b],[/b] boolean visible returns nothing [color=7777FF][b]native[/b][/color] GetCustomCampaignButtonVisible takes integer whichButton returns boolean [color=7777FF][b]native[/b][/color] DoNotSaveReplay takes nothing returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Dialog API[/i][/color] [color=7777FF][b]native[/b][/color] DialogCreate takes nothing returns dialog [color=7777FF][b]native[/b][/color] DialogDestroy takes dialog whichDialog returns nothing [color=7777FF][b]native[/b][/color] DialogClear takes dialog whichDialog returns nothing [color=7777FF][b]native[/b][/color] DialogSetMessage takes dialog whichDialog[b],[/b] [color=AA77FF]string[/color] messageText returns nothing [color=7777FF][b]native[/b][/color] DialogAddButton takes dialog whichDialog[b],[/b] [color=AA77FF]string[/color] buttonText[b],[/b] integer hotkey returns button [color=7777FF][b]native[/b][/color] DialogAddQuitButton takes dialog whichDialog[b],[/b] boolean doScoreScreen[b],[/b] [color=AA77FF]string[/color] buttonText[b],[/b] integer hotkey returns button [color=7777FF][b]native[/b][/color] DialogDisplay takes player whichPlayer[b],[/b] dialog whichDialog[b],[/b] boolean flag returns nothing [color=999999][i]// Creates a new or reads in an existing game cache file stored[/i][/color] [color=999999][i]// in the current campaign profile dir[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] ReloadGameCachesFromDisk takes nothing returns boolean [color=7777FF][b]native[/b][/color] InitGameCache takes [color=AA77FF]string[/color] campaignFile returns gamecache [color=7777FF][b]native[/b][/color] SaveGameCache takes gamecache whichCache returns boolean [color=7777FF][b]native[/b][/color] StoreInteger takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key[b],[/b] integer value returns nothing [color=7777FF][b]native[/b][/color] StoreReal takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key[b],[/b] real value returns nothing [color=7777FF][b]native[/b][/color] StoreBoolean takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key[b],[/b] boolean value returns nothing [color=7777FF][b]native[/b][/color] StoreUnit takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key[b],[/b] [color=AA77FF]unit[/color] whichUnit returns boolean [color=7777FF][b]native[/b][/color] StoreString takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key[b],[/b] [color=AA77FF]string[/color] value returns boolean [color=7777FF][b]native[/b][/color] SyncStoredInteger takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns nothing [color=7777FF][b]native[/b][/color] SyncStoredReal takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns nothing [color=7777FF][b]native[/b][/color] SyncStoredBoolean takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns nothing [color=7777FF][b]native[/b][/color] SyncStoredUnit takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns nothing [color=7777FF][b]native[/b][/color] SyncStoredString takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns nothing [color=7777FF][b]native[/b][/color] HaveStoredInteger takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns boolean [color=7777FF][b]native[/b][/color] HaveStoredReal takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns boolean [color=7777FF][b]native[/b][/color] HaveStoredBoolean takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns boolean [color=7777FF][b]native[/b][/color] HaveStoredUnit takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns boolean [color=7777FF][b]native[/b][/color] HaveStoredString takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns boolean [color=7777FF][b]native[/b][/color] FlushGameCache takes gamecache cache returns nothing [color=7777FF][b]native[/b][/color] FlushStoredMission takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey returns nothing [color=7777FF][b]native[/b][/color] FlushStoredInteger takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns nothing [color=7777FF][b]native[/b][/color] FlushStoredReal takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns nothing [color=7777FF][b]native[/b][/color] FlushStoredBoolean takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns nothing [color=7777FF][b]native[/b][/color] FlushStoredUnit takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns nothing [color=7777FF][b]native[/b][/color] FlushStoredString takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns nothing [color=999999][i]// Will return 0 if the specified value's data is not found in the cache[/i][/color] [color=7777FF][b]native[/b][/color] GetStoredInteger takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns integer [color=7777FF][b]native[/b][/color] GetStoredReal takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns real [color=7777FF][b]native[/b][/color] GetStoredBoolean takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns boolean [color=7777FF][b]native[/b][/color] GetStoredString takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] RestoreUnit takes gamecache cache[b],[/b] [color=AA77FF]string[/color] missionKey[b],[/b] [color=AA77FF]string[/color] key[b],[/b] player forWhichPlayer[b],[/b] real x[b],[/b] real y[b],[/b] real facing returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] InitHashtable takes nothing returns hashtable [color=7777FF][b]native[/b][/color] SaveInteger takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] integer value returns nothing [color=7777FF][b]native[/b][/color] SaveReal takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] real value returns nothing [color=7777FF][b]native[/b][/color] SaveBoolean takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] boolean value returns nothing [color=7777FF][b]native[/b][/color] SaveStr takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] [color=AA77FF]string[/color] value returns boolean [color=7777FF][b]native[/b][/color] SavePlayerHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] player whichPlayer returns boolean [color=7777FF][b]native[/b][/color] SaveWidgetHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] widget whichWidget returns boolean [color=7777FF][b]native[/b][/color] SaveDestructableHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] destructable whichDestructable returns boolean [color=7777FF][b]native[/b][/color] SaveItemHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] item whichItem returns boolean [color=7777FF][b]native[/b][/color] SaveUnitHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] [color=AA77FF]unit[/color] whichUnit returns boolean [color=7777FF][b]native[/b][/color] SaveAbilityHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] ability whichAbility returns boolean [color=7777FF][b]native[/b][/color] SaveTimerHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] timer whichTimer returns boolean [color=7777FF][b]native[/b][/color] SaveTriggerHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] [color=AA77FF]trigger[/color] whichTrigger returns boolean [color=7777FF][b]native[/b][/color] SaveTriggerConditionHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] triggercondition whichTriggercondition returns boolean [color=7777FF][b]native[/b][/color] SaveTriggerActionHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] triggeraction whichTriggeraction returns boolean [color=7777FF][b]native[/b][/color] SaveTriggerEventHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] event whichEvent returns boolean [color=7777FF][b]native[/b][/color] SaveForceHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] force whichForce returns boolean [color=7777FF][b]native[/b][/color] SaveGroupHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] group whichGroup returns boolean [color=7777FF][b]native[/b][/color] SaveLocationHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] location whichLocation returns boolean [color=7777FF][b]native[/b][/color] SaveRectHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] rect whichRect returns boolean [color=7777FF][b]native[/b][/color] SaveBooleanExprHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] boolexpr whichBoolexpr returns boolean [color=7777FF][b]native[/b][/color] SaveSoundHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] sound whichSound returns boolean [color=7777FF][b]native[/b][/color] SaveEffectHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] effect whichEffect returns boolean [color=7777FF][b]native[/b][/color] SaveUnitPoolHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] unitpool whichUnitpool returns boolean [color=7777FF][b]native[/b][/color] SaveItemPoolHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] itempool whichItempool returns boolean [color=7777FF][b]native[/b][/color] SaveQuestHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] quest whichQuest returns boolean [color=7777FF][b]native[/b][/color] SaveQuestItemHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] questitem whichQuestitem returns boolean [color=7777FF][b]native[/b][/color] SaveDefeatConditionHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] defeatcondition whichDefeatcondition returns boolean [color=7777FF][b]native[/b][/color] SaveTimerDialogHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] timerdialog whichTimerdialog returns boolean [color=7777FF][b]native[/b][/color] SaveLeaderboardHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] leaderboard whichLeaderboard returns boolean [color=7777FF][b]native[/b][/color] SaveMultiboardHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] multiboard whichMultiboard returns boolean [color=7777FF][b]native[/b][/color] SaveMultiboardItemHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] multiboarditem whichMultiboarditem returns boolean [color=7777FF][b]native[/b][/color] SaveTrackableHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] trackable whichTrackable returns boolean [color=7777FF][b]native[/b][/color] SaveDialogHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] dialog whichDialog returns boolean [color=7777FF][b]native[/b][/color] SaveButtonHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] button whichButton returns boolean [color=7777FF][b]native[/b][/color] SaveTextTagHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] texttag whichTexttag returns boolean [color=7777FF][b]native[/b][/color] SaveLightningHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] lightning whichLightning returns boolean [color=7777FF][b]native[/b][/color] SaveImageHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] image whichImage returns boolean [color=7777FF][b]native[/b][/color] SaveUbersplatHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] ubersplat whichUbersplat returns boolean [color=7777FF][b]native[/b][/color] SaveRegionHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] [color=AA77FF]region[/color] whichRegion returns boolean [color=7777FF][b]native[/b][/color] SaveFogStateHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] fogstate whichFogState returns boolean [color=7777FF][b]native[/b][/color] SaveFogModifierHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] fogmodifier whichFogModifier returns boolean [color=7777FF][b]native[/b][/color] SaveAgentHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] agent whichAgent returns boolean [color=7777FF][b]native[/b][/color] SaveHashtableHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey[b],[/b] hashtable whichHashtable returns boolean [color=7777FF][b]native[/b][/color] LoadInteger takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns integer [color=7777FF][b]native[/b][/color] LoadReal takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns real [color=7777FF][b]native[/b][/color] LoadBoolean takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns boolean [color=7777FF][b]native[/b][/color] LoadStr takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] LoadPlayerHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns player [color=7777FF][b]native[/b][/color] LoadWidgetHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns widget [color=7777FF][b]native[/b][/color] LoadDestructableHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns destructable [color=7777FF][b]native[/b][/color] LoadItemHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns item [color=7777FF][b]native[/b][/color] LoadUnitHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] LoadAbilityHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns ability [color=7777FF][b]native[/b][/color] LoadTimerHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns timer [color=7777FF][b]native[/b][/color] LoadTriggerHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns [color=AA77FF]trigger[/color] [color=7777FF][b]native[/b][/color] LoadTriggerConditionHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns triggercondition [color=7777FF][b]native[/b][/color] LoadTriggerActionHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns triggeraction [color=7777FF][b]native[/b][/color] LoadTriggerEventHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns event [color=7777FF][b]native[/b][/color] LoadForceHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns force [color=7777FF][b]native[/b][/color] LoadGroupHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns group [color=7777FF][b]native[/b][/color] LoadLocationHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns location [color=7777FF][b]native[/b][/color] LoadRectHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns rect [color=7777FF][b]native[/b][/color] LoadBooleanExprHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns boolexpr [color=7777FF][b]native[/b][/color] LoadSoundHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns sound [color=7777FF][b]native[/b][/color] LoadEffectHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns effect [color=7777FF][b]native[/b][/color] LoadUnitPoolHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns unitpool [color=7777FF][b]native[/b][/color] LoadItemPoolHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns itempool [color=7777FF][b]native[/b][/color] LoadQuestHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns quest [color=7777FF][b]native[/b][/color] LoadQuestItemHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns questitem [color=7777FF][b]native[/b][/color] LoadDefeatConditionHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns defeatcondition [color=7777FF][b]native[/b][/color] LoadTimerDialogHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns timerdialog [color=7777FF][b]native[/b][/color] LoadLeaderboardHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns leaderboard [color=7777FF][b]native[/b][/color] LoadMultiboardHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns multiboard [color=7777FF][b]native[/b][/color] LoadMultiboardItemHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns multiboarditem [color=7777FF][b]native[/b][/color] LoadTrackableHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns trackable [color=7777FF][b]native[/b][/color] LoadDialogHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns dialog [color=7777FF][b]native[/b][/color] LoadButtonHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns button [color=7777FF][b]native[/b][/color] LoadTextTagHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns texttag [color=7777FF][b]native[/b][/color] LoadLightningHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns lightning [color=7777FF][b]native[/b][/color] LoadImageHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns image [color=7777FF][b]native[/b][/color] LoadUbersplatHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns ubersplat [color=7777FF][b]native[/b][/color] LoadRegionHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns [color=AA77FF]region[/color] [color=7777FF][b]native[/b][/color] LoadFogStateHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns fogstate [color=7777FF][b]native[/b][/color] LoadFogModifierHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns fogmodifier [color=7777FF][b]native[/b][/color] LoadHashtableHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns hashtable [color=7777FF][b]native[/b][/color] HaveSavedInteger takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns boolean [color=7777FF][b]native[/b][/color] HaveSavedReal takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns boolean [color=7777FF][b]native[/b][/color] HaveSavedBoolean takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns boolean [color=7777FF][b]native[/b][/color] HaveSavedString takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns boolean [color=7777FF][b]native[/b][/color] HaveSavedHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns boolean [color=7777FF][b]native[/b][/color] RemoveSavedInteger takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns nothing [color=7777FF][b]native[/b][/color] RemoveSavedReal takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns nothing [color=7777FF][b]native[/b][/color] RemoveSavedBoolean takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns nothing [color=7777FF][b]native[/b][/color] RemoveSavedString takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns nothing [color=7777FF][b]native[/b][/color] RemoveSavedHandle takes hashtable table[b],[/b] integer parentKey[b],[/b] integer childKey returns nothing [color=7777FF][b]native[/b][/color] FlushParentHashtable takes hashtable table returns nothing [color=7777FF][b]native[/b][/color] FlushChildHashtable takes hashtable table[b],[/b] integer parentKey returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Randomization API[/i][/color] [color=7777FF][b]native[/b][/color] GetRandomInt takes integer lowBound[b],[/b] integer highBound returns integer [color=7777FF][b]native[/b][/color] GetRandomReal takes real lowBound[b],[/b] real highBound returns real [color=7777FF][b]native[/b][/color] CreateUnitPool takes nothing returns unitpool [color=7777FF][b]native[/b][/color] DestroyUnitPool takes unitpool whichPool returns nothing [color=7777FF][b]native[/b][/color] UnitPoolAddUnitType takes unitpool whichPool[b],[/b] integer unitId[b],[/b] real weight returns nothing [color=7777FF][b]native[/b][/color] UnitPoolRemoveUnitType takes unitpool whichPool[b],[/b] integer unitId returns nothing [color=7777FF][b]native[/b][/color] PlaceRandomUnit takes unitpool whichPool[b],[/b] player forWhichPlayer[b],[/b] real x[b],[/b] real y[b],[/b] real facing returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] CreateItemPool takes nothing returns itempool [color=7777FF][b]native[/b][/color] DestroyItemPool takes itempool whichItemPool returns nothing [color=7777FF][b]native[/b][/color] ItemPoolAddItemType takes itempool whichItemPool[b],[/b] integer itemId[b],[/b] real weight returns nothing [color=7777FF][b]native[/b][/color] ItemPoolRemoveItemType takes itempool whichItemPool[b],[/b] integer itemId returns nothing [color=7777FF][b]native[/b][/color] PlaceRandomItem takes itempool whichItemPool[b],[/b] real x[b],[/b] real y returns item [color=999999][i]// Choose any random unit/item. (NP means Neutral Passive)[/i][/color] [color=7777FF][b]native[/b][/color] ChooseRandomCreep takes integer level returns integer [color=7777FF][b]native[/b][/color] ChooseRandomNPBuilding takes nothing returns integer [color=7777FF][b]native[/b][/color] ChooseRandomItem takes integer level returns integer [color=7777FF][b]native[/b][/color] ChooseRandomItemEx takes itemtype whichType[b],[/b] integer level returns integer [color=7777FF][b]native[/b][/color] SetRandomSeed takes integer seed returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Visual API[/i][/color] [color=7777FF][b]native[/b][/color] SetTerrainFog takes real a[b],[/b] real b[b],[/b] real c[b],[/b] real d[b],[/b] real e returns nothing [color=7777FF][b]native[/b][/color] ResetTerrainFog takes nothing returns nothing [color=7777FF][b]native[/b][/color] SetUnitFog takes real a[b],[/b] real b[b],[/b] real c[b],[/b] real d[b],[/b] real e returns nothing [color=7777FF][b]native[/b][/color] SetTerrainFogEx takes integer style[b],[/b] real zstart[b],[/b] real zend[b],[/b] real density[b],[/b] real red[b],[/b] real green[b],[/b] real blue returns nothing [color=7777FF][b]native[/b][/color] DisplayTextToPlayer takes player toPlayer[b],[/b] real x[b],[/b] real y[b],[/b] [color=AA77FF]string[/color] message returns nothing [color=7777FF][b]native[/b][/color] DisplayTimedTextToPlayer takes player toPlayer[b],[/b] real x[b],[/b] real y[b],[/b] real duration[b],[/b] [color=AA77FF]string[/color] message returns nothing [color=7777FF][b]native[/b][/color] DisplayTimedTextFromPlayer takes player toPlayer[b],[/b] real x[b],[/b] real y[b],[/b] real duration[b],[/b] [color=AA77FF]string[/color] message returns nothing [color=7777FF][b]native[/b][/color] ClearTextMessages takes nothing returns nothing [color=7777FF][b]native[/b][/color] SetDayNightModels takes [color=AA77FF]string[/color] terrainDNCFile[b],[/b] [color=AA77FF]string[/color] unitDNCFile returns nothing [color=7777FF][b]native[/b][/color] SetSkyModel takes [color=AA77FF]string[/color] skyModelFile returns nothing [color=7777FF][b]native[/b][/color] EnableUserControl takes boolean b returns nothing [color=7777FF][b]native[/b][/color] EnableUserUI takes boolean b returns nothing [color=7777FF][b]native[/b][/color] SuspendTimeOfDay takes boolean b returns nothing [color=7777FF][b]native[/b][/color] SetTimeOfDayScale takes real r returns nothing [color=7777FF][b]native[/b][/color] GetTimeOfDayScale takes nothing returns real [color=7777FF][b]native[/b][/color] ShowInterface takes boolean flag[b],[/b] real fadeDuration returns nothing [color=7777FF][b]native[/b][/color] PauseGame takes boolean flag returns nothing [color=7777FF][b]native[/b][/color] UnitAddIndicator takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] AddIndicator takes widget whichWidget[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] PingMinimap takes real x[b],[/b] real y[b],[/b] real duration returns nothing [color=7777FF][b]native[/b][/color] PingMinimapEx takes real x[b],[/b] real y[b],[/b] real duration[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] boolean extraEffects returns nothing [color=7777FF][b]native[/b][/color] EnableOcclusion takes boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetIntroShotText takes [color=AA77FF]string[/color] introText returns nothing [color=7777FF][b]native[/b][/color] SetIntroShotModel takes [color=AA77FF]string[/color] introModelPath returns nothing [color=7777FF][b]native[/b][/color] EnableWorldFogBoundary takes boolean b returns nothing [color=7777FF][b]native[/b][/color] PlayModelCinematic takes [color=AA77FF]string[/color] modelName returns nothing [color=7777FF][b]native[/b][/color] PlayCinematic takes [color=AA77FF]string[/color] movieName returns nothing [color=7777FF][b]native[/b][/color] ForceUIKey takes [color=AA77FF]string[/color] key returns nothing [color=7777FF][b]native[/b][/color] ForceUICancel takes nothing returns nothing [color=7777FF][b]native[/b][/color] DisplayLoadDialog takes nothing returns nothing [color=7777FF][b]native[/b][/color] SetAltMinimapIcon takes [color=AA77FF]string[/color] iconPath returns nothing [color=7777FF][b]native[/b][/color] DisableRestartMission takes boolean flag returns nothing [color=7777FF][b]native[/b][/color] CreateTextTag takes nothing returns texttag [color=7777FF][b]native[/b][/color] DestroyTextTag takes texttag t returns nothing [color=7777FF][b]native[/b][/color] SetTextTagText takes texttag t[b],[/b] [color=AA77FF]string[/color] s[b],[/b] real height returns nothing [color=7777FF][b]native[/b][/color] SetTextTagPos takes texttag t[b],[/b] real x[b],[/b] real y[b],[/b] real heightOffset returns nothing [color=7777FF][b]native[/b][/color] SetTextTagPosUnit takes texttag t[b],[/b] [color=AA77FF]unit[/color] whichUnit[b],[/b] real heightOffset returns nothing [color=7777FF][b]native[/b][/color] SetTextTagColor takes texttag t[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] SetTextTagVelocity takes texttag t[b],[/b] real xvel[b],[/b] real yvel returns nothing [color=7777FF][b]native[/b][/color] SetTextTagVisibility takes texttag t[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetTextTagSuspended takes texttag t[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetTextTagPermanent takes texttag t[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetTextTagAge takes texttag t[b],[/b] real age returns nothing [color=7777FF][b]native[/b][/color] SetTextTagLifespan takes texttag t[b],[/b] real lifespan returns nothing [color=7777FF][b]native[/b][/color] SetTextTagFadepoint takes texttag t[b],[/b] real fadepoint returns nothing [color=7777FF][b]native[/b][/color] SetReservedLocalHeroButtons takes integer reserved returns nothing [color=7777FF][b]native[/b][/color] GetAllyColorFilterState takes nothing returns integer [color=7777FF][b]native[/b][/color] SetAllyColorFilterState takes integer state returns nothing [color=7777FF][b]native[/b][/color] GetCreepCampFilterState takes nothing returns boolean [color=7777FF][b]native[/b][/color] SetCreepCampFilterState takes boolean state returns nothing [color=7777FF][b]native[/b][/color] EnableMinimapFilterButtons takes boolean enableAlly[b],[/b] boolean enableCreep returns nothing [color=7777FF][b]native[/b][/color] EnableDragSelect takes boolean state[b],[/b] boolean ui returns nothing [color=7777FF][b]native[/b][/color] EnablePreSelect takes boolean state[b],[/b] boolean ui returns nothing [color=7777FF][b]native[/b][/color] EnableSelect takes boolean state[b],[/b] boolean ui returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Trackable API[/i][/color] [color=7777FF][b]native[/b][/color] CreateTrackable takes [color=AA77FF]string[/color] trackableModelPath[b],[/b] real x[b],[/b] real y[b],[/b] real facing returns trackable [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Quest API[/i][/color] [color=7777FF][b]native[/b][/color] CreateQuest takes nothing returns quest [color=7777FF][b]native[/b][/color] DestroyQuest takes quest whichQuest returns nothing [color=7777FF][b]native[/b][/color] QuestSetTitle takes quest whichQuest[b],[/b] [color=AA77FF]string[/color] title returns nothing [color=7777FF][b]native[/b][/color] QuestSetDescription takes quest whichQuest[b],[/b] [color=AA77FF]string[/color] description returns nothing [color=7777FF][b]native[/b][/color] QuestSetIconPath takes quest whichQuest[b],[/b] [color=AA77FF]string[/color] iconPath returns nothing [color=7777FF][b]native[/b][/color] QuestSetRequired takes quest whichQuest[b],[/b] boolean required returns nothing [color=7777FF][b]native[/b][/color] QuestSetCompleted takes quest whichQuest[b],[/b] boolean completed returns nothing [color=7777FF][b]native[/b][/color] QuestSetDiscovered takes quest whichQuest[b],[/b] boolean discovered returns nothing [color=7777FF][b]native[/b][/color] QuestSetFailed takes quest whichQuest[b],[/b] boolean failed returns nothing [color=7777FF][b]native[/b][/color] QuestSetEnabled takes quest whichQuest[b],[/b] boolean enabled returns nothing [color=7777FF][b]native[/b][/color] IsQuestRequired takes quest whichQuest returns boolean [color=7777FF][b]native[/b][/color] IsQuestCompleted takes quest whichQuest returns boolean [color=7777FF][b]native[/b][/color] IsQuestDiscovered takes quest whichQuest returns boolean [color=7777FF][b]native[/b][/color] IsQuestFailed takes quest whichQuest returns boolean [color=7777FF][b]native[/b][/color] IsQuestEnabled takes quest whichQuest returns boolean [color=7777FF][b]native[/b][/color] QuestCreateItem takes quest whichQuest returns questitem [color=7777FF][b]native[/b][/color] QuestItemSetDescription takes questitem whichQuestItem[b],[/b] [color=AA77FF]string[/color] description returns nothing [color=7777FF][b]native[/b][/color] QuestItemSetCompleted takes questitem whichQuestItem[b],[/b] boolean completed returns nothing [color=7777FF][b]native[/b][/color] IsQuestItemCompleted takes questitem whichQuestItem returns boolean [color=7777FF][b]native[/b][/color] CreateDefeatCondition takes nothing returns defeatcondition [color=7777FF][b]native[/b][/color] DestroyDefeatCondition takes defeatcondition whichCondition returns nothing [color=7777FF][b]native[/b][/color] DefeatConditionSetDescription takes defeatcondition whichCondition[b],[/b] [color=AA77FF]string[/color] description returns nothing [color=7777FF][b]native[/b][/color] FlashQuestDialogButton takes nothing returns nothing [color=7777FF][b]native[/b][/color] ForceQuestDialogUpdate takes nothing returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Timer Dialog API[/i][/color] [color=7777FF][b]native[/b][/color] CreateTimerDialog takes timer t returns timerdialog [color=7777FF][b]native[/b][/color] DestroyTimerDialog takes timerdialog whichDialog returns nothing [color=7777FF][b]native[/b][/color] TimerDialogSetTitle takes timerdialog whichDialog[b],[/b] [color=AA77FF]string[/color] title returns nothing [color=7777FF][b]native[/b][/color] TimerDialogSetTitleColor takes timerdialog whichDialog[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] TimerDialogSetTimeColor takes timerdialog whichDialog[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] TimerDialogSetSpeed takes timerdialog whichDialog[b],[/b] real speedMultFactor returns nothing [color=7777FF][b]native[/b][/color] TimerDialogDisplay takes timerdialog whichDialog[b],[/b] boolean display returns nothing [color=7777FF][b]native[/b][/color] IsTimerDialogDisplayed takes timerdialog whichDialog returns boolean [color=7777FF][b]native[/b][/color] TimerDialogSetRealTimeRemaining takes timerdialog whichDialog[b],[/b] real timeRemaining returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Leaderboard API[/i][/color] [color=999999][i]// Create a leaderboard object[/i][/color] [color=7777FF][b]native[/b][/color] CreateLeaderboard takes nothing returns leaderboard [color=7777FF][b]native[/b][/color] DestroyLeaderboard takes leaderboard lb returns nothing [color=7777FF][b]native[/b][/color] LeaderboardDisplay takes leaderboard lb[b],[/b] boolean show returns nothing [color=7777FF][b]native[/b][/color] IsLeaderboardDisplayed takes leaderboard lb returns boolean [color=7777FF][b]native[/b][/color] LeaderboardGetItemCount takes leaderboard lb returns integer [color=7777FF][b]native[/b][/color] LeaderboardSetSizeByItemCount takes leaderboard lb[b],[/b] integer count returns nothing [color=7777FF][b]native[/b][/color] LeaderboardAddItem takes leaderboard lb[b],[/b] [color=AA77FF]string[/color] label[b],[/b] integer value[b],[/b] player p returns nothing [color=7777FF][b]native[/b][/color] LeaderboardRemoveItem takes leaderboard lb[b],[/b] integer index returns nothing [color=7777FF][b]native[/b][/color] LeaderboardRemovePlayerItem takes leaderboard lb[b],[/b] player p returns nothing [color=7777FF][b]native[/b][/color] LeaderboardClear takes leaderboard lb returns nothing [color=7777FF][b]native[/b][/color] LeaderboardSortItemsByValue takes leaderboard lb[b],[/b] boolean ascending returns nothing [color=7777FF][b]native[/b][/color] LeaderboardSortItemsByPlayer takes leaderboard lb[b],[/b] boolean ascending returns nothing [color=7777FF][b]native[/b][/color] LeaderboardSortItemsByLabel takes leaderboard lb[b],[/b] boolean ascending returns nothing [color=7777FF][b]native[/b][/color] LeaderboardHasPlayerItem takes leaderboard lb[b],[/b] player p returns boolean [color=7777FF][b]native[/b][/color] LeaderboardGetPlayerIndex takes leaderboard lb[b],[/b] player p returns integer [color=7777FF][b]native[/b][/color] LeaderboardSetLabel takes leaderboard lb[b],[/b] [color=AA77FF]string[/color] label returns nothing [color=7777FF][b]native[/b][/color] LeaderboardGetLabelText takes leaderboard lb returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] PlayerSetLeaderboard takes player toPlayer[b],[/b] leaderboard lb returns nothing [color=7777FF][b]native[/b][/color] PlayerGetLeaderboard takes player toPlayer returns leaderboard [color=7777FF][b]native[/b][/color] LeaderboardSetLabelColor takes leaderboard lb[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] LeaderboardSetValueColor takes leaderboard lb[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] LeaderboardSetStyle takes leaderboard lb[b],[/b] boolean showLabel[b],[/b] boolean showNames[b],[/b] boolean showValues[b],[/b] boolean showIcons returns nothing [color=7777FF][b]native[/b][/color] LeaderboardSetItemValue takes leaderboard lb[b],[/b] integer whichItem[b],[/b] integer val returns nothing [color=7777FF][b]native[/b][/color] LeaderboardSetItemLabel takes leaderboard lb[b],[/b] integer whichItem[b],[/b] [color=AA77FF]string[/color] val returns nothing [color=7777FF][b]native[/b][/color] LeaderboardSetItemStyle takes leaderboard lb[b],[/b] integer whichItem[b],[/b] boolean showLabel[b],[/b] boolean showValue[b],[/b] boolean showIcon returns nothing [color=7777FF][b]native[/b][/color] LeaderboardSetItemLabelColor takes leaderboard lb[b],[/b] integer whichItem[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] LeaderboardSetItemValueColor takes leaderboard lb[b],[/b] integer whichItem[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Multiboard API[/i][/color] [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Create a multiboard object[/i][/color] [color=7777FF][b]native[/b][/color] CreateMultiboard takes nothing returns multiboard [color=7777FF][b]native[/b][/color] DestroyMultiboard takes multiboard lb returns nothing [color=7777FF][b]native[/b][/color] MultiboardDisplay takes multiboard lb[b],[/b] boolean show returns nothing [color=7777FF][b]native[/b][/color] IsMultiboardDisplayed takes multiboard lb returns boolean [color=7777FF][b]native[/b][/color] MultiboardMinimize takes multiboard lb[b],[/b] boolean minimize returns nothing [color=7777FF][b]native[/b][/color] IsMultiboardMinimized takes multiboard lb returns boolean [color=7777FF][b]native[/b][/color] MultiboardClear takes multiboard lb returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetTitleText takes multiboard lb[b],[/b] [color=AA77FF]string[/color] label returns nothing [color=7777FF][b]native[/b][/color] MultiboardGetTitleText takes multiboard lb returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] MultiboardSetTitleTextColor takes multiboard lb[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] MultiboardGetRowCount takes multiboard lb returns integer [color=7777FF][b]native[/b][/color] MultiboardGetColumnCount takes multiboard lb returns integer [color=7777FF][b]native[/b][/color] MultiboardSetColumnCount takes multiboard lb[b],[/b] integer count returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetRowCount takes multiboard lb[b],[/b] integer count returns nothing [color=999999][i]// broadcast settings to all items[/i][/color] [color=7777FF][b]native[/b][/color] MultiboardSetItemsStyle takes multiboard lb[b],[/b] boolean showValues[b],[/b] boolean showIcons returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetItemsValue takes multiboard lb[b],[/b] [color=AA77FF]string[/color] value returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetItemsValueColor takes multiboard lb[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetItemsWidth takes multiboard lb[b],[/b] real width returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetItemsIcon takes multiboard lb[b],[/b] [color=AA77FF]string[/color] iconPath returns nothing [color=999999][i]// funcs for modifying individual items[/i][/color] [color=7777FF][b]native[/b][/color] MultiboardGetItem takes multiboard lb[b],[/b] integer row[b],[/b] integer column returns multiboarditem [color=7777FF][b]native[/b][/color] MultiboardReleaseItem takes multiboarditem mbi returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetItemStyle takes multiboarditem mbi[b],[/b] boolean showValue[b],[/b] boolean showIcon returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetItemValue takes multiboarditem mbi[b],[/b] [color=AA77FF]string[/color] val returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetItemValueColor takes multiboarditem mbi[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetItemWidth takes multiboarditem mbi[b],[/b] real width returns nothing [color=7777FF][b]native[/b][/color] MultiboardSetItemIcon takes multiboarditem mbi[b],[/b] [color=AA77FF]string[/color] iconFileName returns nothing [color=999999][i]// meant to unequivocally suspend display of existing and[/i][/color] [color=999999][i]// subsequently displayed multiboards[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] MultiboardSuppressDisplay takes boolean flag returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Camera API[/i][/color] [color=7777FF][b]native[/b][/color] SetCameraPosition takes real x[b],[/b] real y returns nothing [color=7777FF][b]native[/b][/color] SetCameraQuickPosition takes real x[b],[/b] real y returns nothing [color=7777FF][b]native[/b][/color] SetCameraBounds takes real x1[b],[/b] real y1[b],[/b] real x2[b],[/b] real y2[b],[/b] real x3[b],[/b] real y3[b],[/b] real x4[b],[/b] real y4 returns nothing [color=7777FF][b]native[/b][/color] StopCamera takes nothing returns nothing [color=7777FF][b]native[/b][/color] ResetToGameCamera takes real duration returns nothing [color=7777FF][b]native[/b][/color] PanCameraTo takes real x[b],[/b] real y returns nothing [color=7777FF][b]native[/b][/color] PanCameraToTimed takes real x[b],[/b] real y[b],[/b] real duration returns nothing [color=7777FF][b]native[/b][/color] PanCameraToWithZ takes real x[b],[/b] real y[b],[/b] real zOffsetDest returns nothing [color=7777FF][b]native[/b][/color] PanCameraToTimedWithZ takes real x[b],[/b] real y[b],[/b] real zOffsetDest[b],[/b] real duration returns nothing [color=7777FF][b]native[/b][/color] SetCinematicCamera takes [color=AA77FF]string[/color] cameraModelFile returns nothing [color=7777FF][b]native[/b][/color] SetCameraRotateMode takes real x[b],[/b] real y[b],[/b] real radiansToSweep[b],[/b] real duration returns nothing [color=7777FF][b]native[/b][/color] SetCameraField takes camerafield whichField[b],[/b] real value[b],[/b] real duration returns nothing [color=7777FF][b]native[/b][/color] AdjustCameraField takes camerafield whichField[b],[/b] real offset[b],[/b] real duration returns nothing [color=7777FF][b]native[/b][/color] SetCameraTargetController takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real xoffset[b],[/b] real yoffset[b],[/b] boolean inheritOrientation returns nothing [color=7777FF][b]native[/b][/color] SetCameraOrientController takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real xoffset[b],[/b] real yoffset returns nothing [color=7777FF][b]native[/b][/color] CreateCameraSetup takes nothing returns camerasetup [color=7777FF][b]native[/b][/color] CameraSetupSetField takes camerasetup whichSetup[b],[/b] camerafield whichField[b],[/b] real value[b],[/b] real duration returns nothing [color=7777FF][b]native[/b][/color] CameraSetupGetField takes camerasetup whichSetup[b],[/b] camerafield whichField returns real [color=7777FF][b]native[/b][/color] CameraSetupSetDestPosition takes camerasetup whichSetup[b],[/b] real x[b],[/b] real y[b],[/b] real duration returns nothing [color=7777FF][b]native[/b][/color] CameraSetupGetDestPositionLoc takes camerasetup whichSetup returns location [color=7777FF][b]native[/b][/color] CameraSetupGetDestPositionX takes camerasetup whichSetup returns real [color=7777FF][b]native[/b][/color] CameraSetupGetDestPositionY takes camerasetup whichSetup returns real [color=7777FF][b]native[/b][/color] CameraSetupApply takes camerasetup whichSetup[b],[/b] boolean doPan[b],[/b] boolean panTimed returns nothing [color=7777FF][b]native[/b][/color] CameraSetupApplyWithZ takes camerasetup whichSetup[b],[/b] real zDestOffset returns nothing [color=7777FF][b]native[/b][/color] CameraSetupApplyForceDuration takes camerasetup whichSetup[b],[/b] boolean doPan[b],[/b] real forceDuration returns nothing [color=7777FF][b]native[/b][/color] CameraSetupApplyForceDurationWithZ takes camerasetup whichSetup[b],[/b] real zDestOffset[b],[/b] real forceDuration returns nothing [color=7777FF][b]native[/b][/color] CameraSetTargetNoise takes real mag[b],[/b] real velocity returns nothing [color=7777FF][b]native[/b][/color] CameraSetSourceNoise takes real mag[b],[/b] real velocity returns nothing [color=7777FF][b]native[/b][/color] CameraSetTargetNoiseEx takes real mag[b],[/b] real velocity[b],[/b] boolean vertOnly returns nothing [color=7777FF][b]native[/b][/color] CameraSetSourceNoiseEx takes real mag[b],[/b] real velocity[b],[/b] boolean vertOnly returns nothing [color=7777FF][b]native[/b][/color] CameraSetSmoothingFactor takes real factor returns nothing [color=7777FF][b]native[/b][/color] SetCineFilterTexture takes [color=AA77FF]string[/color] filename returns nothing [color=7777FF][b]native[/b][/color] SetCineFilterBlendMode takes blendmode whichMode returns nothing [color=7777FF][b]native[/b][/color] SetCineFilterTexMapFlags takes texmapflags whichFlags returns nothing [color=7777FF][b]native[/b][/color] SetCineFilterStartUV takes real minu[b],[/b] real minv[b],[/b] real maxu[b],[/b] real maxv returns nothing [color=7777FF][b]native[/b][/color] SetCineFilterEndUV takes real minu[b],[/b] real minv[b],[/b] real maxu[b],[/b] real maxv returns nothing [color=7777FF][b]native[/b][/color] SetCineFilterStartColor takes integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] SetCineFilterEndColor takes integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] SetCineFilterDuration takes real duration returns nothing [color=7777FF][b]native[/b][/color] DisplayCineFilter takes boolean flag returns nothing [color=7777FF][b]native[/b][/color] IsCineFilterDisplayed takes nothing returns boolean [color=7777FF][b]native[/b][/color] SetCinematicScene takes integer portraitUnitId[b],[/b] playercolor color[b],[/b] [color=AA77FF]string[/color] speakerTitle[b],[/b] [color=AA77FF]string[/color] [color=AA77FF]text[/color][b],[/b] real sceneDuration[b],[/b] real voiceoverDuration returns nothing [color=7777FF][b]native[/b][/color] EndCinematicScene takes nothing returns nothing [color=7777FF][b]native[/b][/color] ForceCinematicSubtitles takes boolean flag returns nothing [color=7777FF][b]native[/b][/color] GetCameraMargin takes integer whichMargin returns real [color=999999][i]// These return values for the local players camera only...[/i][/color] constant [color=7777FF][b]native[/b][/color] GetCameraBoundMinX takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetCameraBoundMinY takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetCameraBoundMaxX takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetCameraBoundMaxY takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetCameraField takes camerafield whichField returns real constant [color=7777FF][b]native[/b][/color] GetCameraTargetPositionX takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetCameraTargetPositionY takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetCameraTargetPositionZ takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetCameraTargetPositionLoc takes nothing returns location constant [color=7777FF][b]native[/b][/color] GetCameraEyePositionX takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetCameraEyePositionY takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetCameraEyePositionZ takes nothing returns real constant [color=7777FF][b]native[/b][/color] GetCameraEyePositionLoc takes nothing returns location [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Sound API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] NewSoundEnvironment takes [color=AA77FF]string[/color] environmentName returns nothing [color=7777FF][b]native[/b][/color] CreateSound takes [color=AA77FF]string[/color] fileName[b],[/b] boolean looping[b],[/b] boolean is3D[b],[/b] boolean stopwhenoutofrange[b],[/b] integer fadeInRate[b],[/b] integer fadeOutRate[b],[/b] [color=AA77FF]string[/color] eaxSetting returns sound [color=7777FF][b]native[/b][/color] CreateSoundFilenameWithLabel takes [color=AA77FF]string[/color] fileName[b],[/b] boolean looping[b],[/b] boolean is3D[b],[/b] boolean stopwhenoutofrange[b],[/b] integer fadeInRate[b],[/b] integer fadeOutRate[b],[/b] [color=AA77FF]string[/color] SLKEntryName returns sound [color=7777FF][b]native[/b][/color] CreateSoundFromLabel takes [color=AA77FF]string[/color] soundLabel[b],[/b] boolean looping[b],[/b] boolean is3D[b],[/b] boolean stopwhenoutofrange[b],[/b] integer fadeInRate[b],[/b] integer fadeOutRate returns sound [color=7777FF][b]native[/b][/color] CreateMIDISound takes [color=AA77FF]string[/color] soundLabel[b],[/b] integer fadeInRate[b],[/b] integer fadeOutRate returns sound [color=7777FF][b]native[/b][/color] SetSoundParamsFromLabel takes sound soundHandle[b],[/b] [color=AA77FF]string[/color] soundLabel returns nothing [color=7777FF][b]native[/b][/color] SetSoundDistanceCutoff takes sound soundHandle[b],[/b] real cutoff returns nothing [color=7777FF][b]native[/b][/color] SetSoundChannel takes sound soundHandle[b],[/b] integer channel returns nothing [color=7777FF][b]native[/b][/color] SetSoundVolume takes sound soundHandle[b],[/b] integer volume returns nothing [color=7777FF][b]native[/b][/color] SetSoundPitch takes sound soundHandle[b],[/b] real pitch returns nothing [color=999999][i]// the following method must be called immediately after calling "StartSound"[/i][/color] [color=7777FF][b]native[/b][/color] SetSoundPlayPosition takes sound soundHandle[b],[/b] integer millisecs returns nothing [color=999999][i]// these calls are only valid if the sound was created with 3d enabled[/i][/color] [color=7777FF][b]native[/b][/color] SetSoundDistances takes sound soundHandle[b],[/b] real minDist[b],[/b] real maxDist returns nothing [color=7777FF][b]native[/b][/color] SetSoundConeAngles takes sound soundHandle[b],[/b] real inside[b],[/b] real outside[b],[/b] integer outsideVolume returns nothing [color=7777FF][b]native[/b][/color] SetSoundConeOrientation takes sound soundHandle[b],[/b] real x[b],[/b] real y[b],[/b] real z returns nothing [color=7777FF][b]native[/b][/color] SetSoundPosition takes sound soundHandle[b],[/b] real x[b],[/b] real y[b],[/b] real z returns nothing [color=7777FF][b]native[/b][/color] SetSoundVelocity takes sound soundHandle[b],[/b] real x[b],[/b] real y[b],[/b] real z returns nothing [color=7777FF][b]native[/b][/color] AttachSoundToUnit takes sound soundHandle[b],[/b] [color=AA77FF]unit[/color] whichUnit returns nothing [color=7777FF][b]native[/b][/color] StartSound takes sound soundHandle returns nothing [color=7777FF][b]native[/b][/color] StopSound takes sound soundHandle[b],[/b] boolean killWhenDone[b],[/b] boolean fadeOut returns nothing [color=7777FF][b]native[/b][/color] KillSoundWhenDone takes sound soundHandle returns nothing [color=999999][i]// Music Interface. Note that if music is disabled, these calls do nothing[/i][/color] [color=7777FF][b]native[/b][/color] SetMapMusic takes [color=AA77FF]string[/color] musicName[b],[/b] boolean random[b],[/b] integer index returns nothing [color=7777FF][b]native[/b][/color] ClearMapMusic takes nothing returns nothing [color=7777FF][b]native[/b][/color] PlayMusic takes [color=AA77FF]string[/color] musicName returns nothing [color=7777FF][b]native[/b][/color] PlayMusicEx takes [color=AA77FF]string[/color] musicName[b],[/b] integer frommsecs[b],[/b] integer fadeinmsecs returns nothing [color=7777FF][b]native[/b][/color] StopMusic takes boolean fadeOut returns nothing [color=7777FF][b]native[/b][/color] ResumeMusic takes nothing returns nothing [color=7777FF][b]native[/b][/color] PlayThematicMusic takes [color=AA77FF]string[/color] musicFileName returns nothing [color=7777FF][b]native[/b][/color] PlayThematicMusicEx takes [color=AA77FF]string[/color] musicFileName[b],[/b] integer frommsecs returns nothing [color=7777FF][b]native[/b][/color] EndThematicMusic takes nothing returns nothing [color=7777FF][b]native[/b][/color] SetMusicVolume takes integer volume returns nothing [color=7777FF][b]native[/b][/color] SetMusicPlayPosition takes integer millisecs returns nothing [color=7777FF][b]native[/b][/color] SetThematicMusicPlayPosition takes integer millisecs returns nothing [color=999999][i]// other music and sound calls[/i][/color] [color=7777FF][b]native[/b][/color] SetSoundDuration takes sound soundHandle[b],[/b] integer duration returns nothing [color=7777FF][b]native[/b][/color] GetSoundDuration takes sound soundHandle returns integer [color=7777FF][b]native[/b][/color] GetSoundFileDuration takes [color=AA77FF]string[/color] musicFileName returns integer [color=7777FF][b]native[/b][/color] VolumeGroupSetVolume takes volumegroup vgroup[b],[/b] real scale returns nothing [color=7777FF][b]native[/b][/color] VolumeGroupReset takes nothing returns nothing [color=7777FF][b]native[/b][/color] GetSoundIsPlaying takes sound soundHandle returns boolean [color=7777FF][b]native[/b][/color] GetSoundIsLoading takes sound soundHandle returns boolean [color=7777FF][b]native[/b][/color] RegisterStackedSound takes sound soundHandle[b],[/b] boolean byPosition[b],[/b] real rectwidth[b],[/b] real rectheight returns nothing [color=7777FF][b]native[/b][/color] UnregisterStackedSound takes sound soundHandle[b],[/b] boolean byPosition[b],[/b] real rectwidth[b],[/b] real rectheight returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Effects API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] AddWeatherEffect takes rect where[b],[/b] integer effectID returns weathereffect [color=7777FF][b]native[/b][/color] RemoveWeatherEffect takes weathereffect whichEffect returns nothing [color=7777FF][b]native[/b][/color] EnableWeatherEffect takes weathereffect whichEffect[b],[/b] boolean enable returns nothing [color=7777FF][b]native[/b][/color] TerrainDeformCrater takes real x[b],[/b] real y[b],[/b] real radius[b],[/b] real depth[b],[/b] integer duration[b],[/b] boolean permanent returns terraindeformation [color=7777FF][b]native[/b][/color] TerrainDeformRipple takes real x[b],[/b] real y[b],[/b] real radius[b],[/b] real depth[b],[/b] integer duration[b],[/b] integer count[b],[/b] real spaceWaves[b],[/b] real timeWaves[b],[/b] real radiusStartPct[b],[/b] boolean limitNeg returns terraindeformation [color=7777FF][b]native[/b][/color] TerrainDeformWave takes real x[b],[/b] real y[b],[/b] real dirX[b],[/b] real dirY[b],[/b] real distance[b],[/b] real speed[b],[/b] real radius[b],[/b] real depth[b],[/b] integer trailTime[b],[/b] integer count returns terraindeformation [color=7777FF][b]native[/b][/color] TerrainDeformRandom takes real x[b],[/b] real y[b],[/b] real radius[b],[/b] real minDelta[b],[/b] real maxDelta[b],[/b] integer duration[b],[/b] integer updateInterval returns terraindeformation [color=7777FF][b]native[/b][/color] TerrainDeformStop takes terraindeformation deformation[b],[/b] integer duration returns nothing [color=7777FF][b]native[/b][/color] TerrainDeformStopAll takes nothing returns nothing [color=7777FF][b]native[/b][/color] AddSpecialEffect takes [color=AA77FF]string[/color] modelName[b],[/b] real x[b],[/b] real y returns effect [color=7777FF][b]native[/b][/color] AddSpecialEffectLoc takes [color=AA77FF]string[/color] modelName[b],[/b] location where returns effect [color=7777FF][b]native[/b][/color] AddSpecialEffectTarget takes [color=AA77FF]string[/color] modelName[b],[/b] widget targetWidget[b],[/b] [color=AA77FF]string[/color] attachPointName returns effect [color=7777FF][b]native[/b][/color] DestroyEffect takes effect whichEffect returns nothing [color=7777FF][b]native[/b][/color] AddSpellEffect takes [color=AA77FF]string[/color] abilityString[b],[/b] effecttype t[b],[/b] real x[b],[/b] real y returns effect [color=7777FF][b]native[/b][/color] AddSpellEffectLoc takes [color=AA77FF]string[/color] abilityString[b],[/b] effecttype t[b],[/b]location where returns effect [color=7777FF][b]native[/b][/color] AddSpellEffectById takes integer abilityId[b],[/b] effecttype t[b],[/b]real x[b],[/b] real y returns effect [color=7777FF][b]native[/b][/color] AddSpellEffectByIdLoc takes integer abilityId[b],[/b] effecttype t[b],[/b]location where returns effect [color=7777FF][b]native[/b][/color] AddSpellEffectTarget takes [color=AA77FF]string[/color] modelName[b],[/b] effecttype t[b],[/b] widget targetWidget[b],[/b] [color=AA77FF]string[/color] attachPoint returns effect [color=7777FF][b]native[/b][/color] AddSpellEffectTargetById takes integer abilityId[b],[/b] effecttype t[b],[/b] widget targetWidget[b],[/b] [color=AA77FF]string[/color] attachPoint returns effect [color=7777FF][b]native[/b][/color] AddLightning takes [color=AA77FF]string[/color] codeName[b],[/b] boolean checkVisibility[b],[/b] real x1[b],[/b] real y1[b],[/b] real x2[b],[/b] real y2 returns lightning [color=7777FF][b]native[/b][/color] AddLightningEx takes [color=AA77FF]string[/color] codeName[b],[/b] boolean checkVisibility[b],[/b] real x1[b],[/b] real y1[b],[/b] real z1[b],[/b] real x2[b],[/b] real y2[b],[/b] real z2 returns lightning [color=7777FF][b]native[/b][/color] DestroyLightning takes lightning whichBolt returns boolean [color=7777FF][b]native[/b][/color] MoveLightning takes lightning whichBolt[b],[/b] boolean checkVisibility[b],[/b] real x1[b],[/b] real y1[b],[/b] real x2[b],[/b] real y2 returns boolean [color=7777FF][b]native[/b][/color] MoveLightningEx takes lightning whichBolt[b],[/b] boolean checkVisibility[b],[/b] real x1[b],[/b] real y1[b],[/b] real z1[b],[/b] real x2[b],[/b] real y2[b],[/b] real z2 returns boolean [color=7777FF][b]native[/b][/color] GetLightningColorA takes lightning whichBolt returns real [color=7777FF][b]native[/b][/color] GetLightningColorR takes lightning whichBolt returns real [color=7777FF][b]native[/b][/color] GetLightningColorG takes lightning whichBolt returns real [color=7777FF][b]native[/b][/color] GetLightningColorB takes lightning whichBolt returns real [color=7777FF][b]native[/b][/color] SetLightningColor takes lightning whichBolt[b],[/b] real r[b],[/b] real g[b],[/b] real b[b],[/b] real a returns boolean [color=7777FF][b]native[/b][/color] GetAbilityEffect takes [color=AA77FF]string[/color] abilityString[b],[/b] effecttype t[b],[/b] integer index returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetAbilityEffectById takes integer abilityId[b],[/b] effecttype t[b],[/b] integer index returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetAbilitySound takes [color=AA77FF]string[/color] abilityString[b],[/b] soundtype t returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetAbilitySoundById takes integer abilityId[b],[/b] soundtype t returns [color=AA77FF]string[/color] [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Terrain API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] GetTerrainCliffLevel takes real x[b],[/b] real y returns integer [color=7777FF][b]native[/b][/color] SetWaterBaseColor takes integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] SetWaterDeforms takes boolean val returns nothing [color=7777FF][b]native[/b][/color] GetTerrainType takes real x[b],[/b] real y returns integer [color=7777FF][b]native[/b][/color] GetTerrainVariance takes real x[b],[/b] real y returns integer [color=7777FF][b]native[/b][/color] SetTerrainType takes real x[b],[/b] real y[b],[/b] integer terrainType[b],[/b] integer variation[b],[/b] integer area[b],[/b] integer shape returns nothing [color=7777FF][b]native[/b][/color] IsTerrainPathable takes real x[b],[/b] real y[b],[/b] pathingtype t returns boolean [color=7777FF][b]native[/b][/color] SetTerrainPathable takes real x[b],[/b] real y[b],[/b] pathingtype t[b],[/b] boolean flag returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Image API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] CreateImage takes [color=AA77FF]string[/color] file[b],[/b] real sizeX[b],[/b] real sizeY[b],[/b] real sizeZ[b],[/b] real posX[b],[/b] real posY[b],[/b] real posZ[b],[/b] real originX[b],[/b] real originY[b],[/b] real originZ[b],[/b] integer imageType returns image [color=7777FF][b]native[/b][/color] DestroyImage takes image whichImage returns nothing [color=7777FF][b]native[/b][/color] ShowImage takes image whichImage[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetImageConstantHeight takes image whichImage[b],[/b] boolean flag[b],[/b] real height returns nothing [color=7777FF][b]native[/b][/color] SetImagePosition takes image whichImage[b],[/b] real x[b],[/b] real y[b],[/b] real z returns nothing [color=7777FF][b]native[/b][/color] SetImageColor takes image whichImage[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] SetImageRender takes image whichImage[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetImageRenderAlways takes image whichImage[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetImageAboveWater takes image whichImage[b],[/b] boolean flag[b],[/b] boolean useWaterAlpha returns nothing [color=7777FF][b]native[/b][/color] SetImageType takes image whichImage[b],[/b] integer imageType returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Ubersplat API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] CreateUbersplat takes real x[b],[/b] real y[b],[/b] [color=AA77FF]string[/color] name[b],[/b] integer red[b],[/b] integer green[b],[/b] integer blue[b],[/b] integer alpha[b],[/b] boolean forcePaused[b],[/b] boolean noBirthTime returns ubersplat [color=7777FF][b]native[/b][/color] DestroyUbersplat takes ubersplat whichSplat returns nothing [color=7777FF][b]native[/b][/color] ResetUbersplat takes ubersplat whichSplat returns nothing [color=7777FF][b]native[/b][/color] FinishUbersplat takes ubersplat whichSplat returns nothing [color=7777FF][b]native[/b][/color] ShowUbersplat takes ubersplat whichSplat[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetUbersplatRender takes ubersplat whichSplat[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] SetUbersplatRenderAlways takes ubersplat whichSplat[b],[/b] boolean flag returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Blight API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] SetBlight takes player whichPlayer[b],[/b] real x[b],[/b] real y[b],[/b] real radius[b],[/b] boolean addBlight returns nothing [color=7777FF][b]native[/b][/color] SetBlightRect takes player whichPlayer[b],[/b] rect r[b],[/b] boolean addBlight returns nothing [color=7777FF][b]native[/b][/color] SetBlightPoint takes player whichPlayer[b],[/b] real x[b],[/b] real y[b],[/b] boolean addBlight returns nothing [color=7777FF][b]native[/b][/color] SetBlightLoc takes player whichPlayer[b],[/b] location whichLocation[b],[/b] real radius[b],[/b] boolean addBlight returns nothing [color=7777FF][b]native[/b][/color] CreateBlightedGoldmine takes player id[b],[/b] real x[b],[/b] real y[b],[/b] real face returns [color=AA77FF]unit[/color] [color=7777FF][b]native[/b][/color] IsPointBlighted takes real x[b],[/b] real y returns boolean [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Doodad API[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] SetDoodadAnimation takes real x[b],[/b] real y[b],[/b] real radius[b],[/b] integer doodadID[b],[/b] boolean nearestOnly[b],[/b] [color=AA77FF]string[/color] animName[b],[/b] boolean animRandom returns nothing [color=7777FF][b]native[/b][/color] SetDoodadAnimationRect takes rect r[b],[/b] integer doodadID[b],[/b] [color=AA77FF]string[/color] animName[b],[/b] boolean animRandom returns nothing [color=999999][i]//============================================================================[/i][/color] [color=999999][i]// Computer AI interface[/i][/color] [color=999999][i]//[/i][/color] [color=7777FF][b]native[/b][/color] StartMeleeAI takes player num[b],[/b] [color=AA77FF]string[/color] script returns nothing [color=7777FF][b]native[/b][/color] StartCampaignAI takes player num[b],[/b] [color=AA77FF]string[/color] script returns nothing [color=7777FF][b]native[/b][/color] CommandAI takes player num[b],[/b] integer command[b],[/b] integer data returns nothing [color=7777FF][b]native[/b][/color] PauseCompAI takes player p[b],[/b] boolean pause returns nothing [color=7777FF][b]native[/b][/color] GetAIDifficulty takes player num returns aidifficulty [color=7777FF][b]native[/b][/color] RemoveGuardPosition takes [color=AA77FF]unit[/color] hUnit returns nothing [color=7777FF][b]native[/b][/color] RecycleGuardPosition takes [color=AA77FF]unit[/color] hUnit returns nothing [color=7777FF][b]native[/b][/color] RemoveAllGuardPositions takes player num returns nothing [color=999999][i]//============================================================================[/i][/color] [color=7777FF][b]native[/b][/color] Cheat takes [color=AA77FF]string[/color] cheatStr returns nothing [color=7777FF][b]native[/b][/color] IsNoVictoryCheat takes nothing returns boolean [color=7777FF][b]native[/b][/color] IsNoDefeatCheat takes nothing returns boolean [color=7777FF][b]native[/b][/color] Preload takes [color=AA77FF]string[/color] filename returns nothing [color=7777FF][b]native[/b][/color] PreloadEnd takes real timeout returns nothing [color=7777FF][b]native[/b][/color] PreloadStart takes nothing returns nothing [color=7777FF][b]native[/b][/color] PreloadRefresh takes nothing returns nothing [color=7777FF][b]native[/b][/color] PreloadEndEx takes nothing returns nothing [color=7777FF][b]native[/b][/color] PreloadGenClear takes nothing returns nothing [color=7777FF][b]native[/b][/color] PreloadGenStart takes nothing returns nothing [color=7777FF][b]native[/b][/color] PreloadGenEnd takes [color=AA77FF]string[/color] filename returns nothing [color=7777FF][b]native[/b][/color] Preloader takes [color=AA77FF]string[/color] filename returns nothing [color=999999][i]// JAPI Test Functions[/i][/color] [color=7777FF][b]native[/b][/color] GetTriggerPlayerMouseX takes nothing returns real [color=7777FF][b]native[/b][/color] GetTriggerPlayerMouseY takes nothing returns real [color=7777FF][b]native[/b][/color] GetTriggerPlayerMousePosition takes nothing returns location [color=7777FF][b]native[/b][/color] GetTriggerPlayerMouseButton takes nothing returns mousebuttontype [color=7777FF][b]native[/b][/color] SetAbilityTooltip takes integer abilCode[b],[/b] [color=AA77FF]string[/color] tooltip[b],[/b] integer level returns nothing [color=7777FF][b]native[/b][/color] SetAbilityOnTooltip takes integer abilCode[b],[/b] [color=AA77FF]string[/color] tooltip[b],[/b] integer level returns nothing [color=7777FF][b]native[/b][/color] SetAbilityExtendedTooltip takes integer abilCode[b],[/b] [color=AA77FF]string[/color] ExtendedTooltip[b],[/b] integer level returns nothing [color=7777FF][b]native[/b][/color] SetAbilityOnExtendedTooltip takes integer abilCode[b],[/b] [color=AA77FF]string[/color] ExtendedTooltip[b],[/b] integer level returns nothing [color=7777FF][b]native[/b][/color] SetAbilityResearchTooltip takes integer abilCode[b],[/b] [color=AA77FF]string[/color] researchTooltip[b],[/b] integer level returns nothing [color=7777FF][b]native[/b][/color] SetAbilityResearchExtendedTooltip takes integer abilCode[b],[/b] [color=AA77FF]string[/color] researchExtendedTooltip[b],[/b] integer level returns nothing [color=7777FF][b]native[/b][/color] GetAbilityTooltip takes integer abilCode[b],[/b] integer level returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetAbilityOnTooltip takes integer abilCode[b],[/b] integer level returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetAbilityExtendedTooltip takes integer abilCode[b],[/b] integer level returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetAbilityOnExtendedTooltip takes integer abilCode[b],[/b] integer level returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetAbilityResearchTooltip takes integer abilCode[b],[/b] integer level returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetAbilityResearchExtendedTooltip takes integer abilCode[b],[/b] integer level returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] SetAbilityIcon takes integer abilCode[b],[/b] [color=AA77FF]string[/color] iconPath[b],[/b] integer level returns nothing [color=7777FF][b]native[/b][/color] GetAbilityIcon takes integer abilCode[b],[/b] integer level returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] SetAbilityOnIcon takes integer abilCode[b],[/b] [color=AA77FF]string[/color] iconPath returns nothing [color=7777FF][b]native[/b][/color] GetAbilityOnIcon takes integer abilCode returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] GetAbilityPosX takes integer abilCode returns integer [color=7777FF][b]native[/b][/color] GetAbilityPosY takes integer abilCode returns integer [color=7777FF][b]native[/b][/color] SetAbilityPosX takes integer abilCode[b],[/b] integer x returns nothing [color=7777FF][b]native[/b][/color] SetAbilityPosY takes integer abilCode[b],[/b] integer y returns nothing [color=7777FF][b]native[/b][/color] GetAbilityOnPosX takes integer abilCode returns integer [color=7777FF][b]native[/b][/color] GetAbilityOnPosY takes integer abilCode returns integer [color=7777FF][b]native[/b][/color] SetAbilityOnPosX takes integer abilCode[b],[/b] integer x returns nothing [color=7777FF][b]native[/b][/color] SetAbilityOnPosY takes integer abilCode[b],[/b] integer y returns nothing [color=7777FF][b]native[/b][/color] GetUnitMaxHP takes [color=AA77FF]unit[/color] whichUnit returns integer [color=7777FF][b]native[/b][/color] SetUnitMaxHP takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer hp returns nothing [color=7777FF][b]native[/b][/color] GetUnitMaxMana takes [color=AA77FF]unit[/color] whichUnit returns integer [color=7777FF][b]native[/b][/color] SetUnitMaxMana takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer mana returns nothing [color=7777FF][b]native[/b][/color] DeleteHeroAbility takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilCode returns nothing [color=7777FF][b]native[/b][/color] SetItemName takes item whichItem[b],[/b] [color=AA77FF]string[/color] name returns nothing [color=7777FF][b]native[/b][/color] SetItemDescription takes item whichItem[b],[/b] [color=AA77FF]string[/color] name returns nothing [color=7777FF][b]native[/b][/color] GetItemDescription takes item whichItem returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] SetItemTooltip takes item whichItem[b],[/b] [color=AA77FF]string[/color] name returns nothing [color=7777FF][b]native[/b][/color] GetItemTooltip takes item whichItem returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] SetItemExtendedTooltip takes item whichItem[b],[/b] [color=AA77FF]string[/color] name returns nothing [color=7777FF][b]native[/b][/color] GetItemExtendedTooltip takes item whichItem returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] SetItemIconPath takes item whichItem[b],[/b] [color=AA77FF]string[/color] name returns nothing [color=7777FF][b]native[/b][/color] GetItemIconPath takes item whichItem returns [color=AA77FF]string[/color] [color=7777FF][b]native[/b][/color] SetUnitName takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] name returns nothing [color=7777FF][b]native[/b][/color] SetUnitNameAll takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] name returns nothing [color=7777FF][b]native[/b][/color] SetHeroProperName takes [color=AA77FF]unit[/color] whichUnit[b],[/b] [color=AA77FF]string[/color] name returns nothing [color=7777FF][b]native[/b][/color] GetUnitBaseDamage takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer weaponIndex returns integer [color=7777FF][b]native[/b][/color] SetUnitBaseDamage takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer baseDamage[b],[/b] integer weaponIndex returns nothing [color=7777FF][b]native[/b][/color] GetUnitDiceNumber takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer weaponIndex returns integer [color=7777FF][b]native[/b][/color] SetUnitDiceNumber takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer diceNumber[b],[/b] integer weaponIndex returns nothing [color=7777FF][b]native[/b][/color] GetUnitDiceSides takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer weaponIndex returns integer [color=7777FF][b]native[/b][/color] SetUnitDiceSides takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer diceSides[b],[/b] integer weaponIndex returns nothing [color=7777FF][b]native[/b][/color] GetUnitAttackCooldown takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer weaponIndex returns real [color=7777FF][b]native[/b][/color] SetUnitAttackCooldown takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real cooldown[b],[/b] integer weaponIndex returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectColorByPlayer takes effect whichEffect[b],[/b] player whichPlayer returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectColor takes effect whichEffect[b],[/b] integer r[b],[/b] integer g[b],[/b] integer b returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectAlpha takes effect whichEffect[b],[/b] integer alpha returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectScale takes effect whichEffect[b],[/b] real scale returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectPosition takes effect whichEffect[b],[/b] real x[b],[/b] real y[b],[/b] real z returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectHeight takes effect whichEffect[b],[/b] real height returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectTimeScale takes effect whichEffect[b],[/b] real timeScale returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectTime takes effect whichEffect[b],[/b] real time returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectOrientation takes effect whichEffect[b],[/b] real yaw[b],[/b] real pitch[b],[/b] real roll returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectYaw takes effect whichEffect[b],[/b] real yaw returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectPitch takes effect whichEffect[b],[/b] real pitch returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectRoll takes effect whichEffect[b],[/b] real roll returns nothing [color=7777FF][b]native[/b][/color] PlaySpecialEffect takes effect whichEffect[b],[/b] integer anim returns nothing [color=7777FF][b]native[/b][/color] PlaySpecialEffectWithTimeScale takes effect whichEffect[b],[/b] integer anim[b],[/b] real timeScale returns nothing constant [color=7777FF][b]native[/b][/color] DecPlayerTechResearched takes player whichPlayer[b],[/b] integer techid[b],[/b] integer levels returns nothing [color=7777FF][b]native[/b][/color] SetEventDamage takes real damage returns nothing [color=7777FF][b]native[/b][/color] AutomationTestStart takes [color=AA77FF]string[/color] testName returns nothing [color=7777FF][b]native[/b][/color] AutomationTestEnd takes [color=AA77FF]string[/color] testName returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectX takes effect whichEffect[b],[/b] real x returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectY takes effect whichEffect[b],[/b] real y returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectZ takes effect whichEffect[b],[/b] real z returns nothing [color=7777FF][b]native[/b][/color] SetSpecialEffectPositionLoc takes effect whichEffect[b],[/b] location loc returns nothing [color=7777FF][b]native[/b][/color] GetLocalSpecialEffectX takes effect whichEffect returns real [color=7777FF][b]native[/b][/color] GetLocalSpecialEffectY takes effect whichEffect returns real [color=7777FF][b]native[/b][/color] GetLocalSpecialEffectZ takes effect whichEffect returns real [color=7777FF][b]native[/b][/color] GetUnitArmor takes [color=AA77FF]unit[/color] whichUnit returns real [color=7777FF][b]native[/b][/color] SetUnitArmor takes [color=AA77FF]unit[/color] whichUnit[b],[/b] real armorAmount returns nothing [color=7777FF][b]native[/b][/color] UnitHideAbility takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilId[b],[/b] boolean flag returns nothing [color=7777FF][b]native[/b][/color] UnitDisableAbility takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilId[b],[/b] boolean flag[b],[/b] boolean hideUI returns nothing [color=7777FF][b]native[/b][/color] UnitCancelTimedLife takes [color=AA77FF]unit[/color] whichUnit returns nothing [color=7777FF][b]native[/b][/color] IsUnitSelectable takes [color=AA77FF]unit[/color] whichUnit returns boolean [color=7777FF][b]native[/b][/color] IsUnitInvulnerable takes [color=AA77FF]unit[/color] whichUnit returns boolean [color=7777FF][b]native[/b][/color] UnitInterruptAttack takes [color=AA77FF]unit[/color] whichUnit returns nothing [color=7777FF][b]native[/b][/color] GetUnitCollisionSize takes [color=AA77FF]unit[/color] whichUnit returns real [color=7777FF][b]native[/b][/color] GetAbilityManaCost takes integer abilId[b],[/b] integer level returns integer [color=7777FF][b]native[/b][/color] GetAbilityCooldown takes integer abilId[b],[/b] integer level returns real [color=7777FF][b]native[/b][/color] SetUnitAbilityCooldown takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilId[b],[/b] integer level[b],[/b] real cooldown returns nothing [color=7777FF][b]native[/b][/color] GetUnitAbilityCooldown takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilId[b],[/b] integer level returns real [color=7777FF][b]native[/b][/color] GetUnitAbilityCooldownRemaining takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilId returns real [color=7777FF][b]native[/b][/color] EndUnitAbilityCooldown takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilCode returns nothing [color=7777FF][b]native[/b][/color] GetUnitAbilityManaCost takes [color=AA77FF]unit[/color] whichUnit[b],[/b] integer abilId[b],[/b] integer level returns integer [color=7777FF][b]native[/b][/color] GetLocalUnitZ takes [color=AA77FF]unit[/color] whichUnit returns real [color=999999][i]// native GetUnitMovementType takes unit whichUnit returns integer[/i][/color] [color=999999][i]// native SetUnitMovementType takes unit whichUnit, integer movementType returns nothing[/i][/color] [color=999999][i]// native GetUnitArmorType takes unit whichUnit returns integer[/i][/color] [color=999999][i]// native SetHeroStatEx takes unit whichHero, integer whichStat, integer statValue, boolean permanent returns nothing[/i][/color] [color=999999][i]// native GetHeroPrimaryStat takes unit whichHero returns integer[/i][/color] [color=999999][i]// native GetHeroPrimaryStatById takes unit whichHero returns integer[/i][/color] [color=999999][i]// native GetHeroStat takes unit whichHero, integer whichStat, boolean includeBonuses returns integer[/i][/color] [/code]
select language
jass
java
delphi
C++
php
GSL
> galaxy
visualBasic
wurst
Text
Markdown
select style
default
> bbcode - default
Jasscraft
jasscraft html
visual
lightweight
lightweightNr
goto line:
Compare with:
text copy window
edit this code
post new code
//============================================================================ // Native types. All native functions take extended handle types when // possible to help prevent passing bad values to native functions // type agent extends handle // all reference counted objects type event extends agent // a reference to an event registration type player extends agent // a single player reference type widget extends agent // an interactive game object with life type unit extends widget // a single unit reference type destructable extends widget type item extends widget type ability extends agent type buff extends ability type force extends agent type group extends agent type trigger extends agent type triggercondition extends agent type triggeraction extends handle type timer extends agent type location extends agent type region extends agent type rect extends agent type boolexpr extends agent type sound extends agent type conditionfunc extends boolexpr type filterfunc extends boolexpr type unitpool extends handle type itempool extends handle type race extends handle type alliancetype extends handle type racepreference extends handle type gamestate extends handle type igamestate extends gamestate type fgamestate extends gamestate type playerstate extends handle type playerscore extends handle type playergameresult extends handle type unitstate extends handle type aidifficulty extends handle type eventid extends handle type gameevent extends eventid type playerevent extends eventid type playerunitevent extends eventid type unitevent extends eventid type limitop extends eventid type widgetevent extends eventid type dialogevent extends eventid type unittype extends handle type gamespeed extends handle type gamedifficulty extends handle type gametype extends handle type mapflag extends handle type mapvisibility extends handle type mapsetting extends handle type mapdensity extends handle type mapcontrol extends handle type playerslotstate extends handle type volumegroup extends handle type camerafield extends handle type camerasetup extends handle type playercolor extends handle type placement extends handle type startlocprio extends handle type raritycontrol extends handle type blendmode extends handle type texmapflags extends handle type effect extends agent type effecttype extends handle type weathereffect extends handle type terraindeformation extends handle type fogstate extends handle type fogmodifier extends agent type dialog extends agent type button extends agent type quest extends agent type questitem extends agent type defeatcondition extends agent type timerdialog extends agent type leaderboard extends agent type multiboard extends agent type multiboarditem extends agent type trackable extends agent type gamecache extends agent type version extends handle type itemtype extends handle type texttag extends handle type attacktype extends handle type damagetype extends handle type weapontype extends handle type soundtype extends handle type lightning extends handle type pathingtype extends handle type mousebuttontype extends handle type image extends handle type ubersplat extends handle type hashtable extends agent constant native ConvertRace takes integer i returns race constant native ConvertAllianceType takes integer i returns alliancetype constant native ConvertRacePref takes integer i returns racepreference constant native ConvertIGameState takes integer i returns igamestate constant native ConvertFGameState takes integer i returns fgamestate constant native ConvertPlayerState takes integer i returns playerstate constant native ConvertPlayerScore takes integer i returns playerscore constant native ConvertPlayerGameResult takes integer i returns playergameresult constant native ConvertUnitState takes integer i returns unitstate constant native ConvertAIDifficulty takes integer i returns aidifficulty constant native ConvertGameEvent takes integer i returns gameevent constant native ConvertPlayerEvent takes integer i returns playerevent constant native ConvertPlayerUnitEvent takes integer i returns playerunitevent constant native ConvertWidgetEvent takes integer i returns widgetevent constant native ConvertDialogEvent takes integer i returns dialogevent constant native ConvertUnitEvent takes integer i returns unitevent constant native ConvertLimitOp takes integer i returns limitop constant native ConvertUnitType takes integer i returns unittype constant native ConvertGameSpeed takes integer i returns gamespeed constant native ConvertPlacement takes integer i returns placement constant native ConvertStartLocPrio takes integer i returns startlocprio constant native ConvertGameDifficulty takes integer i returns gamedifficulty constant native ConvertGameType takes integer i returns gametype constant native ConvertMapFlag takes integer i returns mapflag constant native ConvertMapVisibility takes integer i returns mapvisibility constant native ConvertMapSetting takes integer i returns mapsetting constant native ConvertMapDensity takes integer i returns mapdensity constant native ConvertMapControl takes integer i returns mapcontrol constant native ConvertPlayerColor takes integer i returns playercolor constant native ConvertPlayerSlotState takes integer i returns playerslotstate constant native ConvertVolumeGroup takes integer i returns volumegroup constant native ConvertCameraField takes integer i returns camerafield constant native ConvertBlendMode takes integer i returns blendmode constant native ConvertRarityControl takes integer i returns raritycontrol constant native ConvertTexMapFlags takes integer i returns texmapflags constant native ConvertFogState takes integer i returns fogstate constant native ConvertEffectType takes integer i returns effecttype constant native ConvertVersion takes integer i returns version constant native ConvertItemType takes integer i returns itemtype constant native ConvertAttackType takes integer i returns attacktype constant native ConvertDamageType takes integer i returns damagetype constant native ConvertWeaponType takes integer i returns weapontype constant native ConvertSoundType takes integer i returns soundtype constant native ConvertPathingType takes integer i returns pathingtype constant native ConvertMouseButtonType takes integer i returns mousebuttontype constant native OrderId takes string orderIdString returns integer constant native OrderId2String takes integer orderId returns string constant native UnitId takes string unitIdString returns integer constant native UnitId2String takes integer unitId returns string // Not currently working correctly... constant native AbilityId takes string abilityIdString returns integer constant native AbilityId2String takes integer abilityId returns string // Looks up the "name" field for any object (unit, item, ability) constant native GetObjectName takes integer objectId returns string constant native GetBJMaxPlayers takes nothing returns integer constant native GetBJPlayerNeutralVictim takes nothing returns integer constant native GetBJPlayerNeutralExtra takes nothing returns integer constant native GetBJMaxPlayerSlots takes nothing returns integer constant native GetPlayerNeutralPassive takes nothing returns integer constant native GetPlayerNeutralAggressive takes nothing returns integer globals //=================================================== // Game Constants //=================================================== // pfff constant boolean FALSE = false constant boolean TRUE = true constant integer JASS_MAX_ARRAY_SIZE = 8192 constant integer PLAYER_NEUTRAL_PASSIVE = GetPlayerNeutralPassive() constant integer PLAYER_NEUTRAL_AGGRESSIVE = GetPlayerNeutralAggressive() constant playercolor PLAYER_COLOR_RED = ConvertPlayerColor(0) constant playercolor PLAYER_COLOR_BLUE = ConvertPlayerColor(1) constant playercolor PLAYER_COLOR_CYAN = ConvertPlayerColor(2) constant playercolor PLAYER_COLOR_PURPLE = ConvertPlayerColor(3) constant playercolor PLAYER_COLOR_YELLOW = ConvertPlayerColor(4) constant playercolor PLAYER_COLOR_ORANGE = ConvertPlayerColor(5) constant playercolor PLAYER_COLOR_GREEN = ConvertPlayerColor(6) constant playercolor PLAYER_COLOR_PINK = ConvertPlayerColor(7) constant playercolor PLAYER_COLOR_LIGHT_GRAY = ConvertPlayerColor(8) constant playercolor PLAYER_COLOR_LIGHT_BLUE = ConvertPlayerColor(9) constant playercolor PLAYER_COLOR_AQUA = ConvertPlayerColor(10) constant playercolor PLAYER_COLOR_BROWN = ConvertPlayerColor(11) constant race RACE_HUMAN = ConvertRace(1) constant race RACE_ORC = ConvertRace(2) constant race RACE_UNDEAD = ConvertRace(3) constant race RACE_NIGHTELF = ConvertRace(4) constant race RACE_DEMON = ConvertRace(5) constant race RACE_OTHER = ConvertRace(7) constant playergameresult PLAYER_GAME_RESULT_VICTORY = ConvertPlayerGameResult(0) constant playergameresult PLAYER_GAME_RESULT_DEFEAT = ConvertPlayerGameResult(1) constant playergameresult PLAYER_GAME_RESULT_TIE = ConvertPlayerGameResult(2) constant playergameresult PLAYER_GAME_RESULT_NEUTRAL = ConvertPlayerGameResult(3) constant alliancetype ALLIANCE_PASSIVE = ConvertAllianceType(0) constant alliancetype ALLIANCE_HELP_REQUEST = ConvertAllianceType(1) constant alliancetype ALLIANCE_HELP_RESPONSE = ConvertAllianceType(2) constant alliancetype ALLIANCE_SHARED_XP = ConvertAllianceType(3) constant alliancetype ALLIANCE_SHARED_SPELLS = ConvertAllianceType(4) constant alliancetype ALLIANCE_SHARED_VISION = ConvertAllianceType(5) constant alliancetype ALLIANCE_SHARED_CONTROL = ConvertAllianceType(6) constant alliancetype ALLIANCE_SHARED_ADVANCED_CONTROL= ConvertAllianceType(7) constant alliancetype ALLIANCE_RESCUABLE = ConvertAllianceType(8) constant alliancetype ALLIANCE_SHARED_VISION_FORCED = ConvertAllianceType(9) constant version VERSION_REIGN_OF_CHAOS = ConvertVersion(0) constant version VERSION_FROZEN_THRONE = ConvertVersion(1) constant attacktype ATTACK_TYPE_NORMAL = ConvertAttackType(0) constant attacktype ATTACK_TYPE_MELEE = ConvertAttackType(1) constant attacktype ATTACK_TYPE_PIERCE = ConvertAttackType(2) constant attacktype ATTACK_TYPE_SIEGE = ConvertAttackType(3) constant attacktype ATTACK_TYPE_MAGIC = ConvertAttackType(4) constant attacktype ATTACK_TYPE_CHAOS = ConvertAttackType(5) constant attacktype ATTACK_TYPE_HERO = ConvertAttackType(6) constant damagetype DAMAGE_TYPE_UNKNOWN = ConvertDamageType(0) constant damagetype DAMAGE_TYPE_NORMAL = ConvertDamageType(4) constant damagetype DAMAGE_TYPE_ENHANCED = ConvertDamageType(5) constant damagetype DAMAGE_TYPE_FIRE = ConvertDamageType(8) constant damagetype DAMAGE_TYPE_COLD = ConvertDamageType(9) constant damagetype DAMAGE_TYPE_LIGHTNING = ConvertDamageType(10) constant damagetype DAMAGE_TYPE_POISON = ConvertDamageType(11) constant damagetype DAMAGE_TYPE_DISEASE = ConvertDamageType(12) constant damagetype DAMAGE_TYPE_DIVINE = ConvertDamageType(13) constant damagetype DAMAGE_TYPE_MAGIC = ConvertDamageType(14) constant damagetype DAMAGE_TYPE_SONIC = ConvertDamageType(15) constant damagetype DAMAGE_TYPE_ACID = ConvertDamageType(16) constant damagetype DAMAGE_TYPE_FORCE = ConvertDamageType(17) constant damagetype DAMAGE_TYPE_DEATH = ConvertDamageType(18) constant damagetype DAMAGE_TYPE_MIND = ConvertDamageType(19) constant damagetype DAMAGE_TYPE_PLANT = ConvertDamageType(20) constant damagetype DAMAGE_TYPE_DEFENSIVE = ConvertDamageType(21) constant damagetype DAMAGE_TYPE_DEMOLITION = ConvertDamageType(22) constant damagetype DAMAGE_TYPE_SLOW_POISON = ConvertDamageType(23) constant damagetype DAMAGE_TYPE_SPIRIT_LINK = ConvertDamageType(24) constant damagetype DAMAGE_TYPE_SHADOW_STRIKE = ConvertDamageType(25) constant damagetype DAMAGE_TYPE_UNIVERSAL = ConvertDamageType(26) constant weapontype WEAPON_TYPE_WHOKNOWS = ConvertWeaponType(0) constant weapontype WEAPON_TYPE_METAL_LIGHT_CHOP = ConvertWeaponType(1) constant weapontype WEAPON_TYPE_METAL_MEDIUM_CHOP = ConvertWeaponType(2) constant weapontype WEAPON_TYPE_METAL_HEAVY_CHOP = ConvertWeaponType(3) constant weapontype WEAPON_TYPE_METAL_LIGHT_SLICE = ConvertWeaponType(4) constant weapontype WEAPON_TYPE_METAL_MEDIUM_SLICE = ConvertWeaponType(5) constant weapontype WEAPON_TYPE_METAL_HEAVY_SLICE = ConvertWeaponType(6) constant weapontype WEAPON_TYPE_METAL_MEDIUM_BASH = ConvertWeaponType(7) constant weapontype WEAPON_TYPE_METAL_HEAVY_BASH = ConvertWeaponType(8) constant weapontype WEAPON_TYPE_METAL_MEDIUM_STAB = ConvertWeaponType(9) constant weapontype WEAPON_TYPE_METAL_HEAVY_STAB = ConvertWeaponType(10) constant weapontype WEAPON_TYPE_WOOD_LIGHT_SLICE = ConvertWeaponType(11) constant weapontype WEAPON_TYPE_WOOD_MEDIUM_SLICE = ConvertWeaponType(12) constant weapontype WEAPON_TYPE_WOOD_HEAVY_SLICE = ConvertWeaponType(13) constant weapontype WEAPON_TYPE_WOOD_LIGHT_BASH = ConvertWeaponType(14) constant weapontype WEAPON_TYPE_WOOD_MEDIUM_BASH = ConvertWeaponType(15) constant weapontype WEAPON_TYPE_WOOD_HEAVY_BASH = ConvertWeaponType(16) constant weapontype WEAPON_TYPE_WOOD_LIGHT_STAB = ConvertWeaponType(17) constant weapontype WEAPON_TYPE_WOOD_MEDIUM_STAB = ConvertWeaponType(18) constant weapontype WEAPON_TYPE_CLAW_LIGHT_SLICE = ConvertWeaponType(19) constant weapontype WEAPON_TYPE_CLAW_MEDIUM_SLICE = ConvertWeaponType(20) constant weapontype WEAPON_TYPE_CLAW_HEAVY_SLICE = ConvertWeaponType(21) constant weapontype WEAPON_TYPE_AXE_MEDIUM_CHOP = ConvertWeaponType(22) constant weapontype WEAPON_TYPE_ROCK_HEAVY_BASH = ConvertWeaponType(23) constant pathingtype PATHING_TYPE_ANY = ConvertPathingType(0) constant pathingtype PATHING_TYPE_WALKABILITY = ConvertPathingType(1) constant pathingtype PATHING_TYPE_FLYABILITY = ConvertPathingType(2) constant pathingtype PATHING_TYPE_BUILDABILITY = ConvertPathingType(3) constant pathingtype PATHING_TYPE_PEONHARVESTPATHING = ConvertPathingType(4) constant pathingtype PATHING_TYPE_BLIGHTPATHING = ConvertPathingType(5) constant pathingtype PATHING_TYPE_FLOATABILITY = ConvertPathingType(6) constant pathingtype PATHING_TYPE_AMPHIBIOUSPATHING = ConvertPathingType(7) constant mousebuttontype MOUSE_BUTTON_TYPE_LEFT = ConvertMouseButtonType(1) constant mousebuttontype MOUSE_BUTTON_TYPE_MIDDLE = ConvertMouseButtonType(2) constant mousebuttontype MOUSE_BUTTON_TYPE_RIGHT = ConvertMouseButtonType(3) //=================================================== // Map Setup Constants //=================================================== constant racepreference RACE_PREF_HUMAN = ConvertRacePref(1) constant racepreference RACE_PREF_ORC = ConvertRacePref(2) constant racepreference RACE_PREF_NIGHTELF = ConvertRacePref(4) constant racepreference RACE_PREF_UNDEAD = ConvertRacePref(8) constant racepreference RACE_PREF_DEMON = ConvertRacePref(16) constant racepreference RACE_PREF_RANDOM = ConvertRacePref(32) constant racepreference RACE_PREF_USER_SELECTABLE = ConvertRacePref(64) constant mapcontrol MAP_CONTROL_USER = ConvertMapControl(0) constant mapcontrol MAP_CONTROL_COMPUTER = ConvertMapControl(1) constant mapcontrol MAP_CONTROL_RESCUABLE = ConvertMapControl(2) constant mapcontrol MAP_CONTROL_NEUTRAL = ConvertMapControl(3) constant mapcontrol MAP_CONTROL_CREEP = ConvertMapControl(4) constant mapcontrol MAP_CONTROL_NONE = ConvertMapControl(5) constant gametype GAME_TYPE_MELEE = ConvertGameType(1) constant gametype GAME_TYPE_FFA = ConvertGameType(2) constant gametype GAME_TYPE_USE_MAP_SETTINGS = ConvertGameType(4) constant gametype GAME_TYPE_BLIZ = ConvertGameType(8) constant gametype GAME_TYPE_ONE_ON_ONE = ConvertGameType(16) constant gametype GAME_TYPE_TWO_TEAM_PLAY = ConvertGameType(32) constant gametype GAME_TYPE_THREE_TEAM_PLAY = ConvertGameType(64) constant gametype GAME_TYPE_FOUR_TEAM_PLAY = ConvertGameType(128) constant mapflag MAP_FOG_HIDE_TERRAIN = ConvertMapFlag(1) constant mapflag MAP_FOG_MAP_EXPLORED = ConvertMapFlag(2) constant mapflag MAP_FOG_ALWAYS_VISIBLE = ConvertMapFlag(4) constant mapflag MAP_USE_HANDICAPS = ConvertMapFlag(8) constant mapflag MAP_OBSERVERS = ConvertMapFlag(16) constant mapflag MAP_OBSERVERS_ON_DEATH = ConvertMapFlag(32) constant mapflag MAP_FIXED_COLORS = ConvertMapFlag(128) constant mapflag MAP_LOCK_RESOURCE_TRADING = ConvertMapFlag(256) constant mapflag MAP_RESOURCE_TRADING_ALLIES_ONLY = ConvertMapFlag(512) constant mapflag MAP_LOCK_ALLIANCE_CHANGES = ConvertMapFlag(1024) constant mapflag MAP_ALLIANCE_CHANGES_HIDDEN = ConvertMapFlag(2048) constant mapflag MAP_CHEATS = ConvertMapFlag(4096) constant mapflag MAP_CHEATS_HIDDEN = ConvertMapFlag(8192) constant mapflag MAP_LOCK_SPEED = ConvertMapFlag(8192*2) constant mapflag MAP_LOCK_RANDOM_SEED = ConvertMapFlag(8192*4) constant mapflag MAP_SHARED_ADVANCED_CONTROL = ConvertMapFlag(8192*8) constant mapflag MAP_RANDOM_HERO = ConvertMapFlag(8192*16) constant mapflag MAP_RANDOM_RACES = ConvertMapFlag(8192*32) constant mapflag MAP_RELOADED = ConvertMapFlag(8192*64) constant placement MAP_PLACEMENT_RANDOM = ConvertPlacement(0) // random among all slots constant placement MAP_PLACEMENT_FIXED = ConvertPlacement(1) // player 0 in start loc 0... constant placement MAP_PLACEMENT_USE_MAP_SETTINGS = ConvertPlacement(2) // whatever was specified by the script constant placement MAP_PLACEMENT_TEAMS_TOGETHER = ConvertPlacement(3) // random with allies next to each other constant startlocprio MAP_LOC_PRIO_LOW = ConvertStartLocPrio(0) constant startlocprio MAP_LOC_PRIO_HIGH = ConvertStartLocPrio(1) constant startlocprio MAP_LOC_PRIO_NOT = ConvertStartLocPrio(2) constant mapdensity MAP_DENSITY_NONE = ConvertMapDensity(0) constant mapdensity MAP_DENSITY_LIGHT = ConvertMapDensity(1) constant mapdensity MAP_DENSITY_MEDIUM = ConvertMapDensity(2) constant mapdensity MAP_DENSITY_HEAVY = ConvertMapDensity(3) constant gamedifficulty MAP_DIFFICULTY_EASY = ConvertGameDifficulty(0) constant gamedifficulty MAP_DIFFICULTY_NORMAL = ConvertGameDifficulty(1) constant gamedifficulty MAP_DIFFICULTY_HARD = ConvertGameDifficulty(2) constant gamedifficulty MAP_DIFFICULTY_INSANE = ConvertGameDifficulty(3) constant gamespeed MAP_SPEED_SLOWEST = ConvertGameSpeed(0) constant gamespeed MAP_SPEED_SLOW = ConvertGameSpeed(1) constant gamespeed MAP_SPEED_NORMAL = ConvertGameSpeed(2) constant gamespeed MAP_SPEED_FAST = ConvertGameSpeed(3) constant gamespeed MAP_SPEED_FASTEST = ConvertGameSpeed(4) constant playerslotstate PLAYER_SLOT_STATE_EMPTY = ConvertPlayerSlotState(0) constant playerslotstate PLAYER_SLOT_STATE_PLAYING = ConvertPlayerSlotState(1) constant playerslotstate PLAYER_SLOT_STATE_LEFT = ConvertPlayerSlotState(2) //=================================================== // Sound Constants //=================================================== constant volumegroup SOUND_VOLUMEGROUP_UNITMOVEMENT = ConvertVolumeGroup(0) constant volumegroup SOUND_VOLUMEGROUP_UNITSOUNDS = ConvertVolumeGroup(1) constant volumegroup SOUND_VOLUMEGROUP_COMBAT = ConvertVolumeGroup(2) constant volumegroup SOUND_VOLUMEGROUP_SPELLS = ConvertVolumeGroup(3) constant volumegroup SOUND_VOLUMEGROUP_UI = ConvertVolumeGroup(4) constant volumegroup SOUND_VOLUMEGROUP_MUSIC = ConvertVolumeGroup(5) constant volumegroup SOUND_VOLUMEGROUP_AMBIENTSOUNDS = ConvertVolumeGroup(6) constant volumegroup SOUND_VOLUMEGROUP_FIRE = ConvertVolumeGroup(7) //=================================================== // Game, Player, and Unit States // // For use with TriggerRegister<X>StateEvent // //=================================================== constant igamestate GAME_STATE_DIVINE_INTERVENTION = ConvertIGameState(0) constant igamestate GAME_STATE_DISCONNECTED = ConvertIGameState(1) constant fgamestate GAME_STATE_TIME_OF_DAY = ConvertFGameState(2) constant playerstate PLAYER_STATE_GAME_RESULT = ConvertPlayerState(0) // current resource levels // constant playerstate PLAYER_STATE_RESOURCE_GOLD = ConvertPlayerState(1) constant playerstate PLAYER_STATE_RESOURCE_LUMBER = ConvertPlayerState(2) constant playerstate PLAYER_STATE_RESOURCE_HERO_TOKENS = ConvertPlayerState(3) constant playerstate PLAYER_STATE_RESOURCE_FOOD_CAP = ConvertPlayerState(4) constant playerstate PLAYER_STATE_RESOURCE_FOOD_USED = ConvertPlayerState(5) constant playerstate PLAYER_STATE_FOOD_CAP_CEILING = ConvertPlayerState(6) constant playerstate PLAYER_STATE_GIVES_BOUNTY = ConvertPlayerState(7) constant playerstate PLAYER_STATE_ALLIED_VICTORY = ConvertPlayerState(8) constant playerstate PLAYER_STATE_PLACED = ConvertPlayerState(9) constant playerstate PLAYER_STATE_OBSERVER_ON_DEATH = ConvertPlayerState(10) constant playerstate PLAYER_STATE_OBSERVER = ConvertPlayerState(11) constant playerstate PLAYER_STATE_UNFOLLOWABLE = ConvertPlayerState(12) // taxation rate for each resource // constant playerstate PLAYER_STATE_GOLD_UPKEEP_RATE = ConvertPlayerState(13) constant playerstate PLAYER_STATE_LUMBER_UPKEEP_RATE = ConvertPlayerState(14) // cumulative resources collected by the player during the mission // constant playerstate PLAYER_STATE_GOLD_GATHERED = ConvertPlayerState(15) constant playerstate PLAYER_STATE_LUMBER_GATHERED = ConvertPlayerState(16) constant playerstate PLAYER_STATE_NO_CREEP_SLEEP = ConvertPlayerState(25) constant unitstate UNIT_STATE_LIFE = ConvertUnitState(0) constant unitstate UNIT_STATE_MAX_LIFE = ConvertUnitState(1) constant unitstate UNIT_STATE_MANA = ConvertUnitState(2) constant unitstate UNIT_STATE_MAX_MANA = ConvertUnitState(3) constant aidifficulty AI_DIFFICULTY_NEWBIE = ConvertAIDifficulty(0) constant aidifficulty AI_DIFFICULTY_NORMAL = ConvertAIDifficulty(1) constant aidifficulty AI_DIFFICULTY_INSANE = ConvertAIDifficulty(2) // player score values constant playerscore PLAYER_SCORE_UNITS_TRAINED = ConvertPlayerScore(0) constant playerscore PLAYER_SCORE_UNITS_KILLED = ConvertPlayerScore(1) constant playerscore PLAYER_SCORE_STRUCT_BUILT = ConvertPlayerScore(2) constant playerscore PLAYER_SCORE_STRUCT_RAZED = ConvertPlayerScore(3) constant playerscore PLAYER_SCORE_TECH_PERCENT = ConvertPlayerScore(4) constant playerscore PLAYER_SCORE_FOOD_MAXPROD = ConvertPlayerScore(5) constant playerscore PLAYER_SCORE_FOOD_MAXUSED = ConvertPlayerScore(6) constant playerscore PLAYER_SCORE_HEROES_KILLED = ConvertPlayerScore(7) constant playerscore PLAYER_SCORE_ITEMS_GAINED = ConvertPlayerScore(8) constant playerscore PLAYER_SCORE_MERCS_HIRED = ConvertPlayerScore(9) constant playerscore PLAYER_SCORE_GOLD_MINED_TOTAL = ConvertPlayerScore(10) constant playerscore PLAYER_SCORE_GOLD_MINED_UPKEEP = ConvertPlayerScore(11) constant playerscore PLAYER_SCORE_GOLD_LOST_UPKEEP = ConvertPlayerScore(12) constant playerscore PLAYER_SCORE_GOLD_LOST_TAX = ConvertPlayerScore(13) constant playerscore PLAYER_SCORE_GOLD_GIVEN = ConvertPlayerScore(14) constant playerscore PLAYER_SCORE_GOLD_RECEIVED = ConvertPlayerScore(15) constant playerscore PLAYER_SCORE_LUMBER_TOTAL = ConvertPlayerScore(16) constant playerscore PLAYER_SCORE_LUMBER_LOST_UPKEEP = ConvertPlayerScore(17) constant playerscore PLAYER_SCORE_LUMBER_LOST_TAX = ConvertPlayerScore(18) constant playerscore PLAYER_SCORE_LUMBER_GIVEN = ConvertPlayerScore(19) constant playerscore PLAYER_SCORE_LUMBER_RECEIVED = ConvertPlayerScore(20) constant playerscore PLAYER_SCORE_UNIT_TOTAL = ConvertPlayerScore(21) constant playerscore PLAYER_SCORE_HERO_TOTAL = ConvertPlayerScore(22) constant playerscore PLAYER_SCORE_RESOURCE_TOTAL = ConvertPlayerScore(23) constant playerscore PLAYER_SCORE_TOTAL = ConvertPlayerScore(24) //=================================================== // Game, Player and Unit Events // // When an event causes a trigger to fire these // values allow the action code to determine which // event was dispatched and therefore which set of // native functions should be used to get information // about the event. // // Do NOT change the order or value of these constants // without insuring that the JASS_GAME_EVENTS_WAR3 enum // is changed to match. // //=================================================== //=================================================== // For use with TriggerRegisterGameEvent //=================================================== constant gameevent EVENT_GAME_VICTORY = ConvertGameEvent(0) constant gameevent EVENT_GAME_END_LEVEL = ConvertGameEvent(1) constant gameevent EVENT_GAME_VARIABLE_LIMIT = ConvertGameEvent(2) constant gameevent EVENT_GAME_STATE_LIMIT = ConvertGameEvent(3) constant gameevent EVENT_GAME_TIMER_EXPIRED = ConvertGameEvent(4) constant gameevent EVENT_GAME_ENTER_REGION = ConvertGameEvent(5) constant gameevent EVENT_GAME_LEAVE_REGION = ConvertGameEvent(6) constant gameevent EVENT_GAME_TRACKABLE_HIT = ConvertGameEvent(7) constant gameevent EVENT_GAME_TRACKABLE_TRACK = ConvertGameEvent(8) constant gameevent EVENT_GAME_SHOW_SKILL = ConvertGameEvent(9) constant gameevent EVENT_GAME_BUILD_SUBMENU = ConvertGameEvent(10) //=================================================== // For use with TriggerRegisterPlayerEvent //=================================================== constant playerevent EVENT_PLAYER_STATE_LIMIT = ConvertPlayerEvent(11) constant playerevent EVENT_PLAYER_ALLIANCE_CHANGED = ConvertPlayerEvent(12) constant playerevent EVENT_PLAYER_DEFEAT = ConvertPlayerEvent(13) constant playerevent EVENT_PLAYER_VICTORY = ConvertPlayerEvent(14) constant playerevent EVENT_PLAYER_LEAVE = ConvertPlayerEvent(15) constant playerevent EVENT_PLAYER_CHAT = ConvertPlayerEvent(16) constant playerevent EVENT_PLAYER_END_CINEMATIC = ConvertPlayerEvent(17) //=================================================== // For use with TriggerRegisterPlayerUnitEvent //=================================================== constant playerunitevent EVENT_PLAYER_UNIT_ATTACKED = ConvertPlayerUnitEvent(18) constant playerunitevent EVENT_PLAYER_UNIT_RESCUED = ConvertPlayerUnitEvent(19) constant playerunitevent EVENT_PLAYER_UNIT_DEATH = ConvertPlayerUnitEvent(20) constant playerunitevent EVENT_PLAYER_UNIT_DECAY = ConvertPlayerUnitEvent(21) constant playerunitevent EVENT_PLAYER_UNIT_DETECTED = ConvertPlayerUnitEvent(22) constant playerunitevent EVENT_PLAYER_UNIT_HIDDEN = ConvertPlayerUnitEvent(23) constant playerunitevent EVENT_PLAYER_UNIT_SELECTED = ConvertPlayerUnitEvent(24) constant playerunitevent EVENT_PLAYER_UNIT_DESELECTED = ConvertPlayerUnitEvent(25) constant playerunitevent EVENT_PLAYER_UNIT_CONSTRUCT_START = ConvertPlayerUnitEvent(26) constant playerunitevent EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL = ConvertPlayerUnitEvent(27) constant playerunitevent EVENT_PLAYER_UNIT_CONSTRUCT_FINISH = ConvertPlayerUnitEvent(28) constant playerunitevent EVENT_PLAYER_UNIT_UPGRADE_START = ConvertPlayerUnitEvent(29) constant playerunitevent EVENT_PLAYER_UNIT_UPGRADE_CANCEL = ConvertPlayerUnitEvent(30) constant playerunitevent EVENT_PLAYER_UNIT_UPGRADE_FINISH = ConvertPlayerUnitEvent(31) constant playerunitevent EVENT_PLAYER_UNIT_TRAIN_START = ConvertPlayerUnitEvent(32) constant playerunitevent EVENT_PLAYER_UNIT_TRAIN_CANCEL = ConvertPlayerUnitEvent(33) constant playerunitevent EVENT_PLAYER_UNIT_TRAIN_FINISH = ConvertPlayerUnitEvent(34) constant playerunitevent EVENT_PLAYER_UNIT_RESEARCH_START = ConvertPlayerUnitEvent(35) constant playerunitevent EVENT_PLAYER_UNIT_RESEARCH_CANCEL = ConvertPlayerUnitEvent(36) constant playerunitevent EVENT_PLAYER_UNIT_RESEARCH_FINISH = ConvertPlayerUnitEvent(37) constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_ORDER = ConvertPlayerUnitEvent(38) constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER = ConvertPlayerUnitEvent(39) constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER = ConvertPlayerUnitEvent(40) constant playerunitevent EVENT_PLAYER_UNIT_ISSUED_UNIT_ORDER = ConvertPlayerUnitEvent(40) // for compat constant playerunitevent EVENT_PLAYER_HERO_LEVEL = ConvertPlayerUnitEvent(41) constant playerunitevent EVENT_PLAYER_HERO_SKILL = ConvertPlayerUnitEvent(42) constant playerunitevent EVENT_PLAYER_HERO_REVIVABLE = ConvertPlayerUnitEvent(43) constant playerunitevent EVENT_PLAYER_HERO_REVIVE_START = ConvertPlayerUnitEvent(44) constant playerunitevent EVENT_PLAYER_HERO_REVIVE_CANCEL = ConvertPlayerUnitEvent(45) constant playerunitevent EVENT_PLAYER_HERO_REVIVE_FINISH = ConvertPlayerUnitEvent(46) constant playerunitevent EVENT_PLAYER_UNIT_SUMMON = ConvertPlayerUnitEvent(47) constant playerunitevent EVENT_PLAYER_UNIT_DROP_ITEM = ConvertPlayerUnitEvent(48) constant playerunitevent EVENT_PLAYER_UNIT_PICKUP_ITEM = ConvertPlayerUnitEvent(49) constant playerunitevent EVENT_PLAYER_UNIT_USE_ITEM = ConvertPlayerUnitEvent(50) constant playerunitevent EVENT_PLAYER_UNIT_LOADED = ConvertPlayerUnitEvent(51) //=================================================== // For use with TriggerRegisterUnitEvent //=================================================== constant unitevent EVENT_UNIT_DAMAGED = ConvertUnitEvent(52) constant unitevent EVENT_UNIT_DEATH = ConvertUnitEvent(53) constant unitevent EVENT_UNIT_DECAY = ConvertUnitEvent(54) constant unitevent EVENT_UNIT_DETECTED = ConvertUnitEvent(55) constant unitevent EVENT_UNIT_HIDDEN = ConvertUnitEvent(56) constant unitevent EVENT_UNIT_SELECTED = ConvertUnitEvent(57) constant unitevent EVENT_UNIT_DESELECTED = ConvertUnitEvent(58) constant unitevent EVENT_UNIT_STATE_LIMIT = ConvertUnitEvent(59) // Events which may have a filter for the "other unit" // constant unitevent EVENT_UNIT_ACQUIRED_TARGET = ConvertUnitEvent(60) constant unitevent EVENT_UNIT_TARGET_IN_RANGE = ConvertUnitEvent(61) constant unitevent EVENT_UNIT_ATTACKED = ConvertUnitEvent(62) constant unitevent EVENT_UNIT_RESCUED = ConvertUnitEvent(63) constant unitevent EVENT_UNIT_CONSTRUCT_CANCEL = ConvertUnitEvent(64) constant unitevent EVENT_UNIT_CONSTRUCT_FINISH = ConvertUnitEvent(65) constant unitevent EVENT_UNIT_UPGRADE_START = ConvertUnitEvent(66) constant unitevent EVENT_UNIT_UPGRADE_CANCEL = ConvertUnitEvent(67) constant unitevent EVENT_UNIT_UPGRADE_FINISH = ConvertUnitEvent(68) // Events which involve the specified unit performing // training of other units // constant unitevent EVENT_UNIT_TRAIN_START = ConvertUnitEvent(69) constant unitevent EVENT_UNIT_TRAIN_CANCEL = ConvertUnitEvent(70) constant unitevent EVENT_UNIT_TRAIN_FINISH = ConvertUnitEvent(71) constant unitevent EVENT_UNIT_RESEARCH_START = ConvertUnitEvent(72) constant unitevent EVENT_UNIT_RESEARCH_CANCEL = ConvertUnitEvent(73) constant unitevent EVENT_UNIT_RESEARCH_FINISH = ConvertUnitEvent(74) constant unitevent EVENT_UNIT_ISSUED_ORDER = ConvertUnitEvent(75) constant unitevent EVENT_UNIT_ISSUED_POINT_ORDER = ConvertUnitEvent(76) constant unitevent EVENT_UNIT_ISSUED_TARGET_ORDER = ConvertUnitEvent(77) constant unitevent EVENT_UNIT_HERO_LEVEL = ConvertUnitEvent(78) constant unitevent EVENT_UNIT_HERO_SKILL = ConvertUnitEvent(79) constant unitevent EVENT_UNIT_HERO_REVIVABLE = ConvertUnitEvent(80) constant unitevent EVENT_UNIT_HERO_REVIVE_START = ConvertUnitEvent(81) constant unitevent EVENT_UNIT_HERO_REVIVE_CANCEL = ConvertUnitEvent(82) constant unitevent EVENT_UNIT_HERO_REVIVE_FINISH = ConvertUnitEvent(83) constant unitevent EVENT_UNIT_SUMMON = ConvertUnitEvent(84) constant unitevent EVENT_UNIT_DROP_ITEM = ConvertUnitEvent(85) constant unitevent EVENT_UNIT_PICKUP_ITEM = ConvertUnitEvent(86) constant unitevent EVENT_UNIT_USE_ITEM = ConvertUnitEvent(87) constant unitevent EVENT_UNIT_LOADED = ConvertUnitEvent(88) constant widgetevent EVENT_WIDGET_DEATH = ConvertWidgetEvent(89) constant dialogevent EVENT_DIALOG_BUTTON_CLICK = ConvertDialogEvent(90) constant dialogevent EVENT_DIALOG_CLICK = ConvertDialogEvent(91) //=================================================== // Frozen Throne Expansion Events // Need to be added here to preserve compat //=================================================== //=================================================== // For use with TriggerRegisterGameEvent //=================================================== constant gameevent EVENT_GAME_LOADED = ConvertGameEvent(256) constant gameevent EVENT_GAME_TOURNAMENT_FINISH_SOON = ConvertGameEvent(257) constant gameevent EVENT_GAME_TOURNAMENT_FINISH_NOW = ConvertGameEvent(258) constant gameevent EVENT_GAME_SAVE = ConvertGameEvent(259) //=================================================== // For use with TriggerRegisterPlayerEvent //=================================================== constant playerevent EVENT_PLAYER_ARROW_LEFT_DOWN = ConvertPlayerEvent(261) constant playerevent EVENT_PLAYER_ARROW_LEFT_UP = ConvertPlayerEvent(262) constant playerevent EVENT_PLAYER_ARROW_RIGHT_DOWN = ConvertPlayerEvent(263) constant playerevent EVENT_PLAYER_ARROW_RIGHT_UP = ConvertPlayerEvent(264) constant playerevent EVENT_PLAYER_ARROW_DOWN_DOWN = ConvertPlayerEvent(265) constant playerevent EVENT_PLAYER_ARROW_DOWN_UP = ConvertPlayerEvent(266) constant playerevent EVENT_PLAYER_ARROW_UP_DOWN = ConvertPlayerEvent(267) constant playerevent EVENT_PLAYER_ARROW_UP_UP = ConvertPlayerEvent(268) constant playerevent EVENT_PLAYER_MOUSE_DOWN = ConvertPlayerEvent(269) constant playerevent EVENT_PLAYER_MOUSE_UP = ConvertPlayerEvent(270) constant playerevent EVENT_PLAYER_MOUSE_MOVE = ConvertPlayerEvent(271) //=================================================== // For use with TriggerRegisterPlayerUnitEvent //=================================================== constant playerunitevent EVENT_PLAYER_UNIT_SELL = ConvertPlayerUnitEvent(272) constant playerunitevent EVENT_PLAYER_UNIT_CHANGE_OWNER = ConvertPlayerUnitEvent(273) constant playerunitevent EVENT_PLAYER_UNIT_SELL_ITEM = ConvertPlayerUnitEvent(274) constant playerunitevent EVENT_PLAYER_UNIT_SPELL_CHANNEL = ConvertPlayerUnitEvent(275) constant playerunitevent EVENT_PLAYER_UNIT_SPELL_CAST = ConvertPlayerUnitEvent(276) constant playerunitevent EVENT_PLAYER_UNIT_SPELL_EFFECT = ConvertPlayerUnitEvent(277) constant playerunitevent EVENT_PLAYER_UNIT_SPELL_FINISH = ConvertPlayerUnitEvent(278) constant playerunitevent EVENT_PLAYER_UNIT_SPELL_ENDCAST = ConvertPlayerUnitEvent(279) constant playerunitevent EVENT_PLAYER_UNIT_PAWN_ITEM = ConvertPlayerUnitEvent(280) //=================================================== // For use with TriggerRegisterUnitEvent //=================================================== constant unitevent EVENT_UNIT_SELL = ConvertUnitEvent(289) constant unitevent EVENT_UNIT_CHANGE_OWNER = ConvertUnitEvent(290) constant unitevent EVENT_UNIT_SELL_ITEM = ConvertUnitEvent(291) constant unitevent EVENT_UNIT_SPELL_CHANNEL = ConvertUnitEvent(292) constant unitevent EVENT_UNIT_SPELL_CAST = ConvertUnitEvent(293) constant unitevent EVENT_UNIT_SPELL_EFFECT = ConvertUnitEvent(294) constant unitevent EVENT_UNIT_SPELL_FINISH = ConvertUnitEvent(295) constant unitevent EVENT_UNIT_SPELL_ENDCAST = ConvertUnitEvent(296) constant unitevent EVENT_UNIT_PAWN_ITEM = ConvertUnitEvent(297) //=================================================== // Limit Event API constants // variable, player state, game state, and unit state events // ( do NOT change the order of these... ) //=================================================== constant limitop LESS_THAN = ConvertLimitOp(0) constant limitop LESS_THAN_OR_EQUAL = ConvertLimitOp(1) constant limitop EQUAL = ConvertLimitOp(2) constant limitop GREATER_THAN_OR_EQUAL = ConvertLimitOp(3) constant limitop GREATER_THAN = ConvertLimitOp(4) constant limitop NOT_EQUAL = ConvertLimitOp(5) //=================================================== // Unit Type Constants for use with IsUnitType() //=================================================== constant unittype UNIT_TYPE_HERO = ConvertUnitType(0) constant unittype UNIT_TYPE_DEAD = ConvertUnitType(1) constant unittype UNIT_TYPE_STRUCTURE = ConvertUnitType(2) constant unittype UNIT_TYPE_FLYING = ConvertUnitType(3) constant unittype UNIT_TYPE_GROUND = ConvertUnitType(4) constant unittype UNIT_TYPE_ATTACKS_FLYING = ConvertUnitType(5) constant unittype UNIT_TYPE_ATTACKS_GROUND = ConvertUnitType(6) constant unittype UNIT_TYPE_MELEE_ATTACKER = ConvertUnitType(7) constant unittype UNIT_TYPE_RANGED_ATTACKER = ConvertUnitType(8) constant unittype UNIT_TYPE_GIANT = ConvertUnitType(9) constant unittype UNIT_TYPE_SUMMONED = ConvertUnitType(10) constant unittype UNIT_TYPE_STUNNED = ConvertUnitType(11) constant unittype UNIT_TYPE_PLAGUED = ConvertUnitType(12) constant unittype UNIT_TYPE_SNARED = ConvertUnitType(13) constant unittype UNIT_TYPE_UNDEAD = ConvertUnitType(14) constant unittype UNIT_TYPE_MECHANICAL = ConvertUnitType(15) constant unittype UNIT_TYPE_PEON = ConvertUnitType(16) constant unittype UNIT_TYPE_SAPPER = ConvertUnitType(17) constant unittype UNIT_TYPE_TOWNHALL = ConvertUnitType(18) constant unittype UNIT_TYPE_ANCIENT = ConvertUnitType(19) constant unittype UNIT_TYPE_TAUREN = ConvertUnitType(20) constant unittype UNIT_TYPE_POISONED = ConvertUnitType(21) constant unittype UNIT_TYPE_POLYMORPHED = ConvertUnitType(22) constant unittype UNIT_TYPE_SLEEPING = ConvertUnitType(23) constant unittype UNIT_TYPE_RESISTANT = ConvertUnitType(24) constant unittype UNIT_TYPE_ETHEREAL = ConvertUnitType(25) constant unittype UNIT_TYPE_MAGIC_IMMUNE = ConvertUnitType(26) //=================================================== // Unit Type Constants for use with ChooseRandomItemEx() //=================================================== constant itemtype ITEM_TYPE_PERMANENT = ConvertItemType(0) constant itemtype ITEM_TYPE_CHARGED = ConvertItemType(1) constant itemtype ITEM_TYPE_POWERUP = ConvertItemType(2) constant itemtype ITEM_TYPE_ARTIFACT = ConvertItemType(3) constant itemtype ITEM_TYPE_PURCHASABLE = ConvertItemType(4) constant itemtype ITEM_TYPE_CAMPAIGN = ConvertItemType(5) constant itemtype ITEM_TYPE_MISCELLANEOUS = ConvertItemType(6) constant itemtype ITEM_TYPE_UNKNOWN = ConvertItemType(7) constant itemtype ITEM_TYPE_ANY = ConvertItemType(8) // Deprecated, should use ITEM_TYPE_POWERUP constant itemtype ITEM_TYPE_TOME = ConvertItemType(2) //=================================================== // Animatable Camera Fields //=================================================== constant camerafield CAMERA_FIELD_TARGET_DISTANCE = ConvertCameraField(0) constant camerafield CAMERA_FIELD_FARZ = ConvertCameraField(1) constant camerafield CAMERA_FIELD_ANGLE_OF_ATTACK = ConvertCameraField(2) constant camerafield CAMERA_FIELD_FIELD_OF_VIEW = ConvertCameraField(3) constant camerafield CAMERA_FIELD_ROLL = ConvertCameraField(4) constant camerafield CAMERA_FIELD_ROTATION = ConvertCameraField(5) constant camerafield CAMERA_FIELD_ZOFFSET = ConvertCameraField(6) constant blendmode BLEND_MODE_NONE = ConvertBlendMode(0) constant blendmode BLEND_MODE_DONT_CARE = ConvertBlendMode(0) constant blendmode BLEND_MODE_KEYALPHA = ConvertBlendMode(1) constant blendmode BLEND_MODE_BLEND = ConvertBlendMode(2) constant blendmode BLEND_MODE_ADDITIVE = ConvertBlendMode(3) constant blendmode BLEND_MODE_MODULATE = ConvertBlendMode(4) constant blendmode BLEND_MODE_MODULATE_2X = ConvertBlendMode(5) constant raritycontrol RARITY_FREQUENT = ConvertRarityControl(0) constant raritycontrol RARITY_RARE = ConvertRarityControl(1) constant texmapflags TEXMAP_FLAG_NONE = ConvertTexMapFlags(0) constant texmapflags TEXMAP_FLAG_WRAP_U = ConvertTexMapFlags(1) constant texmapflags TEXMAP_FLAG_WRAP_V = ConvertTexMapFlags(2) constant texmapflags TEXMAP_FLAG_WRAP_UV = ConvertTexMapFlags(3) constant fogstate FOG_OF_WAR_MASKED = ConvertFogState(1) constant fogstate FOG_OF_WAR_FOGGED = ConvertFogState(2) constant fogstate FOG_OF_WAR_VISIBLE = ConvertFogState(4) //=================================================== // Camera Margin constants for use with GetCameraMargin //=================================================== constant integer CAMERA_MARGIN_LEFT = 0 constant integer CAMERA_MARGIN_RIGHT = 1 constant integer CAMERA_MARGIN_TOP = 2 constant integer CAMERA_MARGIN_BOTTOM = 3 //=================================================== // Effect API constants //=================================================== constant effecttype EFFECT_TYPE_EFFECT = ConvertEffectType(0) constant effecttype EFFECT_TYPE_TARGET = ConvertEffectType(1) constant effecttype EFFECT_TYPE_CASTER = ConvertEffectType(2) constant effecttype EFFECT_TYPE_SPECIAL = ConvertEffectType(3) constant effecttype EFFECT_TYPE_AREA_EFFECT = ConvertEffectType(4) constant effecttype EFFECT_TYPE_MISSILE = ConvertEffectType(5) constant effecttype EFFECT_TYPE_LIGHTNING = ConvertEffectType(6) constant soundtype SOUND_TYPE_EFFECT = ConvertSoundType(0) constant soundtype SOUND_TYPE_EFFECT_LOOPED = ConvertSoundType(1) endglobals //============================================================================ // MathAPI native Deg2Rad takes real degrees returns real native Rad2Deg takes real radians returns real native Sin takes real radians returns real native Cos takes real radians returns real native Tan takes real radians returns real // Expect values between -1 and 1...returns 0 for invalid input native Asin takes real y returns real native Acos takes real x returns real native Atan takes real x returns real // Returns 0 if x and y are both 0 native Atan2 takes real y, real x returns real // Returns 0 if x <= 0 native SquareRoot takes real x returns real // computes x to the y power // y == 0.0 => 1 // x ==0.0 and y < 0 => 0 // native Pow takes real x, real power returns real //============================================================================ // String Utility API native I2R takes integer i returns real native R2I takes real r returns integer native I2S takes integer i returns string native R2S takes real r returns string native R2SW takes real r, integer width, integer precision returns string native S2I takes string s returns integer native S2R takes string s returns real native GetHandleId takes handle h returns integer native SubString takes string source, integer start, integer end returns string native StringLength takes string s returns integer native StringCase takes string source, boolean upper returns string native StringHash takes string s returns integer native GetLocalizedString takes string source returns string native GetLocalizedHotkey takes string source returns integer //============================================================================ // Map Setup API // // These are native functions for describing the map configuration // these funcs should only be used in the "config" function of // a map script. The functions should also be called in this order // ( i.e. call SetPlayers before SetPlayerColor... // native SetMapName takes string name returns nothing native SetMapDescription takes string description returns nothing native SetTeams takes integer teamcount returns nothing native SetPlayers takes integer playercount returns nothing native DefineStartLocation takes integer whichStartLoc, real x, real y returns nothing native DefineStartLocationLoc takes integer whichStartLoc, location whichLocation returns nothing native SetStartLocPrioCount takes integer whichStartLoc, integer prioSlotCount returns nothing native SetStartLocPrio takes integer whichStartLoc, integer prioSlotIndex, integer otherStartLocIndex, startlocprio priority returns nothing native GetStartLocPrioSlot takes integer whichStartLoc, integer prioSlotIndex returns integer native GetStartLocPrio takes integer whichStartLoc, integer prioSlotIndex returns startlocprio native SetGameTypeSupported takes gametype whichGameType, boolean value returns nothing native SetMapFlag takes mapflag whichMapFlag, boolean value returns nothing native SetGamePlacement takes placement whichPlacementType returns nothing native SetGameSpeed takes gamespeed whichspeed returns nothing native SetGameDifficulty takes gamedifficulty whichdifficulty returns nothing native SetResourceDensity takes mapdensity whichdensity returns nothing native SetCreatureDensity takes mapdensity whichdensity returns nothing native GetTeams takes nothing returns integer native GetPlayers takes nothing returns integer native IsGameTypeSupported takes gametype whichGameType returns boolean native GetGameTypeSelected takes nothing returns gametype native IsMapFlagSet takes mapflag whichMapFlag returns boolean constant native GetGamePlacement takes nothing returns placement constant native GetGameSpeed takes nothing returns gamespeed constant native GetGameDifficulty takes nothing returns gamedifficulty constant native GetResourceDensity takes nothing returns mapdensity constant native GetCreatureDensity takes nothing returns mapdensity constant native GetStartLocationX takes integer whichStartLocation returns real constant native GetStartLocationY takes integer whichStartLocation returns real constant native GetStartLocationLoc takes integer whichStartLocation returns location native SetPlayerTeam takes player whichPlayer, integer whichTeam returns nothing native SetPlayerStartLocation takes player whichPlayer, integer startLocIndex returns nothing // forces player to have the specified start loc and marks the start loc as occupied // which removes it from consideration for subsequently placed players // ( i.e. you can use this to put people in a fixed loc and then // use random placement for any unplaced players etc ) native ForcePlayerStartLocation takes player whichPlayer, integer startLocIndex returns nothing native SetPlayerColor takes player whichPlayer, playercolor color returns nothing native SetPlayerAlliance takes player sourcePlayer, player otherPlayer, alliancetype whichAllianceSetting, boolean value returns nothing native SetPlayerTaxRate takes player sourcePlayer, player otherPlayer, playerstate whichResource, integer rate returns nothing native SetPlayerRacePreference takes player whichPlayer, racepreference whichRacePreference returns nothing native SetPlayerRaceSelectable takes player whichPlayer, boolean value returns nothing native SetPlayerController takes player whichPlayer, mapcontrol controlType returns nothing native SetPlayerName takes player whichPlayer, string name returns nothing native SetPlayerOnScoreScreen takes player whichPlayer, boolean flag returns nothing native GetPlayerTeam takes player whichPlayer returns integer native GetPlayerStartLocation takes player whichPlayer returns integer native GetPlayerColor takes player whichPlayer returns playercolor native GetPlayerSelectable takes player whichPlayer returns boolean native GetPlayerController takes player whichPlayer returns mapcontrol native GetPlayerSlotState takes player whichPlayer returns playerslotstate native GetPlayerTaxRate takes player sourcePlayer, player otherPlayer, playerstate whichResource returns integer native IsPlayerRacePrefSet takes player whichPlayer, racepreference pref returns boolean native GetPlayerName takes player whichPlayer returns string //============================================================================ // Timer API // native CreateTimer takes nothing returns timer native DestroyTimer takes timer whichTimer returns nothing native TimerStart takes timer whichTimer, real timeout, boolean periodic, code handlerFunc returns nothing native TimerGetElapsed takes timer whichTimer returns real native TimerGetRemaining takes timer whichTimer returns real native TimerGetTimeout takes timer whichTimer returns real native PauseTimer takes timer whichTimer returns nothing native ResumeTimer takes timer whichTimer returns nothing native GetExpiredTimer takes nothing returns timer //============================================================================ // Group API // native CreateGroup takes nothing returns group native DestroyGroup takes group whichGroup returns nothing native GroupAddUnit takes group whichGroup, unit whichUnit returns nothing native GroupRemoveUnit takes group whichGroup, unit whichUnit returns nothing native GroupClear takes group whichGroup returns nothing native GroupEnumUnitsOfType takes group whichGroup, string unitname, boolexpr filter returns nothing native GroupEnumUnitsOfPlayer takes group whichGroup, player whichPlayer, boolexpr filter returns nothing native GroupEnumUnitsOfTypeCounted takes group whichGroup, string unitname, boolexpr filter, integer countLimit returns nothing native GroupEnumUnitsInRect takes group whichGroup, rect r, boolexpr filter returns nothing native GroupEnumUnitsInRectCounted takes group whichGroup, rect r, boolexpr filter, integer countLimit returns nothing native GroupEnumUnitsInRange takes group whichGroup, real x, real y, real radius, boolexpr filter returns nothing native GroupEnumUnitsInRangeOfLoc takes group whichGroup, location whichLocation, real radius, boolexpr filter returns nothing native GroupEnumUnitsInRangeCounted takes group whichGroup, real x, real y, real radius, boolexpr filter, integer countLimit returns nothing native GroupEnumUnitsInRangeOfLocCounted takes group whichGroup, location whichLocation, real radius, boolexpr filter, integer countLimit returns nothing native GroupEnumUnitsSelected takes group whichGroup, player whichPlayer, boolexpr filter returns nothing native GroupImmediateOrder takes group whichGroup, string order returns boolean native GroupImmediateOrderById takes group whichGroup, integer order returns boolean native GroupPointOrder takes group whichGroup, string order, real x, real y returns boolean native GroupPointOrderLoc takes group whichGroup, string order, location whichLocation returns boolean native GroupPointOrderById takes group whichGroup, integer order, real x, real y returns boolean native GroupPointOrderByIdLoc takes group whichGroup, integer order, location whichLocation returns boolean native GroupTargetOrder takes group whichGroup, string order, widget targetWidget returns boolean native GroupTargetOrderById takes group whichGroup, integer order, widget targetWidget returns boolean // This will be difficult to support with potentially disjoint, cell-based regions // as it would involve enumerating all the cells that are covered by a particularregion // a better implementation would be a trigger that adds relevant units as they enter // and removes them if they leave... native ForGroup takes group whichGroup, code callback returns nothing native FirstOfGroup takes group whichGroup returns unit //============================================================================ // Force API // native CreateForce takes nothing returns force native DestroyForce takes force whichForce returns nothing native ForceAddPlayer takes force whichForce, player whichPlayer returns nothing native ForceRemovePlayer takes force whichForce, player whichPlayer returns nothing native ForceClear takes force whichForce returns nothing native ForceEnumPlayers takes force whichForce, boolexpr filter returns nothing native ForceEnumPlayersCounted takes force whichForce, boolexpr filter, integer countLimit returns nothing native ForceEnumAllies takes force whichForce, player whichPlayer, boolexpr filter returns nothing native ForceEnumEnemies takes force whichForce, player whichPlayer, boolexpr filter returns nothing native ForForce takes force whichForce, code callback returns nothing //============================================================================ // Region and Location API // native Rect takes real minx, real miny, real maxx, real maxy returns rect native RectFromLoc takes location min, location max returns rect native RemoveRect takes rect whichRect returns nothing native SetRect takes rect whichRect, real minx, real miny, real maxx, real maxy returns nothing native SetRectFromLoc takes rect whichRect, location min, location max returns nothing native MoveRectTo takes rect whichRect, real newCenterX, real newCenterY returns nothing native MoveRectToLoc takes rect whichRect, location newCenterLoc returns nothing native GetRectCenterX takes rect whichRect returns real native GetRectCenterY takes rect whichRect returns real native GetRectMinX takes rect whichRect returns real native GetRectMinY takes rect whichRect returns real native GetRectMaxX takes rect whichRect returns real native GetRectMaxY takes rect whichRect returns real native CreateRegion takes nothing returns region native RemoveRegion takes region whichRegion returns nothing native RegionAddRect takes region whichRegion, rect r returns nothing native RegionClearRect takes region whichRegion, rect r returns nothing native RegionAddCell takes region whichRegion, real x, real y returns nothing native RegionAddCellAtLoc takes region whichRegion, location whichLocation returns nothing native RegionClearCell takes region whichRegion, real x, real y returns nothing native RegionClearCellAtLoc takes region whichRegion, location whichLocation returns nothing native Location takes real x, real y returns location native RemoveLocation takes location whichLocation returns nothing native MoveLocation takes location whichLocation, real newX, real newY returns nothing native GetLocationX takes location whichLocation returns real native GetLocationY takes location whichLocation returns real // This function is asynchronous. The values it returns are not guaranteed synchronous between each player. // If you attempt to use it in a synchronous manner, it may cause a desync. native GetLocationZ takes location whichLocation returns real native IsUnitInRegion takes region whichRegion, unit whichUnit returns boolean native IsPointInRegion takes region whichRegion, real x, real y returns boolean native IsLocationInRegion takes region whichRegion, location whichLocation returns boolean // Returns full map bounds, including unplayable borders, in world coordinates native GetWorldBounds takes nothing returns rect //============================================================================ // Native trigger interface // native CreateTrigger takes nothing returns trigger native DestroyTrigger takes trigger whichTrigger returns nothing native ResetTrigger takes trigger whichTrigger returns nothing native EnableTrigger takes trigger whichTrigger returns nothing native DisableTrigger takes trigger whichTrigger returns nothing native IsTriggerEnabled takes trigger whichTrigger returns boolean native TriggerWaitOnSleeps takes trigger whichTrigger, boolean flag returns nothing native IsTriggerWaitOnSleeps takes trigger whichTrigger returns boolean constant native GetFilterUnit takes nothing returns unit constant native GetEnumUnit takes nothing returns unit constant native GetFilterDestructable takes nothing returns destructable constant native GetEnumDestructable takes nothing returns destructable constant native GetFilterItem takes nothing returns item constant native GetEnumItem takes nothing returns item constant native GetFilterPlayer takes nothing returns player constant native GetEnumPlayer takes nothing returns player constant native GetTriggeringTrigger takes nothing returns trigger constant native GetTriggerEventId takes nothing returns eventid constant native GetTriggerEvalCount takes trigger whichTrigger returns integer constant native GetTriggerExecCount takes trigger whichTrigger returns integer native ExecuteFunc takes string funcName returns nothing //============================================================================ // Boolean Expr API ( for compositing trigger conditions and unit filter funcs...) //============================================================================ native And takes boolexpr operandA, boolexpr operandB returns boolexpr native Or takes boolexpr operandA, boolexpr operandB returns boolexpr native Not takes boolexpr operand returns boolexpr native Condition takes code func returns conditionfunc native DestroyCondition takes conditionfunc c returns nothing native Filter takes code func returns filterfunc native DestroyFilter takes filterfunc f returns nothing native DestroyBoolExpr takes boolexpr e returns nothing //============================================================================ // Trigger Game Event API //============================================================================ native TriggerRegisterVariableEvent takes trigger whichTrigger, string varName, limitop opcode, real limitval returns event // EVENT_GAME_VARIABLE_LIMIT //constant native string GetTriggeringVariableName takes nothing returns string // Creates it's own timer and triggers when it expires native TriggerRegisterTimerEvent takes trigger whichTrigger, real timeout, boolean periodic returns event // Triggers when the timer you tell it about expires native TriggerRegisterTimerExpireEvent takes trigger whichTrigger, timer t returns event native TriggerRegisterGameStateEvent takes trigger whichTrigger, gamestate whichState, limitop opcode, real limitval returns event native TriggerRegisterDialogEvent takes trigger whichTrigger, dialog whichDialog returns event native TriggerRegisterDialogButtonEvent takes trigger whichTrigger, button whichButton returns event // EVENT_GAME_STATE_LIMIT constant native GetEventGameState takes nothing returns gamestate native TriggerRegisterGameEvent takes trigger whichTrigger, gameevent whichGameEvent returns event // EVENT_GAME_VICTORY constant native GetWinningPlayer takes nothing returns player native TriggerRegisterEnterRegion takes trigger whichTrigger, region whichRegion, boolexpr filter returns event // EVENT_GAME_ENTER_REGION constant native GetTriggeringRegion takes nothing returns region constant native GetEnteringUnit takes nothing returns unit // EVENT_GAME_LEAVE_REGION native TriggerRegisterLeaveRegion takes trigger whichTrigger, region whichRegion, boolexpr filter returns event constant native GetLeavingUnit takes nothing returns unit native TriggerRegisterTrackableHitEvent takes trigger whichTrigger, trackable t returns event native TriggerRegisterTrackableTrackEvent takes trigger whichTrigger, trackable t returns event // EVENT_GAME_TRACKABLE_HIT // EVENT_GAME_TRACKABLE_TRACK constant native GetTriggeringTrackable takes nothing returns trackable // EVENT_DIALOG_BUTTON_CLICK constant native GetClickedButton takes nothing returns button constant native GetClickedDialog takes nothing returns dialog // EVENT_GAME_TOURNAMENT_FINISH_SOON constant native GetTournamentFinishSoonTimeRemaining takes nothing returns real constant native GetTournamentFinishNowRule takes nothing returns integer constant native GetTournamentFinishNowPlayer takes nothing returns player constant native GetTournamentScore takes player whichPlayer returns integer // EVENT_GAME_SAVE constant native GetSaveBasicFilename takes nothing returns string //============================================================================ // Trigger Player Based Event API //============================================================================ native TriggerRegisterPlayerEvent takes trigger whichTrigger, player whichPlayer, playerevent whichPlayerEvent returns event // EVENT_PLAYER_DEFEAT // EVENT_PLAYER_VICTORY constant native GetTriggerPlayer takes nothing returns player native TriggerRegisterPlayerUnitEvent takes trigger whichTrigger, player whichPlayer, playerunitevent whichPlayerUnitEvent, boolexpr filter returns event // EVENT_PLAYER_HERO_LEVEL // EVENT_UNIT_HERO_LEVEL constant native GetLevelingUnit takes nothing returns unit // EVENT_PLAYER_HERO_SKILL // EVENT_UNIT_HERO_SKILL constant native GetLearningUnit takes nothing returns unit constant native GetLearnedSkill takes nothing returns integer constant native GetLearnedSkillLevel takes nothing returns integer // EVENT_PLAYER_HERO_REVIVABLE constant native GetRevivableUnit takes nothing returns unit // EVENT_PLAYER_HERO_REVIVE_START // EVENT_PLAYER_HERO_REVIVE_CANCEL // EVENT_PLAYER_HERO_REVIVE_FINISH // EVENT_UNIT_HERO_REVIVE_START // EVENT_UNIT_HERO_REVIVE_CANCEL // EVENT_UNIT_HERO_REVIVE_FINISH constant native GetRevivingUnit takes nothing returns unit // EVENT_PLAYER_UNIT_ATTACKED constant native GetAttacker takes nothing returns unit // EVENT_PLAYER_UNIT_RESCUED constant native GetRescuer takes nothing returns unit // EVENT_PLAYER_UNIT_DEATH constant native GetDyingUnit takes nothing returns unit constant native GetKillingUnit takes nothing returns unit // EVENT_PLAYER_UNIT_DECAY constant native GetDecayingUnit takes nothing returns unit // EVENT_PLAYER_UNIT_SELECTED //constant native GetSelectedUnit takes nothing returns unit // EVENT_PLAYER_UNIT_CONSTRUCT_START constant native GetConstructingStructure takes nothing returns unit // EVENT_PLAYER_UNIT_CONSTRUCT_FINISH // EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL constant native GetCancelledStructure takes nothing returns unit constant native GetConstructedStructure takes nothing returns unit // EVENT_PLAYER_UNIT_RESEARCH_START // EVENT_PLAYER_UNIT_RESEARCH_CANCEL // EVENT_PLAYER_UNIT_RESEARCH_FINISH constant native GetResearchingUnit takes nothing returns unit constant native GetResearched takes nothing returns integer // EVENT_PLAYER_UNIT_TRAIN_START // EVENT_PLAYER_UNIT_TRAIN_CANCEL constant native GetTrainedUnitType takes nothing returns integer // EVENT_PLAYER_UNIT_TRAIN_FINISH constant native GetTrainedUnit takes nothing returns unit // EVENT_PLAYER_UNIT_DETECTED constant native GetDetectedUnit takes nothing returns unit // EVENT_PLAYER_UNIT_SUMMONED constant native GetSummoningUnit takes nothing returns unit constant native GetSummonedUnit takes nothing returns unit // EVENT_PLAYER_UNIT_LOADED constant native GetTransportUnit takes nothing returns unit constant native GetLoadedUnit takes nothing returns unit // EVENT_PLAYER_UNIT_SELL constant native GetSellingUnit takes nothing returns unit constant native GetSoldUnit takes nothing returns unit constant native GetBuyingUnit takes nothing returns unit // EVENT_PLAYER_UNIT_SELL_ITEM constant native GetSoldItem takes nothing returns item // EVENT_PLAYER_UNIT_CHANGE_OWNER constant native GetChangingUnit takes nothing returns unit constant native GetChangingUnitPrevOwner takes nothing returns player // EVENT_PLAYER_UNIT_DROP_ITEM // EVENT_PLAYER_UNIT_PICKUP_ITEM // EVENT_PLAYER_UNIT_USE_ITEM constant native GetManipulatingUnit takes nothing returns unit constant native GetManipulatedItem takes nothing returns item // EVENT_PLAYER_UNIT_ISSUED_ORDER constant native GetOrderedUnit takes nothing returns unit constant native GetIssuedOrderId takes nothing returns integer // EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER constant native GetOrderPointX takes nothing returns real constant native GetOrderPointY takes nothing returns real constant native GetOrderPointLoc takes nothing returns location // EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER constant native GetOrderTarget takes nothing returns widget constant native GetOrderTargetDestructable takes nothing returns destructable constant native GetOrderTargetItem takes nothing returns item constant native GetOrderTargetUnit takes nothing returns unit // EVENT_UNIT_SPELL_CHANNEL // EVENT_UNIT_SPELL_CAST // EVENT_UNIT_SPELL_EFFECT // EVENT_UNIT_SPELL_FINISH // EVENT_UNIT_SPELL_ENDCAST // EVENT_PLAYER_UNIT_SPELL_CHANNEL // EVENT_PLAYER_UNIT_SPELL_CAST // EVENT_PLAYER_UNIT_SPELL_EFFECT // EVENT_PLAYER_UNIT_SPELL_FINISH // EVENT_PLAYER_UNIT_SPELL_ENDCAST constant native GetSpellAbilityUnit takes nothing returns unit constant native GetSpellAbilityId takes nothing returns integer constant native GetSpellAbility takes nothing returns ability constant native GetSpellTargetLoc takes nothing returns location constant native GetSpellTargetX takes nothing returns real constant native GetSpellTargetY takes nothing returns real constant native GetSpellTargetDestructable takes nothing returns destructable constant native GetSpellTargetItem takes nothing returns item constant native GetSpellTargetUnit takes nothing returns unit native TriggerRegisterPlayerAllianceChange takes trigger whichTrigger, player whichPlayer, alliancetype whichAlliance returns event native TriggerRegisterPlayerStateEvent takes trigger whichTrigger, player whichPlayer, playerstate whichState, limitop opcode, real limitval returns event // EVENT_PLAYER_STATE_LIMIT constant native GetEventPlayerState takes nothing returns playerstate native TriggerRegisterPlayerChatEvent takes trigger whichTrigger, player whichPlayer, string chatMessageToDetect, boolean exactMatchOnly returns event // EVENT_PLAYER_CHAT // returns the actual string they typed in ( same as what you registered for // if you required exact match ) constant native GetEventPlayerChatString takes nothing returns string // returns the string that you registered for constant native GetEventPlayerChatStringMatched takes nothing returns string native TriggerRegisterDeathEvent takes trigger whichTrigger, widget whichWidget returns event //============================================================================ // Trigger Unit Based Event API //============================================================================ // returns handle to unit which triggered the most recent event when called from // within a trigger action function...returns null handle when used incorrectly constant native GetTriggerUnit takes nothing returns unit native TriggerRegisterUnitStateEvent takes trigger whichTrigger, unit whichUnit, unitstate whichState, limitop opcode, real limitval returns event // EVENT_UNIT_STATE_LIMIT constant native GetEventUnitState takes nothing returns unitstate native TriggerRegisterUnitEvent takes trigger whichTrigger, unit whichUnit, unitevent whichEvent returns event // EVENT_UNIT_DAMAGED constant native GetEventDamage takes nothing returns real constant native GetEventDamageSource takes nothing returns unit // EVENT_UNIT_DEATH // EVENT_UNIT_DECAY // Use the GetDyingUnit and GetDecayingUnit funcs above // EVENT_UNIT_DETECTED constant native GetEventDetectingPlayer takes nothing returns player native TriggerRegisterFilterUnitEvent takes trigger whichTrigger, unit whichUnit, unitevent whichEvent, boolexpr filter returns event // EVENT_UNIT_ACQUIRED_TARGET // EVENT_UNIT_TARGET_IN_RANGE constant native GetEventTargetUnit takes nothing returns unit // EVENT_UNIT_ATTACKED // Use GetAttacker from the Player Unit Event API Below... // EVENT_UNIT_RESCUEDED // Use GetRescuer from the Player Unit Event API Below... // EVENT_UNIT_CONSTRUCT_CANCEL // EVENT_UNIT_CONSTRUCT_FINISH // See the Player Unit Construction Event API above for event info funcs // EVENT_UNIT_TRAIN_START // EVENT_UNIT_TRAIN_CANCELLED // EVENT_UNIT_TRAIN_FINISH // See the Player Unit Training Event API above for event info funcs // EVENT_UNIT_SELL // See the Player Unit Sell Event API above for event info funcs // EVENT_UNIT_DROP_ITEM // EVENT_UNIT_PICKUP_ITEM // EVENT_UNIT_USE_ITEM // See the Player Unit/Item manipulation Event API above for event info funcs // EVENT_UNIT_ISSUED_ORDER // EVENT_UNIT_ISSUED_POINT_ORDER // EVENT_UNIT_ISSUED_TARGET_ORDER // See the Player Unit Order Event API above for event info funcs native TriggerRegisterUnitInRange takes trigger whichTrigger, unit whichUnit, real range, boolexpr filter returns event native TriggerAddCondition takes trigger whichTrigger, boolexpr condition returns triggercondition native TriggerRemoveCondition takes trigger whichTrigger, triggercondition whichCondition returns nothing native TriggerClearConditions takes trigger whichTrigger returns nothing native TriggerAddAction takes trigger whichTrigger, code actionFunc returns triggeraction native TriggerRemoveAction takes trigger whichTrigger, triggeraction whichAction returns nothing native TriggerClearActions takes trigger whichTrigger returns nothing native TriggerSleepAction takes real timeout returns nothing native TriggerWaitForSound takes sound s, real offset returns nothing native TriggerEvaluate takes trigger whichTrigger returns boolean native TriggerExecute takes trigger whichTrigger returns nothing native TriggerExecuteWait takes trigger whichTrigger returns nothing native TriggerSyncStart takes nothing returns nothing native TriggerSyncReady takes nothing returns nothing //============================================================================ // Widget API native GetWidgetLife takes widget whichWidget returns real native SetWidgetLife takes widget whichWidget, real newLife returns nothing native GetWidgetX takes widget whichWidget returns real native GetWidgetY takes widget whichWidget returns real constant native GetTriggerWidget takes nothing returns widget //============================================================================ // Destructable Object API // Facing arguments are specified in degrees native CreateDestructable takes integer objectid, real x, real y, real face, real scale, integer variation returns destructable native CreateDestructableZ takes integer objectid, real x, real y, real z, real face, real scale, integer variation returns destructable native CreateDeadDestructable takes integer objectid, real x, real y, real face, real scale, integer variation returns destructable native CreateDeadDestructableZ takes integer objectid, real x, real y, real z, real face, real scale, integer variation returns destructable native RemoveDestructable takes destructable d returns nothing native KillDestructable takes destructable d returns nothing native SetDestructableInvulnerable takes destructable d, boolean flag returns nothing native IsDestructableInvulnerable takes destructable d returns boolean native EnumDestructablesInRect takes rect r, boolexpr filter, code actionFunc returns nothing native GetDestructableTypeId takes destructable d returns integer native GetDestructableX takes destructable d returns real native GetDestructableY takes destructable d returns real native SetDestructableLife takes destructable d, real life returns nothing native GetDestructableLife takes destructable d returns real native SetDestructableMaxLife takes destructable d, real max returns nothing native GetDestructableMaxLife takes destructable d returns real native DestructableRestoreLife takes destructable d, real life, boolean birth returns nothing native QueueDestructableAnimation takes destructable d, string whichAnimation returns nothing native SetDestructableAnimation takes destructable d, string whichAnimation returns nothing native SetDestructableAnimationSpeed takes destructable d, real speedFactor returns nothing native ShowDestructable takes destructable d, boolean flag returns nothing native GetDestructableOccluderHeight takes destructable d returns real native SetDestructableOccluderHeight takes destructable d, real height returns nothing native GetDestructableName takes destructable d returns string constant native GetTriggerDestructable takes nothing returns destructable //============================================================================ // Item API native CreateItem takes integer itemid, real x, real y returns item native RemoveItem takes item whichItem returns nothing native GetItemPlayer takes item whichItem returns player native GetItemTypeId takes item i returns integer native GetItemX takes item i returns real native GetItemY takes item i returns real native SetItemPosition takes item i, real x, real y returns nothing native SetItemDropOnDeath takes item whichItem, boolean flag returns nothing native SetItemDroppable takes item i, boolean flag returns nothing native SetItemPawnable takes item i, boolean flag returns nothing native SetItemPlayer takes item whichItem, player whichPlayer, boolean changeColor returns nothing native SetItemInvulnerable takes item whichItem, boolean flag returns nothing native IsItemInvulnerable takes item whichItem returns boolean native SetItemVisible takes item whichItem, boolean show returns nothing native IsItemVisible takes item whichItem returns boolean native IsItemOwned takes item whichItem returns boolean native IsItemPowerup takes item whichItem returns boolean native IsItemSellable takes item whichItem returns boolean native IsItemPawnable takes item whichItem returns boolean native IsItemIdPowerup takes integer itemId returns boolean native IsItemIdSellable takes integer itemId returns boolean native IsItemIdPawnable takes integer itemId returns boolean native EnumItemsInRect takes rect r, boolexpr filter, code actionFunc returns nothing native GetItemLevel takes item whichItem returns integer native GetItemType takes item whichItem returns itemtype native SetItemDropID takes item whichItem, integer unitId returns nothing constant native GetItemName takes item whichItem returns string native GetItemCharges takes item whichItem returns integer native SetItemCharges takes item whichItem, integer charges returns nothing native GetItemUserData takes item whichItem returns integer native SetItemUserData takes item whichItem, integer data returns nothing //============================================================================ // Unit API // Facing arguments are specified in degrees native CreateUnit takes player id, integer unitid, real x, real y, real face returns unit native CreateUnitByName takes player whichPlayer, string unitname, real x, real y, real face returns unit native CreateUnitAtLoc takes player id, integer unitid, location whichLocation, real face returns unit native CreateUnitAtLocByName takes player id, string unitname, location whichLocation, real face returns unit native CreateCorpse takes player whichPlayer, integer unitid, real x, real y, real face returns unit native KillUnit takes unit whichUnit returns nothing native RemoveUnit takes unit whichUnit returns nothing native ShowUnit takes unit whichUnit, boolean show returns nothing native SetUnitState takes unit whichUnit, unitstate whichUnitState, real newVal returns nothing native SetUnitX takes unit whichUnit, real newX returns nothing native SetUnitY takes unit whichUnit, real newY returns nothing native SetUnitPosition takes unit whichUnit, real newX, real newY returns nothing native SetUnitPositionLoc takes unit whichUnit, location whichLocation returns nothing native SetUnitFacing takes unit whichUnit, real facingAngle returns nothing native SetUnitFacingTimed takes unit whichUnit, real facingAngle, real duration returns nothing native SetUnitMoveSpeed takes unit whichUnit, real newSpeed returns nothing native SetUnitFlyHeight takes unit whichUnit, real newHeight, real rate returns nothing native SetUnitTurnSpeed takes unit whichUnit, real newTurnSpeed returns nothing native SetUnitPropWindow takes unit whichUnit, real newPropWindowAngle returns nothing native SetUnitAcquireRange takes unit whichUnit, real newAcquireRange returns nothing native SetUnitCreepGuard takes unit whichUnit, boolean creepGuard returns nothing native GetUnitAcquireRange takes unit whichUnit returns real native GetUnitTurnSpeed takes unit whichUnit returns real native GetUnitPropWindow takes unit whichUnit returns real native GetUnitFlyHeight takes unit whichUnit returns real native GetUnitDefaultAcquireRange takes unit whichUnit returns real native GetUnitDefaultTurnSpeed takes unit whichUnit returns real native GetUnitDefaultPropWindow takes unit whichUnit returns real native GetUnitDefaultFlyHeight takes unit whichUnit returns real native SetUnitOwner takes unit whichUnit, player whichPlayer, boolean changeColor returns nothing native SetUnitColor takes unit whichUnit, playercolor whichColor returns nothing native SetUnitScale takes unit whichUnit, real scaleX, real scaleY, real scaleZ returns nothing native SetUnitTimeScale takes unit whichUnit, real timeScale returns nothing native SetUnitBlendTime takes unit whichUnit, real blendTime returns nothing native SetUnitVertexColor takes unit whichUnit, integer red, integer green, integer blue, integer alpha returns nothing native QueueUnitAnimation takes unit whichUnit, string whichAnimation returns nothing native SetUnitAnimation takes unit whichUnit, string whichAnimation returns nothing native SetUnitAnimationByIndex takes unit whichUnit, integer whichAnimation returns nothing native SetUnitAnimationWithRarity takes unit whichUnit, string whichAnimation, raritycontrol rarity returns nothing native AddUnitAnimationProperties takes unit whichUnit, string animProperties, boolean add returns nothing native SetUnitLookAt takes unit whichUnit, string whichBone, unit lookAtTarget, real offsetX, real offsetY, real offsetZ returns nothing native ResetUnitLookAt takes unit whichUnit returns nothing native SetUnitRescuable takes unit whichUnit, player byWhichPlayer, boolean flag returns nothing native SetUnitRescueRange takes unit whichUnit, real range returns nothing native SetHeroStr takes unit whichHero, integer newStr, boolean permanent returns nothing native SetHeroAgi takes unit whichHero, integer newAgi, boolean permanent returns nothing native SetHeroInt takes unit whichHero, integer newInt, boolean permanent returns nothing native GetHeroStr takes unit whichHero, boolean includeBonuses returns integer native GetHeroAgi takes unit whichHero, boolean includeBonuses returns integer native GetHeroInt takes unit whichHero, boolean includeBonuses returns integer native UnitStripHeroLevel takes unit whichHero, integer howManyLevels returns boolean native GetHeroXP takes unit whichHero returns integer native SetHeroXP takes unit whichHero, integer newXpVal, boolean showEyeCandy returns nothing native GetHeroSkillPoints takes unit whichHero returns integer native UnitModifySkillPoints takes unit whichHero, integer skillPointDelta returns boolean native AddHeroXP takes unit whichHero, integer xpToAdd, boolean showEyeCandy returns nothing native SetHeroLevel takes unit whichHero, integer level, boolean showEyeCandy returns nothing constant native GetHeroLevel takes unit whichHero returns integer constant native GetUnitLevel takes unit whichUnit returns integer native GetHeroProperName takes unit whichHero returns string native SuspendHeroXP takes unit whichHero, boolean flag returns nothing native IsSuspendedXP takes unit whichHero returns boolean native SelectHeroSkill takes unit whichHero, integer abilcode returns nothing native GetUnitAbilityLevel takes unit whichUnit, integer abilcode returns integer native DecUnitAbilityLevel takes unit whichUnit, integer abilcode returns integer native IncUnitAbilityLevel takes unit whichUnit, integer abilcode returns integer native SetUnitAbilityLevel takes unit whichUnit, integer abilcode, integer level returns integer native ReviveHero takes unit whichHero, real x, real y, boolean doEyecandy returns boolean native ReviveHeroLoc takes unit whichHero, location loc, boolean doEyecandy returns boolean native SetUnitExploded takes unit whichUnit, boolean exploded returns nothing native SetUnitInvulnerable takes unit whichUnit, boolean flag returns nothing native PauseUnit takes unit whichUnit, boolean flag returns nothing native IsUnitPaused takes unit whichHero returns boolean native SetUnitPathing takes unit whichUnit, boolean flag returns nothing native ClearSelection takes nothing returns nothing native SelectUnit takes unit whichUnit, boolean flag returns nothing native GetUnitPointValue takes unit whichUnit returns integer native GetUnitPointValueByType takes integer unitType returns integer //native SetUnitPointValueByType takes integer unitType, integer newPointValue returns nothing native UnitAddItem takes unit whichUnit, item whichItem returns boolean native UnitAddItemById takes unit whichUnit, integer itemId returns item native UnitAddItemToSlotById takes unit whichUnit, integer itemId, integer itemSlot returns boolean native UnitRemoveItem takes unit whichUnit, item whichItem returns nothing native UnitRemoveItemFromSlot takes unit whichUnit, integer itemSlot returns item native UnitHasItem takes unit whichUnit, item whichItem returns boolean native UnitItemInSlot takes unit whichUnit, integer itemSlot returns item native UnitInventorySize takes unit whichUnit returns integer native UnitDropItemPoint takes unit whichUnit, item whichItem, real x, real y returns boolean native UnitDropItemSlot takes unit whichUnit, item whichItem, integer slot returns boolean native UnitDropItemTarget takes unit whichUnit, item whichItem, widget target returns boolean native UnitUseItem takes unit whichUnit, item whichItem returns boolean native UnitUseItemPoint takes unit whichUnit, item whichItem, real x, real y returns boolean native UnitUseItemTarget takes unit whichUnit, item whichItem, widget target returns boolean constant native GetUnitX takes unit whichUnit returns real constant native GetUnitY takes unit whichUnit returns real constant native GetUnitLoc takes unit whichUnit returns location constant native GetUnitFacing takes unit whichUnit returns real constant native GetUnitMoveSpeed takes unit whichUnit returns real constant native GetUnitDefaultMoveSpeed takes unit whichUnit returns real constant native GetUnitState takes unit whichUnit, unitstate whichUnitState returns real constant native GetOwningPlayer takes unit whichUnit returns player constant native GetUnitTypeId takes unit whichUnit returns integer constant native GetUnitRace takes unit whichUnit returns race constant native GetUnitName takes unit whichUnit returns string constant native GetUnitFoodUsed takes unit whichUnit returns integer constant native GetUnitFoodMade takes unit whichUnit returns integer constant native GetFoodMade takes integer unitId returns integer constant native GetFoodUsed takes integer unitId returns integer native SetUnitUseFood takes unit whichUnit, boolean useFood returns nothing constant native GetUnitRallyPoint takes unit whichUnit returns location constant native GetUnitRallyUnit takes unit whichUnit returns unit constant native GetUnitRallyDestructable takes unit whichUnit returns destructable constant native IsUnitInGroup takes unit whichUnit, group whichGroup returns boolean constant native IsUnitInForce takes unit whichUnit, force whichForce returns boolean constant native IsUnitOwnedByPlayer takes unit whichUnit, player whichPlayer returns boolean constant native IsUnitAlly takes unit whichUnit, player whichPlayer returns boolean constant native IsUnitEnemy takes unit whichUnit, player whichPlayer returns boolean constant native IsUnitVisible takes unit whichUnit, player whichPlayer returns boolean constant native IsUnitDetected takes unit whichUnit, player whichPlayer returns boolean constant native IsUnitInvisible takes unit whichUnit, player whichPlayer returns boolean constant native IsUnitFogged takes unit whichUnit, player whichPlayer returns boolean constant native IsUnitMasked takes unit whichUnit, player whichPlayer returns boolean constant native IsUnitSelected takes unit whichUnit, player whichPlayer returns boolean constant native IsUnitRace takes unit whichUnit, race whichRace returns boolean constant native IsUnitType takes unit whichUnit, unittype whichUnitType returns boolean constant native IsUnit takes unit whichUnit, unit whichSpecifiedUnit returns boolean constant native IsUnitInRange takes unit whichUnit, unit otherUnit, real distance returns boolean constant native IsUnitInRangeXY takes unit whichUnit, real x, real y, real distance returns boolean constant native IsUnitInRangeLoc takes unit whichUnit, location whichLocation, real distance returns boolean constant native IsUnitHidden takes unit whichUnit returns boolean constant native IsUnitIllusion takes unit whichUnit returns boolean constant native IsUnitInTransport takes unit whichUnit, unit whichTransport returns boolean constant native IsUnitLoaded takes unit whichUnit returns boolean constant native IsHeroUnitId takes integer unitId returns boolean constant native IsUnitIdType takes integer unitId, unittype whichUnitType returns boolean native UnitShareVision takes unit whichUnit, player whichPlayer, boolean share returns nothing native UnitSuspendDecay takes unit whichUnit, boolean suspend returns nothing native UnitAddType takes unit whichUnit, unittype whichUnitType returns boolean native UnitRemoveType takes unit whichUnit, unittype whichUnitType returns boolean native UnitAddAbility takes unit whichUnit, integer abilityId returns boolean native UnitRemoveAbility takes unit whichUnit, integer abilityId returns boolean native UnitMakeAbilityPermanent takes unit whichUnit, boolean permanent, integer abilityId returns boolean native UnitRemoveBuffs takes unit whichUnit, boolean removePositive, boolean removeNegative returns nothing native UnitRemoveBuffsEx takes unit whichUnit, boolean removePositive, boolean removeNegative, boolean magic, boolean physical, boolean timedLife, boolean aura, boolean autoDispel returns nothing native UnitHasBuffsEx takes unit whichUnit, boolean removePositive, boolean removeNegative, boolean magic, boolean physical, boolean timedLife, boolean aura, boolean autoDispel returns boolean native UnitCountBuffsEx takes unit whichUnit, boolean removePositive, boolean removeNegative, boolean magic, boolean physical, boolean timedLife, boolean aura, boolean autoDispel returns integer native UnitAddSleep takes unit whichUnit, boolean add returns nothing native UnitCanSleep takes unit whichUnit returns boolean native UnitAddSleepPerm takes unit whichUnit, boolean add returns nothing native UnitCanSleepPerm takes unit whichUnit returns boolean native UnitIsSleeping takes unit whichUnit returns boolean native UnitWakeUp takes unit whichUnit returns nothing native UnitApplyTimedLife takes unit whichUnit, integer buffId, real duration returns nothing native UnitIgnoreAlarm takes unit whichUnit, boolean flag returns boolean native UnitIgnoreAlarmToggled takes unit whichUnit returns boolean native UnitResetCooldown takes unit whichUnit returns nothing native UnitSetConstructionProgress takes unit whichUnit, integer constructionPercentage returns nothing native UnitSetUpgradeProgress takes unit whichUnit, integer upgradePercentage returns nothing native UnitPauseTimedLife takes unit whichUnit, boolean flag returns nothing native UnitSetUsesAltIcon takes unit whichUnit, boolean flag returns nothing native UnitDamagePoint takes unit whichUnit, real delay, real radius, real x, real y, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType returns boolean native UnitDamageTarget takes unit whichUnit, widget target, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType returns boolean native IssueImmediateOrder takes unit whichUnit, string order returns boolean native IssueImmediateOrderById takes unit whichUnit, integer order returns boolean native IssuePointOrder takes unit whichUnit, string order, real x, real y returns boolean native IssuePointOrderLoc takes unit whichUnit, string order, location whichLocation returns boolean native IssuePointOrderById takes unit whichUnit, integer order, real x, real y returns boolean native IssuePointOrderByIdLoc takes unit whichUnit, integer order, location whichLocation returns boolean native IssueTargetOrder takes unit whichUnit, string order, widget targetWidget returns boolean native IssueTargetOrderById takes unit whichUnit, integer order, widget targetWidget returns boolean native IssueInstantPointOrder takes unit whichUnit, string order, real x, real y, widget instantTargetWidget returns boolean native IssueInstantPointOrderById takes unit whichUnit, integer order, real x, real y, widget instantTargetWidget returns boolean native IssueInstantTargetOrder takes unit whichUnit, string order, widget targetWidget, widget instantTargetWidget returns boolean native IssueInstantTargetOrderById takes unit whichUnit, integer order, widget targetWidget, widget instantTargetWidget returns boolean native IssueBuildOrder takes unit whichPeon, string unitToBuild, real x, real y returns boolean native IssueBuildOrderById takes unit whichPeon, integer unitId, real x, real y returns boolean native IssueNeutralImmediateOrder takes player forWhichPlayer, unit neutralStructure, string unitToBuild returns boolean native IssueNeutralImmediateOrderById takes player forWhichPlayer,unit neutralStructure, integer unitId returns boolean native IssueNeutralPointOrder takes player forWhichPlayer,unit neutralStructure, string unitToBuild, real x, real y returns boolean native IssueNeutralPointOrderById takes player forWhichPlayer,unit neutralStructure, integer unitId, real x, real y returns boolean native IssueNeutralTargetOrder takes player forWhichPlayer,unit neutralStructure, string unitToBuild, widget target returns boolean native IssueNeutralTargetOrderById takes player forWhichPlayer,unit neutralStructure, integer unitId, widget target returns boolean native GetUnitCurrentOrder takes unit whichUnit returns integer native SetResourceAmount takes unit whichUnit, integer amount returns nothing native AddResourceAmount takes unit whichUnit, integer amount returns nothing native GetResourceAmount takes unit whichUnit returns integer native WaygateGetDestinationX takes unit waygate returns real native WaygateGetDestinationY takes unit waygate returns real native WaygateSetDestination takes unit waygate, real x, real y returns nothing native WaygateActivate takes unit waygate, boolean activate returns nothing native WaygateIsActive takes unit waygate returns boolean native AddItemToAllStock takes integer itemId, integer currentStock, integer stockMax returns nothing native AddItemToStock takes unit whichUnit, integer itemId, integer currentStock, integer stockMax returns nothing native AddUnitToAllStock takes integer unitId, integer currentStock, integer stockMax returns nothing native AddUnitToStock takes unit whichUnit, integer unitId, integer currentStock, integer stockMax returns nothing native RemoveItemFromAllStock takes integer itemId returns nothing native RemoveItemFromStock takes unit whichUnit, integer itemId returns nothing native RemoveUnitFromAllStock takes integer unitId returns nothing native RemoveUnitFromStock takes unit whichUnit, integer unitId returns nothing native SetAllItemTypeSlots takes integer slots returns nothing native SetAllUnitTypeSlots takes integer slots returns nothing native SetItemTypeSlots takes unit whichUnit, integer slots returns nothing native SetUnitTypeSlots takes unit whichUnit, integer slots returns nothing native GetUnitUserData takes unit whichUnit returns integer native SetUnitUserData takes unit whichUnit, integer data returns nothing //============================================================================ // Player API constant native Player takes integer number returns player constant native GetLocalPlayer takes nothing returns player constant native IsPlayerAlly takes player whichPlayer, player otherPlayer returns boolean constant native IsPlayerEnemy takes player whichPlayer, player otherPlayer returns boolean constant native IsPlayerInForce takes player whichPlayer, force whichForce returns boolean constant native IsPlayerObserver takes player whichPlayer returns boolean constant native IsVisibleToPlayer takes real x, real y, player whichPlayer returns boolean constant native IsLocationVisibleToPlayer takes location whichLocation, player whichPlayer returns boolean constant native IsFoggedToPlayer takes real x, real y, player whichPlayer returns boolean constant native IsLocationFoggedToPlayer takes location whichLocation, player whichPlayer returns boolean constant native IsMaskedToPlayer takes real x, real y, player whichPlayer returns boolean constant native IsLocationMaskedToPlayer takes location whichLocation, player whichPlayer returns boolean constant native GetPlayerRace takes player whichPlayer returns race constant native GetPlayerId takes player whichPlayer returns integer constant native GetPlayerUnitCount takes player whichPlayer, boolean includeIncomplete returns integer constant native GetPlayerTypedUnitCount takes player whichPlayer, string unitName, boolean includeIncomplete, boolean includeUpgrades returns integer constant native GetPlayerStructureCount takes player whichPlayer, boolean includeIncomplete returns integer constant native GetPlayerState takes player whichPlayer, playerstate whichPlayerState returns integer constant native GetPlayerScore takes player whichPlayer, playerscore whichPlayerScore returns integer constant native GetPlayerAlliance takes player sourcePlayer, player otherPlayer, alliancetype whichAllianceSetting returns boolean constant native GetPlayerHandicap takes player whichPlayer returns real constant native GetPlayerHandicapXP takes player whichPlayer returns real constant native SetPlayerHandicap takes player whichPlayer, real handicap returns nothing constant native SetPlayerHandicapXP takes player whichPlayer, real handicap returns nothing constant native SetPlayerTechMaxAllowed takes player whichPlayer, integer techid, integer maximum returns nothing constant native GetPlayerTechMaxAllowed takes player whichPlayer, integer techid returns integer constant native AddPlayerTechResearched takes player whichPlayer, integer techid, integer levels returns nothing constant native SetPlayerTechResearched takes player whichPlayer, integer techid, integer setToLevel returns nothing constant native GetPlayerTechResearched takes player whichPlayer, integer techid, boolean specificonly returns boolean constant native GetPlayerTechCount takes player whichPlayer, integer techid, boolean specificonly returns integer native SetPlayerUnitsOwner takes player whichPlayer, integer newOwner returns nothing native CripplePlayer takes player whichPlayer, force toWhichPlayers, boolean flag returns nothing native SetPlayerAbilityAvailable takes player whichPlayer, integer abilid, boolean avail returns nothing native SetPlayerState takes player whichPlayer, playerstate whichPlayerState, integer value returns nothing native RemovePlayer takes player whichPlayer, playergameresult gameResult returns nothing // Used to store hero level data for the scorescreen // before units are moved to neutral passive in melee games // native CachePlayerHeroData takes player whichPlayer returns nothing //============================================================================ // Fog of War API native SetFogStateRect takes player forWhichPlayer, fogstate whichState, rect where, boolean useSharedVision returns nothing native SetFogStateRadius takes player forWhichPlayer, fogstate whichState, real centerx, real centerY, real radius, boolean useSharedVision returns nothing native SetFogStateRadiusLoc takes player forWhichPlayer, fogstate whichState, location center, real radius, boolean useSharedVision returns nothing native FogMaskEnable takes boolean enable returns nothing native IsFogMaskEnabled takes nothing returns boolean native FogEnable takes boolean enable returns nothing native IsFogEnabled takes nothing returns boolean native CreateFogModifierRect takes player forWhichPlayer, fogstate whichState, rect where, boolean useSharedVision, boolean afterUnits returns fogmodifier native CreateFogModifierRadius takes player forWhichPlayer, fogstate whichState, real centerx, real centerY, real radius, boolean useSharedVision, boolean afterUnits returns fogmodifier native CreateFogModifierRadiusLoc takes player forWhichPlayer, fogstate whichState, location center, real radius, boolean useSharedVision, boolean afterUnits returns fogmodifier native DestroyFogModifier takes fogmodifier whichFogModifier returns nothing native FogModifierStart takes fogmodifier whichFogModifier returns nothing native FogModifierStop takes fogmodifier whichFogModifier returns nothing //============================================================================ // Game API native VersionGet takes nothing returns version native VersionCompatible takes version whichVersion returns boolean native VersionSupported takes version whichVersion returns boolean native EndGame takes boolean doScoreScreen returns nothing // Async only! native ChangeLevel takes string newLevel, boolean doScoreScreen returns nothing native RestartGame takes boolean doScoreScreen returns nothing native ReloadGame takes nothing returns nothing // %%% SetCampaignMenuRace is deprecated. It must remain to support // old maps which use it, but all new maps should use SetCampaignMenuRaceEx native SetCampaignMenuRace takes race r returns nothing native SetCampaignMenuRaceEx takes integer campaignIndex returns nothing native ForceCampaignSelectScreen takes nothing returns nothing native LoadGame takes string saveFileName, boolean doScoreScreen returns nothing native SaveGame takes string saveFileName returns nothing native RenameSaveDirectory takes string sourceDirName, string destDirName returns boolean native RemoveSaveDirectory takes string sourceDirName returns boolean native CopySaveGame takes string sourceSaveName, string destSaveName returns boolean native SaveGameExists takes string saveName returns boolean native SyncSelections takes nothing returns nothing native SetFloatGameState takes fgamestate whichFloatGameState, real value returns nothing constant native GetFloatGameState takes fgamestate whichFloatGameState returns real native SetIntegerGameState takes igamestate whichIntegerGameState, integer value returns nothing constant native GetIntegerGameState takes igamestate whichIntegerGameState returns integer //============================================================================ // Campaign API native SetTutorialCleared takes boolean cleared returns nothing native SetMissionAvailable takes integer campaignNumber, integer missionNumber, boolean available returns nothing native SetCampaignAvailable takes integer campaignNumber, boolean available returns nothing native SetOpCinematicAvailable takes integer campaignNumber, boolean available returns nothing native SetEdCinematicAvailable takes integer campaignNumber, boolean available returns nothing native GetDefaultDifficulty takes nothing returns gamedifficulty native SetDefaultDifficulty takes gamedifficulty g returns nothing native SetCustomCampaignButtonVisible takes integer whichButton, boolean visible returns nothing native GetCustomCampaignButtonVisible takes integer whichButton returns boolean native DoNotSaveReplay takes nothing returns nothing //============================================================================ // Dialog API native DialogCreate takes nothing returns dialog native DialogDestroy takes dialog whichDialog returns nothing native DialogClear takes dialog whichDialog returns nothing native DialogSetMessage takes dialog whichDialog, string messageText returns nothing native DialogAddButton takes dialog whichDialog, string buttonText, integer hotkey returns button native DialogAddQuitButton takes dialog whichDialog, boolean doScoreScreen, string buttonText, integer hotkey returns button native DialogDisplay takes player whichPlayer, dialog whichDialog, boolean flag returns nothing // Creates a new or reads in an existing game cache file stored // in the current campaign profile dir // native ReloadGameCachesFromDisk takes nothing returns boolean native InitGameCache takes string campaignFile returns gamecache native SaveGameCache takes gamecache whichCache returns boolean native StoreInteger takes gamecache cache, string missionKey, string key, integer value returns nothing native StoreReal takes gamecache cache, string missionKey, string key, real value returns nothing native StoreBoolean takes gamecache cache, string missionKey, string key, boolean value returns nothing native StoreUnit takes gamecache cache, string missionKey, string key, unit whichUnit returns boolean native StoreString takes gamecache cache, string missionKey, string key, string value returns boolean native SyncStoredInteger takes gamecache cache, string missionKey, string key returns nothing native SyncStoredReal takes gamecache cache, string missionKey, string key returns nothing native SyncStoredBoolean takes gamecache cache, string missionKey, string key returns nothing native SyncStoredUnit takes gamecache cache, string missionKey, string key returns nothing native SyncStoredString takes gamecache cache, string missionKey, string key returns nothing native HaveStoredInteger takes gamecache cache, string missionKey, string key returns boolean native HaveStoredReal takes gamecache cache, string missionKey, string key returns boolean native HaveStoredBoolean takes gamecache cache, string missionKey, string key returns boolean native HaveStoredUnit takes gamecache cache, string missionKey, string key returns boolean native HaveStoredString takes gamecache cache, string missionKey, string key returns boolean native FlushGameCache takes gamecache cache returns nothing native FlushStoredMission takes gamecache cache, string missionKey returns nothing native FlushStoredInteger takes gamecache cache, string missionKey, string key returns nothing native FlushStoredReal takes gamecache cache, string missionKey, string key returns nothing native FlushStoredBoolean takes gamecache cache, string missionKey, string key returns nothing native FlushStoredUnit takes gamecache cache, string missionKey, string key returns nothing native FlushStoredString takes gamecache cache, string missionKey, string key returns nothing // Will return 0 if the specified value's data is not found in the cache native GetStoredInteger takes gamecache cache, string missionKey, string key returns integer native GetStoredReal takes gamecache cache, string missionKey, string key returns real native GetStoredBoolean takes gamecache cache, string missionKey, string key returns boolean native GetStoredString takes gamecache cache, string missionKey, string key returns string native RestoreUnit takes gamecache cache, string missionKey, string key, player forWhichPlayer, real x, real y, real facing returns unit native InitHashtable takes nothing returns hashtable native SaveInteger takes hashtable table, integer parentKey, integer childKey, integer value returns nothing native SaveReal takes hashtable table, integer parentKey, integer childKey, real value returns nothing native SaveBoolean takes hashtable table, integer parentKey, integer childKey, boolean value returns nothing native SaveStr takes hashtable table, integer parentKey, integer childKey, string value returns boolean native SavePlayerHandle takes hashtable table, integer parentKey, integer childKey, player whichPlayer returns boolean native SaveWidgetHandle takes hashtable table, integer parentKey, integer childKey, widget whichWidget returns boolean native SaveDestructableHandle takes hashtable table, integer parentKey, integer childKey, destructable whichDestructable returns boolean native SaveItemHandle takes hashtable table, integer parentKey, integer childKey, item whichItem returns boolean native SaveUnitHandle takes hashtable table, integer parentKey, integer childKey, unit whichUnit returns boolean native SaveAbilityHandle takes hashtable table, integer parentKey, integer childKey, ability whichAbility returns boolean native SaveTimerHandle takes hashtable table, integer parentKey, integer childKey, timer whichTimer returns boolean native SaveTriggerHandle takes hashtable table, integer parentKey, integer childKey, trigger whichTrigger returns boolean native SaveTriggerConditionHandle takes hashtable table, integer parentKey, integer childKey, triggercondition whichTriggercondition returns boolean native SaveTriggerActionHandle takes hashtable table, integer parentKey, integer childKey, triggeraction whichTriggeraction returns boolean native SaveTriggerEventHandle takes hashtable table, integer parentKey, integer childKey, event whichEvent returns boolean native SaveForceHandle takes hashtable table, integer parentKey, integer childKey, force whichForce returns boolean native SaveGroupHandle takes hashtable table, integer parentKey, integer childKey, group whichGroup returns boolean native SaveLocationHandle takes hashtable table, integer parentKey, integer childKey, location whichLocation returns boolean native SaveRectHandle takes hashtable table, integer parentKey, integer childKey, rect whichRect returns boolean native SaveBooleanExprHandle takes hashtable table, integer parentKey, integer childKey, boolexpr whichBoolexpr returns boolean native SaveSoundHandle takes hashtable table, integer parentKey, integer childKey, sound whichSound returns boolean native SaveEffectHandle takes hashtable table, integer parentKey, integer childKey, effect whichEffect returns boolean native SaveUnitPoolHandle takes hashtable table, integer parentKey, integer childKey, unitpool whichUnitpool returns boolean native SaveItemPoolHandle takes hashtable table, integer parentKey, integer childKey, itempool whichItempool returns boolean native SaveQuestHandle takes hashtable table, integer parentKey, integer childKey, quest whichQuest returns boolean native SaveQuestItemHandle takes hashtable table, integer parentKey, integer childKey, questitem whichQuestitem returns boolean native SaveDefeatConditionHandle takes hashtable table, integer parentKey, integer childKey, defeatcondition whichDefeatcondition returns boolean native SaveTimerDialogHandle takes hashtable table, integer parentKey, integer childKey, timerdialog whichTimerdialog returns boolean native SaveLeaderboardHandle takes hashtable table, integer parentKey, integer childKey, leaderboard whichLeaderboard returns boolean native SaveMultiboardHandle takes hashtable table, integer parentKey, integer childKey, multiboard whichMultiboard returns boolean native SaveMultiboardItemHandle takes hashtable table, integer parentKey, integer childKey, multiboarditem whichMultiboarditem returns boolean native SaveTrackableHandle takes hashtable table, integer parentKey, integer childKey, trackable whichTrackable returns boolean native SaveDialogHandle takes hashtable table, integer parentKey, integer childKey, dialog whichDialog returns boolean native SaveButtonHandle takes hashtable table, integer parentKey, integer childKey, button whichButton returns boolean native SaveTextTagHandle takes hashtable table, integer parentKey, integer childKey, texttag whichTexttag returns boolean native SaveLightningHandle takes hashtable table, integer parentKey, integer childKey, lightning whichLightning returns boolean native SaveImageHandle takes hashtable table, integer parentKey, integer childKey, image whichImage returns boolean native SaveUbersplatHandle takes hashtable table, integer parentKey, integer childKey, ubersplat whichUbersplat returns boolean native SaveRegionHandle takes hashtable table, integer parentKey, integer childKey, region whichRegion returns boolean native SaveFogStateHandle takes hashtable table, integer parentKey, integer childKey, fogstate whichFogState returns boolean native SaveFogModifierHandle takes hashtable table, integer parentKey, integer childKey, fogmodifier whichFogModifier returns boolean native SaveAgentHandle takes hashtable table, integer parentKey, integer childKey, agent whichAgent returns boolean native SaveHashtableHandle takes hashtable table, integer parentKey, integer childKey, hashtable whichHashtable returns boolean native LoadInteger takes hashtable table, integer parentKey, integer childKey returns integer native LoadReal takes hashtable table, integer parentKey, integer childKey returns real native LoadBoolean takes hashtable table, integer parentKey, integer childKey returns boolean native LoadStr takes hashtable table, integer parentKey, integer childKey returns string native LoadPlayerHandle takes hashtable table, integer parentKey, integer childKey returns player native LoadWidgetHandle takes hashtable table, integer parentKey, integer childKey returns widget native LoadDestructableHandle takes hashtable table, integer parentKey, integer childKey returns destructable native LoadItemHandle takes hashtable table, integer parentKey, integer childKey returns item native LoadUnitHandle takes hashtable table, integer parentKey, integer childKey returns unit native LoadAbilityHandle takes hashtable table, integer parentKey, integer childKey returns ability native LoadTimerHandle takes hashtable table, integer parentKey, integer childKey returns timer native LoadTriggerHandle takes hashtable table, integer parentKey, integer childKey returns trigger native LoadTriggerConditionHandle takes hashtable table, integer parentKey, integer childKey returns triggercondition native LoadTriggerActionHandle takes hashtable table, integer parentKey, integer childKey returns triggeraction native LoadTriggerEventHandle takes hashtable table, integer parentKey, integer childKey returns event native LoadForceHandle takes hashtable table, integer parentKey, integer childKey returns force native LoadGroupHandle takes hashtable table, integer parentKey, integer childKey returns group native LoadLocationHandle takes hashtable table, integer parentKey, integer childKey returns location native LoadRectHandle takes hashtable table, integer parentKey, integer childKey returns rect native LoadBooleanExprHandle takes hashtable table, integer parentKey, integer childKey returns boolexpr native LoadSoundHandle takes hashtable table, integer parentKey, integer childKey returns sound native LoadEffectHandle takes hashtable table, integer parentKey, integer childKey returns effect native LoadUnitPoolHandle takes hashtable table, integer parentKey, integer childKey returns unitpool native LoadItemPoolHandle takes hashtable table, integer parentKey, integer childKey returns itempool native LoadQuestHandle takes hashtable table, integer parentKey, integer childKey returns quest native LoadQuestItemHandle takes hashtable table, integer parentKey, integer childKey returns questitem native LoadDefeatConditionHandle takes hashtable table, integer parentKey, integer childKey returns defeatcondition native LoadTimerDialogHandle takes hashtable table, integer parentKey, integer childKey returns timerdialog native LoadLeaderboardHandle takes hashtable table, integer parentKey, integer childKey returns leaderboard native LoadMultiboardHandle takes hashtable table, integer parentKey, integer childKey returns multiboard native LoadMultiboardItemHandle takes hashtable table, integer parentKey, integer childKey returns multiboarditem native LoadTrackableHandle takes hashtable table, integer parentKey, integer childKey returns trackable native LoadDialogHandle takes hashtable table, integer parentKey, integer childKey returns dialog native LoadButtonHandle takes hashtable table, integer parentKey, integer childKey returns button native LoadTextTagHandle takes hashtable table, integer parentKey, integer childKey returns texttag native LoadLightningHandle takes hashtable table, integer parentKey, integer childKey returns lightning native LoadImageHandle takes hashtable table, integer parentKey, integer childKey returns image native LoadUbersplatHandle takes hashtable table, integer parentKey, integer childKey returns ubersplat native LoadRegionHandle takes hashtable table, integer parentKey, integer childKey returns region native LoadFogStateHandle takes hashtable table, integer parentKey, integer childKey returns fogstate native LoadFogModifierHandle takes hashtable table, integer parentKey, integer childKey returns fogmodifier native LoadHashtableHandle takes hashtable table, integer parentKey, integer childKey returns hashtable native HaveSavedInteger takes hashtable table, integer parentKey, integer childKey returns boolean native HaveSavedReal takes hashtable table, integer parentKey, integer childKey returns boolean native HaveSavedBoolean takes hashtable table, integer parentKey, integer childKey returns boolean native HaveSavedString takes hashtable table, integer parentKey, integer childKey returns boolean native HaveSavedHandle takes hashtable table, integer parentKey, integer childKey returns boolean native RemoveSavedInteger takes hashtable table, integer parentKey, integer childKey returns nothing native RemoveSavedReal takes hashtable table, integer parentKey, integer childKey returns nothing native RemoveSavedBoolean takes hashtable table, integer parentKey, integer childKey returns nothing native RemoveSavedString takes hashtable table, integer parentKey, integer childKey returns nothing native RemoveSavedHandle takes hashtable table, integer parentKey, integer childKey returns nothing native FlushParentHashtable takes hashtable table returns nothing native FlushChildHashtable takes hashtable table, integer parentKey returns nothing //============================================================================ // Randomization API native GetRandomInt takes integer lowBound, integer highBound returns integer native GetRandomReal takes real lowBound, real highBound returns real native CreateUnitPool takes nothing returns unitpool native DestroyUnitPool takes unitpool whichPool returns nothing native UnitPoolAddUnitType takes unitpool whichPool, integer unitId, real weight returns nothing native UnitPoolRemoveUnitType takes unitpool whichPool, integer unitId returns nothing native PlaceRandomUnit takes unitpool whichPool, player forWhichPlayer, real x, real y, real facing returns unit native CreateItemPool takes nothing returns itempool native DestroyItemPool takes itempool whichItemPool returns nothing native ItemPoolAddItemType takes itempool whichItemPool, integer itemId, real weight returns nothing native ItemPoolRemoveItemType takes itempool whichItemPool, integer itemId returns nothing native PlaceRandomItem takes itempool whichItemPool, real x, real y returns item // Choose any random unit/item. (NP means Neutral Passive) native ChooseRandomCreep takes integer level returns integer native ChooseRandomNPBuilding takes nothing returns integer native ChooseRandomItem takes integer level returns integer native ChooseRandomItemEx takes itemtype whichType, integer level returns integer native SetRandomSeed takes integer seed returns nothing //============================================================================ // Visual API native SetTerrainFog takes real a, real b, real c, real d, real e returns nothing native ResetTerrainFog takes nothing returns nothing native SetUnitFog takes real a, real b, real c, real d, real e returns nothing native SetTerrainFogEx takes integer style, real zstart, real zend, real density, real red, real green, real blue returns nothing native DisplayTextToPlayer takes player toPlayer, real x, real y, string message returns nothing native DisplayTimedTextToPlayer takes player toPlayer, real x, real y, real duration, string message returns nothing native DisplayTimedTextFromPlayer takes player toPlayer, real x, real y, real duration, string message returns nothing native ClearTextMessages takes nothing returns nothing native SetDayNightModels takes string terrainDNCFile, string unitDNCFile returns nothing native SetSkyModel takes string skyModelFile returns nothing native EnableUserControl takes boolean b returns nothing native EnableUserUI takes boolean b returns nothing native SuspendTimeOfDay takes boolean b returns nothing native SetTimeOfDayScale takes real r returns nothing native GetTimeOfDayScale takes nothing returns real native ShowInterface takes boolean flag, real fadeDuration returns nothing native PauseGame takes boolean flag returns nothing native UnitAddIndicator takes unit whichUnit, integer red, integer green, integer blue, integer alpha returns nothing native AddIndicator takes widget whichWidget, integer red, integer green, integer blue, integer alpha returns nothing native PingMinimap takes real x, real y, real duration returns nothing native PingMinimapEx takes real x, real y, real duration, integer red, integer green, integer blue, boolean extraEffects returns nothing native EnableOcclusion takes boolean flag returns nothing native SetIntroShotText takes string introText returns nothing native SetIntroShotModel takes string introModelPath returns nothing native EnableWorldFogBoundary takes boolean b returns nothing native PlayModelCinematic takes string modelName returns nothing native PlayCinematic takes string movieName returns nothing native ForceUIKey takes string key returns nothing native ForceUICancel takes nothing returns nothing native DisplayLoadDialog takes nothing returns nothing native SetAltMinimapIcon takes string iconPath returns nothing native DisableRestartMission takes boolean flag returns nothing native CreateTextTag takes nothing returns texttag native DestroyTextTag takes texttag t returns nothing native SetTextTagText takes texttag t, string s, real height returns nothing native SetTextTagPos takes texttag t, real x, real y, real heightOffset returns nothing native SetTextTagPosUnit takes texttag t, unit whichUnit, real heightOffset returns nothing native SetTextTagColor takes texttag t, integer red, integer green, integer blue, integer alpha returns nothing native SetTextTagVelocity takes texttag t, real xvel, real yvel returns nothing native SetTextTagVisibility takes texttag t, boolean flag returns nothing native SetTextTagSuspended takes texttag t, boolean flag returns nothing native SetTextTagPermanent takes texttag t, boolean flag returns nothing native SetTextTagAge takes texttag t, real age returns nothing native SetTextTagLifespan takes texttag t, real lifespan returns nothing native SetTextTagFadepoint takes texttag t, real fadepoint returns nothing native SetReservedLocalHeroButtons takes integer reserved returns nothing native GetAllyColorFilterState takes nothing returns integer native SetAllyColorFilterState takes integer state returns nothing native GetCreepCampFilterState takes nothing returns boolean native SetCreepCampFilterState takes boolean state returns nothing native EnableMinimapFilterButtons takes boolean enableAlly, boolean enableCreep returns nothing native EnableDragSelect takes boolean state, boolean ui returns nothing native EnablePreSelect takes boolean state, boolean ui returns nothing native EnableSelect takes boolean state, boolean ui returns nothing //============================================================================ // Trackable API native CreateTrackable takes string trackableModelPath, real x, real y, real facing returns trackable //============================================================================ // Quest API native CreateQuest takes nothing returns quest native DestroyQuest takes quest whichQuest returns nothing native QuestSetTitle takes quest whichQuest, string title returns nothing native QuestSetDescription takes quest whichQuest, string description returns nothing native QuestSetIconPath takes quest whichQuest, string iconPath returns nothing native QuestSetRequired takes quest whichQuest, boolean required returns nothing native QuestSetCompleted takes quest whichQuest, boolean completed returns nothing native QuestSetDiscovered takes quest whichQuest, boolean discovered returns nothing native QuestSetFailed takes quest whichQuest, boolean failed returns nothing native QuestSetEnabled takes quest whichQuest, boolean enabled returns nothing native IsQuestRequired takes quest whichQuest returns boolean native IsQuestCompleted takes quest whichQuest returns boolean native IsQuestDiscovered takes quest whichQuest returns boolean native IsQuestFailed takes quest whichQuest returns boolean native IsQuestEnabled takes quest whichQuest returns boolean native QuestCreateItem takes quest whichQuest returns questitem native QuestItemSetDescription takes questitem whichQuestItem, string description returns nothing native QuestItemSetCompleted takes questitem whichQuestItem, boolean completed returns nothing native IsQuestItemCompleted takes questitem whichQuestItem returns boolean native CreateDefeatCondition takes nothing returns defeatcondition native DestroyDefeatCondition takes defeatcondition whichCondition returns nothing native DefeatConditionSetDescription takes defeatcondition whichCondition, string description returns nothing native FlashQuestDialogButton takes nothing returns nothing native ForceQuestDialogUpdate takes nothing returns nothing //============================================================================ // Timer Dialog API native CreateTimerDialog takes timer t returns timerdialog native DestroyTimerDialog takes timerdialog whichDialog returns nothing native TimerDialogSetTitle takes timerdialog whichDialog, string title returns nothing native TimerDialogSetTitleColor takes timerdialog whichDialog, integer red, integer green, integer blue, integer alpha returns nothing native TimerDialogSetTimeColor takes timerdialog whichDialog, integer red, integer green, integer blue, integer alpha returns nothing native TimerDialogSetSpeed takes timerdialog whichDialog, real speedMultFactor returns nothing native TimerDialogDisplay takes timerdialog whichDialog, boolean display returns nothing native IsTimerDialogDisplayed takes timerdialog whichDialog returns boolean native TimerDialogSetRealTimeRemaining takes timerdialog whichDialog, real timeRemaining returns nothing //============================================================================ // Leaderboard API // Create a leaderboard object native CreateLeaderboard takes nothing returns leaderboard native DestroyLeaderboard takes leaderboard lb returns nothing native LeaderboardDisplay takes leaderboard lb, boolean show returns nothing native IsLeaderboardDisplayed takes leaderboard lb returns boolean native LeaderboardGetItemCount takes leaderboard lb returns integer native LeaderboardSetSizeByItemCount takes leaderboard lb, integer count returns nothing native LeaderboardAddItem takes leaderboard lb, string label, integer value, player p returns nothing native LeaderboardRemoveItem takes leaderboard lb, integer index returns nothing native LeaderboardRemovePlayerItem takes leaderboard lb, player p returns nothing native LeaderboardClear takes leaderboard lb returns nothing native LeaderboardSortItemsByValue takes leaderboard lb, boolean ascending returns nothing native LeaderboardSortItemsByPlayer takes leaderboard lb, boolean ascending returns nothing native LeaderboardSortItemsByLabel takes leaderboard lb, boolean ascending returns nothing native LeaderboardHasPlayerItem takes leaderboard lb, player p returns boolean native LeaderboardGetPlayerIndex takes leaderboard lb, player p returns integer native LeaderboardSetLabel takes leaderboard lb, string label returns nothing native LeaderboardGetLabelText takes leaderboard lb returns string native PlayerSetLeaderboard takes player toPlayer, leaderboard lb returns nothing native PlayerGetLeaderboard takes player toPlayer returns leaderboard native LeaderboardSetLabelColor takes leaderboard lb, integer red, integer green, integer blue, integer alpha returns nothing native LeaderboardSetValueColor takes leaderboard lb, integer red, integer green, integer blue, integer alpha returns nothing native LeaderboardSetStyle takes leaderboard lb, boolean showLabel, boolean showNames, boolean showValues, boolean showIcons returns nothing native LeaderboardSetItemValue takes leaderboard lb, integer whichItem, integer val returns nothing native LeaderboardSetItemLabel takes leaderboard lb, integer whichItem, string val returns nothing native LeaderboardSetItemStyle takes leaderboard lb, integer whichItem, boolean showLabel, boolean showValue, boolean showIcon returns nothing native LeaderboardSetItemLabelColor takes leaderboard lb, integer whichItem, integer red, integer green, integer blue, integer alpha returns nothing native LeaderboardSetItemValueColor takes leaderboard lb, integer whichItem, integer red, integer green, integer blue, integer alpha returns nothing //============================================================================ // Multiboard API //============================================================================ // Create a multiboard object native CreateMultiboard takes nothing returns multiboard native DestroyMultiboard takes multiboard lb returns nothing native MultiboardDisplay takes multiboard lb, boolean show returns nothing native IsMultiboardDisplayed takes multiboard lb returns boolean native MultiboardMinimize takes multiboard lb, boolean minimize returns nothing native IsMultiboardMinimized takes multiboard lb returns boolean native MultiboardClear takes multiboard lb returns nothing native MultiboardSetTitleText takes multiboard lb, string label returns nothing native MultiboardGetTitleText takes multiboard lb returns string native MultiboardSetTitleTextColor takes multiboard lb, integer red, integer green, integer blue, integer alpha returns nothing native MultiboardGetRowCount takes multiboard lb returns integer native MultiboardGetColumnCount takes multiboard lb returns integer native MultiboardSetColumnCount takes multiboard lb, integer count returns nothing native MultiboardSetRowCount takes multiboard lb, integer count returns nothing // broadcast settings to all items native MultiboardSetItemsStyle takes multiboard lb, boolean showValues, boolean showIcons returns nothing native MultiboardSetItemsValue takes multiboard lb, string value returns nothing native MultiboardSetItemsValueColor takes multiboard lb, integer red, integer green, integer blue, integer alpha returns nothing native MultiboardSetItemsWidth takes multiboard lb, real width returns nothing native MultiboardSetItemsIcon takes multiboard lb, string iconPath returns nothing // funcs for modifying individual items native MultiboardGetItem takes multiboard lb, integer row, integer column returns multiboarditem native MultiboardReleaseItem takes multiboarditem mbi returns nothing native MultiboardSetItemStyle takes multiboarditem mbi, boolean showValue, boolean showIcon returns nothing native MultiboardSetItemValue takes multiboarditem mbi, string val returns nothing native MultiboardSetItemValueColor takes multiboarditem mbi, integer red, integer green, integer blue, integer alpha returns nothing native MultiboardSetItemWidth takes multiboarditem mbi, real width returns nothing native MultiboardSetItemIcon takes multiboarditem mbi, string iconFileName returns nothing // meant to unequivocally suspend display of existing and // subsequently displayed multiboards // native MultiboardSuppressDisplay takes boolean flag returns nothing //============================================================================ // Camera API native SetCameraPosition takes real x, real y returns nothing native SetCameraQuickPosition takes real x, real y returns nothing native SetCameraBounds takes real x1, real y1, real x2, real y2, real x3, real y3, real x4, real y4 returns nothing native StopCamera takes nothing returns nothing native ResetToGameCamera takes real duration returns nothing native PanCameraTo takes real x, real y returns nothing native PanCameraToTimed takes real x, real y, real duration returns nothing native PanCameraToWithZ takes real x, real y, real zOffsetDest returns nothing native PanCameraToTimedWithZ takes real x, real y, real zOffsetDest, real duration returns nothing native SetCinematicCamera takes string cameraModelFile returns nothing native SetCameraRotateMode takes real x, real y, real radiansToSweep, real duration returns nothing native SetCameraField takes camerafield whichField, real value, real duration returns nothing native AdjustCameraField takes camerafield whichField, real offset, real duration returns nothing native SetCameraTargetController takes unit whichUnit, real xoffset, real yoffset, boolean inheritOrientation returns nothing native SetCameraOrientController takes unit whichUnit, real xoffset, real yoffset returns nothing native CreateCameraSetup takes nothing returns camerasetup native CameraSetupSetField takes camerasetup whichSetup, camerafield whichField, real value, real duration returns nothing native CameraSetupGetField takes camerasetup whichSetup, camerafield whichField returns real native CameraSetupSetDestPosition takes camerasetup whichSetup, real x, real y, real duration returns nothing native CameraSetupGetDestPositionLoc takes camerasetup whichSetup returns location native CameraSetupGetDestPositionX takes camerasetup whichSetup returns real native CameraSetupGetDestPositionY takes camerasetup whichSetup returns real native CameraSetupApply takes camerasetup whichSetup, boolean doPan, boolean panTimed returns nothing native CameraSetupApplyWithZ takes camerasetup whichSetup, real zDestOffset returns nothing native CameraSetupApplyForceDuration takes camerasetup whichSetup, boolean doPan, real forceDuration returns nothing native CameraSetupApplyForceDurationWithZ takes camerasetup whichSetup, real zDestOffset, real forceDuration returns nothing native CameraSetTargetNoise takes real mag, real velocity returns nothing native CameraSetSourceNoise takes real mag, real velocity returns nothing native CameraSetTargetNoiseEx takes real mag, real velocity, boolean vertOnly returns nothing native CameraSetSourceNoiseEx takes real mag, real velocity, boolean vertOnly returns nothing native CameraSetSmoothingFactor takes real factor returns nothing native SetCineFilterTexture takes string filename returns nothing native SetCineFilterBlendMode takes blendmode whichMode returns nothing native SetCineFilterTexMapFlags takes texmapflags whichFlags returns nothing native SetCineFilterStartUV takes real minu, real minv, real maxu, real maxv returns nothing native SetCineFilterEndUV takes real minu, real minv, real maxu, real maxv returns nothing native SetCineFilterStartColor takes integer red, integer green, integer blue, integer alpha returns nothing native SetCineFilterEndColor takes integer red, integer green, integer blue, integer alpha returns nothing native SetCineFilterDuration takes real duration returns nothing native DisplayCineFilter takes boolean flag returns nothing native IsCineFilterDisplayed takes nothing returns boolean native SetCinematicScene takes integer portraitUnitId, playercolor color, string speakerTitle, string text, real sceneDuration, real voiceoverDuration returns nothing native EndCinematicScene takes nothing returns nothing native ForceCinematicSubtitles takes boolean flag returns nothing native GetCameraMargin takes integer whichMargin returns real // These return values for the local players camera only... constant native GetCameraBoundMinX takes nothing returns real constant native GetCameraBoundMinY takes nothing returns real constant native GetCameraBoundMaxX takes nothing returns real constant native GetCameraBoundMaxY takes nothing returns real constant native GetCameraField takes camerafield whichField returns real constant native GetCameraTargetPositionX takes nothing returns real constant native GetCameraTargetPositionY takes nothing returns real constant native GetCameraTargetPositionZ takes nothing returns real constant native GetCameraTargetPositionLoc takes nothing returns location constant native GetCameraEyePositionX takes nothing returns real constant native GetCameraEyePositionY takes nothing returns real constant native GetCameraEyePositionZ takes nothing returns real constant native GetCameraEyePositionLoc takes nothing returns location //============================================================================ // Sound API // native NewSoundEnvironment takes string environmentName returns nothing native CreateSound takes string fileName, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate, string eaxSetting returns sound native CreateSoundFilenameWithLabel takes string fileName, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate, string SLKEntryName returns sound native CreateSoundFromLabel takes string soundLabel, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate returns sound native CreateMIDISound takes string soundLabel, integer fadeInRate, integer fadeOutRate returns sound native SetSoundParamsFromLabel takes sound soundHandle, string soundLabel returns nothing native SetSoundDistanceCutoff takes sound soundHandle, real cutoff returns nothing native SetSoundChannel takes sound soundHandle, integer channel returns nothing native SetSoundVolume takes sound soundHandle, integer volume returns nothing native SetSoundPitch takes sound soundHandle, real pitch returns nothing // the following method must be called immediately after calling "StartSound" native SetSoundPlayPosition takes sound soundHandle, integer millisecs returns nothing // these calls are only valid if the sound was created with 3d enabled native SetSoundDistances takes sound soundHandle, real minDist, real maxDist returns nothing native SetSoundConeAngles takes sound soundHandle, real inside, real outside, integer outsideVolume returns nothing native SetSoundConeOrientation takes sound soundHandle, real x, real y, real z returns nothing native SetSoundPosition takes sound soundHandle, real x, real y, real z returns nothing native SetSoundVelocity takes sound soundHandle, real x, real y, real z returns nothing native AttachSoundToUnit takes sound soundHandle, unit whichUnit returns nothing native StartSound takes sound soundHandle returns nothing native StopSound takes sound soundHandle, boolean killWhenDone, boolean fadeOut returns nothing native KillSoundWhenDone takes sound soundHandle returns nothing // Music Interface. Note that if music is disabled, these calls do nothing native SetMapMusic takes string musicName, boolean random, integer index returns nothing native ClearMapMusic takes nothing returns nothing native PlayMusic takes string musicName returns nothing native PlayMusicEx takes string musicName, integer frommsecs, integer fadeinmsecs returns nothing native StopMusic takes boolean fadeOut returns nothing native ResumeMusic takes nothing returns nothing native PlayThematicMusic takes string musicFileName returns nothing native PlayThematicMusicEx takes string musicFileName, integer frommsecs returns nothing native EndThematicMusic takes nothing returns nothing native SetMusicVolume takes integer volume returns nothing native SetMusicPlayPosition takes integer millisecs returns nothing native SetThematicMusicPlayPosition takes integer millisecs returns nothing // other music and sound calls native SetSoundDuration takes sound soundHandle, integer duration returns nothing native GetSoundDuration takes sound soundHandle returns integer native GetSoundFileDuration takes string musicFileName returns integer native VolumeGroupSetVolume takes volumegroup vgroup, real scale returns nothing native VolumeGroupReset takes nothing returns nothing native GetSoundIsPlaying takes sound soundHandle returns boolean native GetSoundIsLoading takes sound soundHandle returns boolean native RegisterStackedSound takes sound soundHandle, boolean byPosition, real rectwidth, real rectheight returns nothing native UnregisterStackedSound takes sound soundHandle, boolean byPosition, real rectwidth, real rectheight returns nothing //============================================================================ // Effects API // native AddWeatherEffect takes rect where, integer effectID returns weathereffect native RemoveWeatherEffect takes weathereffect whichEffect returns nothing native EnableWeatherEffect takes weathereffect whichEffect, boolean enable returns nothing native TerrainDeformCrater takes real x, real y, real radius, real depth, integer duration, boolean permanent returns terraindeformation native TerrainDeformRipple takes real x, real y, real radius, real depth, integer duration, integer count, real spaceWaves, real timeWaves, real radiusStartPct, boolean limitNeg returns terraindeformation native TerrainDeformWave takes real x, real y, real dirX, real dirY, real distance, real speed, real radius, real depth, integer trailTime, integer count returns terraindeformation native TerrainDeformRandom takes real x, real y, real radius, real minDelta, real maxDelta, integer duration, integer updateInterval returns terraindeformation native TerrainDeformStop takes terraindeformation deformation, integer duration returns nothing native TerrainDeformStopAll takes nothing returns nothing native AddSpecialEffect takes string modelName, real x, real y returns effect native AddSpecialEffectLoc takes string modelName, location where returns effect native AddSpecialEffectTarget takes string modelName, widget targetWidget, string attachPointName returns effect native DestroyEffect takes effect whichEffect returns nothing native AddSpellEffect takes string abilityString, effecttype t, real x, real y returns effect native AddSpellEffectLoc takes string abilityString, effecttype t,location where returns effect native AddSpellEffectById takes integer abilityId, effecttype t,real x, real y returns effect native AddSpellEffectByIdLoc takes integer abilityId, effecttype t,location where returns effect native AddSpellEffectTarget takes string modelName, effecttype t, widget targetWidget, string attachPoint returns effect native AddSpellEffectTargetById takes integer abilityId, effecttype t, widget targetWidget, string attachPoint returns effect native AddLightning takes string codeName, boolean checkVisibility, real x1, real y1, real x2, real y2 returns lightning native AddLightningEx takes string codeName, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2, real z2 returns lightning native DestroyLightning takes lightning whichBolt returns boolean native MoveLightning takes lightning whichBolt, boolean checkVisibility, real x1, real y1, real x2, real y2 returns boolean native MoveLightningEx takes lightning whichBolt, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2, real z2 returns boolean native GetLightningColorA takes lightning whichBolt returns real native GetLightningColorR takes lightning whichBolt returns real native GetLightningColorG takes lightning whichBolt returns real native GetLightningColorB takes lightning whichBolt returns real native SetLightningColor takes lightning whichBolt, real r, real g, real b, real a returns boolean native GetAbilityEffect takes string abilityString, effecttype t, integer index returns string native GetAbilityEffectById takes integer abilityId, effecttype t, integer index returns string native GetAbilitySound takes string abilityString, soundtype t returns string native GetAbilitySoundById takes integer abilityId, soundtype t returns string //============================================================================ // Terrain API // native GetTerrainCliffLevel takes real x, real y returns integer native SetWaterBaseColor takes integer red, integer green, integer blue, integer alpha returns nothing native SetWaterDeforms takes boolean val returns nothing native GetTerrainType takes real x, real y returns integer native GetTerrainVariance takes real x, real y returns integer native SetTerrainType takes real x, real y, integer terrainType, integer variation, integer area, integer shape returns nothing native IsTerrainPathable takes real x, real y, pathingtype t returns boolean native SetTerrainPathable takes real x, real y, pathingtype t, boolean flag returns nothing //============================================================================ // Image API // native CreateImage takes string file, real sizeX, real sizeY, real sizeZ, real posX, real posY, real posZ, real originX, real originY, real originZ, integer imageType returns image native DestroyImage takes image whichImage returns nothing native ShowImage takes image whichImage, boolean flag returns nothing native SetImageConstantHeight takes image whichImage, boolean flag, real height returns nothing native SetImagePosition takes image whichImage, real x, real y, real z returns nothing native SetImageColor takes image whichImage, integer red, integer green, integer blue, integer alpha returns nothing native SetImageRender takes image whichImage, boolean flag returns nothing native SetImageRenderAlways takes image whichImage, boolean flag returns nothing native SetImageAboveWater takes image whichImage, boolean flag, boolean useWaterAlpha returns nothing native SetImageType takes image whichImage, integer imageType returns nothing //============================================================================ // Ubersplat API // native CreateUbersplat takes real x, real y, string name, integer red, integer green, integer blue, integer alpha, boolean forcePaused, boolean noBirthTime returns ubersplat native DestroyUbersplat takes ubersplat whichSplat returns nothing native ResetUbersplat takes ubersplat whichSplat returns nothing native FinishUbersplat takes ubersplat whichSplat returns nothing native ShowUbersplat takes ubersplat whichSplat, boolean flag returns nothing native SetUbersplatRender takes ubersplat whichSplat, boolean flag returns nothing native SetUbersplatRenderAlways takes ubersplat whichSplat, boolean flag returns nothing //============================================================================ // Blight API // native SetBlight takes player whichPlayer, real x, real y, real radius, boolean addBlight returns nothing native SetBlightRect takes player whichPlayer, rect r, boolean addBlight returns nothing native SetBlightPoint takes player whichPlayer, real x, real y, boolean addBlight returns nothing native SetBlightLoc takes player whichPlayer, location whichLocation, real radius, boolean addBlight returns nothing native CreateBlightedGoldmine takes player id, real x, real y, real face returns unit native IsPointBlighted takes real x, real y returns boolean //============================================================================ // Doodad API // native SetDoodadAnimation takes real x, real y, real radius, integer doodadID, boolean nearestOnly, string animName, boolean animRandom returns nothing native SetDoodadAnimationRect takes rect r, integer doodadID, string animName, boolean animRandom returns nothing //============================================================================ // Computer AI interface // native StartMeleeAI takes player num, string script returns nothing native StartCampaignAI takes player num, string script returns nothing native CommandAI takes player num, integer command, integer data returns nothing native PauseCompAI takes player p, boolean pause returns nothing native GetAIDifficulty takes player num returns aidifficulty native RemoveGuardPosition takes unit hUnit returns nothing native RecycleGuardPosition takes unit hUnit returns nothing native RemoveAllGuardPositions takes player num returns nothing //============================================================================ native Cheat takes string cheatStr returns nothing native IsNoVictoryCheat takes nothing returns boolean native IsNoDefeatCheat takes nothing returns boolean native Preload takes string filename returns nothing native PreloadEnd takes real timeout returns nothing native PreloadStart takes nothing returns nothing native PreloadRefresh takes nothing returns nothing native PreloadEndEx takes nothing returns nothing native PreloadGenClear takes nothing returns nothing native PreloadGenStart takes nothing returns nothing native PreloadGenEnd takes string filename returns nothing native Preloader takes string filename returns nothing // JAPI Test Functions native GetTriggerPlayerMouseX takes nothing returns real native GetTriggerPlayerMouseY takes nothing returns real native GetTriggerPlayerMousePosition takes nothing returns location native GetTriggerPlayerMouseButton takes nothing returns mousebuttontype native SetAbilityTooltip takes integer abilCode, string tooltip, integer level returns nothing native SetAbilityOnTooltip takes integer abilCode, string tooltip, integer level returns nothing native SetAbilityExtendedTooltip takes integer abilCode, string ExtendedTooltip, integer level returns nothing native SetAbilityOnExtendedTooltip takes integer abilCode, string ExtendedTooltip, integer level returns nothing native SetAbilityResearchTooltip takes integer abilCode, string researchTooltip, integer level returns nothing native SetAbilityResearchExtendedTooltip takes integer abilCode, string researchExtendedTooltip, integer level returns nothing native GetAbilityTooltip takes integer abilCode, integer level returns string native GetAbilityOnTooltip takes integer abilCode, integer level returns string native GetAbilityExtendedTooltip takes integer abilCode, integer level returns string native GetAbilityOnExtendedTooltip takes integer abilCode, integer level returns string native GetAbilityResearchTooltip takes integer abilCode, integer level returns string native GetAbilityResearchExtendedTooltip takes integer abilCode, integer level returns string native SetAbilityIcon takes integer abilCode, string iconPath, integer level returns nothing native GetAbilityIcon takes integer abilCode, integer level returns string native SetAbilityOnIcon takes integer abilCode, string iconPath returns nothing native GetAbilityOnIcon takes integer abilCode returns string native GetAbilityPosX takes integer abilCode returns integer native GetAbilityPosY takes integer abilCode returns integer native SetAbilityPosX takes integer abilCode, integer x returns nothing native SetAbilityPosY takes integer abilCode, integer y returns nothing native GetAbilityOnPosX takes integer abilCode returns integer native GetAbilityOnPosY takes integer abilCode returns integer native SetAbilityOnPosX takes integer abilCode, integer x returns nothing native SetAbilityOnPosY takes integer abilCode, integer y returns nothing native GetUnitMaxHP takes unit whichUnit returns integer native SetUnitMaxHP takes unit whichUnit, integer hp returns nothing native GetUnitMaxMana takes unit whichUnit returns integer native SetUnitMaxMana takes unit whichUnit, integer mana returns nothing native DeleteHeroAbility takes unit whichUnit, integer abilCode returns nothing native SetItemName takes item whichItem, string name returns nothing native SetItemDescription takes item whichItem, string name returns nothing native GetItemDescription takes item whichItem returns string native SetItemTooltip takes item whichItem, string name returns nothing native GetItemTooltip takes item whichItem returns string native SetItemExtendedTooltip takes item whichItem, string name returns nothing native GetItemExtendedTooltip takes item whichItem returns string native SetItemIconPath takes item whichItem, string name returns nothing native GetItemIconPath takes item whichItem returns string native SetUnitName takes unit whichUnit, string name returns nothing native SetUnitNameAll takes unit whichUnit, string name returns nothing native SetHeroProperName takes unit whichUnit, string name returns nothing native GetUnitBaseDamage takes unit whichUnit, integer weaponIndex returns integer native SetUnitBaseDamage takes unit whichUnit, integer baseDamage, integer weaponIndex returns nothing native GetUnitDiceNumber takes unit whichUnit, integer weaponIndex returns integer native SetUnitDiceNumber takes unit whichUnit, integer diceNumber, integer weaponIndex returns nothing native GetUnitDiceSides takes unit whichUnit, integer weaponIndex returns integer native SetUnitDiceSides takes unit whichUnit, integer diceSides, integer weaponIndex returns nothing native GetUnitAttackCooldown takes unit whichUnit, integer weaponIndex returns real native SetUnitAttackCooldown takes unit whichUnit, real cooldown, integer weaponIndex returns nothing native SetSpecialEffectColorByPlayer takes effect whichEffect, player whichPlayer returns nothing native SetSpecialEffectColor takes effect whichEffect, integer r, integer g, integer b returns nothing native SetSpecialEffectAlpha takes effect whichEffect, integer alpha returns nothing native SetSpecialEffectScale takes effect whichEffect, real scale returns nothing native SetSpecialEffectPosition takes effect whichEffect, real x, real y, real z returns nothing native SetSpecialEffectHeight takes effect whichEffect, real height returns nothing native SetSpecialEffectTimeScale takes effect whichEffect, real timeScale returns nothing native SetSpecialEffectTime takes effect whichEffect, real time returns nothing native SetSpecialEffectOrientation takes effect whichEffect, real yaw, real pitch, real roll returns nothing native SetSpecialEffectYaw takes effect whichEffect, real yaw returns nothing native SetSpecialEffectPitch takes effect whichEffect, real pitch returns nothing native SetSpecialEffectRoll takes effect whichEffect, real roll returns nothing native PlaySpecialEffect takes effect whichEffect, integer anim returns nothing native PlaySpecialEffectWithTimeScale takes effect whichEffect, integer anim, real timeScale returns nothing constant native DecPlayerTechResearched takes player whichPlayer, integer techid, integer levels returns nothing native SetEventDamage takes real damage returns nothing native AutomationTestStart takes string testName returns nothing native AutomationTestEnd takes string testName returns nothing native SetSpecialEffectX takes effect whichEffect, real x returns nothing native SetSpecialEffectY takes effect whichEffect, real y returns nothing native SetSpecialEffectZ takes effect whichEffect, real z returns nothing native SetSpecialEffectPositionLoc takes effect whichEffect, location loc returns nothing native GetLocalSpecialEffectX takes effect whichEffect returns real native GetLocalSpecialEffectY takes effect whichEffect returns real native GetLocalSpecialEffectZ takes effect whichEffect returns real native GetUnitArmor takes unit whichUnit returns real native SetUnitArmor takes unit whichUnit, real armorAmount returns nothing native UnitHideAbility takes unit whichUnit, integer abilId, boolean flag returns nothing native UnitDisableAbility takes unit whichUnit, integer abilId, boolean flag, boolean hideUI returns nothing native UnitCancelTimedLife takes unit whichUnit returns nothing native IsUnitSelectable takes unit whichUnit returns boolean native IsUnitInvulnerable takes unit whichUnit returns boolean native UnitInterruptAttack takes unit whichUnit returns nothing native GetUnitCollisionSize takes unit whichUnit returns real native GetAbilityManaCost takes integer abilId, integer level returns integer native GetAbilityCooldown takes integer abilId, integer level returns real native SetUnitAbilityCooldown takes unit whichUnit, integer abilId, integer level, real cooldown returns nothing native GetUnitAbilityCooldown takes unit whichUnit, integer abilId, integer level returns real native GetUnitAbilityCooldownRemaining takes unit whichUnit, integer abilId returns real native EndUnitAbilityCooldown takes unit whichUnit, integer abilCode returns nothing native GetUnitAbilityManaCost takes unit whichUnit, integer abilId, integer level returns integer native GetLocalUnitZ takes unit whichUnit returns real // native GetUnitMovementType takes unit whichUnit returns integer // native SetUnitMovementType takes unit whichUnit, integer movementType returns nothing // native GetUnitArmorType takes unit whichUnit returns integer // native SetHeroStatEx takes unit whichHero, integer whichStat, integer statValue, boolean permanent returns nothing // native GetHeroPrimaryStat takes unit whichHero returns integer // native GetHeroPrimaryStatById takes unit whichHero returns integer // native GetHeroStat takes unit whichHero, integer whichStat, boolean includeBonuses returns integer