I've been working on the new version of the WAB files for AB v3.1, and I'm almost complete, but there are a couple of issues I'm having with setting up validation rules. Hopefully someone here ought to be able help me with them so that I can complete these files (at least until the next army book comes out)
1. I am try to figure out how to attach a tag to a unit if a certain option is chosen. I think I'm supposed to use assign[tag], but I can't get it working. My current syntax is:
if (entity.option[mac5Ag].selection = 1) then
entity.assign[machelp.Agema]
endif
In the entity's postlink script. All this does is give me a parse error. Any suugestions?
2. How should I should I get a stat calc of the number of tags of a certain type are in an roster? I'm having a hard time getting this done. This is to check for a global "There must be as many Xs as Ys" for the whole army.
3. Finally, I am trying to get an accurate count of the number of models in a child unit in reference to a parent unit. I need to be able to set exact porportions for mixed formation units. Any ideas?
Help on any of these three problems would be appreciated, as it would jump start my ability to get everything done for WAB.
Raymond K. Crum
1. I am try to figure out how to attach a tag to a unit if a certain option is chosen. I think I'm supposed to use assign[tag], but I can't get it working. My current syntax is:
if (entity.option[mac5Ag].selection = 1) then
entity.assign[machelp.Agema]
endif
In the entity's postlink script. All this does is give me a parse error. Any suugestions?
2. How should I should I get a stat calc of the number of tags of a certain type are in an roster? I'm having a hard time getting this done. This is to check for a global "There must be as many Xs as Ys" for the whole army.
3. Finally, I am trying to get an accurate count of the number of models in a child unit in reference to a parent unit. I need to be able to set exact porportions for mixed formation units. Any ideas?
Help on any of these three problems would be appreciated, as it would jump start my ability to get everything done for WAB.
Raymond K. Crum