HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attack-Type Spells/Hero/Chaos/Magic/Ect Comparison To Detect Which One Occurred?

06-20-2007, 10:58 AM#1
Brash
When you attack a unit it can be one of the following attack types: Spells/Normal/Pierce/Siege/Magic/Chaos/Hero

Is there a way to do a comparison to find out which type just happened? I dont see anything in the gui but perhaps there is a way in jass?
06-20-2007, 11:16 AM#2
zen87
I do remember there is some system that allow you to detect the weapon type, try search around the demo maps :)
06-20-2007, 12:05 PM#3
blu_da_noob
No.

Quote:
I do remember there is some system that allow you to detect the weapon type, try search around the demo maps :)

That allows you to detect amount of armour, not type.
06-20-2007, 12:41 PM#4
Brash
okay, if i can't do a comparison, is there any way i can get a trigger to somehow record the attack type that had happened? write it to a varible or store it? then i could indirectly do a comparison with a conversion to a string and do an if string = string comparison.
06-20-2007, 01:02 PM#5
Toink
You simply can't because I believe there is no function that returns a unit's attack type.