• 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.

[Trigger] Help with an attack trigger

Status
Not open for further replies.
Level 2
Joined
Jan 13, 2008
Messages
12
Hello.
I want to ask if someone knows how to :

I want to make an hero, to not attack with his normal attack, but to attack with his current strength(or agility,intelligence) or anything else,i try to make it sometimes, but nothing.

can anyone give me an example?

ty.:wink:
 
Level 14
Joined
Apr 21, 2007
Messages
1,465
This shouldn't be in the GUI. This is a simple Object Editor thing. All you need to do is lower the Damage - Number of Dice, and Damage - Side per Dice to 1. Then your hero will do exactly the amount of damage his Primary Attribute gives him.
 
Level 2
Joined
Jan 13, 2008
Messages
12
I know it can be done with that way, but i just want to make it with trigger way,when the hero hits a unit, to make 1.4 X damage of his current primary stat. ty for your help, i'll try to make it..but if anyone have an idea or an example, please post it ^^
 
Level 14
Joined
Apr 21, 2007
Messages
1,465
Well if you want to do it with a trigger you need to negate his original attack and then use the Action:

Code:
Action - Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Real((Strength of (Attacking unit) (Include bonuses)))) x 1.40) damage of attack type Hero and damage type Normal

However you would need a condition that would determine the primary skill of a hero and then use the action for strength, intelligence or agility and I'm not sure if that's possible with GUI
 
Status
Not open for further replies.
Top