#talent bug or i did somehting wrong?
1 messages · Page 1 of 1 (latest)
Show your talent kvs and talent tooltips
i removed it all cause i was wrong, can u tell me the correct way to do it?
pls
There are multiple ways of making custom talents. Which one are you doing? I can tell you the simplest way.
i was adding ability 10 and 11 and puttin "special_bonus"
it work gor atributtes but not for upgrades of custom abilities
kv: ```c
"special_bonus_unique_hero_name_whatever"
{
"AbilityType" "DOTA_ABILITY_TYPE_ATTRIBUTES"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
"BaseClass" "special_bonus_base"
}```
tooltip:```c
"DOTA_Tooltip_ability_special_bonus_unique_hero_name_whatever" "I dont know what your talent does"
Whats Bonificacion de Luz?
just like a buff of my first ability healing
yeah perfect
if you dont explain in detail, I cant help u
and how can i do the lua?
this is my Q ability
i wanted a talent to buff the healing and damage by 10%
why are you using ability values like this: local heal_percent = ({25, 50, 75, 100})[level] / 100 local damage_percent = ({5, 10, 15, 20})[level] / 100 ? This is hardcoding the values and making your life harder when you want to balance.
what do u mean by balance?
like magic resistance or that?
i just dont know other ways
im new at this
amenethil_luz kv should look like this: ```c
"AbilityValues"
{
"heal_percent"
{
"value" "25 50 75 100"
"special_bonus_unique_hero_name_whatever" "+10%"
}
"damage_percent"
{
"value" "5 10 15 20"
"special_bonus_unique_hero_name_whatever" "+10%"
}
}
and instead of this in lua it should be:
local heal_percent = self:GetSpecialValueFor("heal_percent")/100
local damage_percent = self:GetSpecialValueFor("damage_percent")/100
ohhh i understand that but there were errors because i didnt know how to use it well
now i know
thanks
when Valve makes balance changes like changing 1 number, they arent changing it in code, they are changing it only in kv
thats what I meant
ok i understand
Anyways, when you do the talent in this way (only through kv), the tooltip is done this way: ```c
"DOTA_Tooltip_ability_special_bonus_unique_hero_name_whatever" "+{s:bonus_heal_percent}% Heal/Damage Amp"
If talent has different values for heal and damage then like this: ```
"DOTA_Tooltip_ability_special_bonus_unique_hero_name_whatever" "+{s:bonus_heal_percent}/{s:bonus_damage_percent}% Heal/Damage Amp"
oh so the prefix is special_bonus
that is un npc_abilities_custom right?
tooltips are done in addon_language_name.txt
ok
Yours is Spanish or Portuguese?
but where is the code for special bonus? i thought i needed to put a conditional if special_bonus is active
that is for spain
when you do talents this way, no need for conditionals
so literally only editing kv?
To clarify: In npc_abilities_custom you put kvs for the ability (amenethil_luz ) and for the talent (special_bonus_unique_hero_name_whatever).
if my hero name is omniknight
it is
speciañ_bonus_unique_hero_name_onmiknight?
oh ok
it just needs to be special_bonus_unique at the start
I think you cant use special characters that exist in spanish, but any name should be fine
so i "technically" put
special_bonus_unique_1
and it will work?
technically yea, but it would be bad
You never saw how Valve does talents?
Look at this example: https://github.com/spirit-bear-productions/dota_vpk_updates/blob/main/scripts/npc/heroes/npc_dota_hero_omniknight.txt
look at special_bonus_unique_omniknight_4
i will
thanks
and jsut for something more, is there a simplest way to change hero icon selection?
this
image
i thought it was panorama/images/heroes/selection/
it should be yea if you override vanilla heroes
like this way?
it doesnt do anything i am doint it wrong
I see your issue, in your path it says 'game`
omg
same folder path except it should be content
so content/dota_addons/name.../panorama/images/heroes etc.
thanks dude
np
well no idea right now
someone said to me to use source 2 viewer
but it is totally new for me
or do i neew to use override_hero?
it works for me even without override_hero, so not sure
this works for me for videos
i am using png
format
post that in the other thread, maybe someone would know ¯_(ツ)_/¯