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

I need help creating a hero ability

Status
Not open for further replies.

Gojira2000

G

Gojira2000

I need to make a passive ability (in GUI) were the heroes basic attacks have a chance to ignore all armor(including armor type if possible)

Level1- 7% chance to ignore armor
level2 - 15% chance to ignore armor
level3 - 22% chance to ignore armor
level4 - 30% chance to ignore armor

Any help will be greatly appreciated and repped :ogre_haosis:
 

Gojira2000

G

Gojira2000

Yes I know, but I don't want it to work like that and I cant change the hero's attack (gameplay reason)

is there anyway I can make his attack turn into pure damage for one attack?
 
Level 3
Joined
Aug 4, 2013
Messages
55
make a trigger with chance in every attack that can deal damage and change the damage attack chaos and damage types universal. srry i cant give an trigger example..
 

Gojira2000

G

Gojira2000

KK, but what hero ability should I base for the trigger?
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
question 1
  • asd
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of ability for (Attacked unit)) Greater than 0
      • (Random integer number between 1 and 100) Less than or equal to chance
    • Actions
      • Unit - Cause (Attacked unit) to damage (Attacking unit), dealing damage damage of attack type Chaos and damage type Unknown
question 2
  • asd
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to ability
    • Actions
      • Set ignore_armor[index] = True
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ignore_armor[index] Equal to True
    • Actions
      • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing damage damage of attack type Chaos and damage type Unknown

hopefully this will give you an idea on how to do it
 

Gojira2000

G

Gojira2000

this helps but it needs to be passive and it has to ignore not just actually armor type but the actual armor ( I mean defense base) value to
 
Level 3
Joined
Aug 4, 2013
Messages
55
make ur hero base ability is aura ability and change ur target allowed only work for ur hero so that when every time unit that have the aura attack its have chance to do ignore armor... but the problem is i dont know how to deal damage equal to hero damage and also u will having problem with hero attack cooldown i mean u dont want when ur hero attack, the damage will be deal before u actually hit the enemy...
 
This problem is a lot more complicated than you think.

You need to use a damage detection system to register when a generic unit is damaged, and you need a pure damage calculator to see how much damage your attacker would deal to a unit with no armor.

Both of these things are too advanced if you're using GUI.
 

Gojira2000

G

Gojira2000

K thanks guys I found a solution to make it work thanks for all ur guys help
 
Status
Not open for further replies.
Top