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

Stone Skin ability from Stone Giant turned into hero ability wont display armor bonus

Status
Not open for further replies.
Level 4
Joined
Apr 29, 2020
Messages
59
I turned Stone Skin into a Hero ability. it works, it just doesnt display the bonus anywhere. i imagine this is because the defense from stone skin works differently than normal defense (i think its calculated at the end of everything and is not effected by weapon type).... Anyway, im trying to manually get the armor increase from the ability to display in the green "added bonus" number next to armor. I found Action>Units>SetReal>Defense(udfc). is this the function im looking for? i cant find anything else but if its not a Real function, could you please direct me to where the function im looking for might be?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,898
If you're talking about the Mountain Giant's Hardened Skin ability, that ability doesn't add any armor. It simply reduces attack damage taken by a flat amount down to a minimum value.

Armor by default reduces attack damage taken by 6%.

If you want to add Armor to your Hero after learning the ability, you can add an Armor ability to it with triggers.
  • example
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Stone Skin
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Stone Skin for (Triggering unit)) Equal to 1
        • Then - Actions
          • Unit - Add Item Armor Bonus (Stone Skin) to (Triggering unit)
        • Else - Actions
          • Unit - Set level of Item Armor Bonus (Stone Skin) for (Triggering unit) to (Level of Stone Skin for (Triggering unit))
In this example I took an Item Armor Bonus ability (like the one Ring of Protection uses), gave it 3 Levels, and set the Bonus Armor fields to +2/+4/+6.

When you learn Stone Skin it checks the level of it. If Stone Skin is level 1 it adds Item Armor Bonus. Otherwise, it updates the level of Item Armor Bonus to match Stone Skin's level.
 

Attachments

  • ex.png
    ex.png
    525.5 KB · Views: 34
Level 4
Joined
Apr 29, 2020
Messages
59
If you're talking about the Mountain Giant's Hardened Skin ability, that ability doesn't add any armor. It simply reduces attack damage taken by a flat amount down to a minimum value.

Armor by default reduces attack damage taken by 6%.

If you want to add Armor to your Hero after learning the ability, you can add an Armor ability to it with triggers.
  • example
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Stone Skin
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Stone Skin for (Triggering unit)) Equal to 1
        • Then - Actions
          • Unit - Add Item Armor Bonus (Stone Skin) to (Triggering unit)
        • Else - Actions
          • Unit - Set level of Item Armor Bonus (Stone Skin) for (Triggering unit) to (Level of Stone Skin for (Triggering unit))
In this example I took an Item Armor Bonus ability (like the one Ring of Protection uses), gave it 3 Levels, and set the Bonus Armor fields to +2/+4/+6.

When you learn Stone Skin it checks the level of it. If Stone Skin is level 1 it adds Item Armor Bonus. Otherwise, it updates the level of Item Armor Bonus to match Stone Skin's level.
AH snap. Thats very good to know. Thank you for telling me how that ability works. much appreciated
 
Status
Not open for further replies.
Top