Working on new files for warhamer fantasy 8th and I have a question. i am a relatively inexperienced coder trying to learn more about ABCreator and the various files.
Units designated by tag as belonging to the "Special" or "Rare" groups can be duplicated a limited number of times based on point size of the army. On race does not have that limit (which should be easy to check with an if then statement). Currently we are writing a rule in each race data file for each individual unit, checking for duplicates and making sure the number is less than the required amount.
This seems the more cumbersome way of doing this. Shouldn't there be a way to generalize or globalization this? Could we check within all units with the "special" tag and count the number of times each unit id appears? I assume this would be done as each unit is added or subtracted (that is "top-level Done, correct?)
Any advice would be appreciated, as these files have been through several versions they have become a bit of a mess and I would like to clean them up if possible.
Units designated by tag as belonging to the "Special" or "Rare" groups can be duplicated a limited number of times based on point size of the army. On race does not have that limit (which should be easy to check with an if then statement). Currently we are writing a rule in each race data file for each individual unit, checking for duplicates and making sure the number is less than the required amount.
This seems the more cumbersome way of doing this. Shouldn't there be a way to generalize or globalization this? Could we check within all units with the "special" tag and count the number of times each unit id appears? I assume this would be done as each unit is added or subtracted (that is "top-level Done, correct?)
Any advice would be appreciated, as these files have been through several versions they have become a bit of a mess and I would like to clean them up if possible.