I want my ability to deal damage depend on my Hero stats
。
For example : this ability cause 150 + Hero's Strength X 2.5
but in the trigger, "damage dealing" you can only use as "effect"
which you can not add in math or formula
( BTW
I'm using " environment _ create effect (from unit) to unit " )
There is no deal x amount of dmg function right now.
However, you can make an effect that deals 150 damage and you can make hero's strength (attribute) do scaling spell dmg. I guess you can make multiple strength for multiple uses for different heroes.
There is no deal x amount of dmg function right now. However, you can make an effect that deals 150 damage and you can make hero's strength (attribute) do scaling spell dmg. I guess you can make multiple strength for multiple uses for different heroes.
You can't use the CatalogFieldValueSet function to set the EffectDamage to a calculated amount based on the hero's attribute?
I'm not sure how to use CatalogFieldValueSet ~ Can you give me some details about it? THX again =]
Theres not much to know, just define which catalog (through the presets), put the rawdata name of the entry (such as FungalGrowthDamage) then the field you want to change, such as Damage. Then the input value is a string, so if you want to put an integer there you'll have to do a basic conversion.
There is a sort of workaround to the trigger-dealt damage issue. You can create a behavior with an exremely short duration that does 1 damage to the unit when applied. Since the "Add Behavior to Unit" trigger allows you to specify how many stacks you want to add, you can do whatever math you need to add x stacks to the unit, which will cause the unit to take x damage. The action even lets you specify a caster, so you can credit the damage/kill to the appropriate unit.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want my ability to deal damage depend on my Hero stats 。 For example : this ability cause 150 + Hero's Strength X 2.5
but in the trigger, "damage dealing" you can only use as "effect" which you can not add in math or formula ( BTW I'm using " environment _ create effect (from unit) to unit " )
any good idea? THX a lot =]
There is no deal x amount of dmg function right now. However, you can make an effect that deals 150 damage and you can make hero's strength (attribute) do scaling spell dmg. I guess you can make multiple strength for multiple uses for different heroes.
You can't use the CatalogFieldValueSet function to set the EffectDamage to a calculated amount based on the hero's attribute?
ha, oh yeah... that would work too~ if you could return attribute from hero O_O
I'm not sure how to use CatalogFieldValueSet ~ Can you give me some details about it? THX again =]
Theres not much to know, just define which catalog (through the presets), put the rawdata name of the entry (such as FungalGrowthDamage) then the field you want to change, such as Damage. Then the input value is a string, so if you want to put an integer there you'll have to do a basic conversion.
There is a sort of workaround to the trigger-dealt damage issue. You can create a behavior with an exremely short duration that does 1 damage to the unit when applied. Since the "Add Behavior to Unit" trigger allows you to specify how many stacks you want to add, you can do whatever math you need to add x stacks to the unit, which will cause the unit to take x damage. The action even lets you specify a caster, so you can credit the damage/kill to the appropriate unit.