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

UnitDex - Unit Indexer - reforged

Status
Not open for further replies.
Level 11
Joined
Jul 28, 2024
Messages
340
Im trying to set up Unit Dex in Reforged.


But I think this line does not work:
//! external ObjectMerger w3a Adef uDex anam "Detect Leave" ansf "(UnitDex)" aart "" acat "" arac 0

can you help me?
 
Im trying to set up Unit Dex in Reforged.


But I think this line does not work:
//! external ObjectMerger w3a Adef uDex anam "Detect Leave" ansf "(UnitDex)" aart "" acat "" arac 0

can you help me?
8. Notes
  • ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  • - This system is compatable with GUI because it utilizes UnitUserData (custom values for units).
  • - The object merger line should be commented out after saving and restarting.
Just delete that line of code, it's not doing anything important.
 
Since Uncle didn't say: ObjectMerger is an old JNGP tool that used to be integrated into that editor. ObjectMerger creates new objects (units, upgrades, buffs, etc.) with lines of code instead of having to make the ability yourself in the OE; it is capable of setting any fields in the output object to any value they could reasonably take.

JNGP is now deprecated and that ObjectMerger functionality was not ported over to the post-Reforged World Editor. It's possible to get ObjectMerger lines to run still (search a bit here and you'll find the threads, I've replied to them) but generally it's not needed. That line was only ever intended to run once to make the ability. You can also recreate what it would do by hand if you want, just by reading the OM syntax from left to right:

//! external ObjectMerger w3a Adef uDex anam "Detect Leave" ansf "(UnitDex)" aart "" acat "" arac 0
  • White: main OM invoking line
  • Red: w3a means it's an ability, Adef is the rawcode of the ability this will be based on, and uDex is the rawcode for the new ability this will create
  • Green: the field anam is given the value "Detect Leave"; this is the name of the ability, and you can see what anam corresponds to by pressing ctrl+d in the object editor window for the ability to show the raw data fields (they all have a 4-character name under the hood)
  • Blue: the field ansf is given the value "(UnitDex)"
  • Purple: the aart field is given the value ""
  • Yellow: the acat field is given the value ""
  • Orange the arac field is given the value 0
  • all other fields remain idental to the ability this OM was based on (Adef, which is human defend)
 
Status
Not open for further replies.
Back
Top