• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[vJASS] Tracking a unit's attack min/max values

Status
Not open for further replies.
Level 19
Joined
Oct 12, 2007
Messages
1,821
Does anyone know of a way to see a units min and max attack values?
Let's say a unit deals 1-11 damage per hit. I want to have the 1 value and the 11 value so I can control the value that comes out of the actual damage when he attacks.
Or is it only possible to track the final damage he deals?
 

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
i think you have store them manually into a hashtable.
(unittype, minattack) unitdata table
(unittype, maxattack) unitdata table
this way you could store even more info, like hp, special number (resist magic, rage, etc..)
or even store critical chance and critical multiplier, etc...

you would have complete data over all your unit and be able to access these data any time very easily, for use in your functions.

for your kind of game it is very needed. ^^
 
Status
Not open for further replies.
Top