#how to disable magic resist for intellect
1 messages · Page 1 of 1 (latest)
DOTA_ATTRIBUTE_INTELLIGENCE_MAGIC_RESIST instead of DOTA_ATTRIBUTE_INTELLIGENCE_MAGIC_RESISTANCE_PERCENT
then apply a modifier that applies negative magic resist based on INT
modifier name its- DOTA_ATTRIBUTE_INTELLIGENCE_MAGIC_RESIST
DOTA_ATTRIBUTE_INTELLIGENCE_MAGIC_RESIST this is not a modifier name, and not a modifier property
what exactly should I do next?
Do you know how to recreate anti-mage passive or viper passive?
I need intellect to stop giving magic resistance to all heroes
For property use some of these: https://moddota.com/api/#!/vscripts?search=MAGICAL_RESISTANCE
and: lua function modifier_antimage_spell_shield_lua:GetModifierMagicalResistanceBonus() return - 0.1 * self:GetParent():GetIntellect() end
this new modifier you will apply to every hero on spawn
do you understand the idea?
but then why need it GameMode:SetCustomAttributeDerivedStatValue(DOTA_ATTRIBUTE_INTELLIGENCE_MAGIC_RESIST, 0)
you said it yourself that it doesnt work, so you dont need it lmao
я думал, что это было сделано автоматически, да ладно, раз модифаер то пойду писать модифаер
i like dota modig ❤️
NO
You said that GameMode:SetCustomAttributeDerivedStatValue(DOTA_ATTRIBUTE_INTELLIGENCE_MAGIC_RESIST, 0) doesn't work. Did you restart everything and it still doesnt work? If it doesnt work, then make a modifier
dota 2 modding is lovely xD
ok thanks good luck going to make this work
You will just need to adjust the math, because magic resistance bonuses stack in a multiplicative way. (1-total/100) = (1-base_magic_resist/100) * (1-bonus/100)
help with math pls idk how to do this
find