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

increase armor?

Status
Not open for further replies.
Level 2
Joined
Apr 26, 2021
Messages
7
is there a way to increase the armor of a unit (heroes or otherwise)? I know you can edit a whole range of stuff through the 'campagne editor' but I havn'e found anything that relates to armor.
 
Last edited:
Level 20
Joined
Feb 23, 2014
Messages
1,265
I havn'e found anything that relates to armor
armor.jpg
 
Level 2
Joined
Apr 26, 2021
Messages
7
thnaks, but i'm a little confused, rightnow, I am trying to add armor to Thrall, the value says 'defense base:0' but in the game it says he has 'Armor:13'.

if he has 13 armor, shouldn't the defense base value be '13'....is there a video tuturiol or somethng or a guide....i'm a newbie when it comes to editing .

thanks
 
Level 29
Joined
Sep 26, 2009
Messages
2,596
Armor is calculated differently for heroes than for units, because Hero armor is increased by Agility attribute. Check the gameplay constants for values your game is using:

In the editor go to Advanced -> Gameplay Constants...
1619509207750.png


A new window will open, scroll down to Hero - Attributes section
1619509251448.png


The constants above are on empty map, but you can of course customize them if you check the "Use Custom Gameplay Constants" checkbox.

Hero armor is calculated as:
Code:
[(object editor)Combat - Defense Base] + [(Constants)Hero Attributes - Defense Base Value (before Agility Bonus)] + ([Current amount of hero's agility including bonuses] * [(Constants)Hero Attributes - Defense Bonus per Agility Point])

For example Mountain King:
Defense Base = 1
Agility at level 10 = 24

Actual armor = 1 + (-2) + (24 * 0.3) = 1 - 2 + 7.2 = 6.2
 
Level 20
Joined
Feb 23, 2014
Messages
1,265
Armor is calculated differently for heroes than for units, because Hero armor is increased by Agility attribute.
Hehe, we wrote basically the same thing at petty much the exact same time :D

if he has 13 armor, shouldn't the defense base value be '13'
Hero base armor (i.e. without bonuses from items or abilities) is calculated like this:

Defense base value (from Gameplay Constants) + Agility * Armor per agility point (from Gameplay Constants) + Defense base (from Object Editor)

By default each hero starts with -2 Armor (from Gameplay Constants) and gains 0.3 Armor for every Agility point. Thrall starts with 18 Agility at level 1 and 0 defense base in the Object Editor, so that's 18 * 0.3 - 2 + 0 = 3,4 base armor at level 1. Which matches what you should see in game.

You can alter it by changing appropriate fields in the Object Editor or editing the Gameplay Constants:

armor.jpg


More specifically, the highlighted field and the one above:

armor2.jpg
 
Last edited:
Level 29
Joined
Sep 26, 2009
Messages
2,596
Hehe, we wrote basically the same thing at petty much the exact same time :D
:D

Also I forgot - while normally not used, heroes can still get their armor upgraded like normal units if fields "Combat - Defense Upgrade Bonus" and "Techtree - Upgrades used" are set (as [Upgrade bonus] * [sum of levels of all upgrades that increase armor for the given unit]) and that is added to the final calculation of armor as well)
 
Status
Not open for further replies.
Top