Armor, Reduction and Constants

the Immortal

I know, I know...
Reaction score
51
I began making a map ... WoW-like (not just a WoW map, but the WoW map that may not be finished at all xP ), where I want to use the same armor values and reduction as WoW.
I know these 3 things:
The way Warcraft III calculates reduction is:
Reduction = (Armor * Const) / (1 + Armor * Const)
where const = 0.06 and can be changed from the "Gameplay Constants"

In order to get close to WoW's system I need Const = 0.0001 so
~12k armor = ~56-57% reduction (my warr)
~3k armor = ~25% reduction (my rogue)

But here comes the problem -- WE doesn't support numbers with 4 signs after the decimal point. I tried editing War3MapMisc.txt in MPQ Editor in order to get it but the map crashes :\

"Why don't u use bigger const and lesser armor values then?" - you will say.
Because if I use for ex. 10 times bigger constant and 10 times less armor I will have to rework all items' armor ... since the "1" in the formula can't be changed to 10. And that's rly a bit of work.

Soo, after all this stuff you v (probably) read I will ask you -- any way to make this constant 0.0001?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> any way to make this constant 0.0001?

No, I don't think so. It uses a real value, which is hard-coded into the game to accept only a certain number of values after the decimal.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top