You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _articles/abilities/ability-keyvalues.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ date: 10.12.2014
11
11
12
12
A DataDriven ability is a collection _KeyValues_. KeyValues are simple, tree-based structures used for storing nested sections containing key/value pairs.
13
13
14
-
DataDriven abilities are defined inside scripts/npc/npc_abilities_custom.txt under a game addon folder.
14
+
DataDriven abilities are defined inside `scripts/npc/npc_abilities_custom.txt` under a game addon folder.
15
15
16
16
This skeleton contains many keyvalues which will be expanded upon in this documentation.
17
17
@@ -58,7 +58,7 @@ This skeleton contains many keyvalues which will be expanded upon in this docume
58
58
59
59
BaseClass can be any default dota ability name or "ability_datadriven", which allows the use of the entire data driven ability system.
60
60
61
-
Using a dota ability as the BaseClass can be done either as an override of the ability (goes in npc_abilities_override.txt) or just as a new ability in npc_abilities.custom.txt which inherits the exposed variables. This however doesn't let us change/add its internal structure, as that code is locked in C++ code.
61
+
Using a dota ability as the BaseClass can be done either as an override of the ability (goes in `npc_abilities_override.txt`) or just as a new ability in `npc_abilities_custom.txt` which inherits the exposed variables. This however doesn't let us change/add its internal structure, as that code is locked in C++ code.
62
62
63
63
Here we'll focus on everything that concerns writing custom abilities from scratch, using the `"BaseClass" "ability_datadriven"`.
64
64
@@ -111,7 +111,7 @@ Example:
111
111
112
112
The following behaviors will generate a line in the ability tooltip. You want at least one behavior of this list. The rest of the ability behaviors don't have any UI support yet.
113
113
114
-
The UI can only show one behavior tooltip, but internally it will behave as expected, as long two contradicting keys are not used together (like _NO_TARGET_ with _UNIT_TARGET_).
114
+
The UI can only show one behavior tooltip, but internally it will behave as expected, as long as two contradicting keys are not used together (like _NO_TARGET_ with _UNIT_TARGET_).
This block inside a modifier gives numeric stat bonuses from the list of modifier properties. Supports `AbilitySpecial` references and negative values.
1267
1267
@@ -1396,7 +1396,7 @@ These properties are not functional in a DataDriven context:
0 commit comments