# Scaling abilities

Discussion in 'Triggers & Scripts' started by NcTheChurch, Sep 26, 2012.

1. ### NcTheChurch

Joined:
Feb 29, 2012
Messages:
11
Resources:
0
Resources:
0
Hello lovelys. I am working on my own map on which i want to make this spell for one of my heros:

Power slam:

Deals 70/130/190 base damage plus 1 damage for each point of Strength the caster possesses.

I have looked around a bit but i have had a hard time finding anything of help. I fear that i might have to use JASS which i am inexperienced with.

Any help with be greatly appreciated, thanks in advance

-Ncthechurch

Joined:
Oct 16, 2008
Messages:
9,674
Resources:
23
Models:
2
Packs:
1
Maps:
1
Spells:
16
Tutorials:
1
JASS:
2
Resources:
23
AOE target or single target?

if its single target then just use the Unit - Damage target action...

if its AOE target, then pick every unit around the caster, determine if it can be hit, then damage them...

its pretty simple... you can even just browse the spells at the spells section that deals damage and look at how they do it...

3. ### Spartipilo

Joined:
Jul 14, 2011
Messages:
3,190
Resources:
0
Resources:
0
About the damage increase, you'll have to find the math that fits your damage scale, by finding the logic between the numbers.

Lvl 1: (60*Level of Ability)+10 = 70
Lvl 2: (60*Level of Ability)+10 = 130
Lvl 3: (60*Level of Ability)+10 = 190

Damage is done with "Unit - Issue unit to Damage Target" if you want a simple target (Target Unit of Ability Being Cast), If you don't, you Pick every unit around with the conditions to be damage (is alive, is enemy, etc.) and use the same action but dealing damage to the Picked Unit.

In the amount of damage to be dealt you place the formula.

4. ### NcTheChurch

Joined:
Feb 29, 2012
Messages:
11
Resources:
0
Resources:
0
I believe you might have misunderstood me. I am after an ability that gains 1 damage for each point of Strength that the hero possesses.

5. ### dardas

Joined:
Sep 12, 2008
Messages:
649
Resources:
0
Resources:
0
Same as what he said, but use this math:
(60 * Level Of Ability) + (10 + Strength Of Hero)

Edit:
An example..

Hero with 20 strength, and level 1 of the ability:
(60 * 1[Level of ability]) + (10 + 20[Strength of hero]) = 90

same hero, level 2 of the ability:
(60 * 2[Level of ability]) + (10 + 20[Strength of hero]) = 150

same hero yet again, just level 3 of the ability:
(60 * 3[Level of ability]) + (10 + 20[Strength of hero]) = 210

Joined:
Oct 16, 2008
Messages:
9,674
Resources:
23
Models:
2
Packs:
1
Maps:
1
Spells:
16
Tutorials:
1
JASS:
2
Resources:
23
I think ur the one who didn't understand me... What I did was show how to possibly do it... I'm not a fan of spoonfeeding so I didn't include how to set the damage, and that's pretty easy if you took time to experiment at the trigger editor or to use the search button here at The Hive...

7. ### ap0calypse

Joined:
Jan 26, 2007
Messages:
4,777
Resources:
2
Spells:
1
Tutorials:
1
Resources:
2
You are indeed correct, but don't be too harsh (says the cruel ex-map moderator).

Basically, the attributes of a hero are integers in the trigger editor.
When dealing damage, you use reals. Maybe that's why you couldn't find it?
So I'm not going to bother with all the other values as I have school in 2 minutes, but here's the very basics:
• Unit - Cause (Triggering unit) to damage (Triggering unit), dealing (Real((Strength of (Triggering unit) (Exclude bonuses)))) damage of attack type Spells and damage type Normal

(Which is exactly what Adiktuz said, but then in trigger-form).

This just deals the strength of a hero in damage to a unit.

8. ### NcTheChurch

Joined:
Feb 29, 2012
Messages:
11
Resources:
0
Resources:
0
I apologise if i annoyed you in some way, im not quite sure what i did to upset you.

9. ### NcTheChurch

Joined:
Feb 29, 2012
Messages:
11
Resources:
0
Resources:
0
Ah thank you, pictures are always easier to understand. I am indeed not experienced in "Real" however a few google searches will fix that.

Joined:
Oct 16, 2008
Messages:
9,674
Resources:
23
Models:
2
Packs:
1
Maps:
1
Spells:
16
Tutorials:
1
JASS:
2
Resources:
23
math - conversion - integer to real