- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
Does anyone have a list of the object fields for the lua object generation scripts? I've had to guess them by look at the rawcodes, but these don't seem to correspond 100% of the time (a bit counter intuitive to say the least...).
For example, I'm trying to set a unit's ability list, but I get an error for this:
The first one, "heroAbilList" works perfectly (it's the rawcode for a hero's abilities) but the second just turns up an error because it's not the right name for the field. So what is that field's name?
Edit: Got it, it's "uabi." Funny then that "heroAbilList" works...
Does anyone have a list of the object fields for the lua object generation scripts? I've had to guess them by look at the rawcodes, but these don't seem to correspond 100% of the time (a bit counter intuitive to say the least...).
For example, I'm trying to set a unit's ability list, but I get an error for this:
JASS:
//! i makechange(current, "heroAbilList", "") //works
//! i makechange(current, "abilList", "") //error
The first one, "heroAbilList" works perfectly (it's the rawcode for a hero's abilities) but the second just turns up an error because it's not the right name for the field. So what is that field's name?
Edit: Got it, it's "uabi." Funny then that "heroAbilList" works...
Last edited: