• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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