| 01-18-2008, 01:34 PM | #1 |
Is there a method to retrieve the armor type of a unit? Like if a unit has, say lava armor, I want it to deal x amount of damage of damage type lava via triggers. e.g. If ("get armortype of u" == "lava_armor") then "deal lava_damage"...etc etc Just curious ![]() |
| 01-18-2008, 01:42 PM | #2 |
No. But Armor Types are static so they will never change. You COULD setup a table of Unit Types to Armor Types then lookup the table of the unit type id. This is alot of work. You know what would be awesome? A system that extracts the static unchangable information on unit types/abilities/etc and provides access to a table in Jass automatically. Hmm |
| 01-18-2008, 02:12 PM | #3 |
check site downloads there is system for this. |
| 01-18-2008, 06:10 PM | #4 | |
Quote:
Doesn't JassNewGen have this? WE Warlock had something similar, and JassNewGen pretty much has all the old features of WE Warlock + some more. An easy way to do this (unless there's a system for it), is to make a dummy ability that won't show on the command card for each armor-type. Add the appropriate ability to each unit, then you can check for that. |
