• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to change the damage to the hero's strength?

Status
Not open for further replies.
Level 11
Joined
Jul 9, 2009
Messages
927
You have to make an ability based on channel. you must know GUI/Triggering to do this
Here is the trigger
  • Strength Damage
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Strength Damage(or the name of your skill)
    • Actions
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real((Strength of (Triggering unit) (Include bonuses)))) damage of attack type Spells and damage type Normal
 
Level 11
Joined
Jul 9, 2009
Messages
927
@Spinnaker, Is my trigger Right? kinda getting familiar with the trigger editor ;)
 
Level 3
Joined
Jul 26, 2011
Messages
38
You have to make an ability based on channel. you must know GUI/Triggering to do this
Here is the trigger
  • Strength Damage
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Strength Damage(or the name of your skill)
    • Actions
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real((Strength of (Triggering unit) (Include bonuses)))) damage of attack type Spells and damage type Normal


it wont work. . i completely follow your trigger. . . is "((Strength of (Triggering unit) (Include bonuses)))) " is a string? couse i type that string . . . maybe my problem is the skill. . . what should i do now?
 
Level 12
Joined
Aug 12, 2008
Messages
350
It's not a string. It's a real number, I mean the damage and the Strength of the hero is an integer.
What you can see in the trigger is

"Cause (Triggering Unit) to damage (Triggering Unit), dealing 500.00 damage of attack type (Spells) and damage type (Normal)"

Isn't it? Simply click on the 500.00 then choose the function "Conversion - Convert Integer to Real"
Then you'll see this "Real((Point-value of Footman)"

Click on the (Point-value of Footman)
Then search for "Hero - Hero Attribute" then you'll see this Strength of Hero (Exclude bonuses)
That's all =) Adjust the exclude bonuses to include bonuses
 
Level 3
Joined
Jul 26, 2011
Messages
38
It's not a string. It's a real number, I mean the damage and the Strength of the hero is an integer.
What you can see in the trigger is

"Cause (Triggering Unit) to damage (Triggering Unit), dealing 500.00 damage of attack type (Spells) and damage type (Normal)"

Isn't it? Simply click on the 500.00 then choose the function "Conversion - Convert Integer to Real"
Then you'll see this "Real((Point-value of Footman)"

Click on the (Point-value of Footman)
Then search for "Hero - Hero Attribute" then you'll see this Strength of Hero (Exclude bonuses)
That's all =) Adjust the exclude bonuses to include bonuses


ok i get it now! but how can i make a dmg multiplier. .

exmple: my skill lvl is lvl 4 i want
lvl1 : x1.5
lvl2 : x2.5
lvl3 : x3
lvl4 : x3.8


??????
 
Level 12
Joined
Aug 12, 2008
Messages
350
There is a way to make 1.5, 2.5, 3, 3.8 but it'll be more difficult (I'm not sure whether there is an easier way to make it)
For me, I'll prefer there's a constant increment. For example,
Level 1: x1.5 Strength
Level 2: x3.0 Strength
Level 3: x4.5 Strength
Level 4: x6.0 Strength

Choose the function "Arithmetic" and you'll see this
1.00 + 1.00

Click on the first 1.00 and choose again the "Arithmetic" function again which it should be like this
(1.00 + 1.00) + 1.00
Then click again on the first 1.00 and make it 1.5. Then click on the second 1.00 and choose "Conversion - Convert Real to Integer" and search for this function "Unit - Level of Ability for Unit" Set the Ability to the ability that you want. Remember to adjust the Arithmetic Operator (+,-,x,/)
Click OK until you see the 1.00 (the third 1.00) which haven't manipulate. Click the 1.00 and again, manipulate it to the Strength of Unit.

It will look like this
  • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((1.50 x (Real((Level of Ability for (Triggering unit))))) x (Real((Strength of (Triggering unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
If you can't get it, I think you can get a sample from my spell, Blessed Hammer 1,5b.
Open up the map and search for the BH_damage and click on it and see how I manipulate it.
 
Level 3
Joined
Jul 26, 2011
Messages
38
There is a way to make 1.5, 2.5, 3, 3.8 but it'll be more difficult (I'm not sure whether there is an easier way to make it)
For me, I'll prefer there's a constant increment. For example,
Level 1: x1.5 Strength
Level 2: x3.0 Strength
Level 3: x4.5 Strength
Level 4: x6.0 Strength

Choose the function "Arithmetic" and you'll see this
1.00 + 1.00

Click on the first 1.00 and choose again the "Arithmetic" function again which it should be like this
(1.00 + 1.00) + 1.00
Then click again on the first 1.00 and make it 1.5. Then click on the second 1.00 and choose "Conversion - Convert Real to Integer" and search for this function "Unit - Level of Ability for Unit" Set the Ability to the ability that you want. Remember to adjust the Arithmetic Operator (+,-,x,/)
Click OK until you see the 1.00 (the third 1.00) which haven't manipulate. Click the 1.00 and again, manipulate it to the Strength of Unit.

It will look like this
  • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((1.50 x (Real((Level of Ability for (Triggering unit))))) x (Real((Strength of (Triggering unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
If you can't get it, I think you can get a sample from my spell, Blessed Hammer 1,5b.
Open up the map and search for the BH_damage and click on it and see how I manipulate it.



ok i got it now. . Thank u verry much for your help!
 
Status
Not open for further replies.
Top