HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Armor and Attack type

12-29-2003, 10:03 PM#1
LegolasArcher
Can I access a unit (or unit type's) armor type and attack type? I wouldnt even mind if it needed JASS, but I could find it useful. Thank you for your time.
12-29-2003, 11:19 PM#2
Dead-Inside
No.
12-30-2003, 12:33 AM#3
LegolasArcher
Yes, but I though tit might be usefull for trigger based spells, and such. (you could have proper resistance, or even have a attack that does normal damage using blizzard's damage algarithm)
12-30-2003, 01:13 AM#4
weaaddar
you can take it up a notch and use a bit flagging type method on the point value so that you can get the Armor Type and the Weapon Type.

(I.e. 1 is small 2 is medium 4 is large 8 is devine 16 is pierce 32 is normal 64 is hero 128 is magic 256 is chaos)
This would probably be very easily handled by some sleek jass function like the I2BS from the jass vault.
12-30-2003, 03:12 AM#5
LegolasArcher
Eh, its not really importsant. Was just curious if it was possible
12-30-2003, 03:52 AM#6
weaaddar
then i'm curious why you ask BECAUSE A VERY EASY TO WORK ANSWER HAS JUST BEEN POSTED FOR YOU.

God people are so lazy, do you need somebody to do it for you in example before your going to try to do it yourself?
12-30-2003, 12:12 PM#7
Stinky_Pooh
weaaddar, i feel your pain, but let the man alone. people have random ideas sometimes... this one does seem good, but think of how much work you would have 2 do to implement this into any map........ maybe u could do it by preloading at begining of map ALL the different unit types into a unittype array, then there subsiqent number value for armor, then another array for their damage.... could be done.... very hard. I wish i could make custom armor and attack types. i dont like the +/- 50% damage **** for attack type vs. armor. Heavy should have like -85% damage from normal attacks.... not -50% i mean come on.... wtf the point of having heavy then?!? anyway yea....
12-30-2003, 04:07 PM#8
Zergling199
Stinky_Pooh, you can customize the types they already have.. Just change the percentages in Gameplay Constants, in the World Editor.
12-30-2003, 04:49 PM#9
weaaddar
yeah ussually your not going to leave the default armor/attack type.
So its not hard to imagine you can spend the 3 second to change the Flags in there point value. Or hell if your really lazy have a trigger change there custom value.
12-30-2003, 05:58 PM#10
Stinky_Pooh
Zergling199, thank you very much :P i will use this... i never thought to look there. I am so stupid... lol.
12-30-2003, 09:13 PM#11
Extrarius
If you know anything about programming, it wouldn't be too difficult to make a program using the info from zepirs format tutorial to read in the unit data and modify the point values automatically. That way you could make all your units and just run the program to get the proper point values.
I don't have any use for it and I'm lazy so I'll leave it as an exercise for the reader
01-10-2004, 09:02 PM#12
Cookie
What exactly did you mean regarding Attack and armor type? Are you meaing that you want to change the the attack type through triggers during a game, or just like descriptions, armor reduction etc?
01-10-2004, 09:16 PM#13
LegolasArcher
The reason I didnt press it was because I didnt need it for anything specific. I was just curious if it could be done. ://// The reason why i may have sounded lazy is because I didnt have a specific use for it. Sorry for wasting your time. :bgrun:
01-10-2004, 11:43 PM#14
Pesmerga
I coulda sworn 'map development' was for people MAKING MAPS