Hello, I tried searching for a solution, but I couldn't find any answers. Is it possible to base an Ability damage on an equation? For example, I want the Snipe Ability to deal 200% weapon damage + 50. Is this possible? How would I do it? Thanks in advance.
To retrieve the weapon damage and set the effect damage, you would use the functions Catalog Field Value Set and Calalog Field Value Get
For the action function Catalog Field Value Set, put "Effect" (its in the presets) in for catalog. "Snipe" in for entry. Then, for the field "" put 2 arithmetic maths, then for the one of the fields inside the inner paranthesi use the function Catalog Field Value Get
Set the catalog field to Effect. Set entry to weapon 1 of <put your unit here>. Put "Amount" in for field value. Then put the owner of the unit you're using for Player.
Its complicated, so if you ask nicely I'll do the trigger for you.
Okay, well is it possible to have the ability combine 2 different damage Effects? So that I can simply link the Weapon Damage effect, and the default damage effect?
EDIT: Okay I figured how to put 2 effects into a Set effect. But I'm still wondering if its possible to do an equation instead.
Now when your weapons get upgraded, so does this ability. You can also make upgrades to the extra damage as well. It's an equation, but in a round about way lol.
Hello, I tried searching for a solution, but I couldn't find any answers. Is it possible to base an Ability damage on an equation? For example, I want the Snipe Ability to deal 200% weapon damage + 50. Is this possible? How would I do it? Thanks in advance.
@Tommerbob: Go
To retrieve the weapon damage and set the effect damage, you would use the functions Catalog Field Value Set and Calalog Field Value Get
For the action function Catalog Field Value Set, put "Effect" (its in the presets) in for catalog. "Snipe" in for entry. Then, for the field "" put 2 arithmetic maths, then for the one of the fields inside the inner paranthesi use the function Catalog Field Value Get Set the catalog field to Effect. Set entry to weapon 1 of <put your unit here>. Put "Amount" in for field value. Then put the owner of the unit you're using for Player.
Its complicated, so if you ask nicely I'll do the trigger for you.
Is it not possible to do it with just the Data editor?
@Tommerbob: Go
Oh, I'm sure there is. It just probably super complicated since you'd have to insert a function into it, and I doubt many people know how to do it.
Okay, well is it possible to have the ability combine 2 different damage Effects? So that I can simply link the Weapon Damage effect, and the default damage effect?
EDIT: Okay I figured how to put 2 effects into a Set effect. But I'm still wondering if its possible to do an equation instead.
@Tommerbob: Go
It's actually really easy.
Set Effect:
Weapon Damage Effect
Weapon Damage Effect
Damage Effect (Amount 50)
Now when your weapons get upgraded, so does this ability. You can also make upgrades to the extra damage as well. It's an equation, but in a round about way lol.