Soliciting opinions on an object creation system

jwallstone

New Member
Reaction score
33
I've written a bunch of Lua code that is used by the ObjectMerger (part of Newgen) to create objects. Basically, I was tired of searching through object editor fields and clicking back and forth between different tabs of objects, and wanted a way to just type out a full object specification in code.

To create a Footman-based unit, for example, I just write something like this:

JASS:

footman2.baseid = "hfoo" // original id
footman2.id = "hfo2"  // this is the new id
footman2.armor = 10
footman2.hp = 500
RegisterObject(units, footman2)


Then a Lua processor creates the desired object through ObjectMerger upon saving the map. And the same applies for items, abilities, etc. (though buffs/upgrades/dest are not done).

The other good thing is that I can write out a formula for the tooltips, which means I don't have to go checking and changing tooltips when I change an attribute.

Would something like this be useful to post? Do similar things already exist? It's not complete yet, and furthermore being lua code is a little different to use from the other resources. The code is still very much nascent, but I'd be happy to post what I have so far and get some criticism if it'll be useful.
 

Laiev

Hey Listen!!
Reaction score
188
for people <like me> which don't know how to use object merger, this is useful

also to create spells without copy/past objects :thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top