Hey,
I've just recently started editing datafiles, so I could make a working version of the new 40k Eldar Codex, until the official maintainers are comfortable releasing it. I've managed to pick up quite a bit, and I've got the entire codex implemented. However, I'm trying to clean up the file and make things simpler and less cluttered when editing it in ABC.
One thing I'd like to have is an option that only appears once, no matter how many times it's referenced. I've got that working.
The reason I want it is to automatically include section headers when a unit has various types of options available (but not necessarily selected).
So, I'd like to have all of my 'Exarch Skill' options add the 'Exarch Skills' header option. Problem is... I can't figure out how to do that. Seems like it must be simple, but I'm stumped. If I make the header a link from the first option, the header is only added when the option is selected.
I also tried going a different route, always including one copy of the header in every unit, and making the live expression depend on a tag that gets set by the option, but I don't see how that will work either. The only place I can set the tag is in the eval expression, right? Which means the header again only appears if the option is selected. I realize this is un-necessary, but I'm on such a roll re-factoring the file that I really wanted to go all the way. Any tips?
I've just recently started editing datafiles, so I could make a working version of the new 40k Eldar Codex, until the official maintainers are comfortable releasing it. I've managed to pick up quite a bit, and I've got the entire codex implemented. However, I'm trying to clean up the file and make things simpler and less cluttered when editing it in ABC.
One thing I'd like to have is an option that only appears once, no matter how many times it's referenced. I've got that working.
The reason I want it is to automatically include section headers when a unit has various types of options available (but not necessarily selected).
So, I'd like to have all of my 'Exarch Skill' options add the 'Exarch Skills' header option. Problem is... I can't figure out how to do that. Seems like it must be simple, but I'm stumped. If I make the header a link from the first option, the header is only added when the option is selected.
I also tried going a different route, always including one copy of the header in every unit, and making the live expression depend on a tag that gets set by the option, but I don't see how that will work either. The only place I can set the tag is in the eval expression, right? Which means the header again only appears if the option is selected. I realize this is un-necessary, but I'm on such a roll re-factoring the file that I really wanted to go all the way. Any tips?