- Joined
- May 6, 2018
- Messages
- 3
Hi everyone,
Would like to share a simple trick I discovered while trying to change bounce attack damage loss without triggers because I am on 1.31 and apparently BlzSetUnitWeaponRealField does not work. The method is to use Upgrade Effect - Attack Damage Loss Bonus
But the accepted fields are Integers only. But for the bounce attack damage factor, it is a Real value.
Therefore, to make the Effect - Attack Damage Loss Bonus use decimals, we can temporarily change the effect to another, such as Aura Data Bonus, and input the values we want.
After which, we will change back to the actual effect Attack Damage Loss Bonus.
Although both fields show as 0, i believe internally it will reflect as the previous value we saved (0.10).
Now, we can change the value of the bounce attack using the upgrade field but do take note that it refers to the damage loss and not the damage dealt. So what I do for my map is to set the weapon damage loss to 0.00, then use the upgrade to apply accordingly but it is up to you.
I think this can be applied to other effects as well but I did not test them out in completion. Hopefully this will be helpful to some people as it is really a simple trick and do pardon me for any formatting issues whatsoever. Attached a simple test map (Included the Damage Engine 5.4.2.3 to display damage values) if you want to play around with it.
Credits
Bribe - Damage Engine
Would like to share a simple trick I discovered while trying to change bounce attack damage loss without triggers because I am on 1.31 and apparently BlzSetUnitWeaponRealField does not work. The method is to use Upgrade Effect - Attack Damage Loss Bonus
But the accepted fields are Integers only. But for the bounce attack damage factor, it is a Real value.
Therefore, to make the Effect - Attack Damage Loss Bonus use decimals, we can temporarily change the effect to another, such as Aura Data Bonus, and input the values we want.
After which, we will change back to the actual effect Attack Damage Loss Bonus.
Although both fields show as 0, i believe internally it will reflect as the previous value we saved (0.10).
Now, we can change the value of the bounce attack using the upgrade field but do take note that it refers to the damage loss and not the damage dealt. So what I do for my map is to set the weapon damage loss to 0.00, then use the upgrade to apply accordingly but it is up to you.
I think this can be applied to other effects as well but I did not test them out in completion. Hopefully this will be helpful to some people as it is really a simple trick and do pardon me for any formatting issues whatsoever. Attached a simple test map (Included the Damage Engine 5.4.2.3 to display damage values) if you want to play around with it.
Credits
Bribe - Damage Engine