<OnDamageShields> easy, or not?

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

OnDamageShields is awesome, however it took a while to find a small bug in a script i'm working on.
The problem is related to aDamageType.
aDamageType returns strings like "laser" and not a number like itmGetDamageType.
This can be a little confusing.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

I agree... damage types should consistently be reported as integers.

It would however be awesome to have a built in function to translate that int to a string (with the normal capitalization and pluralization options) :)
Post Reply