Dota 2 Tooltip Formatting: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 83: | Line 83: | ||
"dota_ability_variable_name" "Name" | "dota_ability_variable_name" "Name" | ||
[[Category:Dota 2]] | |||
Revision as of 15:44, 14 August 2023
[WIP]
List of codes used in formatting tooltips.
| Code | Output | Example Input | Example Output |
|---|---|---|---|
| + | Shows a + followed by the value. | +$str | + 50 Strength |
| : | Shows the value after the colon. | HEALTH BONUS: | HEALTH BONUS: 200 |
| % | Shows the value followed by a %. | %$mana_regen: | Mana Regeneration: 30% |
There are also variables for different value descriptions. Used for localization.
| Code | Output |
|---|---|
| $health | Health |
| $health | Mana |
| $armor | Armor |
| $damage | Damage |
| $str | Strength |
| $int | Intellect |
| $agi | Agility |
| $all | All Attributes |
| $attack | Attack Speed |
| $hp_regen | HP Regeneration |
| $mana_regen | Mana Regeneration |
| $move_speed | Movement Speed |
| $evasion | Evasion |
| $spell_resist | Spell Resistance |
| $selected_attribute | Selected Attribute |
To create a new key ( like $name ) just add an entry in your localization file
"dota_ability_variable_name" "Name"