ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Dota KV

by bhargavrpatel ST2/ST3

Valve's KV Syntax, Snippets, and plugins for Dota 2 Workshop's custom gamemode developers. Version 1.0.4 (Jan 29th 2015)

Details

Installs

  • Total 4K
  • Win 4K
  • OS X 63
  • Linux 57
Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31
Windows 0 1 1 0 2 2 1 1 2 2 3 1 2 1 0 3 4 2 4 1 0 1 3 2 3 6 2 1 1 1 0 2 1 1 0 1 0 0 2 3 2 3 3 3 2 1
OS X 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Dota 2 KV Package 1.0.3

Unlike my Lua Snippets project, this is a Package. The package consists of custom syntax highlighting and Snippets. The Snippets consist of all the KV pairs, modifiers, and constants.


Contributors

  • Bhargav Patel - Creator and maintainer until release 1.0.3
  • Martin Noya - He is responsible for the current (V1.0.3) update

Installation

Chose either of the methods listed below. I suggest everyone use Method 1

Method 1

I have uploaded the mod as a submission to Sublime Package Control. This means when I update the package, it will update on your system automatically. The ideal method is as follows: Dota KV Package Installation via Method 1

  1. Install Sublime Package Control
  2. Open Command Pallet (CNTRL+SHIFT+P), type “Install Package” then press Enter.
  3. Once the list of packages has been cached, type “Dota KV” then press Enter.
  4. Restart Sublime text. Sometimes the Snippets wont work right after the install even if you have the syntax set as Dota KV (in above gif I have it set as Conjure but even when I had set it as Dota KV the Snippets didnt show until restart)

Method 2

If you do not wish to install via Sublime Package Control, your version of the package will not be automatically updated when I update. The steps are as follows.

  1. Download repo as a zip file.
  2. Extract all the files into a folder called “Dota KV”
  3. In Sublime text, click on Preferences > Browse Packages. Move the “Dota KV” folder in the explorer instance that pops up.

Guide

Snippets for Functions

Snippets V1.0.0 Demo Supported Functions so far. They are all that are listed on Hex6's website. The “Triggers” for these is same as their name. When you start typing, first letter has to be capital.. I plan on adding the others used in creation of heroes/units in a couple of days. * Random * Target * States * SpendCharge * OnProjectileHit * OnOwnerSpawned * OnOwnerDied * OnSpellStart * OnToggleOn * OnToggleOff * OnChannelFinish * OnAttackStart * OnDeath * OnKill * OnTakeDamage * OnThinkInterval * OnCreated * Properties - Modifiers “Properties” sub-function * Modifiers - Used to create new modifiers * Orb * MoveUnit * CleaveAttack * ReplaceUnit * SpawnUnit * TrackingProjectile * Damage * CreateThinker * CreateThinkerWall * ApplyModifier * RemoveModifier * KnockBack * LifeSteal * FireSound * FireEffect * Heal

Completions for Constants

There are above 1400 constants that I have added. I will not list them here, you can simply open constants.sublime-completions in Sublime Text to see them. Unlike snippets, constants are case agnostic. First letter not need be capital. Constants V1.0.0 Demo

Methods of using Constants

  1. You can start typing words which you can think of and press Cntrl + Space to see a list.
  2. Type a completion as best you can and simply press TAB. You can then iterate over the completion by pressing TAB.

Here is a list which states them by category.

Category Trigger* Example
Ability Types abilityType DOTA_ABILITY_TYPE_BASIC
Ability Behaviors abilityBehavior DOTA_ABILITY_BEHAVIOR_AOE
Modifier Names modifierName modifier_slark_essence_shift_debuff
Modifier States modifierState MODIFIER_STATE_BLIND
Modifier Property modifierProperty MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_MAGICAL
Modifier Events modifierEvent MODIFIER_EVENT_ON_ABILITY_END_CHANNEL
Damage Types damageType DAMAGE_TYPE_MAGICAL
Particle Attach PATTACHParticleAttach PATTACH_ABSORIGIN
Item Flags itemFlag ITEM_FLAG_LIMITINWORLD
Item Types itemType ITEM_CORE
Item Sharability sharable ITEM_FULLY_SHAREABLE
Item Declarations delcare DECLARE_PURCHASES_IN_SPEECH
FCVARs fcvar FCVAR_CHEAT
Movement Capabilities movementCap DOTA_UNIT_CAP_MELEE_ATTACK
Team team DOTA_TEAM_GOODGUYS
Random Crit Type randomType DOTA_PSEUDO_RANDOM_BREWMASTER_CRIT
Hull Sizes hullSize DOTA_HULL_SIZE_BUILDING
Attribute Types attribute DOTA_ATTRIBUTE_INTELLECT
Unit Target unitTarget DOTA_UNIT_TARGET_BUILDING
Unit Target Team unitTargetTeam DOTA_UNIT_TARGET_TEAM_CUSTOM
Unit Target Flags unitTargetFlag DOTA_UNIT_TARGET_FLAG_RANGED_ONLY
TARGETKEYs targetKey POINT
Orb Priorities orbPrio DOTA_ORB_PRIORITY_ITEM_PROC
Orb Labels orbLabel DOTA_ORB_LABEL_EXCEPTION
  • As I said before: Triggers arent as sensitive as Snippets. Type anyword that comes inside the Trigger and you should see a popup.

Special Thanks

  • Hex6 - His website where a lot of the data was taken from thanks to it's raw format.
  • Many members like RoyAwesome who populate the Valve's wiki.