• 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.

[Lua] list of object fields

Status
Not open for further replies.
Level 15
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:

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:
Status
Not open for further replies.
Top