• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Rawcodes with capital letters for units

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,342
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, if I create a unit with an object id of'Abob'and base it off of'hfoo'then it'll become a hero unit that has attributes, experience, levels, etc? Likewise; if I have a unit with object id of'abob'based off of'Hpal'then it won't be a hero and won't have attributes, experience, levels, etc?

I can confirm first one, but not second one.Probably it is correct too.
 
please, read again, and do some testing before posting.

What you said is only relevant to topic because it is rawcode. This is whats the matter:

Furthermore, if an object is created and given an arbitrary rawcode where the first letter is capitalized, it automatically gets cast into a hero.

your rawcode is fully irrelevant to this thread
 
So, if I create a unit with an object id of'Abob'and base it off of'hfoo'then it'll become a hero unit that has attributes, experience, levels, etc? Likewise; if I have a unit with object id of'abob'based off of'Hpal'then it won't be a hero and won't have attributes, experience, levels, etc?

Yes on both accounts (unfortunately). I tested the second case myself, as written in the OP

I made a custom object from Human Paladin ('Hpal') and made its rawcode 'h000.' It became a normal unit, and not a hero.

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 >_<

I am curious though, what about non-alphabetic characters beginning a rawcode? I expect it wouldn't do any "casting," from non-hero to hero or hero to non-hero.
 
Status
Not open for further replies.
Back
Top