I would like to know if anyone has figured out how to either use triggers, or the data editor to get Energy used when an ability is used.
My aim is to make an ability similar to a Mana Burn / I want an ability to consume all of the energy a unit has and do damage based on the energy used.
Ie - unit has 1,000 energy, and does 2,000 damage, or he can use it early at 800 energy and do 1600 damage.
Also - does anyone know how to make a custom Vital for units? I am interested in knowing how to create things like a 'rage bar' / other vital sources for abilities.
1. High Templar - Feedback
But what you want, if you want 2x
Feedback (based on energy) - Vital Fraction Current - Energy - 2
2. Short Answer: No idea.
Vitals seem to be in "core". However alternatively, you can add it manually through triggers I guess. One way will be making image near the unit but that will be highly inefficient. The way I would do it, using the building progress bar (built-in function), and using that as representation of the custom vital. However, numbers won't be displayed on the unit. So yeah, back to square one.
1 - Thanks - I am so foolish to not think of feedback, that is an obvious start point
2 - Okay, I'll check that out too, I actually think I can make that kind of resource work
I have another question - do you know of a start point for an ability that would be used (passively) upon a unit reaching 1 HP?
My concept is for an immortal that will 'rebuild' itself once it reaches 1 HP - back to full health
My first guess is to do this through triggers but I would prefer to use the data editor
1 - Thanks - I am so foolish to not think of feedback, that is an obvious start point 2 - Okay, I'll check that out too, I actually think I can make that kind of resource work
I have another question - do you know of a start point for an ability that would be used (passively) upon a unit reaching 1 HP? My concept is for an immortal that will 'rebuild' itself once it reaches 1 HP - back to full health My first guess is to do this through triggers but I would prefer to use the data editor
Thanks again
Create an effect that heals, or repairs; whatever you are going for
Create a buff
[Your Buff] - [Damage response - Chance : 1] - [Damage response - Fatal: Enabled] - [Damage response - Handled: Your Effect]
Add Buff to the unit
If you mean reaching 1 hp as in the unit takes a fatal blow, and you want to trigger an effect when that happens, this is how to do it.
I would like to know if anyone has figured out how to either use triggers, or the data editor to get Energy used when an ability is used. My aim is to make an ability similar to a Mana Burn / I want an ability to consume all of the energy a unit has and do damage based on the energy used. Ie - unit has 1,000 energy, and does 2,000 damage, or he can use it early at 800 energy and do 1600 damage.
Also - does anyone know how to make a custom Vital for units? I am interested in knowing how to create things like a 'rage bar' / other vital sources for abilities.
Thanks in advance!
1. High Templar - Feedback
But what you want, if you want 2x
Feedback (based on energy) - Vital Fraction Current - Energy - 2
2. Short Answer: No idea.
Vitals seem to be in "core". However alternatively, you can add it manually through triggers I guess. One way will be making image near the unit but that will be highly inefficient. The way I would do it, using the building progress bar (built-in function), and using that as representation of the custom vital. However, numbers won't be displayed on the unit. So yeah, back to square one.
1 - Thanks - I am so foolish to not think of feedback, that is an obvious start point 2 - Okay, I'll check that out too, I actually think I can make that kind of resource work
I have another question - do you know of a start point for an ability that would be used (passively) upon a unit reaching 1 HP? My concept is for an immortal that will 'rebuild' itself once it reaches 1 HP - back to full health My first guess is to do this through triggers but I would prefer to use the data editor
Thanks again
Create an effect that heals, or repairs; whatever you are going for
Create a buff
[Your Buff] - [Damage response - Chance : 1] - [Damage response - Fatal: Enabled] - [Damage response - Handled: Your Effect]
Add Buff to the unit
If you mean reaching 1 hp as in the unit takes a fatal blow, and you want to trigger an effect when that happens, this is how to do it.