- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
Edit: Ok I figured it out. For some really odd reason, if I use a custom id like "N00X", where X is a number, it automatically converts the unit into a hero. Why on earth does it do that?
Edit2: So Warcraft assumes that if the id of something starts with a capital letter, it must be a hero. Why is that?
I keep trying to make custom units off of other units (e.g. footman) but they keep coming out as heroes. I am not trying to make heroes...
But strangely this script does not make it a hero. They look exactly the same to me...
Edit: Ok I figured it out. For some really odd reason, if I use a custom id like "N00X", where X is a number, it automatically converts the unit into a hero. Why on earth does it do that?
Edit2: So Warcraft assumes that if the id of something starts with a capital letter, it must be a hero. Why is that?
I keep trying to make custom units off of other units (e.g. footman) but they keep coming out as heroes. I am not trying to make heroes...
JASS:
//! i setobjecttype("units")
//! i createobject("hfoo", "N001")
//! i makechange(current,"unam","Librarian")
But strangely this script does not make it a hero. They look exactly the same to me...
JASS:
//! i setobjecttype("units")
//! i createobject("hfoo","h005")
//! i makechange(current,"unam","Soldier")
Last edited: