- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
So it appears that all hero units' rawcodes begins with a capital letter.
And it is also true that all non-hero units' rawcodes always begin with a lower case letter.
Furthermore, if an object is created and given an arbitrary rawcode where the first letter is capitalized, it automatically gets cast into a hero.
I am suspecting this is a hardcoded property in the units objects (capital letters don't seem to matter for any other object AFAIK). Is there anyway to disable it?
Edit: So apparently if you create an object based on a hero, but make the first letter of the new rawcode lower case, it gets cast to a non-hero >_<
Is there anyway around this, i.e. using a lower case letter starting a rawcode for both heroes and non-heroes?
So it appears that all hero units' rawcodes begins with a capital letter.
And it is also true that all non-hero units' rawcodes always begin with a lower case letter.
Furthermore, if an object is created and given an arbitrary rawcode where the first letter is capitalized, it automatically gets cast into a hero.
I am suspecting this is a hardcoded property in the units objects (capital letters don't seem to matter for any other object AFAIK). Is there anyway to disable it?
Edit: So apparently if you create an object based on a hero, but make the first letter of the new rawcode lower case, it gets cast to a non-hero >_<
Is there anyway around this, i.e. using a lower case letter starting a rawcode for both heroes and non-heroes?