Daelin
Kelani Mage
- Reaction score
- 172
After working for about 12 hours, doing mathematical calculations after others, thinking how to make this algorithm better and more efficient, I finally present you the Armor Detection System.
Description: System capable of detecting unit's current armor, armor type, or the based on a damage amount and armor, what would the value of the damage be if armor were ignored.
I made it because I found it really useful. Requires only one custom ability (I could have avoided it but then you wouldn't be able to detect armor beyond -10, if requested, I can remove it and make it require no custom stuff ). Doesn't work as efficient as natives, but meh, it's the best I could come up with.
Code can be found into the header of the map... Doesn't contain yet testing features, but it will in the future. It was tested multiple times but not extremely much, so if you notice any other bugs than the one I mentioned, please mention them and I will do my best to remove them.
Edit: If you move this to Free Trigger Code I'd prefer you moved it into a separate thread because it is a system. Also, I don't understand why you close threads. People can post their questions in the thread, so that different users do not have to ask me the same stuff many times, if not closed. Anyway, do however you feel it is right.
~Daelin
Description: System capable of detecting unit's current armor, armor type, or the based on a damage amount and armor, what would the value of the damage be if armor were ignored.
I made it because I found it really useful. Requires only one custom ability (I could have avoided it but then you wouldn't be able to detect armor beyond -10, if requested, I can remove it and make it require no custom stuff ). Doesn't work as efficient as natives, but meh, it's the best I could come up with.
Code can be found into the header of the map... Doesn't contain yet testing features, but it will in the future. It was tested multiple times but not extremely much, so if you notice any other bugs than the one I mentioned, please mention them and I will do my best to remove them.
Edit: If you move this to Free Trigger Code I'd prefer you moved it into a separate thread because it is a system. Also, I don't understand why you close threads. People can post their questions in the thread, so that different users do not have to ask me the same stuff many times, if not closed. Anyway, do however you feel it is right.
~Daelin