Dota 2 Tooltip Formatting: Difference between revisions
Jump to navigation
Jump to search
(Created page with "[WIP] List of codes used in formatting tooltips. {| class="standard-table" style="width: 100%;" ! Code ! Output ! Example Input ! Example Output |- | + | Shows a + followed by ...") |
Thunder4ik (talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Dead end|date=January 2024}} | |||
[WIP] | [WIP] | ||
Line 13: | Line 15: | ||
| +$str | | +$str | ||
| + 50 Strength | | + 50 Strength | ||
|- | |- | ||
| : | | : | ||
Line 23: | Line 21: | ||
| HEALTH BONUS: | | HEALTH BONUS: | ||
| HEALTH BONUS: 200 | | HEALTH BONUS: 200 | ||
|- | |||
| % | |||
| Shows the value followed by a %. | |||
| %$mana_regen: | |||
| Mana Regeneration: 30% | |||
|} | |} | ||
There are also variables for different value descriptions. | There are also variables for different value descriptions. Used for localization. | ||
{| class="standard-table" style="width: 100%;" | {| class="standard-table" style="width: 100%;" | ||
Line 76: | Line 79: | ||
| Selected Attribute | | Selected Attribute | ||
|} | |} | ||
To create a new key ( like $name ) just add an entry in your localization file | |||
"dota_ability_variable_name" "Name" | |||
[[Category:Dota 2]] |
Latest revision as of 08:52, 21 January 2024

This article has no
links to other VDC articles. Please help improve this article by adding links
that are relevant to the context within the existing text.
January 2024


January 2024
[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"