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

[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