Sign in to follow this  
Followers 0
chaosislife

Where Are The Unit Stats?

9 posts in this topic

Haven't seen anything about it so I figured I'd ask where to find the files relating to the units stats similar to how AOM used the proto(x)?

Share this post


Link to post
Share on other sites

Thanks, now how much trouble would I get into if i simply ignored the inheritance hierarchy and put all of a units data in one file? The inheritance is neat, efficient and bloody annoying.

Share this post


Link to post
Share on other sites

Well, with inheritance, you only have to add the items in the unit entity that are different from the parent entities, which overwrites those things only. It means you don't have to have all 100 different tags in each entity.

Share this post


Link to post
Share on other sites

Eh, I like simplicity, if i want to change a value I don't want to have to open five files trying to hunt down which file has the value I need. I think this works best for entire classes of units rather than unique units.Of course the great thing I'm seeing here is that if I want all my tags in one file, that should work just as well. Flexibility is good.

Edited by chaosislife

Share this post


Link to post
Share on other sites
if i want to change a value I don't want to have to open five files trying to hunt down which file has the value I need.

You don't have to. Just put that tag (and new value) in your unit entity and it will overwrite the inherited value.

Share this post


Link to post
Share on other sites

Heh, I usually don't know how to type out the exact tag so I'd have to copy paste it anyhow.

Share this post


Link to post
Share on other sites

I actually have a pretty cool mockup for just such an editor. It's outdated--the tags have all been reorganized since I made the mockup--it would still be a good basis for the layout. All the editor would have to do is spit out XML files based on the values we put in the fields.

It should probably ask you a few questions before you get started, like "Is this a Unit or a Building?" and give you options based on these answers.

Gxidx.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0