• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Lua] list of object fields

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,337
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