Difference between revisions of "Dota 2 Workshop Tools/Scripting/API"

From Valve Developer Community
Jump to: navigation, search
(Added DOTAUnitOrder_t)
(Dota_Lebot push: Updated Page)
Line 178: Line 178:
 
| <code>string DoUniqueString(string string_1) </code>
 
| <code>string DoUniqueString(string string_1) </code>
 
| UniqueString:Generate a string guaranteed to be unique across the life of the script VM, with an optional root string. Useful for adding data to table's when not sure what keys are already in use in that table.
 
| UniqueString:Generate a string guaranteed to be unique across the life of the script VM, with an optional root string. Useful for adding data to table's when not sure what keys are already in use in that table.
 +
|-
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSound | EmitAnnouncerSound]]
 +
| <code>void EmitAnnouncerSound(string string_1) </code>
 +
| Emit an announcer sound for all players.
 +
|-
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSoundForPlayer | EmitAnnouncerSoundForPlayer]]
 +
| <code>void EmitAnnouncerSoundForPlayer(string string_1, int int_2) </code>
 +
| Emit an announcer sound for a player.
 +
|-
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSoundForTeam | EmitAnnouncerSoundForTeam]]
 +
| <code>void EmitAnnouncerSoundForTeam(string string_1, int int_2) </code>
 +
| Emit an announcer sound for a team.
 +
|-
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitAnnouncerSoundForTeamOnLocation | EmitAnnouncerSoundForTeamOnLocation]]
 +
| <code>void EmitAnnouncerSoundForTeamOnLocation(string string_1, int int_2, Vector Vector_3) </code>
 +
| Emit an announcer sound for a team at a specific location.
 
|-
 
|-
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitGlobalSound | EmitGlobalSound]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.EmitGlobalSound | EmitGlobalSound]]
Line 342: Line 358:
 
| <code>void InitLogFile(string string_1, string string_2) </code>
 
| <code>void InitLogFile(string string_1, string string_2) </code>
 
| If the given file doesn't exist, creates it with the given contents; does nothing if it exists
 
| If the given file doesn't exist, creates it with the given contents; does nothing if it exists
 +
|-
 +
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsClient | IsClient]]
 +
| <code>bool IsClient() </code>
 +
| Returns true if this is lua running from the client.dll.
 
|-
 
|-
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsDedicatedServer | IsDedicatedServer]]
 
| [[Dota 2 Workshop Tools/Scripting/API/Global.IsDedicatedServer | IsDedicatedServer]]
Line 1,235: Line 1,255:
 
| No Description Set
 
| No Description Set
 
|-
 
|-
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityName | Gecode>QAngle GetAngles() tAbilityName]]
+
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseAbility.GetAbilityName | GetAbilityName]]
 
| <code>string GetAbilityName() </code>
 
| <code>string GetAbilityName() </code>
 
| No Description Set
 
| No Description Set
Line 4,205: Line 4,225:
 
| <code>bool GetStashPurchasingDisabled() </code>
 
| <code>bool GetStashPurchasingDisabled() </code>
 
| Turn purchasing items to the stash off/on. If purchasing to the stash is off the player must be at a shop to purchase items.
 
| Turn purchasing items to the stash off/on. If purchasing to the stash is off the player must be at a shop to purchase items.
 +
|-
 +
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.GetStickyItemDisabled | GetStickyItemDisabled]]
 +
| <code>bool GetStickyItemDisabled() </code>
 +
| Hide the sticky item in the quickbuy.
 
|-
 
|-
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.GetTopBarTeamValuesOverride | GetTopBarTeamValuesOverride]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.GetTopBarTeamValuesOverride | GetTopBarTeamValuesOverride]]
Line 4,369: Line 4,393:
 
| <code>void SetStashPurchasingDisabled(bool bDisabled) </code>
 
| <code>void SetStashPurchasingDisabled(bool bDisabled) </code>
 
| Turn purchasing items to the stash off/on. If purchasing to the stash is off the player must be at a shop to purchase items.
 
| Turn purchasing items to the stash off/on. If purchasing to the stash is off the player must be at a shop to purchase items.
 +
|-
 +
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetStickyItemDisabled | SetStickyItemDisabled]]
 +
| <code>void SetStickyItemDisabled(bool bDisabled) </code>
 +
| Hide the sticky item in the quickbuy.
 
|-
 
|-
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValue | SetTopBarTeamValue]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTABaseGameMode.SetTopBarTeamValue | SetTopBarTeamValue]]
Line 5,002: Line 5,030:
 
| <code>int GetNianTotalDamageTaken() </code>
 
| <code>int GetNianTotalDamageTaken() </code>
 
| For New Bloom, get total damage taken by the Nian / Year Beast
 
| For New Bloom, get total damage taken by the Nian / Year Beast
 +
|-
 +
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetPlayerCustomGameAccountRecord | GetPlayerCustomGameAccountRecord]]
 +
| <code>table GetPlayerCustomGameAccountRecord(int int_1) </code>
 +
| (Preview/Unreleased) Gets the player's custom game account record, as it looked at the start of this session
 
|-
 
|-
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetTimeOfDay | GetTimeOfDay]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.GetTimeOfDay | GetTimeOfDay]]
Line 5,054: Line 5,086:
 
| <code>void SetCreepMinimapIconScale(float scale) </code>
 
| <code>void SetCreepMinimapIconScale(float scale) </code>
 
| Scale the creep icons on the minimap.
 
| Scale the creep icons on the minimap.
 +
|-
 +
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCustomGameAccountRecordSaveFunction | SetCustomGameAccountRecordSaveFunction]]
 +
| <code>void SetCustomGameAccountRecordSaveFunction(handle handle_1, handle handle_2) </code>
 +
| (Preview/Unreleased) Sets a callback to handle saving custom game account records (callback is passed a Player ID and should return a flat simple table)
 
|-
 
|-
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCustomGameDifficulty | SetCustomGameDifficulty]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetCustomGameDifficulty | SetCustomGameDifficulty]]
Line 5,150: Line 5,186:
 
| <code>void SetSameHeroSelectionEnabled(bool enabled) </code>
 
| <code>void SetSameHeroSelectionEnabled(bool enabled) </code>
 
| When true, players can repeatedly pick the same hero.
 
| When true, players can repeatedly pick the same hero.
 +
|-
 +
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetStartingGold | SetStartingGold]]
 +
| <code>void SetStartingGold(int int_1) </code>
 +
| Set the starting gold amount.
 
|-
 
|-
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetTimeOfDay | SetTimeOfDay]]
 
| [[Dota 2 Workshop Tools/Scripting/API/CDOTAGamerules.SetTimeOfDay | SetTimeOfDay]]
Line 7,335: Line 7,375:
 
|}
 
|}
  
==== DOTAUnitOrder_t ====
+
==== DOTA_ABILITY_BEHAVIOR ====
 
{| class="standard-table" style="width: 50%;"
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Name
Line 7,341: Line 7,381:
 
! Description
 
! Description
 
|-
 
|-
| DOTA_UNIT_ORDER_NONE
+
| DOTA_ABILITY_BEHAVIOR_NONE
 
| 0
 
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_MOVE_TO_POSITION
+
| DOTA_ABILITY_BEHAVIOR_HIDDEN
 
| 1
 
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_MOVE_TO_TARGET
+
| DOTA_ABILITY_BEHAVIOR_PASSIVE
 
| 2
 
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_ATTACK_MOVE
+
| DOTA_ABILITY_BEHAVIOR_NO_TARGET
| 3
+
| 4
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_ATTACK_TARGET
+
| DOTA_ABILITY_BEHAVIOR_UNIT_TARGET
| 4
+
| 8
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_CAST_POSITION
+
| DOTA_ABILITY_BEHAVIOR_POINT
| 5
+
| 16
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_CAST_TARGET
+
| DOTA_ABILITY_BEHAVIOR_AOE
| 6
+
| 32
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_CAST_TARGET_TREE
+
| DOTA_ABILITY_BEHAVIOR_NOT_LEARNABLE
| 7
+
| 64
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_CAST_NO_TARGET
+
| DOTA_ABILITY_BEHAVIOR_CHANNELLED
| 8
+
| 128
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_CAST_TOGGLE
+
| DOTA_ABILITY_BEHAVIOR_ITEM
| 9
+
| 256
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_HOLD_POSITION
+
| DOTA_ABILITY_BEHAVIOR_TOGGLE
| 10
+
| 512
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_TRAIN_ABILITY
+
| DOTA_ABILITY_BEHAVIOR_DIRECTIONAL
| 11
+
| 1024
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_DROP_ITEM
+
| DOTA_ABILITY_BEHAVIOR_IMMEDIATE
| 12
+
| 2048
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_GIVE_ITEM
+
| DOTA_ABILITY_BEHAVIOR_AUTOCAST
| 13
+
| 4096
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_PICKUP_ITEM
+
| DOTA_ABILITY_BEHAVIOR_OPTIONAL_UNIT_TARGET
| 14
+
| 8192
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_PICKUP_RUNE
+
| DOTA_ABILITY_BEHAVIOR_OPTIONAL_POINT
| 15
+
| 16384
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_PURCHASE_ITEM
+
| DOTA_ABILITY_BEHAVIOR_OPTIONAL_NO_TARGET
| 16
+
| 32768
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_SELL_ITEM
+
| DOTA_ABILITY_BEHAVIOR_AURA
| 17
+
| 65536
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_DISASSEMBLE_ITEM
+
| DOTA_ABILITY_BEHAVIOR_ATTACK
| 18
+
| 131072
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_MOVE_ITEM
+
| DOTA_ABILITY_BEHAVIOR_DONT_RESUME_MOVEMENT
| 19
+
| 262144
 +
|
 +
|-
 +
| DOTA_ABILITY_BEHAVIOR_ROOT_DISABLES
 +
| 524288
 +
|
 +
|-
 +
| DOTA_ABILITY_BEHAVIOR_UNRESTRICTED
 +
| 1048576
 +
|
 +
|-
 +
| DOTA_ABILITY_BEHAVIOR_IGNORE_PSEUDO_QUEUE
 +
| 2097152
 +
|
 +
|-
 +
| DOTA_ABILITY_BEHAVIOR_IGNORE_CHANNEL
 +
| 4194304
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_CAST_TOGGLE_AUTO
+
| DOTA_ABILITY_BEHAVIOR_DONT_CANCEL_MOVEMENT
| 20
+
| 8388608
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_STOP
+
| DOTA_ABILITY_BEHAVIOR_DONT_ALERT_TARGET
| 21
+
| 16777216
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_TAUNT
+
| DOTA_ABILITY_BEHAVIOR_DONT_RESUME_ATTACK
| 22
+
| 33554432
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_BUYBACK
+
| DOTA_ABILITY_BEHAVIOR_NORMAL_WHEN_STOLEN
| 23
+
| 67108864
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_GLYPH
+
| DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING
| 24
+
| 134217728
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_EJECT_ITEM_FROM_STASH
+
| DOTA_ABILITY_BEHAVIOR_RUNE_TARGET
| 25
+
| 268435456
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_CAST_RUNE
+
| DOTA_ABILITY_BEHAVIOR_DONT_CANCEL_CHANNEL
| 26
+
| 536870912
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_ORDER_PING_ABILITY
+
| DOTA_ABILITY_LAST_BEHAVIOR
| 27
+
| 536870912
|
+
|  
 
|}
 
|}
  
==== DOTA_ABILITY_BEHAVIOR ====
+
==== DOTA_HeroPickState ====
 
{| class="standard-table" style="width: 50%;"
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Name
Line 7,460: Line 7,516:
 
! Description
 
! Description
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_NONE
+
| DOTA_HEROPICK_STATE_NONE
 
| 0
 
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_HIDDEN
+
| DOTA_HEROPICK_STATE_AP_SELECT
 
| 1
 
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_PASSIVE
+
| DOTA_HEROPICK_STATE_SD_SELECT
 
| 2
 
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_NO_TARGET
+
| DOTA_HEROPICK_STATE_INTRO_SELECT
 +
| 3
 +
|
 +
|-
 +
| DOTA_HEROPICK_STATE_RD_SELECT
 
| 4
 
| 4
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_UNIT_TARGET
+
| DOTA_HEROPICK_STATE_CM_INTRO
| 8
+
| 5
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_POINT
+
| DOTA_HEROPICK_STATE_CM_CAPTAINPICK
| 16
+
| 6
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_AOE
+
| DOTA_HEROPICK_STATE_CM_BAN1
| 32
+
| 7
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_NOT_LEARNABLE
+
| DOTA_HEROPICK_STATE_CM_BAN2
| 64
+
| 8
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_CHANNELLED
+
| DOTA_HEROPICK_STATE_CM_BAN3
| 128
+
| 9
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_ITEM
+
| DOTA_HEROPICK_STATE_CM_BAN4
| 256
+
| 10
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_TOGGLE
+
| DOTA_HEROPICK_STATE_CM_BAN5
| 512
+
| 11
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_DIRECTIONAL
+
| DOTA_HEROPICK_STATE_CM_BAN6
| 1024
+
| 12
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_IMMEDIATE
+
| DOTA_HEROPICK_STATE_CM_BAN7
| 2048
+
| 13
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_AUTOCAST
+
| DOTA_HEROPICK_STATE_CM_BAN8
| 4096
+
| 14
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_OPTIONAL_UNIT_TARGET
+
| DOTA_HEROPICK_STATE_CM_BAN9
| 8192
+
| 15
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_OPTIONAL_POINT
+
| DOTA_HEROPICK_STATE_CM_BAN10
| 16384
+
| 16
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_OPTIONAL_NO_TARGET
+
| DOTA_HEROPICK_STATE_CM_SELECT1
| 32768
+
| 17
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_AURA
+
| DOTA_HEROPICK_STATE_CM_SELECT2
| 65536
+
| 18
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_ATTACK
+
| DOTA_HEROPICK_STATE_CM_SELECT3
| 131072
+
| 19
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_DONT_RESUME_MOVEMENT
+
| DOTA_HEROPICK_STATE_CM_SELECT4
| 262144
+
| 20
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_ROOT_DISABLES
+
| DOTA_HEROPICK_STATE_CM_SELECT5
| 524288
+
| 21
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_UNRESTRICTED
+
| DOTA_HEROPICK_STATE_CM_SELECT6
| 1048576
+
| 22
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_IGNORE_PSEUDO_QUEUE
+
| DOTA_HEROPICK_STATE_CM_SELECT7
| 2097152
+
| 23
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_IGNORE_CHANNEL
+
| DOTA_HEROPICK_STATE_CM_SELECT8
| 4194304
+
| 24
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_DONT_CANCEL_MOVEMENT
+
| DOTA_HEROPICK_STATE_CM_SELECT9
| 8388608
+
| 25
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_DONT_ALERT_TARGET
+
| DOTA_HEROPICK_STATE_CM_SELECT10
| 16777216
+
| 26
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_DONT_RESUME_ATTACK
+
| DOTA_HEROPICK_STATE_CM_PICK
| 33554432
+
| 27
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_NORMAL_WHEN_STOLEN
+
| DOTA_HEROPICK_STATE_AR_SELECT
| 67108864
+
| 28
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING
+
| DOTA_HEROPICK_STATE_MO_SELECT
| 134217728
+
| 29
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_RUNE_TARGET
+
| DOTA_HEROPICK_STATE_FH_SELECT
| 268435456
+
| 30
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_BEHAVIOR_DONT_CANCEL_CHANNEL
+
| DOTA_HEROPICK_STATE_CD_INTRO
| 536870912
+
| 31
 
|  
 
|  
 
|-
 
|-
| DOTA_ABILITY_LAST_BEHAVIOR
+
| DOTA_HEROPICK_STATE_CD_CAPTAINPICK
| 536870912
+
| 32
 
|  
 
|  
|}
 
 
==== DOTA_HeroPickState ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
 
|-
 
|-
| DOTA_HEROPICK_STATE_NONE
+
| DOTA_HEROPICK_STATE_CD_BAN1
| 0
+
| 33
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_AP_SELECT
+
| DOTA_HEROPICK_STATE_CD_BAN2
| 1
+
| 34
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_SD_SELECT
+
| DOTA_HEROPICK_STATE_CD_BAN3
| 2
+
| 35
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_INTRO_SELECT
+
| DOTA_HEROPICK_STATE_CD_BAN4
| 3
+
| 36
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_RD_SELECT
+
| DOTA_HEROPICK_STATE_CD_BAN5
| 4
+
| 37
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_INTRO
+
| DOTA_HEROPICK_STATE_CD_BAN6
| 5
+
| 38
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_CAPTAINPICK
+
| DOTA_HEROPICK_STATE_CD_SELECT1
| 6
+
| 39
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_BAN1
+
| DOTA_HEROPICK_STATE_CD_SELECT2
| 7
+
| 40
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_BAN2
+
| DOTA_HEROPICK_STATE_CD_SELECT3
| 8
+
| 41
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_BAN3
+
| DOTA_HEROPICK_STATE_CD_SELECT4
| 9
+
| 42
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_BAN4
+
| DOTA_HEROPICK_STATE_CD_SELECT5
| 10
+
| 43
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_BAN5
+
| DOTA_HEROPICK_STATE_CD_SELECT6
| 11
+
| 44
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_BAN6
+
| DOTA_HEROPICK_STATE_CD_SELECT7
| 12
+
| 45
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_BAN7
+
| DOTA_HEROPICK_STATE_CD_SELECT8
| 13
+
| 46
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_BAN8
+
| DOTA_HEROPICK_STATE_CD_SELECT9
| 14
+
| 47
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_BAN9
+
| DOTA_HEROPICK_STATE_CD_SELECT10
| 15
+
| 48
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_BAN10
+
| DOTA_HEROPICK_STATE_CD_PICK
| 16
+
| 49
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_SELECT1
+
| DOTA_HEROPICK_STATE_BD_SELECT
| 17
+
| 50
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_SELECT2
+
| DOTA_HERO_PICK_STATE_ABILITY_DRAFT_SELECT
| 18
+
| 51
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_SELECT3
+
| DOTA_HERO_PICK_STATE_ARDM_SELECT
| 19
+
| 52
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_SELECT4
+
| DOTA_HEROPICK_STATE_ALL_DRAFT_SELECT
| 20
+
| 53
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_SELECT5
+
| DOTA_HERO_PICK_STATE_CUSTOMGAME_SELECT
| 21
+
| 54
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_SELECT6
+
| DOTA_HEROPICK_STATE_COUNT
| 22
+
| 55
 
|  
 
|  
 +
|}
 +
 +
==== DOTA_MOTION_CONTROLLER_PRIORITY ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_SELECT7
+
| DOTA_MOTION_CONTROLLER_PRIORITY_LOWEST
| 23
+
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_SELECT8
+
| DOTA_MOTION_CONTROLLER_PRIORITY_LOW
| 24
+
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_SELECT9
+
| DOTA_MOTION_CONTROLLER_PRIORITY_MEDIUM
| 25
+
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_SELECT10
+
| DOTA_MOTION_CONTROLLER_PRIORITY_HIGH
| 26
+
| 3
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CM_PICK
+
| DOTA_MOTION_CONTROLLER_PRIORITY_HIGHEST
| 27
+
| 4
 
|  
 
|  
 +
|}
 +
 +
==== DOTA_RUNES ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| DOTA_HEROPICK_STATE_AR_SELECT
+
| DOTA_RUNE_INVALID
| 28
+
| -1
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_MO_SELECT
+
| DOTA_RUNE_DOUBLEDAMAGE
| 29
+
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_FH_SELECT
+
| DOTA_RUNE_HASTE
| 30
+
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_INTRO
+
| DOTA_RUNE_ILLUSION
| 31
+
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_CAPTAINPICK
+
| DOTA_RUNE_INVISIBILITY
| 32
+
| 3
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_BAN1
+
| DOTA_RUNE_REGENERATION
| 33
+
| 4
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_BAN2
+
| DOTA_RUNE_BOUNTY
| 34
+
| 5
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_BAN3
+
| DOTA_RUNE_COUNT
| 35
+
| 6
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_BAN4
+
| DOTA_RUNE_HAUNTED
| 36
+
| 7
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_BAN5
+
| DOTA_RUNE_SPOOKY
| 37
+
| 8
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_BAN6
+
| DOTA_RUNE_RAPIER
| 38
+
| 9
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_SELECT1
+
| DOTA_RUNE_TURBO
| 39
+
| 10
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_SELECT2
+
| DOTA_RUNE_MYSTERY
| 40
+
| 11
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_SELECT3
+
| DOTA_HALLOWEEN_RUNE_COUNT
| 41
+
| 12
 
|  
 
|  
 +
|}
 +
 +
==== DOTA_UNIT_TARGET_FLAGS ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_SELECT4
+
| DOTA_UNIT_TARGET_FLAG_NONE
| 42
+
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_SELECT5
+
| DOTA_UNIT_TARGET_FLAG_RANGED_ONLY
| 43
+
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_SELECT6
+
| DOTA_UNIT_TARGET_FLAG_MELEE_ONLY
| 44
+
| 4
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_SELECT7
+
| DOTA_UNIT_TARGET_FLAG_DEAD
| 45
+
| 8
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_SELECT8
+
| DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES
| 46
+
| 16
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_SELECT9
+
| DOTA_UNIT_TARGET_FLAG_NOT_MAGIC_IMMUNE_ALLIES
| 47
+
| 32
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_SELECT10
+
| DOTA_UNIT_TARGET_FLAG_INVULNERABLE
| 48
+
| 64
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_CD_PICK
+
| DOTA_UNIT_TARGET_FLAG_FOW_VISIBLE
| 49
+
| 128
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_BD_SELECT
+
| DOTA_UNIT_TARGET_FLAG_NO_INVIS
| 50
+
| 256
 
|  
 
|  
 
|-
 
|-
| DOTA_HERO_PICK_STATE_ABILITY_DRAFT_SELECT
+
| DOTA_UNIT_TARGET_FLAG_NOT_ANCIENTS
| 51
+
| 512
 
|  
 
|  
 
|-
 
|-
| DOTA_HERO_PICK_STATE_ARDM_SELECT
+
| DOTA_UNIT_TARGET_FLAG_PLAYER_CONTROLLED
| 52
+
| 1024
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_ALL_DRAFT_SELECT
+
| DOTA_UNIT_TARGET_FLAG_NOT_DOMINATED
| 53
+
| 2048
 
|  
 
|  
 
|-
 
|-
| DOTA_HERO_PICK_STATE_CUSTOMGAME_SELECT
+
| DOTA_UNIT_TARGET_FLAG_NOT_SUMMONED
| 54
+
| 4096
 
|  
 
|  
 
|-
 
|-
| DOTA_HEROPICK_STATE_COUNT
+
| DOTA_UNIT_TARGET_FLAG_NOT_ILLUSIONS
| 55
+
| 8192
 
|  
 
|  
|}
 
 
==== DOTA_MOTION_CONTROLLER_PRIORITY ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
 
|-
 
|-
| DOTA_MOTION_CONTROLLER_PRIORITY_LOWEST
+
| DOTA_UNIT_TARGET_FLAG_NOT_ATTACK_IMMUNE
| 0
+
| 16384
 
|  
 
|  
 
|-
 
|-
| DOTA_MOTION_CONTROLLER_PRIORITY_LOW
+
| DOTA_UNIT_TARGET_FLAG_MANA_ONLY
| 1
+
| 32768
 +
|
 +
|-
 +
| DOTA_UNIT_TARGET_FLAG_CHECK_DISABLE_HELP
 +
| 65536
 
|  
 
|  
 
|-
 
|-
| DOTA_MOTION_CONTROLLER_PRIORITY_MEDIUM
+
| DOTA_UNIT_TARGET_FLAG_NOT_CREEP_HERO
| 2
+
| 131072
 
|  
 
|  
 
|-
 
|-
| DOTA_MOTION_CONTROLLER_PRIORITY_HIGH
+
| DOTA_UNIT_TARGET_FLAG_OUT_OF_WORLD
| 3
+
| 262144
 
|  
 
|  
 
|-
 
|-
| DOTA_MOTION_CONTROLLER_PRIORITY_HIGHEST
+
| DOTA_UNIT_TARGET_FLAG_NOT_NIGHTMARED
| 4
+
| 524288
 
|  
 
|  
 
|}
 
|}
  
==== DOTA_RUNES ====
+
==== DOTA_UNIT_TARGET_TEAM ====
 
{| class="standard-table" style="width: 50%;"
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Name
Line 7,853: Line 7,924:
 
! Description
 
! Description
 
|-
 
|-
| DOTA_RUNE_INVALID
+
| DOTA_UNIT_TARGET_TEAM_NONE
| -1
 
|
 
|-
 
| DOTA_RUNE_DOUBLEDAMAGE
 
 
| 0
 
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_RUNE_HASTE
+
| DOTA_UNIT_TARGET_TEAM_FRIENDLY
 
| 1
 
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_RUNE_ILLUSION
+
| DOTA_UNIT_TARGET_TEAM_ENEMY
 
| 2
 
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_RUNE_INVISIBILITY
+
| DOTA_UNIT_TARGET_TEAM_BOTH
 
| 3
 
| 3
 
|  
 
|  
 
|-
 
|-
| DOTA_RUNE_REGENERATION
+
| DOTA_UNIT_TARGET_TEAM_CUSTOM
 
| 4
 
| 4
 
|  
 
|  
 +
|}
 +
 +
==== DOTA_UNIT_TARGET_TYPE ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| DOTA_RUNE_BOUNTY
+
| DOTA_UNIT_TARGET_NONE
| 5
+
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_RUNE_COUNT
+
| DOTA_UNIT_TARGET_HERO
| 6
+
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_RUNE_HAUNTED
+
| DOTA_UNIT_TARGET_CREEP
| 7
+
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_RUNE_SPOOKY
+
| DOTA_UNIT_TARGET_BUILDING
| 8
+
| 4
 
|  
 
|  
 
|-
 
|-
| DOTA_RUNE_RAPIER
+
| DOTA_UNIT_TARGET_MECHANICAL
| 9
+
| 8
 
|  
 
|  
 
|-
 
|-
| DOTA_RUNE_TURBO
+
| DOTA_UNIT_TARGET_COURIER
| 10
+
| 16
 +
|
 +
|-
 +
| DOTA_UNIT_TARGET_BASIC
 +
| 18
 +
|
 +
|-
 +
| DOTA_UNIT_TARGET_OTHER
 +
| 32
 +
|
 +
|-
 +
| DOTA_UNIT_TARGET_ALL
 +
| 63
 
|  
 
|  
 
|-
 
|-
| DOTA_RUNE_MYSTERY
+
| DOTA_UNIT_TARGET_TREE
| 11
+
| 64
 
|  
 
|  
 
|-
 
|-
| DOTA_HALLOWEEN_RUNE_COUNT
+
| DOTA_UNIT_TARGET_CUSTOM
| 12
+
| 128
 
|  
 
|  
 
|}
 
|}
  
==== DOTA_UNIT_TARGET_FLAGS ====
+
==== EDOTA_ModifyGold_Reason ====
 
{| class="standard-table" style="width: 50%;"
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Name
Line 7,916: Line 8,002:
 
! Description
 
! Description
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_NONE
+
| DOTA_ModifyGold_Unspecified
 
| 0
 
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_RANGED_ONLY
+
| DOTA_ModifyGold_Death
 +
| 1
 +
|
 +
|-
 +
| DOTA_ModifyGold_Buyback
 
| 2
 
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_MELEE_ONLY
+
| DOTA_ModifyGold_PurchaseConsumable
| 4
+
| 3
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_DEAD
+
| DOTA_ModifyGold_PurchaseItem
| 8
+
| 4
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES
+
| DOTA_ModifyGold_AbandonedRedistribute
| 16
+
| 5
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_NOT_MAGIC_IMMUNE_ALLIES
+
| DOTA_ModifyGold_SellItem
| 32
+
| 6
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_INVULNERABLE
+
| DOTA_ModifyGold_AbilityCost
| 64
+
| 7
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_FOW_VISIBLE
+
| DOTA_ModifyGold_CheatCommand
| 128
+
| 8
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_NO_INVIS
+
| DOTA_ModifyGold_SelectionPenalty
| 256
+
| 9
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_NOT_ANCIENTS
+
| DOTA_ModifyGold_GameTick
| 512
+
| 10
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_PLAYER_CONTROLLED
+
| DOTA_ModifyGold_Building
| 1024
+
| 11
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_NOT_DOMINATED
+
| DOTA_ModifyGold_HeroKill
| 2048
+
| 12
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_NOT_SUMMONED
+
| DOTA_ModifyGold_CreepKill
| 4096
+
| 13
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_NOT_ILLUSIONS
+
| DOTA_ModifyGold_RoshanKill
| 8192
+
| 14
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_NOT_ATTACK_IMMUNE
+
| DOTA_ModifyGold_CourierKill
| 16384
+
| 15
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_FLAG_MANA_ONLY
+
| DOTA_ModifyGold_SharedGold
| 32768
+
| 16
|
 
|-
 
| DOTA_UNIT_TARGET_FLAG_CHECK_DISABLE_HELP
 
| 65536
 
|
 
|-
 
| DOTA_UNIT_TARGET_FLAG_NOT_CREEP_HERO
 
| 131072
 
|
 
|-
 
| DOTA_UNIT_TARGET_FLAG_OUT_OF_WORLD
 
| 262144
 
|
 
|-
 
| DOTA_UNIT_TARGET_FLAG_NOT_NIGHTMARED
 
| 524288
 
 
|  
 
|  
 
|}
 
|}
  
==== DOTA_UNIT_TARGET_TEAM ====
+
==== EDOTA_ModifyXP_Reason ====
 
{| class="standard-table" style="width: 50%;"
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Name
Line 8,003: Line 8,077:
 
! Description
 
! Description
 
|-
 
|-
| DOTA_UNIT_TARGET_TEAM_NONE
+
| DOTA_ModifyXP_Unspecified
 
| 0
 
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_TEAM_FRIENDLY
+
| DOTA_ModifyXP_HeroKill
 
| 1
 
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_TEAM_ENEMY
+
| DOTA_ModifyXP_CreepKill
 
| 2
 
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_TEAM_BOTH
+
| DOTA_ModifyXP_RoshanKill
 
| 3
 
| 3
|
 
|-
 
| DOTA_UNIT_TARGET_TEAM_CUSTOM
 
| 4
 
 
|  
 
|  
 
|}
 
|}
  
==== DOTA_UNIT_TARGET_TYPE ====
+
==== EShareAbility ====
 
{| class="standard-table" style="width: 50%;"
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Name
Line 8,030: Line 8,100:
 
! Description
 
! Description
 
|-
 
|-
| DOTA_UNIT_TARGET_NONE
+
| ITEM_FULLY_SHAREABLE
 
| 0
 
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_HERO
+
| ITEM_PARTIALLY_SHAREABLE
 
| 1
 
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_CREEP
+
| ITEM_NOT_SHAREABLE
 
| 2
 
| 2
 
|  
 
|  
 +
|}
 +
 +
==== LuaModifierType ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| DOTA_UNIT_TARGET_BUILDING
+
| LUA_MODIFIER_MOTION_NONE
| 4
+
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_MECHANICAL
+
| LUA_MODIFIER_MOTION_HORIZONTAL
| 8
+
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_COURIER
+
| LUA_MODIFIER_MOTION_VERTICAL
| 16
+
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_BASIC
+
| LUA_MODIFIER_MOTION_BOTH
| 18
+
| 3
 
|  
 
|  
 
|-
 
|-
| DOTA_UNIT_TARGET_OTHER
+
| LUA_MODIFIER_INVALID
| 32
+
| 4
|
 
|-
 
| DOTA_UNIT_TARGET_ALL
 
| 63
 
|
 
|-
 
| DOTA_UNIT_TARGET_TREE
 
| 64
 
|
 
|-
 
| DOTA_UNIT_TARGET_CUSTOM
 
| 128
 
 
|  
 
|  
 
|}
 
|}
  
==== EDOTA_ModifyGold_Reason ====
+
==== ParticleAttachment_t ====
 
{| class="standard-table" style="width: 50%;"
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Name
Line 8,081: Line 8,146:
 
! Description
 
! Description
 
|-
 
|-
| DOTA_ModifyGold_Unspecified
+
| PATTACH_INVALID
 +
| -1
 +
|
 +
|-
 +
| PATTACH_ABSORIGIN
 
| 0
 
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_Death
+
| PATTACH_ABSORIGIN_FOLLOW
 
| 1
 
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_Buyback
+
| PATTACH_CUSTOMORIGIN
 
| 2
 
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_PurchaseConsumable
+
| PATTACH_CUSTOMORIGIN_FOLLOW
 
| 3
 
| 3
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_PurchaseItem
+
| PATTACH_POINT
 
| 4
 
| 4
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_AbandonedRedistribute
+
| PATTACH_POINT_FOLLOW
 
| 5
 
| 5
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_SellItem
+
| PATTACH_EYES_FOLLOW
 
| 6
 
| 6
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_AbilityCost
+
| PATTACH_OVERHEAD_FOLLOW
 
| 7
 
| 7
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_CheatCommand
+
| PATTACH_WORLDORIGIN
 
| 8
 
| 8
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_SelectionPenalty
+
| PATTACH_ROOTBONE_FOLLOW
 
| 9
 
| 9
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_GameTick
+
| PATTACH_RENDERORIGIN_FOLLOW
 
| 10
 
| 10
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_Building
+
| PATTACH_MAIN_VIEW
 
| 11
 
| 11
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_HeroKill
+
| PATTACH_WATERWAKE
 
| 12
 
| 12
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyGold_CreepKill
+
| MAX_PATTACH_TYPES
 
| 13
 
| 13
|
 
|-
 
| DOTA_ModifyGold_RoshanKill
 
| 14
 
|
 
|-
 
| DOTA_ModifyGold_CourierKill
 
| 15
 
|
 
|-
 
| DOTA_ModifyGold_SharedGold
 
| 16
 
 
|  
 
|  
 
|}
 
|}
  
==== EDOTA_ModifyXP_Reason ====
+
==== UnitFilterResult ====
 
{| class="standard-table" style="width: 50%;"
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Name
Line 8,156: Line 8,213:
 
! Description
 
! Description
 
|-
 
|-
| DOTA_ModifyXP_Unspecified
+
| UF_SUCCESS
 
| 0
 
| 0
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyXP_HeroKill
+
| UF_FAIL_FRIENDLY
 
| 1
 
| 1
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyXP_CreepKill
+
| UF_FAIL_ENEMY
 
| 2
 
| 2
 
|  
 
|  
 
|-
 
|-
| DOTA_ModifyXP_RoshanKill
+
| UF_FAIL_HERO
 
| 3
 
| 3
 
|  
 
|  
|}
 
 
==== EShareAbility ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
 
|-
 
|-
| ITEM_FULLY_SHAREABLE
+
| UF_FAIL_CONSIDERED_HERO
| 0
+
| 4
 
|  
 
|  
 
|-
 
|-
| ITEM_PARTIALLY_SHAREABLE
+
| UF_FAIL_CREEP
| 1
+
| 5
 
|  
 
|  
 
|-
 
|-
| ITEM_NOT_SHAREABLE
+
| UF_FAIL_BUILDING
| 2
+
| 6
 
|  
 
|  
|}
+
|-
 
+
| UF_FAIL_MECHANICAL
==== LuaModifierType ====
+
| 7
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
|-
 
| LUA_MODIFIER_MOTION_NONE
 
| 0
 
 
|  
 
|  
 
|-
 
|-
| LUA_MODIFIER_MOTION_HORIZONTAL
+
| UF_FAIL_COURIER
| 1
+
| 8
 
|  
 
|  
 
|-
 
|-
| LUA_MODIFIER_MOTION_VERTICAL
+
| UF_FAIL_OTHER
| 2
+
| 9
 
|  
 
|  
 
|-
 
|-
| LUA_MODIFIER_MOTION_BOTH
+
| UF_FAIL_ANCIENT
| 3
+
| 10
 
|  
 
|  
 
|-
 
|-
| LUA_MODIFIER_INVALID
+
| UF_FAIL_ILLUSION
| 4
+
| 11
 
|  
 
|  
|}
 
 
==== ParticleAttachment_t ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
 
|-
 
|-
| PATTACH_INVALID
+
| UF_FAIL_SUMMONED
| -1
+
| 12
 
|  
 
|  
 
|-
 
|-
| PATTACH_ABSORIGIN
+
| UF_FAIL_DOMINATED
| 0
+
| 13
 
|  
 
|  
 
|-
 
|-
| PATTACH_ABSORIGIN_FOLLOW
+
| UF_FAIL_MELEE
| 1
+
| 14
 
|  
 
|  
 
|-
 
|-
| PATTACH_CUSTOMORIGIN
+
| UF_FAIL_RANGED
| 2
+
| 15
 
|  
 
|  
 
|-
 
|-
| PATTACH_CUSTOMORIGIN_FOLLOW
+
| UF_FAIL_DEAD
| 3
+
| 16
 
|  
 
|  
 
|-
 
|-
| PATTACH_POINT
+
| UF_FAIL_MAGIC_IMMUNE_ALLY
| 4
+
| 17
 
|  
 
|  
 
|-
 
|-
| PATTACH_POINT_FOLLOW
+
| UF_FAIL_MAGIC_IMMUNE_ENEMY
| 5
+
| 18
 
|  
 
|  
 
|-
 
|-
| PATTACH_EYES_FOLLOW
+
| UF_FAIL_INVULNERABLE
| 6
+
| 19
 
|  
 
|  
 
|-
 
|-
| PATTACH_OVERHEAD_FOLLOW
+
| UF_FAIL_IN_FOW
| 7
+
| 20
 +
|
 +
|-
 +
| UF_FAIL_INVISIBLE
 +
| 21
 +
|
 +
|-
 +
| UF_FAIL_NOT_PLAYER_CONTROLLED
 +
| 22
 
|  
 
|  
 
|-
 
|-
| PATTACH_WORLDORIGIN
+
| UF_FAIL_ATTACK_IMMUNE
| 8
+
| 23
 
|  
 
|  
 
|-
 
|-
| PATTACH_ROOTBONE_FOLLOW
+
| UF_FAIL_CUSTOM
| 9
+
| 24
 
|  
 
|  
 
|-
 
|-
| PATTACH_RENDERORIGIN_FOLLOW
+
| UF_FAIL_INVALID_LOCATION
| 10
+
| 25
 
|  
 
|  
 
|-
 
|-
| PATTACH_MAIN_VIEW
+
| UF_FAIL_DISABLE_HELP
| 11
+
| 26
 
|  
 
|  
 
|-
 
|-
| PATTACH_WATERWAKE
+
| UF_FAIL_OUT_OF_WORLD
| 12
+
| 27
 
|  
 
|  
 
|-
 
|-
| MAX_PATTACH_TYPES
+
| UF_FAIL_NIGHTMARED
| 13
+
| 28
 
|  
 
|  
 
|}
 
|}
  
==== UnitFilterResult ====
+
==== modifierstate ====
 
{| class="standard-table" style="width: 50%;"
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Name
Line 8,292: Line 8,336:
 
! Description
 
! Description
 
|-
 
|-
| UF_SUCCESS
+
| MODIFIER_STATE_ROOTED
 
| 0
 
| 0
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_FRIENDLY
+
| MODIFIER_STATE_DISARMED
 
| 1
 
| 1
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_ENEMY
+
| MODIFIER_STATE_ATTACK_IMMUNE
 
| 2
 
| 2
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_HERO
+
| MODIFIER_STATE_SILENCED
 
| 3
 
| 3
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_CONSIDERED_HERO
+
| MODIFIER_STATE_MUTED
 
| 4
 
| 4
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_CREEP
+
| MODIFIER_STATE_STUNNED
 
| 5
 
| 5
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_BUILDING
+
| MODIFIER_STATE_HEXED
 
| 6
 
| 6
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_MECHANICAL
+
| MODIFIER_STATE_INVISIBLE
 
| 7
 
| 7
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_COURIER
+
| MODIFIER_STATE_INVULNERABLE
 
| 8
 
| 8
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_OTHER
+
| MODIFIER_STATE_MAGIC_IMMUNE
 
| 9
 
| 9
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_ANCIENT
+
| MODIFIER_STATE_PROVIDES_VISION
 
| 10
 
| 10
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_ILLUSION
+
| MODIFIER_STATE_NIGHTMARED
 
| 11
 
| 11
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_SUMMONED
+
| MODIFIER_STATE_BLOCK_DISABLED
 
| 12
 
| 12
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_DOMINATED
+
| MODIFIER_STATE_EVADE_DISABLED
 
| 13
 
| 13
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_MELEE
+
| MODIFIER_STATE_UNSELECTABLE
 
| 14
 
| 14
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_RANGED
+
| MODIFIER_STATE_CANNOT_MISS
 
| 15
 
| 15
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_DEAD
+
| MODIFIER_STATE_SPECIALLY_DENIABLE
 
| 16
 
| 16
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_MAGIC_IMMUNE_ALLY
+
| MODIFIER_STATE_FROZEN
 
| 17
 
| 17
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_MAGIC_IMMUNE_ENEMY
+
| MODIFIER_STATE_COMMAND_RESTRICTED
 
| 18
 
| 18
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_INVULNERABLE
+
| MODIFIER_STATE_NOT_ON_MINIMAP
 
| 19
 
| 19
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_IN_FOW
+
| MODIFIER_STATE_NOT_ON_MINIMAP_FOR_ENEMIES
 
| 20
 
| 20
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_INVISIBLE
+
| MODIFIER_STATE_LOW_ATTACK_PRIORITY
 
| 21
 
| 21
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_NOT_PLAYER_CONTROLLED
+
| MODIFIER_STATE_NO_HEALTH_BAR
 
| 22
 
| 22
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_ATTACK_IMMUNE
+
| MODIFIER_STATE_FLYING
 
| 23
 
| 23
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_CUSTOM
+
| MODIFIER_STATE_NO_UNIT_COLLISION
 
| 24
 
| 24
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_INVALID_LOCATION
+
| MODIFIER_STATE_NO_TEAM_MOVE_TO
 
| 25
 
| 25
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_DISABLE_HELP
+
| MODIFIER_STATE_NO_TEAM_SELECT
 
| 26
 
| 26
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_OUT_OF_WORLD
+
| MODIFIER_STATE_PASSIVES_DISABLED
 
| 27
 
| 27
 
|  
 
|  
 
|-
 
|-
| UF_FAIL_NIGHTMARED
+
| MODIFIER_STATE_DOMINATED
 
| 28
 
| 28
 +
|
 +
|-
 +
| MODIFIER_STATE_BLIND
 +
| 29
 +
|
 +
|-
 +
| MODIFIER_STATE_OUT_OF_GAME
 +
| 30
 +
|
 +
|-
 +
| MODIFIER_STATE_FAKE_ALLY
 +
| 31
 +
|
 +
|-
 +
| MODIFIER_STATE_FLYING_FOR_PATHING_PURPOSES_ONLY
 +
| 32
 +
|
 +
|-
 +
| MODIFIER_STATE_TRUESIGHT_IMMUNE
 +
| 33
 +
|
 +
|-
 +
| MODIFIER_STATE_LAST
 +
| 34
 
|  
 
|  
 
|}
 
|}
  
==== modifierfunction ====
+
==== quest_text_replace_values_t ====
 
{| class="standard-table" style="width: 50%;"
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Name
Line 8,415: Line 8,483:
 
! Description
 
! Description
 
|-
 
|-
| MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE
+
| QUEST_TEXT_REPLACE_VALUE_CURRENT_VALUE
 
| 0
 
| 0
| GetModifierPreAttack_BonusDamage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE_POST_CRIT
+
| QUEST_TEXT_REPLACE_VALUE_TARGET_VALUE
 
| 1
 
| 1
| GetModifierPreAttack_BonusDamagePostCrit
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE
+
| QUEST_TEXT_REPLACE_VALUE_ROUND
 
| 2
 
| 2
| GetModifierBaseAttack_BonusDamage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_PHYSICAL
+
| QUEST_TEXT_REPLACE_VALUE_REWARD
 
| 3
 
| 3
| GetModifierProcAttack_BonusDamage_Physical
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_MAGICAL
+
| QUEST_NUM_TEXT_REPLACE_VALUES
 
| 4
 
| 4
| GetModifierProcAttack_BonusDamage_Magical
+
|  
 +
|}
 +
 
 +
==== Find Types ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_PURE
+
| FIND_UNITS_EVERYWHERE
| 5
+
| -1
| GetModifierProcAttack_BonusDamage_Pure
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_PROCATTACK_FEEDBACK
+
| FIND_ANY_ORDER
| 6
+
| 0
| GetModifierProcAttack_Feedback
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_PRE_ATTACK
+
| FIND_CLOSEST
| 7
+
| 1
| GetModifierPreAttack
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_INVISIBILITY_LEVEL
+
| FIND_FARTHEST
| 8
+
| 2
| GetModifierInvisibilityLevel
+
|  
 +
|}
 +
 
 +
==== subquest_text_replace_values_t ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| MODIFIER_PROPERTY_PERSISTENT_INVISIBILITY
+
| SUBQUEST_TEXT_REPLACE_VALUE_CURRENT_VALUE
| 9
+
| 0
| GetModifierPersistentInvisibility
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MOVESPEED_BONUS_CONSTANT
+
| SUBQUEST_TEXT_REPLACE_VALUE_TARGET_VALUE
| 10
+
| 1
| GetModifierMoveSpeedBonus_Constant
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MOVESPEED_BASE_OVERRIDE
+
| SUBQUEST_NUM_TEXT_REPLACE_VALUES
| 11
+
| 2
| GetModifierMoveSpeedOverride
+
|  
 +
|}
 +
 
 +
==== DOTAScriptInventorySlot_t ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE
+
| DOTA_ITEM_SLOT_1
| 12
+
| 0
| GetModifierMoveSpeedBonus_Percentage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE_UNIQUE
+
| DOTA_ITEM_SLOT_2
| 13
+
| 1
| GetModifierMoveSpeedBonus_Percentage_Unique
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MOVESPEED_BONUS_UNIQUE
+
| DOTA_ITEM_SLOT_3
| 14
+
| 2
| GetModifierMoveSpeedBonus_Special_Boots
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE
+
| DOTA_ITEM_SLOT_4
| 15
+
| 3
| GetModifierMoveSpeed_Absolute
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE_MIN
+
| DOTA_ITEM_SLOT_5
| 16
+
| 4
| GetModifierMoveSpeed_AbsoluteMin
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MOVESPEED_LIMIT
+
| DOTA_ITEM_SLOT_6
| 17
+
| 5
| GetModifierMoveSpeed_Limit
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MOVESPEED_MAX
+
| DOTA_STASH_SLOT_1
| 18
+
| 6
| GetModifierMoveSpeed_Max
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT
+
| DOTA_STASH_SLOT_2
| 19
+
| 7
| GetModifierAttackSpeedBonus_Constant
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT_POWER_TREADS
+
| DOTA_STASH_SLOT_3
| 20
+
| 8
| GetModifierAttackSpeedBonus_Constant_PowerTreads
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT_SECONDARY
+
| DOTA_STASH_SLOT_4
| 21
+
| 9
| GetModifierAttackSpeedBonus_Constant_Secondary
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_COOLDOWN_REDUCTION_CONSTANT
+
| DOTA_STASH_SLOT_5
| 22
+
| 10
| GetModifierCooldownReduction_Constant
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BASE_ATTACK_TIME_CONSTANT
+
| DOTA_STASH_SLOT_6
| 23
+
| 11
| GetModifierBaseAttackTimeConstant
+
|  
 +
|}
 +
 
 +
==== DOTA_GameState ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| MODIFIER_PROPERTY_ATTACK_POINT_CONSTANT
+
| DOTA_GAMERULES_STATE_INIT
| 24
+
| 0
| GetModifierAttackPointConstant
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE
+
| DOTA_GAMERULES_STATE_WAIT_FOR_PLAYERS_TO_LOAD
| 25
+
| 1
| GetModifierDamageOutgoing_Percentage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE_ILLUSION
+
| DOTA_GAMERULES_STATE_CUSTOM_GAME_SETUP
| 26
+
| 2
| GetModifierDamageOutgoing_Percentage_Illusion
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_TOTALDAMAGEOUTGOING_PERCENTAGE
+
| DOTA_GAMERULES_STATE_HERO_SELECTION
| 27
+
| 3
| GetModifierTotalDamageOutgoing_Percentage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BASEDAMAGEOUTGOING_PERCENTAGE
+
| DOTA_GAMERULES_STATE_STRATEGY_TIME
| 28
+
| 4
| GetModifierBaseDamageOutgoing_Percentage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BASEDAMAGEOUTGOING_PERCENTAGE_UNIQUE
+
| DOTA_GAMERULES_STATE_TEAM_SHOWCASE
| 29
+
| 5
| GetModifierBaseDamageOutgoing_PercentageUnique
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_INCOMING_DAMAGE_PERCENTAGE
+
| DOTA_GAMERULES_STATE_PRE_GAME
| 30
+
| 6
| GetModifierIncomingDamage_Percentage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_INCOMING_PHYSICAL_DAMAGE_PERCENTAGE
+
| DOTA_GAMERULES_STATE_GAME_IN_PROGRESS
| 31
+
| 7
| GetModifierIncomingPhysicalDamage_Percentage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_INCOMING_SPELL_DAMAGE_CONSTANT
+
| DOTA_GAMERULES_STATE_POST_GAME
| 32
+
| 8
| GetModifierIncomingSpellDamageConstant
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_EVASION_CONSTANT
+
| DOTA_GAMERULES_STATE_DISCONNECT
| 33
+
| 9
| GetModifierEvasion_Constant
+
|  
 +
|}
 +
 
 +
==== DOTALimits_t ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| MODIFIER_PROPERTY_AVOID_DAMAGE
+
| DOTA_DEFAULT_MAX_TEAM
| 34
+
| 5
| GetModifierAvoidDamage
+
| Default number of players per team.
 
|-
 
|-
| MODIFIER_PROPERTY_AVOID_SPELL
+
| DOTA_DEFAULT_MAX_TEAM_PLAYERS
| 35
+
| 10
| GetModifierAvoidSpell
+
| Default number of non-spectator players supported.
 
|-
 
|-
| MODIFIER_PROPERTY_MISS_PERCENTAGE
+
| DOTA_MAX_PLAYER_TEAMS
| 36
+
| 10
| GetModifierMiss_Percentage
+
| Max number of player teams supported.
 
|-
 
|-
| MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS
+
| DOTA_MAX_TEAM
| 37
+
| 24
| GetModifierPhysicalArmorBonus
+
| Max number of players per team.
 
|-
 
|-
| MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_ILLUSIONS
+
| DOTA_MAX_TEAM_PLAYERS
| 38
+
| 24
| GetModifierPhysicalArmorBonusIllusions
+
| Max number of non-spectator players supported.
 
|-
 
|-
| MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_UNIQUE
+
| DOTA_MAX_SPECTATOR_TEAM_SIZE
| 39
 
| GetModifierPhysicalArmorBonusUnique
 
|-
 
| MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_UNIQUE_ACTIVE
 
 
| 40
 
| 40
| GetModifierPhysicalArmorBonusUniqueActive
+
| How many spectators can watch.
 
|-
 
|-
| MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS
+
| DOTA_MAX_PLAYERS
| 41
+
| 64
| GetModifierMagicalResistanceBonus
+
| Max number of players connected to the server including spectators.
 +
|}
 +
 
 +
==== GameActivity_t ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| MODIFIER_PROPERTY_MAGICAL_RESISTANCE_ITEM_UNIQUE
+
| ACT_DOTA_IDLE
| 42
+
| 1500
| GetModifierMagicalResistanceItemUnique
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MAGICAL_RESISTANCE_DECREPIFY_UNIQUE
+
| ACT_DOTA_IDLE_RARE
| 43
+
| 1501
| GetModifierMagicalResistanceDecrepifyUnique
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BASE_MANA_REGEN
+
| ACT_DOTA_RUN
| 44
+
| 1502
| GetModifierBaseRegen
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MANA_REGEN_CONSTANT
+
| ACT_DOTA_ATTACK
| 45
+
| 1503
| GetModifierConstantManaRegen
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MANA_REGEN_CONSTANT_UNIQUE
+
| ACT_DOTA_ATTACK2
| 46
+
| 1504
| GetModifierConstantManaRegenUnique
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MANA_REGEN_PERCENTAGE
+
| ACT_DOTA_ATTACK_EVENT
| 47
+
| 1505
| GetModifierPercentageManaRegen
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MANA_REGEN_TOTAL_PERCENTAGE
+
| ACT_DOTA_DIE
| 48
+
| 1506
| GetModifierTotalPercentageManaRegen
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT
+
| ACT_DOTA_FLINCH
| 49
+
| 1507
| GetModifierConstantHealthRegen
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_HEALTH_REGEN_PERCENTAGE
+
| ACT_DOTA_FLAIL
| 50
+
| 1508
| GetModifierHealthRegenPercentage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_HEALTH_BONUS
+
| ACT_DOTA_DISABLED
| 51
+
| 1509
| GetModifierHealthBonus
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MANA_BONUS
+
| ACT_DOTA_CAST_ABILITY_1
| 52
+
| 1510
| GetModifierManaBonus
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_EXTRA_STRENGTH_BONUS
+
| ACT_DOTA_CAST_ABILITY_2
| 53
+
| 1511
| GetModifierExtraStrengthBonus
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_EXTRA_HEALTH_BONUS
+
| ACT_DOTA_CAST_ABILITY_3
| 54
+
| 1512
| GetModifierExtraHealthBonus
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_EXTRA_MANA_BONUS
+
| ACT_DOTA_CAST_ABILITY_4
| 55
+
| 1513
| GetModifierExtraManaBonus
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_EXTRA_HEALTH_PERCENTAGE
+
| ACT_DOTA_CAST_ABILITY_5
| 56
+
| 1514
| GetModifierExtraHealthPercentage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_STATS_STRENGTH_BONUS
+
| ACT_DOTA_CAST_ABILITY_6
| 57
+
| 1515
| GetModifierBonusStats_Strength
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_STATS_AGILITY_BONUS
+
| ACT_DOTA_OVERRIDE_ABILITY_1
| 58
+
| 1516
| GetModifierBonusStats_Agility
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_STATS_INTELLECT_BONUS
+
| ACT_DOTA_OVERRIDE_ABILITY_2
| 59
+
| 1517
| GetModifierBonusStats_Intellect
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_ATTACK_RANGE_BONUS
+
| ACT_DOTA_OVERRIDE_ABILITY_3
| 60
+
| 1518
| GetModifierAttackRangeBonus
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_PROJECTILE_SPEED_BONUS
+
| ACT_DOTA_OVERRIDE_ABILITY_4
| 61
+
| 1519
| GetModifierProjectileSpeedBonus
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_REINCARNATION
+
| ACT_DOTA_CHANNEL_ABILITY_1
| 62
+
| 1520
| ReincarnateTime
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_RESPAWNTIME
+
| ACT_DOTA_CHANNEL_ABILITY_2
| 63
+
| 1521
| GetModifierConstantRespawnTime
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_RESPAWNTIME_PERCENTAGE
+
| ACT_DOTA_CHANNEL_ABILITY_3
| 64
+
| 1522
| GetModifierPercentageRespawnTime
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_RESPAWNTIME_STACKING
+
| ACT_DOTA_CHANNEL_ABILITY_4
| 65
+
| 1523
| GetModifierStackingRespawnTime
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_COOLDOWN_PERCENTAGE
+
| ACT_DOTA_CHANNEL_ABILITY_5
| 66
+
| 1524
| GetModifierPercentageCooldown
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_CASTTIME_PERCENTAGE
+
| ACT_DOTA_CHANNEL_ABILITY_6
| 67
+
| 1525
| GetModifierPercentageCasttime
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MANACOST_PERCENTAGE
+
| ACT_DOTA_CHANNEL_END_ABILITY_1
| 68
+
| 1526
| GetModifierPercentageManacost
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_DEATHGOLDCOST
+
| ACT_DOTA_CHANNEL_END_ABILITY_2
| 69
+
| 1527
| GetModifierConstantDeathGoldCost
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_PREATTACK_CRITICALSTRIKE
+
| ACT_DOTA_CHANNEL_END_ABILITY_3
| 70
+
| 1528
| GetModifierPreAttack_CriticalStrike
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_PHYSICAL_CONSTANT_BLOCK
+
| ACT_DOTA_CHANNEL_END_ABILITY_4
| 71
+
| 1529
| GetModifierPhysical_ConstantBlock
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_TOTAL_CONSTANT_BLOCK_UNAVOIDABLE_PRE_ARMOR
+
| ACT_DOTA_CHANNEL_END_ABILITY_5
| 72
+
| 1530
| GetModifierPhysical_ConstantBlockUnavoidablePreArmor
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_TOTAL_CONSTANT_BLOCK
+
| ACT_DOTA_CHANNEL_END_ABILITY_6
| 73
+
| 1531
| GetModifierTotal_ConstantBlock
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_OVERRIDE_ANIMATION
+
| ACT_DOTA_CONSTANT_LAYER
| 74
+
| 1532
| GetOverrideAnimation
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_OVERRIDE_ANIMATION_WEIGHT
+
| ACT_DOTA_CAPTURE
| 75
+
| 1533
| GetOverrideAnimationWeight
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_OVERRIDE_ANIMATION_RATE
+
| ACT_DOTA_SPAWN
| 76
+
| 1534
| GetOverrideAnimationRate
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_ABSORB_SPELL
+
| ACT_DOTA_KILLTAUNT
| 77
+
| 1535
| GetAbsorbSpell
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_REFLECT_SPELL
+
| ACT_DOTA_TAUNT
| 78
+
| 1536
| GetReflectSpell
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_DISABLE_AUTOATTACK
+
| ACT_DOTA_THIRST
| 79
+
| 1537
| GetDisableAutoAttack
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BONUS_DAY_VISION
+
| ACT_DOTA_CAST_DRAGONBREATH
| 80
+
| 1538
| GetBonusDayVision
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BONUS_NIGHT_VISION
+
| ACT_DOTA_ECHO_SLAM
| 81
+
| 1539
| GetBonusNightVision
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BONUS_NIGHT_VISION_UNIQUE
+
| ACT_DOTA_CAST_ABILITY_1_END
| 82
+
| 1540
| GetBonusNightVisionUnique
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BONUS_VISION_PERCENTAGE
+
| ACT_DOTA_CAST_ABILITY_2_END
| 83
+
| 1541
| GetBonusVisionPercentage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_FIXED_DAY_VISION
+
| ACT_DOTA_CAST_ABILITY_3_END
| 84
+
| 1542
| GetFixedDayVision
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_FIXED_NIGHT_VISION
+
| ACT_DOTA_CAST_ABILITY_4_END
| 85
+
| 1543
| GetFixedNightVision
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MIN_HEALTH
+
| ACT_MIRANA_LEAP_END
| 86
+
| 1544
| GetMinHealth
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_PHYSICAL
+
| ACT_WAVEFORM_START
| 87
+
| 1545
| GetAbsoluteNoDamagePhysical
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_MAGICAL
+
| ACT_WAVEFORM_END
| 88
+
| 1546
| GetAbsoluteNoDamageMagical
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_PURE
+
| ACT_DOTA_CAST_ABILITY_ROT
| 89
+
| 1547
| GetAbsoluteNoDamagePure
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_IS_ILLUSION
+
| ACT_DOTA_DIE_SPECIAL
| 90
+
| 1548
| GetIsIllusion
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_ILLUSION_LABEL
+
| ACT_DOTA_RATTLETRAP_BATTERYASSAULT
| 91
+
| 1549
| GetModifierIllusionLabel
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_SUPER_ILLUSION
+
| ACT_DOTA_RATTLETRAP_POWERCOGS
| 92
+
| 1550
| GetModifierSuperIllusion
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_TURN_RATE_PERCENTAGE
+
| ACT_DOTA_RATTLETRAP_HOOKSHOT_START
| 93
+
| 1551
| GetModifierTurnRate_Percentage
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_DISABLE_HEALING
+
| ACT_DOTA_RATTLETRAP_HOOKSHOT_LOOP
| 94
+
| 1552
| GetDisableHealing
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_OVERRIDE_ATTACK_MAGICAL
+
| ACT_DOTA_RATTLETRAP_HOOKSHOT_END
| 95
+
| 1553
| GetOverrideAttackMagical
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_UNIT_STATS_NEEDS_REFRESH
+
| ACT_STORM_SPIRIT_OVERLOAD_RUN_OVERRIDE
| 96
+
| 1554
| GetModifierUnitStatsNeedsRefresh
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BOUNTY_CREEP_MULTIPLIER
+
| ACT_DOTA_TINKER_REARM1
| 97
+
| 1555
| GetModifierBountyCreepMultiplier
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_BOUNTY_OTHER_MULTIPLIER
+
| ACT_DOTA_TINKER_REARM2
| 98
+
| 1556
| GetModifierBountyOtherMultiplier
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ATTACK_RECORD
+
| ACT_DOTA_TINKER_REARM3
| 99
+
| 1557
| OnAttackRecord
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ATTACK_START
+
| ACT_TINY_AVALANCHE
| 100
+
| 1558
| OnAttackStart
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ATTACK
+
| ACT_TINY_TOSS
| 101
+
| 1559
| OnAttack
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ATTACK_LANDED
+
| ACT_TINY_GROWL
| 102
+
| 1560
| OnAttackLanded
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ATTACK_FAIL
+
| ACT_DOTA_WEAVERBUG_ATTACH
| 103
+
| 1561
| OnAttackFail
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ATTACK_ALLIED
+
| ACT_DOTA_CAST_WILD_AXES_END
| 104
+
| 1562
| OnAttackAllied
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_PROJECTILE_DODGE
+
| ACT_DOTA_CAST_LIFE_BREAK_START
| 105
+
| 1563
| OnProjectileDodge
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ORDER
+
| ACT_DOTA_CAST_LIFE_BREAK_END
| 106
+
| 1564
| OnOrder
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_UNIT_MOVED
+
| ACT_DOTA_NIGHTSTALKER_TRANSITION
| 107
+
| 1565
| OnUnitMoved
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ABILITY_START
+
| ACT_DOTA_LIFESTEALER_RAGE
| 108
+
| 1566
| OnAbilityStart
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ABILITY_EXECUTED
+
| ACT_DOTA_LIFESTEALER_OPEN_WOUNDS
| 109
+
| 1567
| OnAbilityExecuted
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ABILITY_FULLY_CAST
+
| ACT_DOTA_SAND_KING_BURROW_IN
| 110
+
| 1568
| OnAbilityFullyCast
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_BREAK_INVISIBILITY
+
| ACT_DOTA_SAND_KING_BURROW_OUT
| 111
+
| 1569
| OnBreakInvisibility
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ABILITY_END_CHANNEL
+
| ACT_DOTA_EARTHSHAKER_TOTEM_ATTACK
| 112
+
| 1570
| OnAbilityEndChannel
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_PROCESS_UPGRADE
+
| ACT_DOTA_WHEEL_LAYER
| 113
+
| 1571
 
|  
 
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_REFRESH
+
| ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_START
| 114
+
| 1572
 
|  
 
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_TAKEDAMAGE
+
| ACT_DOTA_ALCHEMIST_CONCOCTION
| 115
+
| 1573
| OnTakeDamage
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_STATE_CHANGED
+
| ACT_DOTA_JAKIRO_LIQUIDFIRE_START
| 116
+
| 1574
| OnStateChanged
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ORB_EFFECT
+
| ACT_DOTA_JAKIRO_LIQUIDFIRE_LOOP
| 117
+
| 1575
 
|  
 
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_ATTACKED
+
| ACT_DOTA_LIFESTEALER_INFEST
| 118
+
| 1576
| OnAttacked
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_DEATH
+
| ACT_DOTA_LIFESTEALER_INFEST_END
| 119
+
| 1577
| OnDeath
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_RESPAWN
+
| ACT_DOTA_LASSO_LOOP
| 120
+
| 1578
| OnRespawn
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_SPENT_MANA
+
| ACT_DOTA_ALCHEMIST_CONCOCTION_THROW
| 121
+
| 1579
| OnSpentMana
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_TELEPORTING
+
| ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_END
| 122
+
| 1580
| OnTeleporting
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_TELEPORTED
+
| ACT_DOTA_CAST_COLD_SNAP
| 123
+
| 1581
| OnTeleported
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_SET_LOCATION
+
| ACT_DOTA_CAST_GHOST_WALK
| 124
+
| 1582
| OnSetLocation
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_HEALTH_GAINED
+
| ACT_DOTA_CAST_TORNADO
| 125
+
| 1583
| OnHealthGained
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_MANA_GAINED
+
| ACT_DOTA_CAST_EMP
| 126
+
| 1584
| OnManaGained
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_TAKEDAMAGE_KILLCREDIT
+
| ACT_DOTA_CAST_ALACRITY
| 127
+
| 1585
| OnTakeDamageKillCredit
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_HERO_KILLED
+
| ACT_DOTA_CAST_CHAOS_METEOR
| 128
+
| 1586
| OnHeroKilled
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_HEAL_RECEIVED
+
| ACT_DOTA_CAST_SUN_STRIKE
| 129
+
| 1587
| OnHealReceived
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_BUILDING_KILLED
+
| ACT_DOTA_CAST_FORGE_SPIRIT
| 130
+
| 1588
| OnBuildingKilled
+
|  
 
|-
 
|-
| MODIFIER_EVENT_ON_MODEL_CHANGED
+
| ACT_DOTA_CAST_ICE_WALL
| 131
+
| 1589
| OnModelChanged
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_TOOLTIP
+
| ACT_DOTA_CAST_DEAFENING_BLAST
| 132
+
| 1590
| OnTooltip
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MODEL_CHANGE
+
| ACT_DOTA_VICTORY
| 133
+
| 1591
| GetModifierModelChange
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_MODEL_SCALE
+
| ACT_DOTA_DEFEAT
| 134
+
| 1592
| GetModifierModelScale
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_IS_SCEPTER
+
| ACT_DOTA_SPIRIT_BREAKER_CHARGE_POSE
| 135
+
| 1593
| GetModifierScepter
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_TRANSLATE_ACTIVITY_MODIFIERS
+
| ACT_DOTA_SPIRIT_BREAKER_CHARGE_END
| 136
+
| 1594
| GetActivityTranslationModifiers
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_TRANSLATE_ATTACK_SOUND
+
| ACT_DOTA_TELEPORT
| 137
+
| 1595
| GetAttackSound
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_LIFETIME_FRACTION
+
| ACT_DOTA_TELEPORT_END
| 138
+
| 1596
| GetUnitLifetimeFraction
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_PROVIDES_FOW_POSITION
+
| ACT_DOTA_CAST_REFRACTION
| 139
+
| 1597
| GetModifierProvidesFOWVision
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_SPELLS_REQUIRE_HP
+
| ACT_DOTA_CAST_ABILITY_7
| 140
+
| 1598
| GetModifierSpellsRequireHP
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_FORCE_DRAW_MINIMAP
+
| ACT_DOTA_CANCEL_SIREN_SONG
| 141
+
| 1599
| GetForceDrawOnMinimap
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_DISABLE_TURNING
+
| ACT_DOTA_CHANNEL_ABILITY_7
| 142
+
| 1600
| GetModifierDisableTurning
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_IGNORE_CAST_ANGLE
+
| ACT_DOTA_LOADOUT
| 143
+
| 1601
| GetModifierIgnoreCastAngle
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_CHANGE_ABILITY_VALUE
+
| ACT_DOTA_FORCESTAFF_END
| 144
+
| 1602
| GetModifierChangeAbilityValue
+
|  
 
|-
 
|-
| MODIFIER_PROPERTY_ABILITY_LAYOUT
+
| ACT_DOTA_POOF_END
| 145
+
| 1603
| GetModifierAbilityLayout
 
|-
 
| MODIFIER_EVENT_ON_DOMINATED
 
| 146
 
| OnDominated
 
|-
 
| MODIFIER_FUNCTION_LAST
 
| 147
 
 
|  
 
|  
 
|-
 
|-
| MODIFIER_FUNCTION_INVALID
+
| ACT_DOTA_SLARK_POUNCE
| 255
+
| 1604
 
|  
 
|  
|}
 
 
==== modifierstate ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
 
|-
 
|-
| MODIFIER_STATE_ROOTED
+
| ACT_DOTA_MAGNUS_SKEWER_START
| 0
+
| 1605
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_DISARMED
+
| ACT_DOTA_MAGNUS_SKEWER_END
| 1
+
| 1606
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_ATTACK_IMMUNE
+
| ACT_DOTA_MEDUSA_STONE_GAZE
| 2
+
| 1607
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_SILENCED
+
| ACT_DOTA_RELAX_START
| 3
+
| 1608
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_MUTED
+
| ACT_DOTA_RELAX_LOOP
| 4
+
| 1609
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_STUNNED
+
| ACT_DOTA_RELAX_END
| 5
+
| 1610
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_HEXED
+
| ACT_DOTA_CENTAUR_STAMPEDE
| 6
+
| 1611
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_INVISIBLE
+
| ACT_DOTA_BELLYACHE_START
| 7
+
| 1612
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_INVULNERABLE
+
| ACT_DOTA_BELLYACHE_LOOP
| 8
+
| 1613
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_MAGIC_IMMUNE
+
| ACT_DOTA_BELLYACHE_END
| 9
+
| 1614
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_PROVIDES_VISION
+
| ACT_DOTA_ROQUELAIRE_LAND
| 10
+
| 1615
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_NIGHTMARED
+
| ACT_DOTA_ROQUELAIRE_LAND_IDLE
| 11
+
| 1616
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_BLOCK_DISABLED
+
| ACT_DOTA_GREEVIL_CAST
| 12
+
| 1617
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_EVADE_DISABLED
+
| ACT_DOTA_GREEVIL_OVERRIDE_ABILITY
| 13
+
| 1618
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_UNSELECTABLE
+
| ACT_DOTA_GREEVIL_HOOK_START
| 14
+
| 1619
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_CANNOT_MISS
+
| ACT_DOTA_GREEVIL_HOOK_END
| 15
+
| 1620
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_SPECIALLY_DENIABLE
+
| ACT_DOTA_GREEVIL_BLINK_BONE
| 16
+
| 1621
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_FROZEN
+
| ACT_DOTA_IDLE_SLEEPING
| 17
+
| 1622
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_COMMAND_RESTRICTED
+
| ACT_DOTA_INTRO
| 18
+
| 1623
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_NOT_ON_MINIMAP
+
| ACT_DOTA_GESTURE_POINT
| 19
+
| 1624
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_NOT_ON_MINIMAP_FOR_ENEMIES
+
| ACT_DOTA_GESTURE_ACCENT
| 20
+
| 1625
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_LOW_ATTACK_PRIORITY
+
| ACT_DOTA_SLEEPING_END
| 21
+
| 1626
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_NO_HEALTH_BAR
+
| ACT_DOTA_AMBUSH
| 22
+
| 1627
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_FLYING
+
| ACT_DOTA_ITEM_LOOK
| 23
+
| 1628
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_NO_UNIT_COLLISION
+
| ACT_DOTA_STARTLE
| 24
+
| 1629
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_NO_TEAM_MOVE_TO
+
| ACT_DOTA_FRUSTRATION
| 25
+
| 1630
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_NO_TEAM_SELECT
+
| ACT_DOTA_TELEPORT_REACT
| 26
+
| 1631
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_PASSIVES_DISABLED
+
| ACT_DOTA_TELEPORT_END_REACT
| 27
+
| 1632
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_DOMINATED
+
| ACT_DOTA_SHRUG
| 28
+
| 1633
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_BLIND
+
| ACT_DOTA_RELAX_LOOP_END
| 29
+
| 1634
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_OUT_OF_GAME
+
| ACT_DOTA_PRESENT_ITEM
| 30
+
| 1635
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_FAKE_ALLY
+
| ACT_DOTA_IDLE_IMPATIENT
| 31
+
| 1636
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_FLYING_FOR_PATHING_PURPOSES_ONLY
+
| ACT_DOTA_SHARPEN_WEAPON
| 32
+
| 1637
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_TRUESIGHT_IMMUNE
+
| ACT_DOTA_SHARPEN_WEAPON_OUT
| 33
+
| 1638
 
|  
 
|  
 
|-
 
|-
| MODIFIER_STATE_LAST
+
| ACT_DOTA_IDLE_SLEEPING_END
| 34
+
| 1639
 
|  
 
|  
|}
+
|-
 
+
| ACT_DOTA_BRIDGE_DESTROY
==== quest_text_replace_values_t ====
+
| 1640
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
|-
 
| QUEST_TEXT_REPLACE_VALUE_CURRENT_VALUE
 
| 0
 
 
|  
 
|  
 
|-
 
|-
| QUEST_TEXT_REPLACE_VALUE_TARGET_VALUE
+
| ACT_DOTA_TAUNT_SNIPER
| 1
+
| 1641
 
|  
 
|  
 
|-
 
|-
| QUEST_TEXT_REPLACE_VALUE_ROUND
+
| ACT_DOTA_DEATH_BY_SNIPER
| 2
+
| 1642
 
|  
 
|  
 
|-
 
|-
| QUEST_TEXT_REPLACE_VALUE_REWARD
+
| ACT_DOTA_LOOK_AROUND
| 3
+
| 1643
 
|  
 
|  
 
|-
 
|-
| QUEST_NUM_TEXT_REPLACE_VALUES
+
| ACT_DOTA_CAGED_CREEP_RAGE
| 4
+
| 1644
 
|  
 
|  
|}
 
 
==== Find Types ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
 
|-
 
|-
| FIND_UNITS_EVERYWHERE
+
| ACT_DOTA_CAGED_CREEP_RAGE_OUT
| -1
+
| 1645
 
|  
 
|  
 
|-
 
|-
| FIND_ANY_ORDER
+
| ACT_DOTA_CAGED_CREEP_SMASH
| 0
+
| 1646
 
|  
 
|  
 
|-
 
|-
| FIND_CLOSEST
+
| ACT_DOTA_CAGED_CREEP_SMASH_OUT
| 1
+
| 1647
 
|  
 
|  
 
|-
 
|-
| FIND_FARTHEST
+
| ACT_DOTA_IDLE_IMPATIENT_SWORD_TAP
| 2
+
| 1648
 
|  
 
|  
|}
 
 
==== subquest_text_replace_values_t ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
 
|-
 
|-
| SUBQUEST_TEXT_REPLACE_VALUE_CURRENT_VALUE
+
| ACT_DOTA_INTRO_LOOP
| 0
+
| 1649
 
|  
 
|  
 
|-
 
|-
| SUBQUEST_TEXT_REPLACE_VALUE_TARGET_VALUE
+
| ACT_DOTA_BRIDGE_THREAT
| 1
+
| 1650
 
|  
 
|  
 
|-
 
|-
| SUBQUEST_NUM_TEXT_REPLACE_VALUES
+
| ACT_DOTA_DAGON
| 2
+
| 1651
 
|  
 
|  
|}
 
 
==== DOTAScriptInventorySlot_t ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
 
|-
 
|-
| DOTA_ITEM_SLOT_1
+
| ACT_DOTA_CAST_ABILITY_2_ES_ROLL_START
| 0
+
| 1652
 
|  
 
|  
 
|-
 
|-
| DOTA_ITEM_SLOT_2
+
| ACT_DOTA_CAST_ABILITY_2_ES_ROLL
| 1
+
| 1653
 
|  
 
|  
 
|-
 
|-
| DOTA_ITEM_SLOT_3
+
| ACT_DOTA_CAST_ABILITY_2_ES_ROLL_END
| 2
+
| 1654
 
|  
 
|  
 
|-
 
|-
| DOTA_ITEM_SLOT_4
+
| ACT_DOTA_NIAN_PIN_START
| 3
+
| 1655
 
|  
 
|  
 
|-
 
|-
| DOTA_ITEM_SLOT_5
+
| ACT_DOTA_NIAN_PIN_LOOP
| 4
+
| 1656
 
|  
 
|  
 
|-
 
|-
| DOTA_ITEM_SLOT_6
+
| ACT_DOTA_NIAN_PIN_END
| 5
+
| 1657
 
|  
 
|  
 
|-
 
|-
| DOTA_STASH_SLOT_1
+
| ACT_DOTA_LEAP_STUN
| 6
+
| 1658
 
|  
 
|  
 
|-
 
|-
| DOTA_STASH_SLOT_2
+
| ACT_DOTA_LEAP_SWIPE
| 7
+
| 1659
 
|  
 
|  
 
|-
 
|-
| DOTA_STASH_SLOT_3
+
| ACT_DOTA_NIAN_INTRO_LEAP
| 8
+
| 1660
 
|  
 
|  
 
|-
 
|-
| DOTA_STASH_SLOT_4
+
| ACT_DOTA_AREA_DENY
| 9
+
| 1661
 
|  
 
|  
 
|-
 
|-
| DOTA_STASH_SLOT_5
+
| ACT_DOTA_NIAN_PIN_TO_STUN
| 10
+
| 1662
 
|  
 
|  
 
|-
 
|-
| DOTA_STASH_SLOT_6
+
| ACT_DOTA_RAZE_1
| 11
+
| 1663
 
|  
 
|  
|}
 
 
==== DOTA_GameState ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
 
|-
 
|-
| DOTA_GAMERULES_STATE_INIT
+
| ACT_DOTA_RAZE_2
| 0
+
| 1664
 
|  
 
|  
 
|-
 
|-
| DOTA_GAMERULES_STATE_WAIT_FOR_PLAYERS_TO_LOAD
+
| ACT_DOTA_RAZE_3
| 1
+
| 1665
 
|  
 
|  
 
|-
 
|-
| DOTA_GAMERULES_STATE_CUSTOM_GAME_SETUP
+
| ACT_DOTA_UNDYING_DECAY
| 2
+
| 1666
 
|  
 
|  
 
|-
 
|-
| DOTA_GAMERULES_STATE_HERO_SELECTION
+
| ACT_DOTA_UNDYING_SOUL_RIP
| 3
+
| 1667
 
|  
 
|  
 
|-
 
|-
| DOTA_GAMERULES_STATE_STRATEGY_TIME
+
| ACT_DOTA_UNDYING_TOMBSTONE
| 4
+
| 1668
 
|  
 
|  
 
|-
 
|-
| DOTA_GAMERULES_STATE_TEAM_SHOWCASE
+
| ACT_DOTA_WHIRLING_AXES_RANGED
| 5
+
| 1669
 
|  
 
|  
 
|-
 
|-
| DOTA_GAMERULES_STATE_PRE_GAME
+
| ACT_DOTA_SHALLOW_GRAVE
| 6
+
| 1670
 
|  
 
|  
 
|-
 
|-
| DOTA_GAMERULES_STATE_GAME_IN_PROGRESS
+
| ACT_DOTA_COLD_FEET
| 7
+
| 1671
 
|  
 
|  
 
|-
 
|-
| DOTA_GAMERULES_STATE_POST_GAME
+
| ACT_DOTA_ICE_VORTEX
| 8
+
| 1672
 
|  
 
|  
 
|-
 
|-
| DOTA_GAMERULES_STATE_DISCONNECT
+
| ACT_DOTA_CHILLING_TOUCH
| 9
+
| 1673
 
|  
 
|  
|}
 
 
==== DOTALimits_t ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
 
|-
 
|-
| DOTA_DEFAULT_MAX_TEAM
+
| ACT_DOTA_ENFEEBLE
| 5
+
| 1674
| Default number of players per team.
+
|  
 
|-
 
|-
| DOTA_DEFAULT_MAX_TEAM_PLAYERS
+
| ACT_DOTA_FATAL_BONDS
| 10
+
| 1675
| Default number of non-spectator players supported.
+
|  
 
|-
 
|-
| DOTA_MAX_PLAYER_TEAMS
+
| ACT_DOTA_MIDNIGHT_PULSE
| 10
+
| 1676
| Max number of player teams supported.
+
|  
 
|-
 
|-
| DOTA_MAX_TEAM
+
| ACT_DOTA_ANCESTRAL_SPIRIT
| 24
+
| 1677
| Max number of players per team.
+
|  
 
|-
 
|-
| DOTA_MAX_TEAM_PLAYERS
+
| ACT_DOTA_THUNDER_STRIKE
| 24
+
| 1678
| Max number of non-spectator players supported.
+
|  
 
|-
 
|-
| DOTA_MAX_SPECTATOR_TEAM_SIZE
+
| ACT_DOTA_KINETIC_FIELD
| 40
+
| 1679
| How many spectators can watch.
 
|-
 
| DOTA_MAX_PLAYERS
 
| 64
 
| Max number of players connected to the server including spectators.
 
|}
 
 
 
==== GameActivity_t ====
 
{| class="standard-table" style="width: 50%;"
 
! Name
 
! Value
 
! Description
 
|-
 
| ACT_DOTA_IDLE
 
| 1500
 
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_IDLE_RARE
+
| ACT_DOTA_STATIC_STORM
| 1501
+
| 1680
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_RUN
+
| ACT_DOTA_MINI_TAUNT
| 1502
+
| 1681
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_ATTACK
+
| ACT_DOTA_ARCTIC_BURN_END
| 1503
+
| 1682
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_ATTACK2
+
| ACT_DOTA_LOADOUT_RARE
| 1504
+
| 1683
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_ATTACK_EVENT
+
| ACT_DOTA_SWIM
| 1505
+
| 1684
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_DIE
+
| ACT_DOTA_FLEE
| 1506
+
| 1685
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_FLINCH
+
| ACT_DOTA_TROT
| 1507
+
| 1686
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_FLAIL
+
| ACT_DOTA_SHAKE
| 1508
+
| 1687
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_DISABLED
+
| ACT_DOTA_SWIM_IDLE
| 1509
+
| 1688
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_1
+
| ACT_DOTA_WAIT_IDLE
| 1510
+
| 1689
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_2
+
| ACT_DOTA_GREET
| 1511
+
| 1690
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_3
+
| ACT_DOTA_TELEPORT_COOP_START
| 1512
+
| 1691
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_4
+
| ACT_DOTA_TELEPORT_COOP_WAIT
| 1513
+
| 1692
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_5
+
| ACT_DOTA_TELEPORT_COOP_END
| 1514
+
| 1693
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_6
+
| ACT_DOTA_TELEPORT_COOP_EXIT
| 1515
+
| 1694
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_OVERRIDE_ABILITY_1
+
| ACT_DOTA_SHOPKEEPER_PET_INTERACT
| 1516
+
| 1695
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_OVERRIDE_ABILITY_2
+
| ACT_DOTA_ITEM_PICKUP
| 1517
+
| 1696
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_OVERRIDE_ABILITY_3
+
| ACT_DOTA_ITEM_DROP
| 1518
+
| 1697
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_OVERRIDE_ABILITY_4
+
| ACT_DOTA_CAPTURE_PET
| 1519
+
| 1698
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CHANNEL_ABILITY_1
+
| ACT_DOTA_PET_WARD_OBSERVER
| 1520
+
| 1699
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CHANNEL_ABILITY_2
+
| ACT_DOTA_PET_WARD_SENTRY
| 1521
+
| 1700
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CHANNEL_ABILITY_3
+
| ACT_DOTA_PET_LEVEL
| 1522
+
| 1701
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CHANNEL_ABILITY_4
+
| ACT_DOTA_CAST_BURROW_END
| 1523
+
| 1702
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CHANNEL_ABILITY_5
+
| ACT_DOTA_LIFESTEALER_ASSIMILATE
| 1524
+
| 1703
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CHANNEL_ABILITY_6
+
| ACT_DOTA_LIFESTEALER_EJECT
| 1525
+
| 1704
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CHANNEL_END_ABILITY_1
+
| ACT_DOTA_ATTACK_EVENT_BASH
| 1526
+
| 1705
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CHANNEL_END_ABILITY_2
+
| ACT_DOTA_CAPTURE_RARE
| 1527
+
| 1706
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CHANNEL_END_ABILITY_3
+
| ACT_DOTA_AW_MAGNETIC_FIELD
| 1528
+
| 1707
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CHANNEL_END_ABILITY_4
+
| ACT_DOTA_CAST_GHOST_SHIP
| 1529
+
| 1708
 
|  
 
|  
 +
|}
 +
 +
==== modifierfunction ====
 +
{| class="standard-table" style="width: 50%;"
 +
! Name
 +
! Value
 +
! Description
 
|-
 
|-
| ACT_DOTA_CHANNEL_END_ABILITY_5
+
| MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE
| 1530
+
| 0
|  
+
| GetModifierPreAttack_BonusDamage
 
|-
 
|-
| ACT_DOTA_CHANNEL_END_ABILITY_6
+
| MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE_POST_CRIT
| 1531
+
| 1
|  
+
| GetModifierPreAttack_BonusDamagePostCrit
 
|-
 
|-
| ACT_DOTA_CONSTANT_LAYER
+
| MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE
| 1532
+
| 2
|  
+
| GetModifierBaseAttack_BonusDamage
 
|-
 
|-
| ACT_DOTA_CAPTURE
+
| MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_PHYSICAL
| 1533
+
| 3
|  
+
| GetModifierProcAttack_BonusDamage_Physical
 
|-
 
|-
| ACT_DOTA_SPAWN
+
| MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_MAGICAL
| 1534
+
| 4
|  
+
| GetModifierProcAttack_BonusDamage_Magical
 
|-
 
|-
| ACT_DOTA_KILLTAUNT
+
| MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_PURE
| 1535
+
| 5
|  
+
| GetModifierProcAttack_BonusDamage_Pure
 
|-
 
|-
| ACT_DOTA_TAUNT
+
| MODIFIER_PROPERTY_PROCATTACK_FEEDBACK
| 1536
+
| 6
|  
+
| GetModifierProcAttack_Feedback
 
|-
 
|-
| ACT_DOTA_THIRST
+
| MODIFIER_PROPERTY_PRE_ATTACK
| 1537
+
| 7
|  
+
| GetModifierPreAttack
 
|-
 
|-
| ACT_DOTA_CAST_DRAGONBREATH
+
| MODIFIER_PROPERTY_INVISIBILITY_LEVEL
| 1538
+
| 8
|  
+
| GetModifierInvisibilityLevel
 
|-
 
|-
| ACT_DOTA_ECHO_SLAM
+
| MODIFIER_PROPERTY_PERSISTENT_INVISIBILITY
| 1539
+
| 9
|  
+
| GetModifierPersistentInvisibility
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_1_END
+
| MODIFIER_PROPERTY_MOVESPEED_BONUS_CONSTANT
| 1540
+
| 10
|  
+
| GetModifierMoveSpeedBonus_Constant
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_2_END
+
| MODIFIER_PROPERTY_MOVESPEED_BASE_OVERRIDE
| 1541
+
| 11
|  
+
| GetModifierMoveSpeedOverride
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_3_END
+
| MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE
| 1542
+
| 12
|  
+
| GetModifierMoveSpeedBonus_Percentage
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_4_END
+
| MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE_UNIQUE
| 1543
+
| 13
|  
+
| GetModifierMoveSpeedBonus_Percentage_Unique
 
|-
 
|-
| ACT_MIRANA_LEAP_END
+
| MODIFIER_PROPERTY_MOVESPEED_BONUS_UNIQUE
| 1544
+
| 14
|  
+
| GetModifierMoveSpeedBonus_Special_Boots
 
|-
 
|-
| ACT_WAVEFORM_START
+
| MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE
| 1545
+
| 15
|  
+
| GetModifierMoveSpeed_Absolute
 
|-
 
|-
| ACT_WAVEFORM_END
+
| MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE_MIN
| 1546
+
| 16
|  
+
| GetModifierMoveSpeed_AbsoluteMin
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_ROT
+
| MODIFIER_PROPERTY_MOVESPEED_LIMIT
| 1547
+
| 17
|  
+
| GetModifierMoveSpeed_Limit
 
|-
 
|-
| ACT_DOTA_DIE_SPECIAL
+
| MODIFIER_PROPERTY_MOVESPEED_MAX
| 1548
+
| 18
|  
+
| GetModifierMoveSpeed_Max
 
|-
 
|-
| ACT_DOTA_RATTLETRAP_BATTERYASSAULT
+
| MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT
| 1549
+
| 19
|  
+
| GetModifierAttackSpeedBonus_Constant
 
|-
 
|-
| ACT_DOTA_RATTLETRAP_POWERCOGS
+
| MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT_POWER_TREADS
| 1550
+
| 20
|  
+
| GetModifierAttackSpeedBonus_Constant_PowerTreads
 
|-
 
|-
| ACT_DOTA_RATTLETRAP_HOOKSHOT_START
+
| MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT_SECONDARY
| 1551
+
| 21
|  
+
| GetModifierAttackSpeedBonus_Constant_Secondary
 
|-
 
|-
| ACT_DOTA_RATTLETRAP_HOOKSHOT_LOOP
+
| MODIFIER_PROPERTY_COOLDOWN_REDUCTION_CONSTANT
| 1552
+
| 22
|  
+
| GetModifierCooldownReduction_Constant
 
|-
 
|-
| ACT_DOTA_RATTLETRAP_HOOKSHOT_END
+
| MODIFIER_PROPERTY_BASE_ATTACK_TIME_CONSTANT
| 1553
+
| 23
|  
+
| GetModifierBaseAttackTimeConstant
 
|-
 
|-
| ACT_STORM_SPIRIT_OVERLOAD_RUN_OVERRIDE
+
| MODIFIER_PROPERTY_ATTACK_POINT_CONSTANT
| 1554
+
| 24
|  
+
| GetModifierAttackPointConstant
 
|-
 
|-
| ACT_DOTA_TINKER_REARM1
+
| MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE
| 1555
+
| 25
|  
+
| GetModifierDamageOutgoing_Percentage
 
|-
 
|-
| ACT_DOTA_TINKER_REARM2
+
| MODIFIER_PROPERTY_DAMAGEOUTGOING_PERCENTAGE_ILLUSION
| 1556
+
| 26
|  
+
| GetModifierDamageOutgoing_Percentage_Illusion
 
|-
 
|-
| ACT_DOTA_TINKER_REARM3
+
| MODIFIER_PROPERTY_TOTALDAMAGEOUTGOING_PERCENTAGE
| 1557
+
| 27
|  
+
| GetModifierTotalDamageOutgoing_Percentage
 
|-
 
|-
| ACT_TINY_AVALANCHE
+
| MODIFIER_PROPERTY_BASEDAMAGEOUTGOING_PERCENTAGE
| 1558
+
| 28
|  
+
| GetModifierBaseDamageOutgoing_Percentage
 
|-
 
|-
| ACT_TINY_TOSS
+
| MODIFIER_PROPERTY_BASEDAMAGEOUTGOING_PERCENTAGE_UNIQUE
| 1559
+
| 29
|  
+
| GetModifierBaseDamageOutgoing_PercentageUnique
 
|-
 
|-
| ACT_TINY_GROWL
+
| MODIFIER_PROPERTY_INCOMING_DAMAGE_PERCENTAGE
| 1560
+
| 30
|  
+
| GetModifierIncomingDamage_Percentage
 
|-
 
|-
| ACT_DOTA_WEAVERBUG_ATTACH
+
| MODIFIER_PROPERTY_INCOMING_PHYSICAL_DAMAGE_PERCENTAGE
| 1561
+
| 31
|  
+
| GetModifierIncomingPhysicalDamage_Percentage
 
|-
 
|-
| ACT_DOTA_CAST_WILD_AXES_END
+
| MODIFIER_PROPERTY_INCOMING_SPELL_DAMAGE_CONSTANT
| 1562
+
| 32
|  
+
| GetModifierIncomingSpellDamageConstant
 
|-
 
|-
| ACT_DOTA_CAST_LIFE_BREAK_START
+
| MODIFIER_PROPERTY_EVASION_CONSTANT
| 1563
+
| 33
|  
+
| GetModifierEvasion_Constant
 
|-
 
|-
| ACT_DOTA_CAST_LIFE_BREAK_END
+
| MODIFIER_PROPERTY_AVOID_DAMAGE
| 1564
+
| 34
|  
+
| GetModifierAvoidDamage
 
|-
 
|-
| ACT_DOTA_NIGHTSTALKER_TRANSITION
+
| MODIFIER_PROPERTY_AVOID_SPELL
| 1565
+
| 35
|  
+
| GetModifierAvoidSpell
 
|-
 
|-
| ACT_DOTA_LIFESTEALER_RAGE
+
| MODIFIER_PROPERTY_MISS_PERCENTAGE
| 1566
+
| 36
|  
+
| GetModifierMiss_Percentage
 
|-
 
|-
| ACT_DOTA_LIFESTEALER_OPEN_WOUNDS
+
| MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS
| 1567
+
| 37
|  
+
| GetModifierPhysicalArmorBonus
 
|-
 
|-
| ACT_DOTA_SAND_KING_BURROW_IN
+
| MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_ILLUSIONS
| 1568
+
| 38
|  
+
| GetModifierPhysicalArmorBonusIllusions
 
|-
 
|-
| ACT_DOTA_SAND_KING_BURROW_OUT
+
| MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_UNIQUE
| 1569
+
| 39
|  
+
| GetModifierPhysicalArmorBonusUnique
 
|-
 
|-
| ACT_DOTA_EARTHSHAKER_TOTEM_ATTACK
+
| MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS_UNIQUE_ACTIVE
| 1570
+
| 40
|  
+
| GetModifierPhysicalArmorBonusUniqueActive
 
|-
 
|-
| ACT_DOTA_WHEEL_LAYER
+
| MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS
| 1571
+
| 41
|  
+
| GetModifierMagicalResistanceBonus
 
|-
 
|-
| ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_START
+
| MODIFIER_PROPERTY_MAGICAL_RESISTANCE_ITEM_UNIQUE
| 1572
+
| 42
|  
+
| GetModifierMagicalResistanceItemUnique
 
|-
 
|-
| ACT_DOTA_ALCHEMIST_CONCOCTION
+
| MODIFIER_PROPERTY_MAGICAL_RESISTANCE_DECREPIFY_UNIQUE
| 1573
+
| 43
|  
+
| GetModifierMagicalResistanceDecrepifyUnique
 
|-
 
|-
| ACT_DOTA_JAKIRO_LIQUIDFIRE_START
+
| MODIFIER_PROPERTY_BASE_MANA_REGEN
| 1574
+
| 44
|  
+
| GetModifierBaseRegen
 
|-
 
|-
| ACT_DOTA_JAKIRO_LIQUIDFIRE_LOOP
+
| MODIFIER_PROPERTY_MANA_REGEN_CONSTANT
| 1575
+
| 45
|  
+
| GetModifierConstantManaRegen
 
|-
 
|-
| ACT_DOTA_LIFESTEALER_INFEST
+
| MODIFIER_PROPERTY_MANA_REGEN_CONSTANT_UNIQUE
| 1576
+
| 46
|  
+
| GetModifierConstantManaRegenUnique
 
|-
 
|-
| ACT_DOTA_LIFESTEALER_INFEST_END
+
| MODIFIER_PROPERTY_MANA_REGEN_PERCENTAGE
| 1577
+
| 47
|  
+
| GetModifierPercentageManaRegen
 
|-
 
|-
| ACT_DOTA_LASSO_LOOP
+
| MODIFIER_PROPERTY_MANA_REGEN_TOTAL_PERCENTAGE
| 1578
+
| 48
|  
+
| GetModifierTotalPercentageManaRegen
 
|-
 
|-
| ACT_DOTA_ALCHEMIST_CONCOCTION_THROW
+
| MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT
| 1579
+
| 49
|  
+
| GetModifierConstantHealthRegen
 
|-
 
|-
| ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_END
+
| MODIFIER_PROPERTY_HEALTH_REGEN_PERCENTAGE
| 1580
+
| 50
|  
+
| GetModifierHealthRegenPercentage
 
|-
 
|-
| ACT_DOTA_CAST_COLD_SNAP
+
| MODIFIER_PROPERTY_HEALTH_BONUS
| 1581
+
| 51
|  
+
| GetModifierHealthBonus
 
|-
 
|-
| ACT_DOTA_CAST_GHOST_WALK
+
| MODIFIER_PROPERTY_MANA_BONUS
| 1582
+
| 52
|  
+
| GetModifierManaBonus
 
|-
 
|-
| ACT_DOTA_CAST_TORNADO
+
| MODIFIER_PROPERTY_EXTRA_STRENGTH_BONUS
| 1583
+
| 53
|  
+
| GetModifierExtraStrengthBonus
 
|-
 
|-
| ACT_DOTA_CAST_EMP
+
| MODIFIER_PROPERTY_EXTRA_HEALTH_BONUS
| 1584
+
| 54
|  
+
| GetModifierExtraHealthBonus
 
|-
 
|-
| ACT_DOTA_CAST_ALACRITY
+
| MODIFIER_PROPERTY_EXTRA_MANA_BONUS
| 1585
+
| 55
|  
+
| GetModifierExtraManaBonus
 
|-
 
|-
| ACT_DOTA_CAST_CHAOS_METEOR
+
| MODIFIER_PROPERTY_EXTRA_HEALTH_PERCENTAGE
| 1586
+
| 56
|  
+
| GetModifierExtraHealthPercentage
 
|-
 
|-
| ACT_DOTA_CAST_SUN_STRIKE
+
| MODIFIER_PROPERTY_STATS_STRENGTH_BONUS
| 1587
+
| 57
|  
+
| GetModifierBonusStats_Strength
 
|-
 
|-
| ACT_DOTA_CAST_FORGE_SPIRIT
+
| MODIFIER_PROPERTY_STATS_AGILITY_BONUS
| 1588
+
| 58
|  
+
| GetModifierBonusStats_Agility
 
|-
 
|-
| ACT_DOTA_CAST_ICE_WALL
+
| MODIFIER_PROPERTY_STATS_INTELLECT_BONUS
| 1589
+
| 59
|  
+
| GetModifierBonusStats_Intellect
 
|-
 
|-
| ACT_DOTA_CAST_DEAFENING_BLAST
+
| MODIFIER_PROPERTY_ATTACK_RANGE_BONUS
| 1590
+
| 60
|  
+
| GetModifierAttackRangeBonus
 
|-
 
|-
| ACT_DOTA_VICTORY
+
| MODIFIER_PROPERTY_PROJECTILE_SPEED_BONUS
| 1591
+
| 61
|  
+
| GetModifierProjectileSpeedBonus
 
|-
 
|-
| ACT_DOTA_DEFEAT
+
| MODIFIER_PROPERTY_REINCARNATION
| 1592
+
| 62
|  
+
| ReincarnateTime
 
|-
 
|-
| ACT_DOTA_SPIRIT_BREAKER_CHARGE_POSE
+
| MODIFIER_PROPERTY_RESPAWNTIME
| 1593
+
| 63
|  
+
| GetModifierConstantRespawnTime
 
|-
 
|-
| ACT_DOTA_SPIRIT_BREAKER_CHARGE_END
+
| MODIFIER_PROPERTY_RESPAWNTIME_PERCENTAGE
| 1594
+
| 64
|  
+
| GetModifierPercentageRespawnTime
 
|-
 
|-
| ACT_DOTA_TELEPORT
+
| MODIFIER_PROPERTY_RESPAWNTIME_STACKING
| 1595
+
| 65
|  
+
| GetModifierStackingRespawnTime
 
|-
 
|-
| ACT_DOTA_TELEPORT_END
+
| MODIFIER_PROPERTY_COOLDOWN_PERCENTAGE
| 1596
+
| 66
|  
+
| GetModifierPercentageCooldown
 
|-
 
|-
| ACT_DOTA_CAST_REFRACTION
+
| MODIFIER_PROPERTY_CASTTIME_PERCENTAGE
| 1597
+
| 67
|  
+
| GetModifierPercentageCasttime
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_7
+
| MODIFIER_PROPERTY_MANACOST_PERCENTAGE
| 1598
+
| 68
|  
+
| GetModifierPercentageManacost
 
|-
 
|-
| ACT_DOTA_CANCEL_SIREN_SONG
+
| MODIFIER_PROPERTY_DEATHGOLDCOST
| 1599
+
| 69
|  
+
| GetModifierConstantDeathGoldCost
 
|-
 
|-
| ACT_DOTA_CHANNEL_ABILITY_7
+
| MODIFIER_PROPERTY_PREATTACK_CRITICALSTRIKE
| 1600
+
| 70
|  
+
| GetModifierPreAttack_CriticalStrike
 
|-
 
|-
| ACT_DOTA_LOADOUT
+
| MODIFIER_PROPERTY_PHYSICAL_CONSTANT_BLOCK
| 1601
+
| 71
|  
+
| GetModifierPhysical_ConstantBlock
 
|-
 
|-
| ACT_DOTA_FORCESTAFF_END
+
| MODIFIER_PROPERTY_TOTAL_CONSTANT_BLOCK_UNAVOIDABLE_PRE_ARMOR
| 1602
+
| 72
|  
+
| GetModifierPhysical_ConstantBlockUnavoidablePreArmor
 
|-
 
|-
| ACT_DOTA_POOF_END
+
| MODIFIER_PROPERTY_TOTAL_CONSTANT_BLOCK
| 1603
+
| 73
|  
+
| GetModifierTotal_ConstantBlock
 
|-
 
|-
| ACT_DOTA_SLARK_POUNCE
+
| MODIFIER_PROPERTY_OVERRIDE_ANIMATION
| 1604
+
| 74
|  
+
| GetOverrideAnimation
 
|-
 
|-
| ACT_DOTA_MAGNUS_SKEWER_START
+
| MODIFIER_PROPERTY_OVERRIDE_ANIMATION_WEIGHT
| 1605
+
| 75
|  
+
| GetOverrideAnimationWeight
 
|-
 
|-
| ACT_DOTA_MAGNUS_SKEWER_END
+
| MODIFIER_PROPERTY_OVERRIDE_ANIMATION_RATE
| 1606
+
| 76
|  
+
| GetOverrideAnimationRate
 
|-
 
|-
| ACT_DOTA_MEDUSA_STONE_GAZE
+
| MODIFIER_PROPERTY_ABSORB_SPELL
| 1607
+
| 77
|  
+
| GetAbsorbSpell
 
|-
 
|-
| ACT_DOTA_RELAX_START
+
| MODIFIER_PROPERTY_REFLECT_SPELL
| 1608
+
| 78
|  
+
| GetReflectSpell
 
|-
 
|-
| ACT_DOTA_RELAX_LOOP
+
| MODIFIER_PROPERTY_DISABLE_AUTOATTACK
| 1609
+
| 79
|  
+
| GetDisableAutoAttack
 
|-
 
|-
| ACT_DOTA_RELAX_END
+
| MODIFIER_PROPERTY_BONUS_DAY_VISION
| 1610
+
| 80
|  
+
| GetBonusDayVision
 
|-
 
|-
| ACT_DOTA_CENTAUR_STAMPEDE
+
| MODIFIER_PROPERTY_BONUS_NIGHT_VISION
| 1611
+
| 81
|  
+
| GetBonusNightVision
 
|-
 
|-
| ACT_DOTA_BELLYACHE_START
+
| MODIFIER_PROPERTY_BONUS_NIGHT_VISION_UNIQUE
| 1612
+
| 82
|  
+
| GetBonusNightVisionUnique
 
|-
 
|-
| ACT_DOTA_BELLYACHE_LOOP
+
| MODIFIER_PROPERTY_BONUS_VISION_PERCENTAGE
| 1613
+
| 83
|  
+
| GetBonusVisionPercentage
 
|-
 
|-
| ACT_DOTA_BELLYACHE_END
+
| MODIFIER_PROPERTY_FIXED_DAY_VISION
| 1614
+
| 84
|  
+
| GetFixedDayVision
 
|-
 
|-
| ACT_DOTA_ROQUELAIRE_LAND
+
| MODIFIER_PROPERTY_FIXED_NIGHT_VISION
| 1615
+
| 85
|  
+
| GetFixedNightVision
 
|-
 
|-
| ACT_DOTA_ROQUELAIRE_LAND_IDLE
+
| MODIFIER_PROPERTY_MIN_HEALTH
| 1616
+
| 86
|  
+
| GetMinHealth
 
|-
 
|-
| ACT_DOTA_GREEVIL_CAST
+
| MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_PHYSICAL
| 1617
+
| 87
|  
+
| GetAbsoluteNoDamagePhysical
 
|-
 
|-
| ACT_DOTA_GREEVIL_OVERRIDE_ABILITY
+
| MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_MAGICAL
| 1618
+
| 88
|  
+
| GetAbsoluteNoDamageMagical
 
|-
 
|-
| ACT_DOTA_GREEVIL_HOOK_START
+
| MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_PURE
| 1619
+
| 89
|  
+
| GetAbsoluteNoDamagePure
 
|-
 
|-
| ACT_DOTA_GREEVIL_HOOK_END
+
| MODIFIER_PROPERTY_IS_ILLUSION
| 1620
+
| 90
|  
+
| GetIsIllusion
 
|-
 
|-
| ACT_DOTA_GREEVIL_BLINK_BONE
+
| MODIFIER_PROPERTY_ILLUSION_LABEL
| 1621
+
| 91
|  
+
| GetModifierIllusionLabel
 
|-
 
|-
| ACT_DOTA_IDLE_SLEEPING
+
| MODIFIER_PROPERTY_SUPER_ILLUSION
| 1622
+
| 92
|  
+
| GetModifierSuperIllusion
 
|-
 
|-
| ACT_DOTA_INTRO
+
| MODIFIER_PROPERTY_TURN_RATE_PERCENTAGE
| 1623
+
| 93
|  
+
| GetModifierTurnRate_Percentage
 
|-
 
|-
| ACT_DOTA_GESTURE_POINT
+
| MODIFIER_PROPERTY_DISABLE_HEALING
| 1624
+
| 94
|  
+
| GetDisableHealing
 
|-
 
|-
| ACT_DOTA_GESTURE_ACCENT
+
| MODIFIER_PROPERTY_OVERRIDE_ATTACK_MAGICAL
| 1625
+
| 95
|  
+
| GetOverrideAttackMagical
 
|-
 
|-
| ACT_DOTA_SLEEPING_END
+
| MODIFIER_PROPERTY_UNIT_STATS_NEEDS_REFRESH
| 1626
+
| 96
|  
+
| GetModifierUnitStatsNeedsRefresh
 
|-
 
|-
| ACT_DOTA_AMBUSH
+
| MODIFIER_PROPERTY_BOUNTY_CREEP_MULTIPLIER
| 1627
+
| 97
|  
+
| GetModifierBountyCreepMultiplier
 
|-
 
|-
| ACT_DOTA_ITEM_LOOK
+
| MODIFIER_PROPERTY_BOUNTY_OTHER_MULTIPLIER
| 1628
+
| 98
|  
+
| GetModifierBountyOtherMultiplier
 
|-
 
|-
| ACT_DOTA_STARTLE
+
| MODIFIER_EVENT_ON_ATTACK_RECORD
| 1629
+
| 99
|  
+
| OnAttackRecord
 
|-
 
|-
| ACT_DOTA_FRUSTRATION
+
| MODIFIER_EVENT_ON_ATTACK_START
| 1630
+
| 100
|  
+
| OnAttackStart
 
|-
 
|-
| ACT_DOTA_TELEPORT_REACT
+
| MODIFIER_EVENT_ON_ATTACK
| 1631
+
| 101
|  
+
| OnAttack
 
|-
 
|-
| ACT_DOTA_TELEPORT_END_REACT
+
| MODIFIER_EVENT_ON_ATTACK_LANDED
| 1632
+
| 102
|  
+
| OnAttackLanded
 
|-
 
|-
| ACT_DOTA_SHRUG
+
| MODIFIER_EVENT_ON_ATTACK_FAIL
| 1633
+
| 103
|  
+
| OnAttackFail
 
|-
 
|-
| ACT_DOTA_RELAX_LOOP_END
+
| MODIFIER_EVENT_ON_ATTACK_ALLIED
| 1634
+
| 104
|  
+
| OnAttackAllied
 
|-
 
|-
| ACT_DOTA_PRESENT_ITEM
+
| MODIFIER_EVENT_ON_PROJECTILE_DODGE
| 1635
+
| 105
|  
+
| OnProjectileDodge
 
|-
 
|-
| ACT_DOTA_IDLE_IMPATIENT
+
| MODIFIER_EVENT_ON_ORDER
| 1636
+
| 106
|  
+
| OnOrder
 
|-
 
|-
| ACT_DOTA_SHARPEN_WEAPON
+
| MODIFIER_EVENT_ON_UNIT_MOVED
| 1637
+
| 107
|  
+
| OnUnitMoved
 
|-
 
|-
| ACT_DOTA_SHARPEN_WEAPON_OUT
+
| MODIFIER_EVENT_ON_ABILITY_START
| 1638
+
| 108
|  
+
| OnAbilityStart
 
|-
 
|-
| ACT_DOTA_IDLE_SLEEPING_END
+
| MODIFIER_EVENT_ON_ABILITY_EXECUTED
| 1639
+
| 109
|  
+
| OnAbilityExecuted
 
|-
 
|-
| ACT_DOTA_BRIDGE_DESTROY
+
| MODIFIER_EVENT_ON_ABILITY_FULLY_CAST
| 1640
+
| 110
|  
+
| OnAbilityFullyCast
 
|-
 
|-
| ACT_DOTA_TAUNT_SNIPER
+
| MODIFIER_EVENT_ON_BREAK_INVISIBILITY
| 1641
+
| 111
|  
+
| OnBreakInvisibility
 
|-
 
|-
| ACT_DOTA_DEATH_BY_SNIPER
+
| MODIFIER_EVENT_ON_ABILITY_END_CHANNEL
| 1642
+
| 112
|  
+
| OnAbilityEndChannel
 
|-
 
|-
| ACT_DOTA_LOOK_AROUND
+
| MODIFIER_EVENT_ON_PROCESS_UPGRADE
| 1643
+
| 113
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CAGED_CREEP_RAGE
+
| MODIFIER_EVENT_ON_REFRESH
| 1644
+
| 114
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_CAGED_CREEP_RAGE_OUT
+
| MODIFIER_EVENT_ON_TAKEDAMAGE
| 1645
+
| 115
|  
+
| OnTakeDamage
 
|-
 
|-
| ACT_DOTA_CAGED_CREEP_SMASH
+
| MODIFIER_EVENT_ON_STATE_CHANGED
| 1646
+
| 116
|  
+
| OnStateChanged
 
|-
 
|-
| ACT_DOTA_CAGED_CREEP_SMASH_OUT
+
| MODIFIER_EVENT_ON_ORB_EFFECT
| 1647
+
| 117
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_IDLE_IMPATIENT_SWORD_TAP
+
| MODIFIER_EVENT_ON_ATTACKED
| 1648
+
| 118
|  
+
| OnAttacked
 
|-
 
|-
| ACT_DOTA_INTRO_LOOP
+
| MODIFIER_EVENT_ON_DEATH
| 1649
+
| 119
|  
+
| OnDeath
 
|-
 
|-
| ACT_DOTA_BRIDGE_THREAT
+
| MODIFIER_EVENT_ON_RESPAWN
| 1650
+
| 120
|  
+
| OnRespawn
 
|-
 
|-
| ACT_DOTA_DAGON
+
| MODIFIER_EVENT_ON_SPENT_MANA
| 1651
+
| 121
|  
+
| OnSpentMana
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_2_ES_ROLL_START
+
| MODIFIER_EVENT_ON_TELEPORTING
| 1652
+
| 122
|  
+
| OnTeleporting
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_2_ES_ROLL
+
| MODIFIER_EVENT_ON_TELEPORTED
| 1653
+
| 123
|  
+
| OnTeleported
 
|-
 
|-
| ACT_DOTA_CAST_ABILITY_2_ES_ROLL_END
+
| MODIFIER_EVENT_ON_SET_LOCATION
| 1654
+
| 124
|  
+
| OnSetLocation
 
|-
 
|-
| ACT_DOTA_NIAN_PIN_START
+
| MODIFIER_EVENT_ON_HEALTH_GAINED
| 1655
+
| 125
|  
+
| OnHealthGained
 
|-
 
|-
| ACT_DOTA_NIAN_PIN_LOOP
+
| MODIFIER_EVENT_ON_MANA_GAINED
| 1656
+
| 126
|  
+
| OnManaGained
 
|-
 
|-
| ACT_DOTA_NIAN_PIN_END
+
| MODIFIER_EVENT_ON_TAKEDAMAGE_KILLCREDIT
| 1657
+
| 127
|  
+
| OnTakeDamageKillCredit
 
|-
 
|-
| ACT_DOTA_LEAP_STUN
+
| MODIFIER_EVENT_ON_HERO_KILLED
| 1658
+
| 128
|  
+
| OnHeroKilled
 
|-
 
|-
| ACT_DOTA_LEAP_SWIPE
+
| MODIFIER_EVENT_ON_HEAL_RECEIVED
| 1659
+
| 129
|  
+
| OnHealReceived
 
|-
 
|-
| ACT_DOTA_NIAN_INTRO_LEAP
+
| MODIFIER_EVENT_ON_BUILDING_KILLED
| 1660
+
| 130
|  
+
| OnBuildingKilled
 
|-
 
|-
| ACT_DOTA_AREA_DENY
+
| MODIFIER_EVENT_ON_MODEL_CHANGED
| 1661
+
| 131
|  
+
| OnModelChanged
 
|-
 
|-
| ACT_DOTA_NIAN_PIN_TO_STUN
+
| MODIFIER_PROPERTY_TOOLTIP
| 1662
+
| 132
|  
+
| OnTooltip
 
|-
 
|-
| ACT_DOTA_RAZE_1
+
| MODIFIER_PROPERTY_MODEL_CHANGE
| 1663
+
| 133
|  
+
| GetModifierModelChange
 
|-
 
|-
| ACT_DOTA_RAZE_2
+
| MODIFIER_PROPERTY_MODEL_SCALE
| 1664
+
| 134
|  
+
| GetModifierModelScale
 
|-
 
|-
| ACT_DOTA_RAZE_3
+
| MODIFIER_PROPERTY_IS_SCEPTER
| 1665
+
| 135
|  
+
| GetModifierScepter
 
|-
 
|-
| ACT_DOTA_UNDYING_DECAY
+
| MODIFIER_PROPERTY_TRANSLATE_ACTIVITY_MODIFIERS
| 1666
+
| 136
|  
+
| GetActivityTranslationModifiers
 
|-
 
|-
| ACT_DOTA_UNDYING_SOUL_RIP
+
| MODIFIER_PROPERTY_TRANSLATE_ATTACK_SOUND
| 1667
+
| 137
|  
+
| GetAttackSound
 
|-
 
|-
| ACT_DOTA_UNDYING_TOMBSTONE
+
| MODIFIER_PROPERTY_LIFETIME_FRACTION
| 1668
+
| 138
|  
+
| GetUnitLifetimeFraction
 
|-
 
|-
| ACT_DOTA_WHIRLING_AXES_RANGED
+
| MODIFIER_PROPERTY_PROVIDES_FOW_POSITION
| 1669
+
| 139
|  
+
| GetModifierProvidesFOWVision
 
|-
 
|-
| ACT_DOTA_SHALLOW_GRAVE
+
| MODIFIER_PROPERTY_SPELLS_REQUIRE_HP
| 1670
+
| 140
|  
+
| GetModifierSpellsRequireHP
 
|-
 
|-
| ACT_DOTA_COLD_FEET
+
| MODIFIER_PROPERTY_FORCE_DRAW_MINIMAP
| 1671
+
| 141
|  
+
| GetForceDrawOnMinimap
 
|-
 
|-
| ACT_DOTA_ICE_VORTEX
+
| MODIFIER_PROPERTY_DISABLE_TURNING
| 1672
+
| 142
|  
+
| GetModifierDisableTurning
 
|-
 
|-
| ACT_DOTA_CHILLING_TOUCH
+
| MODIFIER_PROPERTY_IGNORE_CAST_ANGLE
| 1673
+
| 143
|  
+
| GetModifierIgnoreCastAngle
 
|-
 
|-
| ACT_DOTA_ENFEEBLE
+
| MODIFIER_PROPERTY_CHANGE_ABILITY_VALUE
| 1674
+
| 144
|  
+
| GetModifierChangeAbilityValue
 
|-
 
|-
| ACT_DOTA_FATAL_BONDS
+
| MODIFIER_PROPERTY_ABILITY_LAYOUT
| 1675
+
| 145
|  
+
| GetModifierAbilityLayout
 
|-
 
|-
| ACT_DOTA_MIDNIGHT_PULSE
+
| MODIFIER_EVENT_ON_DOMINATED
| 1676
+
| 146
|  
+
| OnDominated
 
|-
 
|-
| ACT_DOTA_ANCESTRAL_SPIRIT
+
| MODIFIER_PROPERTY_TEMPEST_DOUBLE
| 1677
+
| 147
|  
+
| GetModifierTempestDouble
 
|-
 
|-
| ACT_DOTA_THUNDER_STRIKE
+
| MODIFIER_PROPERTY_PRESERVE_PARTICLES_ON_MODEL_CHANGE
| 1678
+
| 148
|  
+
| PreserveParticlesOnModelChanged
 
|-
 
|-
| ACT_DOTA_KINETIC_FIELD
+
| MODIFIER_FUNCTION_LAST
| 1679
+
| 149
 
|  
 
|  
 
|-
 
|-
| ACT_DOTA_STATIC_STORM
+
| MODIFIER_FUNCTION_INVALID
| 1680
+
| 255
|
 
|-
 
| ACT_DOTA_MINI_TAUNT
 
| 1681
 
|
 
|-
 
| ACT_DOTA_ARCTIC_BURN_END
 
| 1682
 
|
 
|-
 
| ACT_DOTA_LOADOUT_RARE
 
| 1683
 
|
 
|-
 
| ACT_DOTA_SWIM
 
| 1684
 
|
 
|-
 
| ACT_DOTA_FLEE
 
| 1685
 
|
 
|-
 
| ACT_DOTA_TROT
 
| 1686
 
|
 
|-
 
| ACT_DOTA_SHAKE
 
| 1687
 
|
 
|-
 
| ACT_DOTA_SWIM_IDLE
 
| 1688
 
|
 
|-
 
| ACT_DOTA_WAIT_IDLE
 
| 1689
 
|
 
|-
 
| ACT_DOTA_GREET
 
| 1690
 
|
 
|-
 
| ACT_DOTA_TELEPORT_COOP_START
 
| 1691
 
|
 
|-
 
| ACT_DOTA_TELEPORT_COOP_WAIT
 
| 1692
 
|
 
|-
 
| ACT_DOTA_TELEPORT_COOP_END
 
| 1693
 
|
 
|-
 
| ACT_DOTA_TELEPORT_COOP_EXIT
 
| 1694
 
|
 
|-
 
| ACT_DOTA_SHOPKEEPER_PET_INTERACT
 
| 1695
 
|
 
|-
 
| ACT_DOTA_ITEM_PICKUP
 
| 1696
 
|
 
|-
 
| ACT_DOTA_ITEM_DROP
 
| 1697
 
|
 
|-
 
| ACT_DOTA_CAPTURE_PET
 
| 1698
 
|
 
|-
 
| ACT_DOTA_PET_WARD_OBSERVER
 
| 1699
 
|
 
|-
 
| ACT_DOTA_PET_WARD_SENTRY
 
| 1700
 
|
 
|-
 
| ACT_DOTA_PET_LEVEL
 
| 1701
 
|
 
|-
 
| ACT_DOTA_CAST_BURROW_END
 
| 1702
 
|
 
|-
 
| ACT_DOTA_LIFESTEALER_ASSIMILATE
 
| 1703
 
|
 
|-
 
| ACT_DOTA_LIFESTEALER_EJECT
 
| 1704
 
|
 
|-
 
| ACT_DOTA_ATTACK_EVENT_BASH
 
| 1705
 
|
 
|-
 
| ACT_DOTA_CAPTURE_RARE
 
| 1706
 
 
|  
 
|  
 
|}
 
|}

Revision as of 13:37, 29 October 2015

Русский 简体中文
Note.png Note:  This page is automatically generated. Any changes may be overwritten

Accessing the DOTA 2 Scripting API from Lua

While Lua is dynamically typed, the DOTA 2 engine is written primarily in C++, which is statically typed. Thus, you'll need to be conscious of your data types when calling the API. (If you try to pass the wrong type to an API function, you'll get an error message in Vconsole telling you what you passed and what it was expecting.)

Contents

Global

Global functions. These can be called without any class

Function Signature Description
AddFOWViewer void AddFOWViewer(int int_1, Vector Vector_2, float float_3, float float_4, bool bool_5) Add temporary vision for a given team ( nTeamID, vLocation, flRadius, flDuration, bObstructedVision)
AngleDiff float AngleDiff(float ang1, float ang2) Returns the number of degrees difference between two yaw angles
AppendToLogFile void AppendToLogFile(string string_1, string string_2) Appends a string to a log file on the server
ApplyDamage float ApplyDamage(handle DamageTable) Applies damage to a unit.
AxisAngleToQuaternion Quaternion AxisAngleToQuaternion(Vector Vector_1, float float_2) (vector,float) constructs a quaternion representing a rotation by angle around the specified vector axis
CalcClosestPointOnEntityOBB Vector CalcClosestPointOnEntityOBB(handle handle_1, Vector Vector_2) Compute the closest point on the OBB of an entity.
CalcDistanceBetweenEntityOBB float CalcDistanceBetweenEntityOBB(handle handle_1, handle handle_2) Compute the distance between two entity OBB. A negative return value indicates an input error. A return value of zero indicates that the OBBs are overlapping.
CancelEntityIOEvents void CancelEntityIOEvents(ehandle ehandle_1) Create all I/O events for a particular entity
ClearTeamCustomHealthbarColor void ClearTeamCustomHealthbarColor(int int_1) ( teamNumber )
CreateEffect bool CreateEffect(handle handle_1) Pass table - Inputs: entity, effect
CreateHeroForPlayer handle CreateHeroForPlayer(string unitName, handle player) Creates a DOTA hero by its dota_npc_units.txt name and sets it as the given player's controlled hero
CreateHTTPRequest handle CreateHTTPRequest(string string_1, string string_2) Create an HTTP request.
CreateItem handle CreateItem(string item_name, handle owner, handle owner) Creates an item with classname item_name that owner can use.
CreateItemOnPositionForLaunch handle CreateItemOnPositionForLaunch(Vector Vector_1, handle handle_2) Create a physical item at a given location, can start in air (but doesn't clear a space)
CreateItemOnPositionSync handle CreateItemOnPositionSync(Vector Vector_1, handle handle_2) Create a physical item at a given location
CreateModifierThinker handle CreateModifierThinker(handle handle_1, handle handle_2, string string_3, handle handle_4, Vector Vector_5, int int_6, bool bool_7) Create a modifier not associated with an NPC. ( hCaster, hAbility, modifierName, paramTable, vOrigin, nTeamNumber, bPhantomBlocker )
CreateTempTree void CreateTempTree(Vector Vector_1, float float_2) Create a temporary tree. (vLocation, flDuration).
CreateTrigger handle CreateTrigger(Vector Vector_1, Vector Vector_2, Vector Vector_3) CreateTrigger( vecMin, vecMax ) : Creates and returns an AABB trigger
CreateTriggerRadiusApproximate handle CreateTriggerRadiusApproximate(Vector Vector_1, float float_2) CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : Creates and returns an AABB trigger thats bigger than the radius provided
CreateUnitByName handle CreateUnitByName(string string_1, Vector Vector_2, bool bool_3, handle handle_4, handle handle_5, int int_6) Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber )
CreateUnitByNameAsync int CreateUnitByNameAsync(string string_1, Vector Vector_2, bool bool_3, handle handle_4, handle handle_5, int int_6, handle handle_7) Creates a DOTA unit by its dota_npc_units.txt name ( szUnitName, vLocation, bFindClearSpace, hNPCOwner, hUnitOwner, iTeamNumber, hCallback )
CreateUnitFromTable hscript CreateUnitFromTable(handle handle_1, Vector Vector_2) Creates a new data-driven entity with the given table
cvar_getf float cvar_getf(string string_1) Gets the value of the given cvar, as a float.
cvar_setf bool cvar_setf(string string_1, float float_2) Sets the value of the given cvar, as a float.
DebugBreak void DebugBreak() Breaks in the debugger
DebugDrawBox void DebugDrawBox(Vector origin, Vector min, Vector max, int r, int g, int b, int a, float duration) Draw a debug overlay box
DebugDrawBoxDirection void DebugDrawBoxDirection(Vector Vector_1, Vector Vector_2, Vector Vector_3, Vector Vector_4, Vector Vector_5, float float_6, float float_7) Draw a debug forward box (cent, min, max, forward, vRgb, a, duration)
DebugDrawCircle void DebugDrawCircle(Vector Vector_1, Vector Vector_2, float float_3, float float_4, bool bool_5, float float_6) Draw a debug circle (center, vRgb, a, rad, ztest, duration)
DebugDrawClear void DebugDrawClear() Try to clear all the debug overlay info
DebugDrawLine void DebugDrawLine(Vector Vector_1, Vector Vector_2, int int_3, int int_4, int int_5, bool bool_6, float float_7) Draw a debug overlay line (origin, target, r, g, b, ztest, duration)
DebugDrawLine_vCol void DebugDrawLine_vCol(Vector Vector_1, Vector Vector_2, Vector Vector_3, bool bool_4, float float_5) Draw a debug line using color vec (start, end, vRgb, a, ztest, duration)
DebugDrawScreenTextLine void DebugDrawScreenTextLine(float float_1, float float_2, int int_3, string string_4, int int_5, int int_6, int int_7, int int_8, float float_9) Draw text with a line offset (x, y, lineOffset, text, r, g, b, a, duration)
DebugDrawSphere void DebugDrawSphere(Vector Vector_1, Vector Vector_2, float float_3, float float_4, bool bool_5, float float_6) Draw a debug sphere (center, vRgb, a, rad, ztest, duration)
DebugDrawText void DebugDrawText(Vector Vector_1, string string_2, bool bool_3, float float_4) Draw text in 3d (origin, text, bViewCheck, duration)
DebugScreenTextPretty void DebugScreenTextPretty(float float_1, float float_2, int int_3, string string_4, int int_5, int int_6, int int_7, int int_8, float float_9, string string_10, int int_11, bool bool_12) Draw pretty debug text (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold)
DoCleaveAttack int DoCleaveAttack(handle handle_1, handle handle_2, handle handle_3, float float_4, float float_5, string string_6) (hAttacker, hTarget, hAbility, fDamage, fRadius, effectName)
DoEntFire void DoEntFire(string string_1, string string_2, string string_3, float float_4, handle handle_5, handle handle_6) EntFire: Generate an entity i/o event ( szTarget, szAction, szValue, flDelay, hActivator, hCaller )
DoEntFireByInstanceHandle void DoEntFireByInstanceHandle(handle handle_1, string string_2, string string_3, float float_4, handle handle_5, handle handle_6) EntFireByHandle:Generate and entity i/o event
DoIncludeScript bool DoIncludeScript(string string_1, handle handle_2) Execute a script (internal)
DoScriptAssert void DoScriptAssert(bool bool_1, string string_2) ScriptAssert:Asserts the passed in value. Prints out a message and brings up the assert dialog.
DoUniqueString string DoUniqueString(string string_1) UniqueString:Generate a string guaranteed to be unique across the life of the script VM, with an optional root string. Useful for adding data to table's when not sure what keys are already in use in that table.
EmitAnnouncerSound void EmitAnnouncerSound(string string_1) Emit an announcer sound for all players.
EmitAnnouncerSoundForPlayer void EmitAnnouncerSoundForPlayer(string string_1, int int_2) Emit an announcer sound for a player.
EmitAnnouncerSoundForTeam void EmitAnnouncerSoundForTeam(string string_1, int int_2) Emit an announcer sound for a team.
EmitAnnouncerSoundForTeamOnLocation void EmitAnnouncerSoundForTeamOnLocation(string string_1, int int_2, Vector Vector_3) Emit an announcer sound for a team at a specific location.
EmitGlobalSound void EmitGlobalSound(string string_1) Play named sound for all players
EmitSoundOn void EmitSoundOn(string string_1, handle handle_2) Play named sound on Entity
EmitSoundOnClient void EmitSoundOnClient(string string_1, handle handle_2) Play named sound only on the client for the passed in player
EmitSoundOnLocationForAllies void EmitSoundOnLocationForAllies(Vector Vector_1, string string_2, handle handle_3) Emit a sound on a location from a unit, only for players allied with that unit (vLocation, soundName, hCaster
EmitSoundOnLocationWithCaster void EmitSoundOnLocationWithCaster(Vector Vector_1, string string_2, handle handle_3) Emit a sound on a location from a unit. (vLocation, soundName, hCaster).
EntIndexToHScript handle EntIndexToHScript(int int_1) Turn an entity index integer to an HScript representing that entity's script instance.
ExecuteOrderFromTable void ExecuteOrderFromTable(handle handle_1) Issue an order from a script table
ExponentialDecay float ExponentialDecay(float float_1, float float_2, float float_3) Smooth curve decreasing slower as it approaches zero
FileToString string FileToString(string a) Reads a string from a file to send to script
FindClearSpaceForUnit void FindClearSpaceForUnit(handle handle_1, Vector Vector_2, bool bool_3) Place a unit somewhere not already occupied.
FindUnitsInRadius table FindUnitsInRadius(int teamNumber, Vector position, handle cacheUnit, float radius, int teamFilter, int typeFilter, int flagFilter, int order, bool canGrowCache) Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )
FireEntityIOInputNameOnly void FireEntityIOInputNameOnly(ehandle ehandle_1, string string_2) Fire Entity's Action Input w/no data
FireEntityIOInputString void FireEntityIOInputString(ehandle ehandle_1, string string_2, string string_3) Fire Entity's Action Input with passed String - you own the memory
FireEntityIOInputVec void FireEntityIOInputVec(ehandle ehandle_1, string string_2, Vector Vector_3) Fire Entity's Action Input with passed Vector ( hEntity, szActionName, vector )
FireGameEvent void FireGameEvent(string eventName, handle parameterTable) Fire a pre-defined event, which can be found either in custom_events.txt or in dota's resource/*.res
FireGameEventLocal void FireGameEventLocal(string string_1, handle handle_2) Fire a game event without broadcasting to the client.
FrameTime float FrameTime() Get the time spent on the server in the last frame
GetEntityIndexForTreeId <unknown> GetEntityIndexForTreeId(unsigned unsigned_1) Get the enity index for a tree id specified as the entindex_target of a DOTA_UNIT_ORDER_CAST_TARGET_TREE.
GetFrameCount int GetFrameCount() Returns the engines current frame count
GetFrostyBoostAmount float GetFrostyBoostAmount(int int_1, int int_2) No Description Set
GetFrostyPointsForRound int GetFrostyPointsForRound(int int_1, int int_2, int int_3) No Description Set
GetGoldFrostyBoostAmount float GetGoldFrostyBoostAmount(int int_1, int int_2) No Description Set
GetGoldFrostyPointsForRound int GetGoldFrostyPointsForRound(int int_1, int int_2, int int_3) No Description Set
GetGroundHeight float GetGroundHeight(Vector Vector_1, handle handle_2)
GetGroundPosition Vector GetGroundPosition(Vector Vector_1, handle handle_2) Returns the supplied position moved to the ground. Second parameter is an NPC for measuring movement collision hull offset.
GetItemCost int GetItemCost(string string_1) Get the cost of an item by name.
GetListenServerHost handle GetListenServerHost() Get the local player on a listen server.
GetMapName string GetMapName() Get the name of the map.
GetMaxOutputDelay float GetMaxOutputDelay(ehandle ehandle_1, string string_2) Get the longest delay for all events attached to an output
GetPhysAngularVelocity Vector GetPhysAngularVelocity(handle handle_1) Get Angular Velocity for VPHYS or normal object
GetPhysVelocity Vector GetPhysVelocity(handle handle_1) Get Velocity for VPHYS or normal object
GetSystemDate string GetSystemDate() Get the current real world date
GetSystemTime string GetSystemTime() Get the current real world time
GetTeamHeroKills int GetTeamHeroKills(int int_1) ( int teamID )
GetTeamName string GetTeamName(int teamNumber) Returns the team name
GetTreeIdForEntityIndex int GetTreeIdForEntityIndex(int int_1) Given and entity index of a tree, get the tree id for use for use with with unit orders.
GetWorldMaxX float GetWorldMaxX() Gets the world's maximum X position.
GetWorldMaxY float GetWorldMaxY() Gets the world's maximum Y position.
GetWorldMinX float GetWorldMinX() Gets the world's minimum X position.
GetWorldMinY float GetWorldMinY() Gets the world's minimum Y position.
InitLogFile void InitLogFile(string string_1, string string_2) If the given file doesn't exist, creates it with the given contents; does nothing if it exists
IsClient bool IsClient() Returns true if this is lua running from the client.dll.
IsDedicatedServer bool IsDedicatedServer() Returns true if this server is a dedicated server.
IsMarkedForDeletion bool IsMarkedForDeletion(handle handle_1) Returns true if the entity is valid and marked for deletion.
IsServer bool IsServer() Returns true if this is lua running from the server.dll.
IsValidEntity bool IsValidEntity(handle handle_1) Checks to see if the given hScript is a valid entity
LimitPathingSearchDepth void LimitPathingSearchDepth(float float_1) Set the limit on the pathfinding search space.
LinkLuaModifier void LinkLuaModifier(string modifier_name, string file_path, int motion_controller_type) Link a lua-defined modifier with the associated class. If the modifier is located within the root vscript folder, then the second argument (file_path) may be omitted
ListenToGameEvent int ListenToGameEvent(string EventName, handle functionNameToCall, handle context) Register as a listener for a game event from script.
LoadKeyValues table LoadKeyValues(string string_1) Creates a table from the specified keyvalues text file
LoadKeyValuesFromString table LoadKeyValuesFromString(string string_1) Creates a table from the specified keyvalues string
MakeStringToken int MakeStringToken(string string_1) Checks to see if the given hScript is a valid entity
MinimapEvent void MinimapEvent(int int_1, handle handle_2, int int_3, int int_4, int int_5, int int_6) Start a minimap event. (nTeamID, hEntity, nXCoord, nYCoord, nEventType, nEventDuration).
Msg void Msg(string string_1) Print a message
PauseGame void PauseGame(bool bool_1) Pause or unpause the game.
PlayerInstanceFromIndex handle PlayerInstanceFromIndex(int int_1) Get a script instance of a player by index.
PrecacheEntityFromTable void PrecacheEntityFromTable(string string_1, handle handle_2, handle handle_3) Precache an entity from KeyValues in table
PrecacheEntityListFromTable void PrecacheEntityListFromTable(handle handle_1, handle handle_2) Precache a list of entity KeyValues table's
PrecacheItemByNameAsync void PrecacheItemByNameAsync(string string_1, handle handle_2) Asynchronously precaches a DOTA item by its dota_npc_items.txt name, provides a callback when it's finished.
PrecacheItemByNameSync void PrecacheItemByNameSync(string string_1, handle handle_2) Precaches a DOTA item by its dota_npc_items.txt name
PrecacheModel void PrecacheModel(string string_1, handle handle_2) ( modelName, context ) - Manually precache a single model
PrecacheResource void PrecacheResource(string precacheMode, string resource, handle context) Manually precache a single resource
PrecacheUnitByNameAsync void PrecacheUnitByNameAsync(string string_1, handle handle_2, int int_3) Asynchronously precaches a DOTA unit by its dota_npc_units.txt name, provides a callback when it's finished.
PrecacheUnitByNameSync void PrecacheUnitByNameSync(string string_1, handle handle_2, int int_3) Precaches a DOTA unit by its dota_npc_units.txt name
PrintLinkedConsoleMessage void PrintLinkedConsoleMessage(string string_1, string string_2) Print a console message with a linked console command
RandomFloat float RandomFloat(float float_1, float float_2) Get a random float within a range
RandomInt int RandomInt(int int_1, int int_2) Get a random int within a range
RandomVector Vector RandomVector(float maxLength) Get a random 2D vector
RegisterSpawnGroupFilterProxy void RegisterSpawnGroupFilterProxy(string string_1) Create a C proxy for a script-based spawn group filter
ReloadMOTD void ReloadMOTD() Reloads the MotD file
RemoveSpawnGroupFilterProxy void RemoveSpawnGroupFilterProxy(string string_1) Remove the C proxy for a script-based spawn group filter
ResolveNPCPositions void ResolveNPCPositions(Vector Vector_1, float float_2) Check and fix units that have been assigned a position inside collision radius of other NPCs.
RollPercentage bool RollPercentage(int int_1) Rolls a number from 1 to 100 and returns true if the roll is less than or equal to the number specified
RotateOrientation QAngle RotateOrientation(QAngle QAngle_1, QAngle QAngle_2) Rotate a QAngle by another QAngle.
RotatePosition Vector RotatePosition(Vector Vector_1, QAngle QAngle_2, Vector Vector_3) Rotate a Vector around a point.
RotateQuaternionByAxisAngle Quaternion RotateQuaternionByAxisAngle(Quaternion Quaternion_1, Vector Vector_2, float float_3) Rotates a quaternion by the specified angle around the specified vector axis
RotationDelta QAngle RotationDelta(QAngle QAngle_1, QAngle QAngle_2) Find the delta between two QAngles.
rr_AddDecisionRule bool rr_AddDecisionRule(handle handle_1) Add a rule to the decision database.
rr_CommitAIResponse bool rr_CommitAIResponse(handle handle_1, handle handle_2) Commit the result of QueryBestResponse back to the given entity to play. Call with params (entity, airesponse)
rr_GetResponseTargets handle rr_GetResponseTargets() Retrieve a table of all available expresser targets, in the form { name : handle, name: handle }.
rr_QueryBestResponse bool rr_QueryBestResponse(handle handle_1, handle handle_2, handle handle_3) Params: ( hEnt, hQuery, hResult ) // Static : tests 'query' against entity's response system and returns the best response found (or nil if none found).
Say void Say(handle entity, string message, bool teamOnly) Have Entity say string, and teamOnly or not
ScreenShake void ScreenShake(Vector Vector_1, float float_2, float float_3, float float_4, float float_5, int int_6, bool bool_7) Start a screenshake with the following parameters. vecCenter, flAmplitude, flFrequency, flDuration, flRadius, eCommand( SHAKE_START = 0, SHAKE_STOP = 1 ), bAirShake
SendFrostivusTimeElapsedToGC void SendFrostivusTimeElapsedToGC() No Description Set
SendFrostyPointsMessageToGC void SendFrostyPointsMessageToGC(handle handle_1) No Description Set
SendOverheadEventMessage void SendOverheadEventMessage(handle handle_1, int int_2, handle handle_3, int int_4, handle handle_5) ( DOTAPlayer sendToPlayer, int iMessageType, Entity targetEntity, int iValue, DOTAPlayer sourcePlayer ) - sendToPlayer and sourcePlayer can be nil - iMessageType is one of OVERHEAD_ALERT_*
SendToConsole void SendToConsole(string string_1) Send a string to the console as a client command
SendToServerConsole void SendToServerConsole(string string_1) Send a string to the console as a server command
SetOpvarFloatAll void SetOpvarFloatAll(string string_1, string string_2, string string_3, float float_4) Sets an opvar value for all players
SetOpvarFloatPlayer void SetOpvarFloatPlayer(string string_1, string string_2, string string_3, float float_4, handle handle_5) Sets an opvar value for a single player ( szStackName, szOperatorName, szOpvarName, flOpvarValue, hEnt )
SetQuestName void SetQuestName(string string_1) Set the current quest name.
SetQuestPhase void SetQuestPhase(int int_1) Set the current quest phase.
SetRenderingEnabled void SetRenderingEnabled(ehandle ehandle_1, bool bool_2) Set rendering on/off for an ehandle
SetTeamCustomHealthbarColor void SetTeamCustomHealthbarColor(int int_1, int int_2, int int_3, int int_4) ( teamNumber, r, g, b )
ShowCustomHeaderMessage void ShowCustomHeaderMessage(string message, int player, int value, float time) Displays a header message from player
ShowGenericPopup void ShowGenericPopup(string title, string content, string unknown, string unknown, int containerType) Shows a generic popup to all users
ShowGenericPopupToPlayer void ShowGenericPopupToPlayer(handle handle_1, string string_2, string string_3, string string_4, string string_5, int int_6) Show a generic popup dialog to a specific player.
ShowMessage void ShowMessage(string string_1) Print a hud message on all clients
SpawnEntityFromTableSynchronous handle SpawnEntityFromTableSynchronous(string string_1, handle handle_2) Synchronously spawns a single entity from a table
SpawnEntityGroupFromTable bool SpawnEntityGroupFromTable(handle groupSpawnTables, bool bAsync, handle hCallback) Hierarchically spawn an entity group from a set of spawn tables.
SpawnEntityListFromTableAsynchronous int SpawnEntityListFromTableAsynchronous(handle handle_1, handle handle_2) Asynchronously spawn an entity group from a list of spawn table's. A callback will be triggered when the spawning is complete
SpawnEntityListFromTableSynchronous handle SpawnEntityListFromTableSynchronous(handle handle_1) Synchronously spawn an entity group from a list of spawn table's.
SplineQuaternions Quaternion SplineQuaternions(Quaternion Quaternion_1, Quaternion Quaternion_2, float float_3) (quaternion,quaternion,float) very basic interpolation of v0 to v1 over t on [0,1]
SplineVectors Vector SplineVectors(Vector Vector_1, Vector Vector_2, float float_3) (vector,vector,float) very basic interpolation of v0 to v1 over t on [0,1]
StartSoundEvent void StartSoundEvent(string string_1, handle handle_2) Start a sound event
StartSoundEventFromPosition void StartSoundEventFromPosition(string string_1, Vector Vector_2) Start a sound event from position
StartSoundEventFromPositionReliable void StartSoundEventFromPositionReliable(string string_1, Vector Vector_2) Start a sound event from position with reliable delivery
StartSoundEventFromPositionUnreliable void StartSoundEventFromPositionUnreliable(string string_1, Vector Vector_2) Start a sound event from position with optional delivery
StartSoundEventReliable void StartSoundEventReliable(string string_1, handle handle_2) Start a sound event with reliable delivery
StartSoundEventUnreliable void StartSoundEventUnreliable(string string_1, handle handle_2) Start a sound event with optional delivery
StopEffect void StopEffect(handle handle_1, string string_2) (hEntity, szEffectName)
StopListeningToAllGameEvents void StopListeningToAllGameEvents(handle handle_1) Stop listening to all game events within a specific context.
StopListeningToGameEvent bool StopListeningToGameEvent(int int_1) Stop listening to a particular game event.
StopSoundEvent void StopSoundEvent(string string_1, handle handle_2) Stops a sound event
StopSoundOn void StopSoundOn(string soundName, handle playingEntity) Stop named sound on Entity
StringToFile bool StringToFile(string a, string b) * Directory traversal doesn't seem to work. The characters '.', '/' and '\\' are ignored.
Time float Time() Get the current server time
TraceCollideable bool TraceCollideable(handle handle_1) Pass table - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal
TraceHull bool TraceHull(handle handle_1) Pass table - Inputs: start, end, min, max, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid
TraceLine bool TraceLine(handle handle_1) Pass table - Inputs: startpos, endpos, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid
UnitFilter int UnitFilter(handle handle_1, int int_2, int int_3, int int_4, int int_5) Check if a unit passes a set of filters. (hNPC, nTargetTeam, nTargetType, nTargetFlags, nTeam
UnloadSpawnGroup void UnloadSpawnGroup(string string_1) Unload a spawn group by name
UnloadSpawnGroupByHandle void UnloadSpawnGroupByHandle(int int_1) Unload a spawn group by handle
UpdateEventPoints void UpdateEventPoints(handle handle_1) No Description Set
UTIL_MessageText void UTIL_MessageText(int playerId, string message, int r, int g, int b, int a) Displays a message for a specific player
UTIL_MessageText_WithContext void UTIL_MessageText_WithContext(int playerId, string message, int r, int g, int b, int a, table context) Sends a message to a specific player in the message box with a context table
UTIL_MessageTextAll void UTIL_MessageTextAll(string message, int r, int g, int b, int a) Sends a message to everyone in the message box
UTIL_MessageTextAll_WithContext void UTIL_MessageTextAll_WithContext(string message, int r, int g, int b, int a, table context) Sends a message to everyone in the message box with a context table
UTIL_Remove void UTIL_Remove(handle handle_1) Removes the specified entity
UTIL_RemoveImmediate void UTIL_RemoveImmediate(handle handle_1) Do Not use this function. Use UTIL_Remove() instead. This will crash your game.
UTIL_ResetMessageText void UTIL_ResetMessageText(int playerId) Resets the message text for the player
UTIL_ResetMessageTextAll void UTIL_ResetMessageTextAll() Resets the message text for all players
VectorToAngles QAngle VectorToAngles(Vector Vector_1) Get Qangles (with no roll) for a Vector.
Warning void Warning(string string_1) Print a warning


CBaseEntity

The base class for stuff

Function Signature Description
AddEffects void AddEffects(int nFlags) AddEffects( int ): Adds the render effect flag.
ApplyAbsVelocityImpulse void ApplyAbsVelocityImpulse(Vector vecImpulse) Apply a Velocity Impulse
ApplyLocalAngularVelocityImpulse void ApplyLocalAngularVelocityImpulse(Vector angImpulse) Apply an Ang Velocity Impulse
Attribute_GetFloatValue float Attribute_GetFloatValue(string pName, float flDefault) Get float value for an entity attribute.
Attribute_GetIntValue float Attribute_GetIntValue(string pName, int nDefault) Get int value for an entity attribute.
Attribute_SetFloatValue void Attribute_SetFloatValue(string pName, float flValue) Set float value for an entity attribute.
Attribute_SetIntValue void Attribute_SetIntValue(string pName, int nValue) Set int value for an entity attribute.
DeleteAttribute void DeleteAttribute(string pName) Delete an entity attribute.
EmitSound void EmitSound(string soundName)
EmitSoundParams void EmitSoundParams(string soundName, int pitch, float volume, float soundTime) Plays/modifies a sound from this entity. changes sound if Pitch and/or Volume or SoundTime is > 0.
EyeAngles QAngle EyeAngles() Get the qangles that this entity is looking at.
EyePosition Vector EyePosition() Get vector to eye position - absolute coords
FirstMoveChild handle FirstMoveChild() No Description Set
GatherCriteria void GatherCriteria(handle hResult) Returns a table containing the criteria that would be used for response queries on this entity. This is the same as the table that is passed to response rule script function callbacks.
GetAbsOrigin Vector GetAbsOrigin() No Description Set
GetAngles QAngle GetAngles() No Description Set
GetAnglesAsVector Vector GetAnglesAsVector() Get entity pitch, yaw, roll as a vector
GetAngularVelocity Vector GetAngularVelocity() Get the local angular velocity - returns a vector of pitch,yaw,roll
GetBaseVelocity Vector GetBaseVelocity() Get Base velocity
GetBoundingMaxs Vector GetBoundingMaxs() Get a vector containing max bounds, centered on object
GetBoundingMins Vector GetBoundingMins() Get a vector containing min bounds, centered on object
GetBounds table GetBounds() Get a table containing the 'Mins' & 'Maxs' vector bounds, centered on object
GetCenter Vector GetCenter() Get vector to center of object - absolute coords
GetChildren handle GetChildren() Get the entities parented to this entity.
GetContext table GetContext(string name) GetContext( name ): looks up a context and returns it if available. May return string, float, or nil (if the context isn't found)
GetForwardVector Vector GetForwardVector() Get the forward vector of the entity
GetHealth int GetHealth() No Description Set
GetLocalAngularVelocity QAngle GetLocalAngularVelocity() Maybe local angvel
GetLocalVelocity Vector GetLocalVelocity() Get Entity relative velocity
GetMaxHealth int GetMaxHealth() No Description Set
GetModelName string GetModelName() Returns the name of the model
GetMoveParent handle GetMoveParent() If in hierarchy, retrieves the entity's parent
GetOrigin Vector GetOrigin() No Description Set
GetOwner handle GetOwner() Gets this entity's owner
GetOwnerEntity handle GetOwnerEntity() Get the owner entity, if there is one
GetRightVector Vector GetRightVector() Get the right vector of the entity
GetRootMoveParent handle GetRootMoveParent() If in hierarchy, walks up the hierarchy to find the root parent
GetSoundDuration float GetSoundDuration(string soundName, string actormodelname) Returns float duration of the sound. Takes soundname and optional actormodelname.
GetTeam int GetTeam() No Description Set
GetTeamNumber int GetTeamNumber() Get the team number of this entity.
GetUpVector Vector GetUpVector() Get the up vector of the entity
GetVelocity Vector GetVelocity() No Description Set
HasAttribute bool HasAttribute(string pName) See if an entity has a particular attribute.
IsAlive bool IsAlive() No Description Set.
IsPlayer bool IsPlayer() Is this a player entity?
Kill void Kill() No Description Set
NextMovePeer handle NextMovePeer() No Description Set
OverrideFriction void OverrideFriction(float duration, float friction) Takes duration, value for a temporary override
PrecacheScriptSound void PrecacheScriptSound(string soundname) Precache a sound for later playing.
RemoveEffects void RemoveEffects(int nFlags) RemoveEffects( int ): Removes the render effect flag.
SetAbsOrigin void SetAbsOrigin(Vector origin) SetAbsOrigin
SetAngles void SetAngles(float pitch, float yaw, float roll) Set entity pitch, yaw, roll
SetAngularVelocity void SetAngularVelocity(float pitch, float yaw, float roll) Set the local angular velocity - takes float pitch,yaw,roll velocities
SetConstraint void SetConstraint(Vector vPos) Set the position of the constraint.
SetContext void SetContext(string pName, string pValue, float duration) SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a string. Will last for duration (set 0 to mean 'forever').
SetContextNum void SetContextNum(string pName, float fValue, float duration) SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (int or float). Will last for duration (set 0 to mean 'forever').
SetContextThink void SetContextThink(string pszContextName, handle hThinkFunc, float flInterval) Set a think function on this entity.
SetForwardVector void SetForwardVector(Vector forwardVec) Set the orientation of the entity to have this forward forwardVec
SetFriction void SetFriction(float flFriction) Set PLAYER friction, ignored for objects
SetGravity void SetGravity(float flGravity) Set PLAYER gravity, ignored for objects
SetHealth void SetHealth(int hp) No Description Set
SetMaxHealth void SetMaxHealth(int maxHP) No Description Set
SetModel void SetModel(string modelName) No Description Set
SetOrigin void SetOrigin(Vector origin) No Description Set
SetOwner void SetOwner(handle owningEntity) Sets this entity's owner
SetParent void SetParent(handle hParent, string pAttachmentname) Set the parent for this entity.
SetRenderColor void SetRenderColor(int a, int b, int c) SetRenderColor( r, g, b ): Sets the render color of the entity.
SetSize void SetSize(Vector a, Vector b) No Description Set
SetTeam void SetTeam(int team) No Description Set
SetVelocity void SetVelocity(Vector vecVelocity) No Description Set
StopSound void StopSound(string soundName) Stops a named sound playing from this entity.
Trigger void Trigger() Fires off this entity's OnTrigger responses


CEntities

No Description Set

Global accessor variable: Entities

Function Signature Description
CreateByClassname handle CreateByClassname(string className) Creates an entity by classname
FindAllByClassname table FindAllByClassname(string string_1) Finds all entities by class name. Returns an array containing all the found entities.
FindAllByClassnameWithin table FindAllByClassnameWithin(string string_1, Vector Vector_2, float float_3) Find entities by class name within a radius.
FindAllByModel table FindAllByModel(string modelName) Find entities by model name.
FindAllByName table FindAllByName(string name) Find all entities by name. Returns an array containing all the found entities in it.
FindAllByNameWithin table FindAllByNameWithin(string name, Vector origin, float maxRadius) Find entities by name within a radius.
FindAllByTarget table FindAllByTarget(string targetName) Find entities by targetname.
FindAllInSphere table FindAllInSphere(Vector origin, float maxRadius) Find entities within a radius.
FindByClassname handle FindByClassname(handle startFrom, string className) Find entities by class name. Pass nil to start an iteration, or reference to a previously found entity to continue a search
FindByClassnameNearest handle FindByClassnameNearest(string className, Vector origin, float maxRadius) Find entities by class name nearest to a point.
FindByClassnameWithin handle FindByClassnameWithin(handle startFrom, string className, Vector origin, float maxRadius) Find entities by class name within a radius. Pass nil to start an iteration, or reference to a previously found entity to continue a search
FindByModel handle FindByModel(handle startFrom, string modelName) Find entities by model name. Pass nil to start an iteration, or reference to a previously found entity to continue a search
FindByModelWithin handle FindByModelWithin(handle startFrom, string modelName, Vector origin, float maxRadius) Find entities by model name within a radius. Pass nil to start an iteration, or reference to a previously found entity to continue a search
FindByName handle FindByName(handle lastEnt, string searchString) Find entities by name. Pass nil to start an iteration, or reference to a previously found entity to continue a search
FindByNameNearest handle FindByNameNearest(string name, Vector origin, float maxRadius) Find entities by name nearest to a point.
FindByNameWithin handle FindByNameWithin(handle startFrom, string name, Vector origin, float maxRadius) Find entities by name within a radius. Pass nil to start an iteration, or reference to a previously found entity to continue a search
FindByTarget handle FindByTarget(handle startFrom, string targetName) Find entities by targetname. Pass nil to start an iteration, or reference to a previously found entity to continue a search
FindInSphere handle FindInSphere(handle startFrom, Vector origin, float maxRadius) Find entities within a radius. Pass nil to start an iteration, or reference to a previously found entity to continue a search
First handle First() Begin an iteration over the list of entities
Next handle Next(handle startFrom) Continue an iteration over the list of entities, providing reference to a previously found entity


CEntityInstance

extends CBaseEntity

No Description Set

Function Signature Description
ConnectOutput void ConnectOutput(string string_1, string string_2) Adds an I/O connection that will call the named function on this entity when the specified output fires.
Destroy void Destroy() No Description Set
DisconnectOutput void DisconnectOutput(string string_1, string string_2) Removes a connected script function from an I/O event on this entity.
DisconnectRedirectedOutput void DisconnectRedirectedOutput(string string_1, string string_2, handle handle_3) Removes a connected script function from an I/O event on the passed entity.
entindex int entindex() No Description Set
FireOutput void FireOutput(string outputName, handle activator, handle caller, table args, float delay) Fire an entity output
GetClassname string GetClassname() No Description Set
GetDebugName string GetDebugName() Get the entity name w/help if not defined (i.e. classname/etc)
GetEntityHandle ehandle GetEntityHandle() Get the entity as an EHANDLE
GetEntityIndex int GetEntityIndex() No Description Set
GetIntAttr int GetIntAttr(string string_1) Get Integer Attribute
GetName string GetName() No Description Set
GetOrCreatePrivateScriptScope handle GetOrCreatePrivateScriptScope() Retrieve, creating if necessary, the private per-instance script-side data associated with an entity
GetOrCreatePublicScriptScope handle GetOrCreatePublicScriptScope() Retrieve, creating if necessary, the public script-side data associated with an entity
GetPrivateScriptScope handle GetPrivateScriptScope() Retrieve the private per-instance script-side data associated with an entity
GetPublicScriptScope handle GetPublicScriptScope() Retrieve the public script-side data associated with an entity
RedirectOutput void RedirectOutput(string string_1, string string_2, handle handle_3) Adds an I/O connection that will call the named function on the passed entity when the specified output fires.
RemoveSelf void RemoveSelf() Delete this entity
SetIntAttr void SetIntAttr(string string_1, int int_2) Set Integer Attribute


CDOTABaseAbility

extends CBaseEntity

No Description Set

Function Signature Description
CanAbilityBeUpgraded <unknown> CanAbilityBeUpgraded()
CastAbility void CastAbility() No Description Set
ContinueCasting bool ContinueCasting() No Description Set
CreateVisibilityNode void CreateVisibilityNode(Vector vLocation, float fRadius, float fDuration) No Description Set
DecrementModifierRefCount void DecrementModifierRefCount() No Description Set
EndChannel void EndChannel(bool bInterrupted) Param: bool bInterrupted
EndCooldown void EndCooldown() Clear the cooldown remaining on this ability.
GetAbilityDamage int GetAbilityDamage() No Description Set
GetAbilityDamageType int GetAbilityDamageType() No Description Set
GetAbilityIndex int GetAbilityIndex() No Description Set
GetAbilityName string GetAbilityName() No Description Set
GetAbilityTargetFlags int GetAbilityTargetFlags() No Description Set
GetAbilityTargetTeam int GetAbilityTargetTeam() No Description Set
GetAbilityTargetType int GetAbilityTargetType() No Description Set
GetAbilityType int GetAbilityType() No Description Set
GetAnimationIgnoresModelScale bool GetAnimationIgnoresModelScale() No Description Set
GetAssociatedPrimaryAbilities string GetAssociatedPrimaryAbilities() No Description Set
GetAssociatedSecondaryAbilities string GetAssociatedSecondaryAbilities() No Description Set
GetAutoCastState bool GetAutoCastState() No Description Set
GetBackswingTime float GetBackswingTime() No Description Set
GetBehavior int GetBehavior() No Description Set
GetCaster handle GetCaster() No Description Set
GetCastPoint float GetCastPoint() No Description Set
GetCastRange int GetCastRange(Vector vLocation, handle hTarget) No Description Set
GetChannelledManaCostPerSecond int GetChannelledManaCostPerSecond(int iLevel) No Description Set
GetChannelStartTime float GetChannelStartTime() No Description Set
GetChannelTime float GetChannelTime() No Description Set
GetCloneSource handle GetCloneSource() No Description Set
GetConceptRecipientType int GetConceptRecipientType() No Description Set
GetCooldown float GetCooldown(int iLevel) Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left.
GetCooldownTime float GetCooldownTime() No Description Set
GetCooldownTimeRemaining float GetCooldownTimeRemaining() No Description Set
GetCursorPosition Vector GetCursorPosition() No Description Set
GetCursorTarget handle GetCursorTarget() No Description Set
GetCursorTargetingNothing bool GetCursorTargetingNothing() No Description Set
GetDuration float GetDuration() No Description Set
GetGoldCost int GetGoldCost(int iLevel) No Description Set
GetGoldCostForUpgrade int GetGoldCostForUpgrade(int iLevel) No Description Set
GetHeroLevelRequiredToUpgrade int GetHeroLevelRequiredToUpgrade() No Description Set
GetIntrinsicModifierName string GetIntrinsicModifierName() No Description Set
GetLevel int GetLevel() Get the current level of the ability
GetLevelSpecialValueFor table GetLevelSpecialValueFor(string szName, int nLevel) No Description Set
GetManaCost int GetManaCost(int iLevel) No Description Set
GetMaxLevel int GetMaxLevel() No Description Set
GetModifierValue float GetModifierValue() No Description Set
GetModifierValueBonus float GetModifierValueBonus() No Description Set
GetPlaybackRateOverride float GetPlaybackRateOverride() No Description Set
GetSharedCooldownName string GetSharedCooldownName() No Description Set
GetSpecialValueFor table GetSpecialValueFor(string szName) No Description Set
GetStolenActivityModifier string GetStolenActivityModifier() No Description Set
GetToggleState bool GetToggleState() No Description Set
HeroXPChange bool HeroXPChange(float flXP) No Description Set
IncrementModifierRefCount void IncrementModifierRefCount() No Description Set
IsActivated bool IsActivated() No Description Set
IsAttributeBonus bool IsAttributeBonus() No Description Set
IsChanneling bool IsChanneling() Returns whether the ability is currently channeling.
IsCooldownReady bool IsCooldownReady() No Description Set
IsCosmetic bool IsCosmetic(handle hEntity) No Description Set
IsFullyCastable bool IsFullyCastable() Returns whether the ability can be cast.
IsHidden bool IsHidden() No Description Set
IsHiddenWhenStolen bool IsHiddenWhenStolen() No Description Set
IsInAbilityPhase bool IsInAbilityPhase() Returns whether the ability is currently casting.
IsItem bool IsItem() No Description Set
IsOwnersGoldEnough bool IsOwnersGoldEnough(int nIssuerPlayerID) No Description Set
IsOwnersGoldEnoughForUpgrade bool IsOwnersGoldEnoughForUpgrade() No Description Set
IsOwnersManaEnough bool IsOwnersManaEnough() No Description Set
IsPassive bool IsPassive() No Description Set
IsSharedWithTeammates bool IsSharedWithTeammates() No Description Set
IsStealable bool IsStealable() No Description Set
IsStolen bool IsStolen() No Description Set
IsToggle bool IsToggle() No Description Set
IsTrained bool IsTrained() No Description Set
MarkAbilityButtonDirty void MarkAbilityButtonDirty() Mark the ability button for this ability as needing a refresh
NumModifiersUsingAbility int NumModifiersUsingAbility() No Description Set
OnAbilityPhaseInterrupted void OnAbilityPhaseInterrupted() No Description Set
OnAbilityPhaseStart bool OnAbilityPhaseStart() No Description Set
OnAbilityPinged void OnAbilityPinged(int nPlayerID) No Description Set
OnChannelFinish void OnChannelFinish(bool bInterrupted) No Description Set
OnChannelThink void OnChannelThink(float flInterval) No Description Set
OnHeroCalculateStatBonus void OnHeroCalculateStatBonus() No Description Set
OnHeroLevelUp void OnHeroLevelUp() No Description Set
OnInventoryContentsChanged void OnInventoryContentsChanged() No Description Set
OnOwnerDied void OnOwnerDied() No Description Set
OnOwnerSpawned void OnOwnerSpawned() No Description Set
OnSpellStart void OnSpellStart() No Description Set
OnToggle void OnToggle() No Description Set
OnUpgrade void OnUpgrade() No Description Set
PayGoldCost void PayGoldCost() No Description Set
PayGoldCostForUpgrade void PayGoldCostForUpgrade() No Description Set
PayManaCost void PayManaCost() No Description Set
PlaysDefaultAnimWhenStolen bool PlaysDefaultAnimWhenStolen() No Description Set
ProcsMagicStick bool ProcsMagicStick() No Description Set
RefCountsModifiers bool RefCountsModifiers() No Description Set
RefundManaCost void RefundManaCost() No Description Set
ResetToggleOnRespawn bool ResetToggleOnRespawn() No Description Set
SetAbilityIndex void SetAbilityIndex(int iIndex) No Description Set
SetActivated void SetActivated(bool bActivated) No Description Set
SetChanneling void SetChanneling(bool bChanneling) No Description Set
SetHidden void SetHidden(bool bHidden) No Description Set
SetInAbilityPhase void SetInAbilityPhase(bool bInAbilityPhase) No Description Set
SetLevel void SetLevel(int iLevel) Sets the level of this ability.
SetOverrideCastPoint void SetOverrideCastPoint(float flCastPoint) No Description Set
SetRefCountsModifiers void SetRefCountsModifiers(bool bRefCounts) No Description Set
SetStolen void SetStolen(bool bStolen) No Description Set
ShouldUseResources bool ShouldUseResources() No Description Set
SpeakAbilityConcept void SpeakAbilityConcept(int iConcept) No Description Set
SpeakTrigger bool SpeakTrigger() No Description Set
StartCooldown void StartCooldown(float flCooldown) param: flCooldown
ToggleAbility void ToggleAbility() No Description Set
ToggleAutoCast void ToggleAutoCast() No Description Set
UpgradeAbility void UpgradeAbility(bool bSupressSpeech) No Description Set
UseResources void UseResources(bool bMana, bool bGold, bool bCooldown) No Description Set


CDOTA_Ability_Animation_Attack

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float flRate) Override playbackrate


CDOTA_Ability_Animation_TailSpin

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float flRate) Override playbackrate


CDOTA_Ability_Nian_Leap

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float flRate) Override playbackrate


CDOTA_Ability_Nian_Dive

extends CDOTABaseAbility

No Description Set

Function Signature Description
SetPlaybackRate void SetPlaybackRate(float flRate) Override playbackrate


CDOTA_Ability_Nian_Roar

extends CDOTABaseAbility

No Description Set

Function Signature Description
GetCastCount int GetCastCount() Number of times Nian has used the roar


CDOTA_Item

extends CDOTABaseAbility

No Description Set

Function Signature Description
GetContainer handle GetContainer() Get the container for this item.
GetCost int GetCost() No Description Set
GetCurrentCharges int GetCurrentCharges() Get the number of charges this item currently has.
GetInitialCharges int GetInitialCharges() Get the initial number of charges this item has.
GetPurchaser handle GetPurchaser() Get the purchaser for this item.
GetPurchaseTime float GetPurchaseTime() Get the purchase time of this item
GetShareability int GetShareability() No Description Set
IsAlertableItem bool IsAlertableItem()
IsCastOnPickup bool IsCastOnPickup()
IsCombinable bool IsCombinable()
IsDisassemblable bool IsDisassemblable()
IsDroppable bool IsDroppable()
IsItem bool IsItem()
IsKillable bool IsKillable()
IsMuted bool IsMuted()
IsPermanent bool IsPermanent() Is this a permanent item?
IsPurchasable bool IsPurchasable()
IsRecipe bool IsRecipe()
IsRecipeGenerated bool IsRecipeGenerated()
IsSellable bool IsSellable()
IsStackable bool IsStackable()
LaunchLoot void LaunchLoot(bool useOnContact, float height, float speed, Vector destination) For items lying on the ground. Fires the item up into the air so that it lands at the specified position.
LaunchLootInitialHeight void LaunchLootInitialHeight(bool bAutoUse, float flInitialHeight, float flLaunchHeight, float flDuration, Vector vEndPoint)
RequiresCharges bool RequiresCharges()
SetCurrentCharges void SetCurrentCharges(int iCharges) Set the number of charges on this item
SetPurchaser void SetPurchaser(handle hPurchaser) Set the purchaser of record for this item.
SetPurchaseTime void SetPurchaseTime(float flTime) Set the purchase time of this item
SetStacksWithOtherOwners void SetStacksWithOtherOwners(bool bStacksWithOtherOwners) No Description Set
StacksWithOtherOwners bool StacksWithOtherOwners() No Description Set
Think void Think() Think this item


CDOTA_Item_Physical

extends CBaseAnimating

No Description Set

Function Signature Description
GetContainedItem handle GetContainedItem() Returned the contained item.
GetCreationTime float GetCreationTime() Returns the game time when this item was created in the world
SetContainedItem void SetContainedItem(handle hItem) Set the contained item.


CDOTA_Item_DataDriven

extends CDOTA_Item

'

Function Signature Description
ApplyDataDrivenModifier void ApplyDataDrivenModifier(handle source, handle target, string modifier_name, handle modifierArgs) Applies a data driven modifier to the target
ApplyDataDrivenThinker handle ApplyDataDrivenThinker(handle hCaster, Vector vLocation, string pszModifierName, handle hModifierTable) Applies a data driven thinker at the location


CDOTA_Unit_Nian

extends CDOTA_BaseNPC_Creature

No Description Set

Function Signature Description
GetHorn handle GetHorn() Is the Nian horn?
GetTail handle GetTail() Is the Nian's tail broken?
IsHornAlive bool IsHornAlive() Is the Nian's horn broken?
IsTailAlive bool IsTailAlive() Is the Nian's tail broken?


CBasePlayer

No Description Set

Function Signature Description
GetHMDAvatar handle GetHMDAvatar() Returns the HMD Avatar entity for this player if it exists.
IsNoclipping bool IsNoclipping() Returns true if the player is in noclip mode.
IsSteamControllerButtonPressed bool IsSteamControllerButtonPressed(int nControllerNumber, int nButton) Returns true if the controller button is pressed.
IsUsePressed bool IsUsePressed() Returns true if the use key is pressed.
IsVRControllerButtonPressed bool IsVRControllerButtonPressed(int nButton) Returns true if the controller button is pressed.
Quit void Quit() Quit the game from script.


CDOTAPlayer

extends CBaseAnimating

No Description Set

Function Signature Description
GetAssignedHero handle GetAssignedHero() Get the player's hero.
GetControlledRPGUnit handle GetControlledRPGUnit() Get the RPG unit this player controls.
GetPlayerID int GetPlayerID() Get the player's official PlayerID; notably is -1 when the player isn't yet on a team.
MakeRandomHeroSelection void MakeRandomHeroSelection() Randoms this player's hero.
SetKillCamUnit void SetKillCamUnit(handle hEntity) Set the kill cam unit for this hero.
SetMusicStatus void SetMusicStatus(int nMusicStatus, float flIntensity) Set the music status for this player, note this will only really apply if dota_music_battle_enable is off.


CDOTA_PlayerResource

extends CBaseEntity

No Description Set

Global accessor variable: PlayerResource

Function Signature Description
AddAegisPickup void AddAegisPickup(int iPlayerID) No Description Set
AddClaimedFarm void AddClaimedFarm(int iPlayerID, float flFarmValue, bool bEarnedValue) No Description Set
AddGoldSpentOnSupport void AddGoldSpentOnSupport(int iPlayerID, int iCost) No Description Set
AddRunePickup void AddRunePickup(int iPlayerID) No Description Set
AreUnitsSharedWithPlayerID bool AreUnitsSharedWithPlayerID(int nUnitOwnerPlayerID, int nOtherPlayerID) No Description Set
ClearKillsMatrix void ClearKillsMatrix(int iPlayerID) No Description Set
ClearLastHitMultikill void ClearLastHitMultikill(int iPlayerID) No Description Set
ClearLastHitStreak void ClearLastHitStreak(int iPlayerID) No Description Set
ClearRawPlayerDamageMatrix void ClearRawPlayerDamageMatrix(int iPlayerID) No Description Set
ClearStreak void ClearStreak(int iPlayerID) No Description Set
GetAegisPickups int GetAegisPickups(int iPlayerID) No Description Set
GetAssists int GetAssists(int iPlayerID) No Description Set
GetBroadcasterChannel <> GetBroadcasterChannel(int iPlayerID) No Description Set
GetBroadcasterChannelSlot <> GetBroadcasterChannelSlot(int iPlayerID) No Description Set
GetClaimedDenies int GetClaimedDenies(int iPlayerID) No Description Set
GetClaimedFarm float GetClaimedFarm(int iPlayerID, bool bOnlyEarned) No Description Set
GetClaimedMisses int GetClaimedMisses(int iPlayerID) No Description Set
GetConnectionState <> GetConnectionState(int iPlayerID) No Description Set
GetCreepDamageTaken int GetCreepDamageTaken(int iPlayerID, bool bTotal) No Description Set
GetCustomBuybackCooldown float GetCustomBuybackCooldown(int iPlayerID) No Description Set
GetCustomBuybackCost int GetCustomBuybackCost(int iPlayerID) No Description Set
GetCustomTeamAssignment int GetCustomTeamAssignment(int playerIndex) returns the team number that the player should join
GetDamageDoneToHero int GetDamageDoneToHero(int iPlayerID, int iVictimID) No Description Set
GetDeaths int GetDeaths(int iPlayerID) No Description Set
GetDenies int GetDenies(int iPlayerID) No Description Set
GetEventPointsForPlayerID int GetEventPointsForPlayerID(int iPlayerID) No Description Set
GetEventPremiumPointsGranted int GetEventPremiumPointsGranted(int iPlayerID) No Description Set
GetEventRankGranted int GetEventRankGranted(int iPlayerID) No Description Set
GetGold int GetGold(int playerID) Returns how much gold the specified player currently has
GetGoldBagsCollected int GetGoldBagsCollected(int iPlayerID) No Description Set
GetGoldLostToDeath int GetGoldLostToDeath(int iPlayerID) No Description Set
GetGoldPerMin float GetGoldPerMin(int iPlayerID) No Description Set
GetGoldSpentOnBuybacks int GetGoldSpentOnBuybacks(int iPlayerID) No Description Set
GetGoldSpentOnConsumables int GetGoldSpentOnConsumables(int iPlayerID) No Description Set
GetGoldSpentOnItems int GetGoldSpentOnItems(int iPlayerID) No Description Set
GetGoldSpentOnSupport int GetGoldSpentOnSupport(int iPlayerID) No Description Set
GetHealing float GetHealing(int iPlayerID) No Description Set
GetHeroDamageTaken int GetHeroDamageTaken(int iPlayerID, bool bTotal) No Description Set
GetKills int GetKills(int playerID) Return how many kills the specified player currently gets
GetKillsDoneToHero int GetKillsDoneToHero(int attackerPlayerID, int victimPlayerID) Returns the number of times the attacker (first argument) has killed the victim (second argument)
GetLastHitMultikill int GetLastHitMultikill(int iPlayerID) No Description Set
GetLastHits int GetLastHits(int playerID) No Description Set
GetLastHitStreak int GetLastHitStreak(int iPlayerID) No Description Set
GetLevel int GetLevel(int playerID) No Description Set
GetMisses int GetMisses(int iPlayerID) No Description Set
GetNearbyCreepDeaths int GetNearbyCreepDeaths(int iPlayerID) No Description Set
GetNthCourierForTeam handle GetNthCourierForTeam(int nCourierIndex, int nTeamNumber) No Description Set
GetNthPlayerIDOnTeam int GetNthPlayerIDOnTeam(int iTeamNumber, int iNthPlayer) No Description Set
GetNumConsumablesPurchased int GetNumConsumablesPurchased(int iPlayerID) No Description Set
GetNumCouriersForTeam int GetNumCouriersForTeam(int nTeamNumber) No Description Set
GetNumItemsPurchased int GetNumItemsPurchased(int iPlayerID) No Description Set
GetOriginalLobbyTeam int GetOriginalLobbyTeam(int iPlayerID) The team this player was originally assigned in the lobby. DOTA_TEAM_NOTEAM if no lobby info.
GetPlayer handle GetPlayer(int playerID) No Description Set
GetPlayerCount int GetPlayerCount() Includes spectators and players not assigned to a team
GetPlayerCountForTeam int GetPlayerCountForTeam(int iTeam)
GetPlayerLoadedCompletely bool GetPlayerLoadedCompletely(int iPlayerID) No Description Set
GetPlayerName string GetPlayerName(int iPlayerID) No Description Set
GetPlayerReservedState bool GetPlayerReservedState(int iPlayerID) No Description Set
GetRawPlayerDamage int GetRawPlayerDamage(int iPlayerID) No Description Set
GetReliableGold int GetReliableGold(int playerID) Returns how much reliable gold the specified player currently has
GetRespawnSeconds int GetRespawnSeconds(int iPlayerID) No Description Set
GetRoshanKills int GetRoshanKills(int iPlayerID) No Description Set
GetRunePickups int GetRunePickups(int iPlayerID) No Description Set
GetSelectedHeroEntity handle GetSelectedHeroEntity(int iPlayerID) No Description Set
GetSelectedHeroID int GetSelectedHeroID(int iPlayerID) No Description Set
GetSelectedHeroName string GetSelectedHeroName(int iPlayerID) No Description Set
GetSteamAccountID <> GetSteamAccountID(int iPlayerID) No Description Set
GetStreak int GetStreak(int iPlayerID) No Description Set
GetStuns float GetStuns(int iPlayerID) No Description Set
GetTeam int GetTeam(int iPlayerID) No Description Set
GetTeamKills int GetTeamKills(int iTeam) No Description Set
GetTeamPlayerCount int GetTeamPlayerCount() Players on a valid team (radiant, dire, or custom*) who haven't abandoned the game
GetTimeOfLastConsumablePurchase float GetTimeOfLastConsumablePurchase(int iPlayerID) No Description Set
GetTimeOfLastDeath float GetTimeOfLastDeath(int iPlayerID) No Description Set
GetTimeOfLastItemPurchase float GetTimeOfLastItemPurchase(int iPlayerID) No Description Set
GetTotalEarnedGold int GetTotalEarnedGold(int iPlayerID) No Description Set
GetTotalEarnedXP int GetTotalEarnedXP(int iPlayerID) No Description Set
GetTotalGoldSpent int GetTotalGoldSpent(int iPlayerID) No Description Set
GetTowerDamageTaken int GetTowerDamageTaken(int iPlayerID, bool bTotal) No Description Set
GetTowerKills int GetTowerKills(int iPlayerID) No Description Set
GetUnitShareMaskForPlayer int GetUnitShareMaskForPlayer(int nPlayerID, int nOtherPlayerID) No Description Set
GetUnreliableGold int GetUnreliableGold(int playerID) Returns how much unreliable gold the specified player currently has
GetXPPerMin float GetXPPerMin(int iPlayerID) No Description Set
HasRandomed bool HasRandomed(int iPlayerID) No Description Set
HasRepicked bool HasRepicked(int playerID) No Description Set
HasSelectedHero bool HasSelectedHero(int iPlayerID) No Description Set
HaveAllPlayersJoined bool HaveAllPlayersJoined() No Description Set
HeroLevelUp void HeroLevelUp(int iPlayerID) No Description Set
IncrementAssists void IncrementAssists(int playerID, int iVictimID) No Description Set
IncrementClaimedDenies void IncrementClaimedDenies(int iPlayerID) No Description Set
IncrementClaimedMisses void IncrementClaimedMisses(int iPlayerID) No Description Set
IncrementDeaths void IncrementDeaths(int playerID, int iKillerID) No Description Set
IncrementDenies void IncrementDenies(int iPlayerID) No Description Set
IncrementGoldBagsCollected void IncrementGoldBagsCollected(int iPlayerID) No Description Set
IncrementKills void IncrementKills(int playerID, int kills) No Description Set
IncrementLastHitMultikill void IncrementLastHitMultikill(int iPlayerID) No Description Set
IncrementLastHits void IncrementLastHits(int iPlayerID) No Description Set
IncrementLastHitStreak void IncrementLastHitStreak(int iPlayerID) No Description Set
IncrementMisses void IncrementMisses(int iPlayerID) No Description Set
IncrementNearbyCreepDeaths void IncrementNearbyCreepDeaths(int iPlayerID) No Description Set
IncrementStreak void IncrementStreak(int iPlayerID) No Description Set
IncrementTotalEarnedXP void IncrementTotalEarnedXP(int iPlayerID, int iXP, int nReason) No Description Set
IsBroadcaster bool IsBroadcaster(int iPlayerID) No Description Set
IsDisableHelpSetForPlayerID bool IsDisableHelpSetForPlayerID(int nPlayerID, int nOtherPlayerID) No Description Set
IsFakeClient bool IsFakeClient(int iPlayerID) No Description Set
IsHeroSelected bool IsHeroSelected(string pHeroname) No Description Set
IsHeroSharedWithPlayerID bool IsHeroSharedWithPlayerID(int nUnitOwnerPlayerID, int nOtherPlayerID) No Description Set
IsValidPlayer bool IsValidPlayer(int playerID) No Description Set
IsValidPlayerID bool IsValidPlayerID(int playerID) No Description Set
IsValidTeamPlayer bool IsValidTeamPlayer(int playerID) No Description Set
IsValidTeamPlayerID bool IsValidTeamPlayerID(int playerID) No Description Set
ModifyGold int ModifyGold(int playerID, int goldAmmt, bool reliable, int nReason) No Description Set
ReplaceHeroWith handle ReplaceHeroWith(int iPlayerID, string pszHeroClass, int nGold, int nXP) (playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
ResetBuybackCostTime void ResetBuybackCostTime(int nPlayerID) No Description Set
ResetTotalEarnedGold void ResetTotalEarnedGold(int iPlayerID) No Description Set
SetBuybackCooldownTime void SetBuybackCooldownTime(int nPlayerID, float flBuybackCooldown) No Description Set
SetBuybackGoldLimitTime void SetBuybackGoldLimitTime(int nPlayerID, float flBuybackCooldown) No Description Set
SetCameraTarget void SetCameraTarget(int nPlayerID, handle hTarget) (playerID, entity) - force the given player's camera to follow the given entity
SetCustomBuybackCooldown void SetCustomBuybackCooldown(int iPlayerID, float flCooldownTime) Set the buyback cooldown for this player.
SetCustomBuybackCost void SetCustomBuybackCost(int iPlayerID, int iGoldCost) Set the buyback cost for this player.
SetCustomPlayerColor void SetCustomPlayerColor(int iPlayerID, int r, int g, int b) Set custom color for player (minimap, scoreboard, etc)
SetCustomTeamAssignment void SetCustomTeamAssignment(int playerIndex, int teamToJoin) Sets the team that the player should join
SetGold void SetGold(int playerID, int amount, bool reliableGold) Sets the reliable/unreliable gold of the specified player
SetHasRandomed void SetHasRandomed(int playerID) No Description Set
SetHasRepicked void SetHasRepicked(int playerID) No Description Set
SetLastBuybackTime void SetLastBuybackTime(int iPlayerID, int iLastBuybackTime) No Description Set
SetOverrideSelectionEntity void SetOverrideSelectionEntity(int nPlayerID, handle hEntity) Set the forced selection entity for a player.
SetPlayerReservedState void SetPlayerReservedState(int iPlayerID, bool bReserved) No Description Set
SetUnitShareMaskForPlayer void SetUnitShareMaskForPlayer(int nPlayerID, int nOtherPlayerID, int nFlag, bool bState) No Description Set
SpendGold void SpendGold(int playerID, int amount, int reason) No Description Set
UpdateTeamSlot void UpdateTeamSlot(int iPlayerID, int iTeamNumber, bool bFromLobby) No Description Set
WhoSelectedHero int WhoSelectedHero(string pHeroFilename) No Description Set


CDOTA_BaseNPC

extends CBaseFlex

'

Function Signature Description
AddAbility void AddAbility(string pszAbilityName) Add an ability to this unit by name.
AddItem void AddItem(handle hItem) Add an item to this unit's inventory.
AddItemByName void AddItemByName(string pszItemName) Add an item to this unit's inventory.
AddNewModifier void AddNewModifier(handle caster, handle optionalSourceAbility, string modifierName, handle modifierData) Add a modifier to this unit.
AddNoDraw void AddNoDraw() Adds the no draw flag.
AddSpeechBubble void AddSpeechBubble(int iBubble, string pszSpeech, float flDuration, unsigned unOffsetX, unsigned unOffsetY) Add a speech bubble(1-4 live at a time) to this NPC.
AlertNearbyUnits void AlertNearbyUnits(handle hAttacker, handle hAbility) No Description Set
AngerNearbyUnits void AngerNearbyUnits() No Description Set
AttackNoEarlierThan void AttackNoEarlierThan(float flTime) No Description Set
AttackReady bool AttackReady() No Description Set
BoundingRadius2D float BoundingRadius2D() No Description Set
CanEntityBeSeenByMyTeam bool CanEntityBeSeenByMyTeam(handle hEntity) Check FoW to see if an entity is visible.
CanSellItems bool CanSellItems() Query if this unit can sell items.
CastAbilityImmediately void CastAbilityImmediately(handle ability, int playerIndex) Cast an ability immediately.
CastAbilityNoTarget void CastAbilityNoTarget(handle ability, int playerIndex) Cast an ability with no target. ( hAbility, iPlayerIndex )
CastAbilityOnPosition void CastAbilityOnPosition(Vector vPosition, handle hAbility, int iPlayerIndex) Cast an ability on a position.
CastAbilityOnTarget void CastAbilityOnTarget(handle target, handle ability, int playerIndex) Cast an ability on a target entity.
CastAbilityToggle void CastAbilityToggle(handle hAbility, int iPlayerIndex) Toggle an ability. ( hAbility, iPlayerIndex )
DestroyAllSpeechBubbles void DestroyAllSpeechBubbles()
DisassembleItem void DisassembleItem(handle hItem) Disassemble the passed item in this unit's inventory.
DropItemAtPosition void DropItemAtPosition(Vector vDest, handle hItem) Drop an item at a given point.
DropItemAtPositionImmediate void DropItemAtPositionImmediate(handle hItem, Vector vPosition) Immediately drop a carried item at a given position.
EjectItemFromStash void EjectItemFromStash(handle hItem) Drops the selected item out of this unit's stash.
FindAbilityByName handle FindAbilityByName(string pAbilityName) Retrieve an ability by name from the unit.
FindAllModifiers table FindAllModifiers() Returns a table of all of the modifiers on the NPC.
FindAllModifiersByName table FindAllModifiersByName(string pszScriptName) Returns a table of all of the modifiers on the NPC with the passed name (modifierName)
FindModifierByName handle FindModifierByName(string pszScriptName) Return a handle to the modifier of the given name if found, else nil (string Name )
FindModifierByNameAndCaster handle FindModifierByNameAndCaster(string pszScriptName, handle hCaster) Return a handle to the modifier of the given name from the passed caster if found, else nil ( string Name, hCaster )
ForceKill void ForceKill(bool bReincarnate) Kill this unit immediately.
GetAbilityByIndex handle GetAbilityByIndex(int iIndex) Retrieve an ability by index from the unit.
GetAbilityCount int GetAbilityCount() No Description Set
GetAcquisitionRange float GetAcquisitionRange() Gets the range at which this unit will auto-acquire.
GetAdditionalBattleMusicWeight float GetAdditionalBattleMusicWeight() Combat involving this creature will have this weight added to the music calcuations
GetAggroTarget handle GetAggroTarget() Returns this unit's aggro target.
GetAttackAnimationPoint float GetAttackAnimationPoint() No Description Set
GetAttackCapability int GetAttackCapability() Gets the Attack Capabilities of the unit
GetAttackDamage int GetAttackDamage() Returns a random integer between the minimum and maximum base damage of the unit.
GetAttackRange float GetAttackRange() Gets this unit's attack range after all modifiers.
GetAttackRangeBuffer float GetAttackRangeBuffer() Gets the attack range buffer.
GetAttackSpeed float GetAttackSpeed() No Description Set
GetAttacksPerSecond float GetAttacksPerSecond() No Description Set
GetAttackTarget handle GetAttackTarget() No Description Set
GetAverageTrueAttackDamage int GetAverageTrueAttackDamage() Returns the average value of the minimum and maximum damage values.
GetBaseAttackRange int GetBaseAttackRange() Gets this unit's attack range before modifiers.
GetBaseAttackTime float GetBaseAttackTime() No Description Set
GetBaseDamageMax int GetBaseDamageMax() Gets the minimum base damage.
GetBaseDamageMin int GetBaseDamageMin() Gets the minimum base damage.
GetBaseDayTimeVisionRange int GetBaseDayTimeVisionRange() Returns the vision range before modifiers.
GetBaseHealthRegen float GetBaseHealthRegen() No Description Set
GetBaseMagicalResistanceValue float GetBaseMagicalResistanceValue() Returns base magical armor value.
GetBaseMaxHealth float GetBaseMaxHealth() Gets the base max health value.
GetBaseMoveSpeed float GetBaseMoveSpeed() No Description Set
GetBaseNightTimeVisionRange int GetBaseNightTimeVisionRange() Returns the vision range before modifiers.
GetCastPoint float GetCastPoint(bool bAttack) Parameter: bAttack
GetCloneSource handle GetCloneSource() Get clone source (Meepo Prime, if this is a Meepo)
GetCollisionPadding float GetCollisionPadding() Returns the size of the collision padding around the hull.
GetConstantBasedManaRegen float GetConstantBasedManaRegen() This Mana regen is derived from constant bonuses like Basilius.
GetCreationTime float GetCreationTime() No Description Set
GetCurrentActiveAbility handle GetCurrentActiveAbility() Get the ability this unit is currently casting.
GetCurrentVisionRange int GetCurrentVisionRange() Gets the current vision range.
GetCursorCastTarget handle GetCursorCastTarget() No Description Set
GetCursorPosition Vector GetCursorPosition() No Description Set
GetCursorTargetingNothing bool GetCursorTargetingNothing() No Description Set
GetDayTimeVisionRange int GetDayTimeVisionRange() Returns the vision range after modifiers.
GetDeathXP int GetDeathXP() Get the XP bounty on this unit
GetForceAttackTarget handle GetForceAttackTarget() No Description Set
GetGoldBounty int GetGoldBounty() Get the gold bounty on this unit
GetHasteFactor float GetHasteFactor() No Description Set
GetHealth int GetHealth() Get the health of this unit.
GetHealthDeficit int GetHealthDeficit() Returns integer amount of health missing from max.
GetHealthPercent int GetHealthPercent() Get the current health percent of the unit.
GetHealthRegen float GetHealthRegen() No Description Set
GetHullRadius float GetHullRadius() Get the collision hull radius of this NPC
GetIdealSpeed float GetIdealSpeed() Returns speed after all modifiers.
GetIncreasedAttackSpeed float GetIncreasedAttackSpeed() No Description Set
GetInitialGoalEntity handle GetInitialGoalEntity() Returns the initial waypoint goal for this NPC
GetItemInSlot handle GetItemInSlot(int i) Returns nth item in inventory slot (index is zero based)
GetLastAttackTime float GetLastAttackTime()
GetLastIdleChangeTime float GetLastIdleChangeTime() Get the last game time that this unit switched to/from idle state.
GetLevel int GetLevel() Returns the level of this unit.
GetMagicalArmorValue float GetMagicalArmorValue() Returns current magical armor value.
GetMainControllingPlayer int GetMainControllingPlayer() Returns the player ID of the controlling player.
GetMana float GetMana() Get the mana on this unit.
GetManaPercent int GetManaPercent() Get the percent of mana remaining.
GetManaRegen float GetManaRegen() No Description Set
GetMaxHealth int GetMaxHealth() Get the maximum health of this unit.
GetMaximumGoldBounty int GetMaximumGoldBounty() Get the maximum gold bounty for this unit.
GetMaxMana float GetMaxMana() Get the maximum mana of this unit.
GetMinimumGoldBounty int GetMinimumGoldBounty() Get the minimum gold bounty for this unit.
GetModelRadius float GetModelRadius() No Description Set
GetModifierCount int GetModifierCount() How many modifiers does this unit have?
GetModifierNameByIndex string GetModifierNameByIndex(int nIndex) Get a modifier name by index.
GetModifierStackCount void GetModifierStackCount(string modifierName, handle hCaster) Gets the stack count of a given modifier.
GetMoveSpeedModifier float GetMoveSpeedModifier(float flBaseSpeed) No Description Set
GetMustReachEachGoalEntity bool GetMustReachEachGoalEntity() Get whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
GetNeverMoveToClearSpace bool GetNeverMoveToClearSpace() If set to true, we will never attempt to move this unit to clear space, even when it unphases.
GetNightTimeVisionRange int GetNightTimeVisionRange() Returns the vision range after modifiers.
GetOpposingTeamNumber int GetOpposingTeamNumber() No Description Set
GetPaddedCollisionRadius float GetPaddedCollisionRadius() Get the collision hull radius (including padding) of this NPC
GetPercentageBasedManaRegen float GetPercentageBasedManaRegen() This Mana regen is derived from % bonuses (from items like Void Stone).
GetPhysicalArmorBaseValue float GetPhysicalArmorBaseValue() Returns base physical armor value.
GetPhysicalArmorValue float GetPhysicalArmorValue() Returns current physical armor value.
GetPlayerOwner handle GetPlayerOwner() Returns the player that owns this unit
GetPlayerOwnerID int GetPlayerOwnerID() Get the owner player ID for this unit.
GetProjectileSpeed int GetProjectileSpeed() No Description Set
GetRangeToUnit float GetRangeToUnit(handle hNPC) No Description Set
GetSecondsPerAttack float GetSecondsPerAttack() No Description Set
GetStatsBasedManaRegen float GetStatsBasedManaRegen() Returns mana regen rate per intelligence.
GetTeamNumber int GetTeamNumber() Get the team number of this unit.
GetTotalPurchasedUpgradeGoldCost int GetTotalPurchasedUpgradeGoldCost() Get how much gold has been spent on ability upgrades.
GetUnitLabel string GetUnitLabel() No Description Set
GetUnitName string GetUnitName() No Description Set
GiveMana void GiveMana(float flMana) Give mana to this unit, this can be used for mana gained by abilities or item usage.
HasAbility bool HasAbility(string pszAbilityName) See whether this unit has an ability by name.
HasAnyActiveAbilities bool HasAnyActiveAbilities()
HasAttackCapability bool HasAttackCapability() No Description Set
HasFlyingVision bool HasFlyingVision() No Description Set
HasFlyMovementCapability bool HasFlyMovementCapability() No Description Set
HasGroundMovementCapability bool HasGroundMovementCapability() No Description Set
HasInventory bool HasInventory() No Description Set
HasItemInInventory bool HasItemInInventory(string pItemName) See whether this unit has an item by name.
HasModifier bool HasModifier(string pszScriptName) Sees if this unit has a given modifier
HasMovementCapability bool HasMovementCapability() No Description Set
HasScepter bool HasScepter() No Description Set
Heal void Heal(float amount, handle source) Heal this unit.
Hold void Hold() Hold position.
Interrupt void Interrupt() No Description Set
InterruptChannel void InterruptChannel() No Description Set
InterruptMotionControllers void InterruptMotionControllers(bool bFindClearSpace) Parameter boolean determines finding clear space.
IsAlive bool IsAlive() Is this unit alive?
IsAncient bool IsAncient() Is this creature an Ancient?
IsAttackImmune bool IsAttackImmune() No Description Set
IsAttacking bool IsAttacking() No Description Set
IsAttackingEntity bool IsAttackingEntity(handle hEntity) No Description Set
IsBarracks bool IsBarracks() Is this unit a Barracks?
IsBlind bool IsBlind() No Description Set
IsBlockDisabled bool IsBlockDisabled() No Description Set
IsBoss bool IsBoss() Is this a real hero?
IsBuilding bool IsBuilding() Is this unit a building?
IsChanneling bool IsChanneling() Is this unit currently channeling a spell?
IsClone bool IsClone() Is this unit a clone? (Meepo)
IsCommandRestricted bool IsCommandRestricted() No Description Set
IsConsideredHero bool IsConsideredHero() Is this unit a considered a hero for targeting purposes?
IsControllableByAnyPlayer bool IsControllableByAnyPlayer() Is this unit controlled by any non-bot player?
IsCourier bool IsCourier() Is this unit a courier?
IsCreature bool IsCreature() Is this a Creature type NPC
IsCreep bool IsCreep() Is this unit a creep?
IsDeniable bool IsDeniable() No Description Set
IsDisarmed bool IsDisarmed() No Description Set
IsDominated bool IsDominated() No Description Set
IsEvadeDisabled bool IsEvadeDisabled() No Description Set
IsFort bool IsFort() Is this unit an Ancient?
IsFrozen bool IsFrozen() No Description Set
IsHardDisarmed bool IsHardDisarmed() No Description Set
IsHero bool IsHero() Is this a hero or hero illusion?
IsHexed bool IsHexed() No Description Set
IsIdle bool IsIdle() Is this creature currently idle?
IsIllusion bool IsIllusion() No Description Set
IsInvisible bool IsInvisible() No Description Set
IsInvulnerable bool IsInvulnerable() No Description Set
IsLowAttackPriority bool IsLowAttackPriority() No Description Set
IsMagicImmune bool IsMagicImmune() No Description Set
IsMechanical bool IsMechanical() Is the unit mechanical?
IsMovementImpaired bool IsMovementImpaired() No Description Set
IsMuted bool IsMuted() No Description Set
IsNeutralUnitType bool IsNeutralUnitType() Is this a neutral?
IsNightmared bool IsNightmared() No Description Set
IsOpposingTeam bool IsOpposingTeam(int nTeam) No Description Set
IsOther bool IsOther() Is this unit a ward-type unit?
IsOutOfGame bool IsOutOfGame() No Description Set
IsOwnedByAnyPlayer bool IsOwnedByAnyPlayer() Is this unit owned by any non-bot player?
IsPhantom bool IsPhantom() Is this a phantom unit?
IsPhantomBlocker bool IsPhantomBlocker() No Description Set
IsPhased bool IsPhased() No Description Set
IsPositionInRange bool IsPositionInRange(Vector vPosition, float flRange) No Description Set
IsRangedAttacker bool IsRangedAttacker() Is this unit a ranged attacker?
IsRealHero bool IsRealHero() Returns true if the hero is a true Hero, not a creep or an Illusion of a hero
IsRooted bool IsRooted() No Description Set
IsSilenced bool IsSilenced() No Description Set
IsSoftDisarmed bool IsSoftDisarmed() No Description Set
IsSpeciallyDeniable bool IsSpeciallyDeniable() No Description Set
IsStunned bool IsStunned() No Description Set
IsSummoned bool IsSummoned() Is this unit summoned?
IsTower bool IsTower() Is this a tower?
IsUnableToMiss bool IsUnableToMiss() No Description Set
IsUnselectable bool IsUnselectable() No Description Set
Kill void Kill(handle hAbility, handle hAttacker) Kills this NPC, with the params Ability and Attacker
MakeIllusion void MakeIllusion() No Description Set
MakePhantomBlocker void MakePhantomBlocker() No Description Set
MakeVisibleDueToAttack void MakeVisibleDueToAttack(int iTeam) No Description Set
MakeVisibleToTeam void MakeVisibleToTeam(int iTeam, float flDuration) No Description Set
ManageModelChanges void ManageModelChanges()
ModifyHealth void ModifyHealth(int iDesiredHealthValue, handle hAbility, bool bLethal, int iAdditionalFlags) Sets the health to a specific value, with optional flags or inflictors.
MoveToNPC void MoveToNPC(handle hNPC) Move to follow a unit.
MoveToNPCToGiveItem void MoveToNPCToGiveItem(handle npc, handle item) Give an item to another unit.
MoveToPosition void MoveToPosition(Vector vDest) Issue a Move-To command
MoveToPositionAggressive void MoveToPositionAggressive(Vector vDest) Issue an Attack-Move-To command
MoveToTargetToAttack void MoveToTargetToAttack(handle hTarget) Move to a target to attack.
NoHealthBar bool NoHealthBar() No Description Set
NoTeamMoveTo bool NoTeamMoveTo() No Description Set
NoTeamSelect bool NoTeamSelect() No Description Set
NotifyWearablesOfModelChange void NotifyWearablesOfModelChange(bool bOriginalModel)
NotOnMinimap bool NotOnMinimap() No Description Set
NotOnMinimapForEnemies bool NotOnMinimapForEnemies() No Description Set
NoUnitCollision bool NoUnitCollision() No Description Set
PassivesDisabled bool PassivesDisabled() No Description Set
PerformAttack void PerformAttack(handle hTarget, bool bUseCastAttackOrb, bool bProcessProcs, bool bSkipCooldown, bool bIgnoreInvis) Performs an attack on a target. Params: Target, bUseCastAttackOrb, bProcessProcs, bSkipCooldown, bIgnoreInvis
PickupDroppedItem void PickupDroppedItem(handle hItem) Pick up a dropped item.
PickupRune void PickupRune(handle hItem) Pick up a rune.
ProvidesVision bool ProvidesVision() No Description Set
Purge void Purge(bool bRemovePositiveBuffs, bool bRemoveDebuffs, bool bFrameOnly, bool bRemoveStuns, bool bRemoveExceptions) (bool RemovePositiveBuffs, bool RemoveDebuffs, bool BuffsCreatedThisFrameOnly, bool RemoveStuns, bool RemoveExceptions
ReduceMana void ReduceMana(float flAmount) Remove mana from this unit, this can be used for involuntary mana loss, not for mana that is spent.
RemoveAbility void RemoveAbility(string pszAbilityName) Remove an ability from this unit by name.
RemoveGesture void RemoveGesture(int nActivity) Remove the given gesture activity.
RemoveHorizontalMotionController void RemoveHorizontalMotionController(handle hBuff)
RemoveItem void RemoveItem(handle hItem) Removes the passed item from this unit's inventory.
RemoveModifierByName void RemoveModifierByName(string pszScriptName) Removes a modifier
RemoveModifierByNameAndCaster void RemoveModifierByNameAndCaster(string pszScriptName, handle hCaster) Removes a modifier that was cast by the given caster
RemoveNoDraw void RemoveNoDraw() Remove the no draw flag.
RemoveVerticalMotionController void RemoveVerticalMotionController(handle hBuff)
RespawnUnit void RespawnUnit() Respawns the target unit if it can be respawned.
SellItem void SellItem(handle hItem) Sells the passed item in this unit's inventory.
SetAcquisitionRange void SetAcquisitionRange(float nRange) Sets acquisition range
SetAdditionalBattleMusicWeight void SetAdditionalBattleMusicWeight(float flWeight) Combat involving this creature will have this weight added to the music calcuations
SetAggroTarget void SetAggroTarget(handle hAggroTarget) Set this unit's aggro target to a specified unit.
SetAttackCapability void SetAttackCapability(int iAttackCapabilities) No Description Set
SetAttacking void SetAttacking(handle hAttackTarget) No Description Set
SetBaseAttackTime void SetBaseAttackTime(float flBaseAttackTime) No Description Set
SetBaseDamageMax void SetBaseDamageMax(int nMax) Sets the minimum base damage.
SetBaseDamageMin void SetBaseDamageMin(int nMin) Sets the minimum base damage.
SetBaseHealthRegen void SetBaseHealthRegen(float flHealthRegen) No Description Set
SetBaseMagicalResistanceValue void SetBaseMagicalResistanceValue(float flMagicalResistanceValue) Sets base magical armor value.
SetBaseManaRegen void SetBaseManaRegen(float flManaRegen) No Description Set
SetBaseMaxHealth void SetBaseMaxHealth(float flBaseMaxHealth) Set a new base max health value.
SetBaseMoveSpeed void SetBaseMoveSpeed(int iMoveSpeed) No Description Set
SetCanSellItems void SetCanSellItems(bool bCanSell) Set whether or not this unit is allowed to sell items (bCanSellItems)
SetControllableByPlayer void SetControllableByPlayer(int iIndex, bool bSkipAdjustingPosition) Set this unit controllable by the player with the passed ID.
SetCursorCastTarget void SetCursorCastTarget(handle hEntity) No Description Set
SetCursorPosition void SetCursorPosition(Vector vLocation) No Description Set
SetCursorTargetingNothing void SetCursorTargetingNothing(bool bTargetingNothing) No Description Set
SetCustomHealthLabel void SetCustomHealthLabel(string pLabel, int r, int g, int b)
SetDayTimeVisionRange void SetDayTimeVisionRange(int iRange) Set the base vision range.
SetDeathXP void SetDeathXP(int iXPBounty) Set the XP bounty on this unit
SetForceAttackTarget void SetForceAttackTarget(handle hNPC) No Description Set
SetHasInventory void SetHasInventory(bool bHasInventory) No Description Set
SetHullRadius void SetHullRadius(float flHullRadius) Set the collision hull radius of this NPC
SetIdleAcquire void SetIdleAcquire(bool bIdleAcquire) No Description Set
SetInitialGoalEntity void SetInitialGoalEntity(handle hGoal) Sets the initial waypoint goal for this NPC
SetMana void SetMana(float flMana) Set the mana on this unit.
SetMaximumGoldBounty void SetMaximumGoldBounty(int iGoldBountyMax) Set the maximum gold bounty for this unit.
SetMinimumGoldBounty void SetMinimumGoldBounty(int iGoldBountyMin) Set the minimum gold bounty for this unit.
SetModifierStackCount void SetModifierStackCount(string modifierName, handle hCaster, int modifierCount) Sets the stack count of a given modifier.
SetMoveCapability void SetMoveCapability(int iMoveCapabilities) No Description Set
SetMustReachEachGoalEntity void SetMustReachEachGoalEntity(bool must) Set whether this NPC is required to reach each goal entity, rather than being allowed to 'unkink' their path
SetNeverMoveToClearSpace void SetNeverMoveToClearSpace(bool neverMoveToClearSpace) If set to true, we will never attempt to move this unit to clear space, even when it unphases.
SetNightTimeVisionRange void SetNightTimeVisionRange(int iRange) Set the base vision range.
SetOrigin void SetOrigin(Vector vLocation) Set the unit's origin.
SetOriginalModel void SetOriginalModel(string originalModel) Sets the original model of this entity, which it will tend to fall back to anytime its state changes
SetPhysicalArmorBaseValue void SetPhysicalArmorBaseValue(float flPhysicalArmorValue) Sets base physical armor value.
SetRangedProjectileName void SetRangedProjectileName(string pProjectileName) No Description Set
SetStolenScepter void SetStolenScepter(bool bStolenScepter) No Description Set
SetUnitName void SetUnitName(string pName) No Description Set
ShouldIdleAcquire bool ShouldIdleAcquire() No Description Set
SpendMana void SpendMana(float flManaSpent, handle hAbility) Spend mana from this unit, this can be used for spending mana from abilities or item usage.
StartGesture void StartGesture(int nActivity) Add the given gesture activity.
Stop void Stop() Stop the current order.
SwapAbilities void SwapAbilities(string pAbilityName1, string pAbilityName2, bool bEnable1, bool bEnable2) Swaps the slots of the two passed abilities and sets them enabled/disabled: const char* AbilityName1, const char* AbilityName2, bool bEnable1, bool bEnable2. The boolean controls which ability is active. The ability order is never swapped when swapping abilities, only the boolean statements are flipped.
SwapItems void SwapItems(int nSlot1, int nSlot2) Swap the contents of two item slots (slot1, slot2)
TimeUntilNextAttack float TimeUntilNextAttack() No Description Set
TriggerModifierDodge bool TriggerModifierDodge() No Description Set
TriggerSpellAbsorb bool TriggerSpellAbsorb(handle hAbility) Query whether the passed ability will trigger spell absorb on this unit.
TriggerSpellReflect void TriggerSpellReflect(handle hAbility) Trigger the Lotus Orb-like effect.(hAbility)
UnitCanRespawn bool UnitCanRespawn() No Description Set


CDOTA_BaseNPC_Hero

extends CDOTA_BaseNPC

'

Function Signature Description
AddExperience bool AddExperience(float amount, int nReason, bool bApplyBotDifficultyScaling, bool bIncrementTotal) Adds experience to this unit.
Buyback void Buyback() Spend the gold and buyback with this hero.
CalculateStatBonus void CalculateStatBonus() Recalculate all stats after the hero gains stats.
CanEarnGold bool CanEarnGold() Returns boolean value result of buyback gold limit time less than game time.
ClearLastHitMultikill void ClearLastHitMultikill() Value is stored in PlayerResource.
ClearLastHitStreak void ClearLastHitStreak() Value is stored in PlayerResource.
ClearStreak void ClearStreak() Value is stored in PlayerResource.
GetAbilityPoints int GetAbilityPoints() Gets the current unspent ability point's.
GetAdditionalOwnedUnits handle GetAdditionalOwnedUnits()
GetAgility float GetAgility() No Description Set
GetAgilityGain float GetAgilityGain() No Description Set
GetAssists int GetAssists() Value is stored in PlayerResource.
GetAttacker int GetAttacker(int nIndex) No Description Set
GetBaseAgility float GetBaseAgility() No Description Set
GetBaseDamageMax int GetBaseDamageMax() Hero damage is also affected by attributes.
GetBaseDamageMin int GetBaseDamageMin() Hero damage is also affected by attributes.
GetBaseIntellect float GetBaseIntellect() No Description Set
GetBaseStrength float GetBaseStrength() No Description Set
GetBonusDamageFromPrimaryStat int GetBonusDamageFromPrimaryStat() No Description Set
GetBuybackCooldownTime float GetBuybackCooldownTime() Return float value for the amount of time left on cooldown for this hero's buyback.
GetBuybackCost int GetBuybackCost() Return integer value for the gold cost of a buyback.
GetBuybackGoldLimitTime float GetBuybackGoldLimitTime() Returns the amount of time gold gain is limited after buying back.
GetCurrentXP int GetCurrentXP() Returns the amount of XP
GetDeathGoldCost int GetDeathGoldCost() No Description Set
GetDeaths int GetDeaths() Value is stored in PlayerResource.
GetDenies int GetDenies() Value is stored in PlayerResource.
GetGold int GetGold() Returns gold amount for the player owning this hero
GetGoldBounty int GetGoldBounty() No Description Set
GetHealthRegen float GetHealthRegen() Hero health regen is affected by attributes.
GetIncreasedAttackSpeed float GetIncreasedAttackSpeed() Hero attack speed is also affected by agility.
GetIntellect float GetIntellect() No Description Set
GetIntellectGain float GetIntellectGain() No Description Set
GetKills int GetKills() Value is stored in PlayerResource.
GetLastHits int GetLastHits() Value is stored in PlayerResource.
GetManaRegen float GetManaRegen() Hero mana regen is affected by attributes.
GetMostRecentDamageTime float GetMostRecentDamageTime() No Description Set
GetMultipleKillCount int GetMultipleKillCount() No Description Set
GetNumAttackers int GetNumAttackers() No Description Set
GetNumItemsInInventory int GetNumItemsInInventory()
GetNumItemsInStash int GetNumItemsInStash()
GetPhysicalArmorValue float GetPhysicalArmorValue() Hero armor is affected by attributes.
GetPlayerID int GetPlayerID() Returns player ID of the player owning this hero
GetPrimaryAttribute int GetPrimaryAttribute() 0 = strength, 1 = agility, 2 = intelligence.
GetPrimaryStatValue float GetPrimaryStatValue() No Description Set
GetRespawnsDisabled bool GetRespawnsDisabled() Is this hero prevented from respawning?
GetRespawnTime float GetRespawnTime() No Description Set
GetStatsBasedManaRegen float GetStatsBasedManaRegen() Returns only the regen based on Intelligence.
GetStreak int GetStreak() Value is stored in PlayerResource.
GetStrength float GetStrength() No Description Set
GetStrengthGain float GetStrengthGain() No Description Set
GetTimeUntilRespawn float GetTimeUntilRespawn() No Description Set
GetTogglableWearable handle GetTogglableWearable(int nSlotType) Get wearable entity in slot (slot)
HasAnyAvailableInventorySpace bool HasAnyAvailableInventorySpace() No Description Set
HasFlyingVision bool HasFlyingVision() No Description Set
HasOwnerAbandoned bool HasOwnerAbandoned() No Description Set
HasRoomForItem int HasRoomForItem(string pItemName, bool bIncludeStashCombines, bool bAllowSelling) Args: const char* pItemName, bool bIncludeStashCombines, bool bAllowSelling
HeroLevelUp void HeroLevelUp(bool bPlayEffects) Levels up the hero, true or false to play effects.
IncrementAssists void IncrementAssists(int iKillerID) Value is stored in PlayerResource.
IncrementDeaths void IncrementDeaths(int iKillerID) Value is stored in PlayerResource.
IncrementDenies void IncrementDenies() Value is stored in PlayerResource.
IncrementKills void IncrementKills(int kills) Passed ID is for the victim, killer ID is ID of the current hero. Value is stored in PlayerResource.
IncrementLastHitMultikill void IncrementLastHitMultikill() Value is stored in PlayerResource.
IncrementLastHits void IncrementLastHits() Value is stored in PlayerResource.
IncrementLastHitStreak void IncrementLastHitStreak() Value is stored in PlayerResource.
IncrementNearbyCreepDeaths void IncrementNearbyCreepDeaths() Value is stored in PlayerResource.
IncrementStreak void IncrementStreak() Value is stored in PlayerResource.
IsBuybackDisabledByReapersScythe bool IsBuybackDisabledByReapersScythe() No Description Set
IsReincarnating bool IsReincarnating() No Description Set
KilledHero void KilledHero(handle hHero, handle hInflictor) Args: Hero, Inflictor
ModifyAgility void ModifyAgility(float flNewAgility) Adds passed value to base attribute value, then calls CalculateStatBonus.
ModifyGold int ModifyGold(int goldAmmt, bool reliable, int reason) Gives this hero some gold. Args: int nGoldChange, bool bReliable, int reason
ModifyIntellect void ModifyIntellect(float flNewIntellect) Adds passed value to base attribute value, then calls CalculateStatBonus.
ModifyStrength void ModifyStrength(float flNewStrength) Adds passed value to base attribute value, then calls CalculateStatBonus.
PerformTaunt void PerformTaunt() No Description Set
RecordLastHit void RecordLastHit() No Description Set
RespawnHero void RespawnHero(bool buyback, bool unknown1, bool unknown2) Respawn this hero.
SetAbilityPoints void SetAbilityPoints(int iPoints) Sets the current unspent ability point's.
SetBaseAgility void SetBaseAgility(float flAgility) No Description Set
SetBaseIntellect void SetBaseIntellect(float flIntellect) No Description Set
SetBaseStrength void SetBaseStrength(float flStrength) No Description Set
SetBotDifficulty void SetBotDifficulty(int nDifficulty)
SetBuybackCooldownTime void SetBuybackCooldownTime(float flTime) Sets the buyback cooldown time.
SetBuyBackDisabledByReapersScythe void SetBuyBackDisabledByReapersScythe(bool bBuybackDisabled) No Description Set
SetBuybackGoldLimitTime void SetBuybackGoldLimitTime(float flTime) Set the amount of time gold gain is limited after buying back.
SetCustomDeathXP void SetCustomDeathXP(int iValue) Sets a custom experience value for this hero.
Tip.png Tip: GameRules boolean must be set for this to work!
SetGold void SetGold(int amount, bool reliableGold) Sets the gold amount for the player owning this hero
SetPlayerID void SetPlayerID(int iPlayerID) No Description Set
SetPrimaryAttribute void SetPrimaryAttribute(int nPrimaryAttribute) Set this hero's primary attribute value.
SetRespawnPosition void SetRespawnPosition(Vector vOrigin) No Description Set
SetRespawnsDisabled void SetRespawnsDisabled(bool bDisableRespawns) Prevent this hero from respawning.
SetTimeUntilRespawn void SetTimeUntilRespawn(float time) No Description Set
ShouldDoFlyHeightVisual bool ShouldDoFlyHeightVisual() No Description Set
SpendGold void SpendGold(int amount, int reason) Args: int nGold, int nReason
UnitCanRespawn bool UnitCanRespawn() No Description Set
UpgradeAbility void UpgradeAbility(handle hAbility) This upgrades the passed ability if it exists and the hero has enough ability point's.
WillReincarnate bool WillReincarnate() No Description Set


CDOTA_BaseNPC_Creature

extends CDOTA_BaseNPC

No Description Set

Function Signature Description
AddItemDrop void AddItemDrop(handle hDropData) Add the specified item drop to this creature
CreatureLevelUp void CreatureLevelUp(int iLevels) Level the creature up by the specified number of levels
IsChampion bool IsChampion() Is this unit a champion?
SetArmorGain void SetArmorGain(float flArmorGain) Set the armor gained per level on this creature.
SetAttackTimeGain void SetAttackTimeGain(float flAttackTimeGain) Set the attack time gained per level on this creature.
SetBountyGain void SetBountyGain(int nBountyGain) Set the bounty gold gained per level on this creature.
SetChampion void SetChampion(bool bIsChampion) Flag this unit as a champion creature.
SetDamageGain void SetDamageGain(int nDamageGain) Set the damage gained per level on this creature.
SetDisableResistanceGain void SetDisableResistanceGain(float flDisableResistanceGain) Set the disable resistance gained per level on this creature.
SetHPGain void SetHPGain(int nHPGain) Set the hit point's gained per level on this creature.
SetHPRegenGain void SetHPRegenGain(float flHPRegenGain) Set the hit point's regen gained per level on this creature.
SetMagicResistanceGain void SetMagicResistanceGain(float flMagicResistanceGain) Set the magic resistance gained per level on this creature.
SetManaGain void SetManaGain(int nManaGain) Set the mana point's gained per level on this creature.
SetManaRegenGain void SetManaRegenGain(float flManaRegenGain) Set the mana point's regen gained per level on this creature.
SetMoveSpeedGain void SetMoveSpeedGain(int nMoveSpeedGain) Set the move speed gained per level on this creature.
SetXPGain void SetXPGain(int nXPGain) Set the xp reward gained per level on this creature.


CDOTA_BaseNPC_Building

extends CDOTA_BaseNPC

No Description Set

Function Signature Description
GetInvulnCount int GetInvulnCount() Get the invulnerability count for a building.
SetInvulnCount void SetInvulnCount(int nInvulnCount) Set the invulnerability counter of this building.


CDOTABaseGameMode

extends CBaseEntity

No Description Set

Function Signature Description
ClearAbilityTuningValueFilter void ClearAbilityTuningValueFilter() Clear the script filter that controls the tuning values abilities use.
ClearBountyRunePickupFilter void ClearBountyRunePickupFilter() Clear the script filter that controls bounty rune pickup behavior.
ClearDamageFilter void ClearDamageFilter() Clear the script filter that controls how a unit takes damage.
ClearExecuteOrderFilter void ClearExecuteOrderFilter() Clear the script filter that controls when a unit picks up an item.
ClearModifierGainedFilter void ClearModifierGainedFilter() Clear the script filter that controls the modifier filter.
ClearModifyExperienceFilter void ClearModifyExperienceFilter() Clear the script filter that controls how hero experience is modified.
ClearModifyGoldFilter void ClearModifyGoldFilter() Clear the script filter that controls how hero gold is modified.
ClearRuneSpawnFilter void ClearRuneSpawnFilter() Clear the script filter that controls what rune spawns.
ClearTrackingProjectileFilter void ClearTrackingProjectileFilter() Clear the script filter that controls when tracking projectiles are launched.
ClientLoadGridNav void ClientLoadGridNav() Tell clients that they need to load gridnav information. Used for things like allowing clients to identify valid locations to place buildings.