How do I make a spell that does for example four times my hero's agility in damage or passively adds that damage to basic attacks? I've been struggling with this for a while and I can't seem to get any further
Set integer value = Hero attribute x 4;
Unit - Damage unit dealing -convert (integer to real (integer value))- damage
As for your passive ability, you need to give your unit some sort of damage ability eg. 'Item - damage bonus' that has numerous level and periodically check whether level f this ability equals hero's attribute, if not, set it to value equal to your attribute. I like to use some additional integer variable that remembers the level of an ability rather than checking level of an ability, since the check is really heavy computingwise.
Can you give me an example of a spell doing damage with attributes? As I said, I'm fairly bad at this, and would appreciate so much help making my heroes advanced
How does most of that work? I don't get the "TempG[3] = ((((Level of WWeaponDamageBonus x10 for (Triggering Unit)) - 1) x 10) + ((Level of WWeaponDamageBonus x1 for (Triggering Unit)) - 1))" and so on... Also, I don't know how to post my thing so far, but I've made it like this:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Unit-type of (Triggering unit)) Equal to Hyperassassin (that's his name )
Actions
Set HAAgi = (Agility of (Triggering unit) (Include bonuses))
The lines you mentioned should be no concern to you, they sorta refer to an abstract attribute i created for the purpose of my map, this trigger is just copied from there and I didn't remove it for the sake of further calculations (I actually should). The example you posted will work, but remember to specify what ability is being cast.
Yeah, of course I will meantion him as the casting unit
But how do I multiply the value (his agility attribute) and convert it to damage? The first thing you mentioned was quite confusing...
Just use it as arithmetic function when setting variable. If you want to use this value to damage unit, theres 'unit - damage unit' function where you sepcify damage type (present in trigger I posted), damage source and damage target. Depending on what kind of ability it is there are various means to detect the unit.
The ability is meant to function like Storm Bolt (but was used for an Omnislash-like ability, which I copied from this website, fixed it with a cooldown (I learn!!)) and chose Firebolt because it does the same thing, but is a different ability.
So basically, it's a point and shoot ability.
Well, the difficulty is that the moment you enter the field of any triggered damage, in most cases it will follow up with the need of triggering the whole thing. In your case, stormbolt isn't the most friendly one to deal with because of varied delay between cast and effect so you'll need to go through the process of triggering whole abilities . You could go easy with it and make damage instant, if that doesn't make a difference.
Come to think of it, there is an easier way to go around this actually. It involves creating a dummy unit that will cast the spell for you, this way you can easily trigger spells that are just altered versions of warcraft vanilla spells.
I'm gonna split the trigger into 6 later (6 levels), but so far it looks like this:
Unit - A unit Starts the effect of an ability
(Ability being cast) Equal to Shuriken [Q]
(Level of Shuriken [Q] for (Triggering unit)) Equal to 1
(Unit-type of (Triggering unit)) Equal to Hyperassassin
Set HAAgi = (Agility of (Triggering unit) (Include bonuses))
Set AgiComb = (HAAgi x 3)
Set TDMGShu1 = (AgiComb + 30)
You can use one variable instead of 3. If missle speed doesn't bother you then set it in your object editor to maximum - either stormbolt or firebolt work. You don't need to split the trigger into 6, unless you're using very different formulas. Even then, you can use 'if then else statement (multiple conditions)' for your trigger. Also, theres still no damage unit function included.
Gah, this is confusing. I think this editor is way too advanced for my head right now, hah. I would love a faster way of chatting right now, that would be a lot easier. I'm not very familiar with the "else", if it can do that thing you just described, will look into it, but I've always used separate triggers when it comes to levels.
Set Temp_int = (30 + (4 x (Agility of (Triggering unit) (Include bonuses))))
Set Temp_int = (Temp_int x (Level of Slash for (Triggering unit)))
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real(Temp_int)) damage of attack type Spells and damage type Normal
"Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 500.00 damage of attack type Spells and damage type Normal."
I saw that it said something else than 500 in your message, how do I make mine say the same? I can choose variables, but no attack-related ones will be available options when I try.
Edit: Found it, it was the "real" variable, but it can't be set as the same value as my "TDMGShu = (AgiComb + 30)"
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory