HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detecting armour types and damage

10-12-2008, 10:59 PM#1
rizla
Hey everyone. I figured that its not economical to use the chaos ability to change a units armour and damage in game because it would involve creating 120 different units. One for every single combination (there are 8 hero's, 5 types of damage and 3 types of armour classes... Maybe more). I'm trying to trigger the entire attack system instead. For example, if a creep attacks a hero it must check what armour the hero's wearing (based on levels eg. All light armours are level one) and deduct, or add, a certain amount of damage from the attack depending on the creeps attack type. And visa versa. The only problem is i have no idea how to detect the damage the creep is dealing and subtract a percentage from it. I doubt it can be done in gui, is there a jass way around this? Thanks in advance.

Btw i hope i'm not out of line posting this in a different thread to my "changing armour in game" post.
10-13-2008, 02:35 PM#2
tamisrah
There is this system in the resources to detect armor-types.

But honestly if you're already triggering the thing why not just trigger the armor-types aswell? You could just attach something to your units which tells your system which armor it has. This way you would only have the problem left how to tell the user which armor a unit has.
10-14-2008, 12:02 PM#3
rizla
Schweet i'll have a look. Thanks i think i might just do that. It sounds much simpler.