Difference between revisions of "Dota 2 Tooltip Formatting"

From Valve Developer Community
Jump to: navigation, search
Line 26: Line 26:
 
|}
 
|}
  
There are also variables for different value descriptions. Probably used for localization.
+
There are also variables for different value descriptions. Used for localization.
  
 
{| class="standard-table" style="width: 100%;"
 
{| class="standard-table" style="width: 100%;"
Line 77: Line 77:
 
| Selected Attribute
 
| Selected Attribute
 
|}
 
|}
 +
 +
 +
 +
To create a new key ( like $name ) just add the entry in your localization file
 +
"dota_ability_variable_name" "Name"

Revision as of 10:01, 4 May 2014

[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 the entry in your localization file "dota_ability_variable_name" "Name"