Hello, my question is fairly simple. Since I'm creating a dota styled map, I would like to know how to make % type of things. The things I want, for example, are:
1. Unit ability deals 20 damage (+20% of attribute (STR))
2. Unit ability reduces movement speed by 20%
etc etc
Any help would be appreciated :) Also I don't know if this belongs to data or triggers, but as I couldn't find anything on data part, I guess it's a right section...
Could you elaborate on your question/answer a bit more?
What am I looking for is how to make damage depend on certain attribute (which in dota are Agility, Intelligence and Strength), AND how to make a debuff to movement speed which decreases a % of the units total speed, not a flat number.
For your reduce movement speed just add a behavior that changes Movement Speed Multiplier to something less then 1 (as explained by Disterbed).
Your other question is not so simple as there are multiple ways depending on what exactly you want to be changed and what changes it.
One way to do it with triggers would be an event for when a unit gains a level then have it check the unit for number of behaviors of the type you want. IE strength, agility. then multiply it to get the percentage you want then use Catalog Field Value Set to increase the damage effect (or any effect you want to have changed by it). There are ways to change damage through editor too but those have there own limitations too and i don't know how to do what you wanted directly with using just Data.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello, my question is fairly simple. Since I'm creating a dota styled map, I would like to know how to make % type of things. The things I want, for example, are:
1. Unit ability deals 20 damage (+20% of attribute (STR))
2. Unit ability reduces movement speed by 20%
etc etc
Any help would be appreciated :) Also I don't know if this belongs to data or triggers, but as I couldn't find anything on data part, I guess it's a right section...
Units attribute: 60
get 20%
20 / 100 x 60 = 12
is that what ur looking for?
Could you elaborate on your question/answer a bit more?
What am I looking for is how to make damage depend on certain attribute (which in dota are Agility, Intelligence and Strength), AND how to make a debuff to movement speed which decreases a % of the units total speed, not a flat number.
im not sure if there's a way to do that.. but ill try to help u out tomorrow...
for the movement speed... check "Psi Disruption" behavior... it reduces movement and attack speed...
go to Modification +
Go to "Combat" set "Attack speed multiplier" to 1...
then on "Movement" set "Movement speed multiplier" to 0.8
if u want to make an aura... base it on mother ship Cloak Field
Well, you could ask that guy who made Hero Attack :P
For your reduce movement speed just add a behavior that changes Movement Speed Multiplier to something less then 1 (as explained by Disterbed).
Your other question is not so simple as there are multiple ways depending on what exactly you want to be changed and what changes it.
One way to do it with triggers would be an event for when a unit gains a level then have it check the unit for number of behaviors of the type you want. IE strength, agility. then multiply it to get the percentage you want then use Catalog Field Value Set to increase the damage effect (or any effect you want to have changed by it). There are ways to change damage through editor too but those have there own limitations too and i don't know how to do what you wanted directly with using just Data.