I'm having trouble with the following rule. With only the one unit in
the roster, it is not validating correctly. If I'm following my logic
correctly, because the tyTags.AddHW is 2 it should skip the group
portion and return a result of 1. Or am I misunderstanding the way
the tagcount[] works?
Here's my current tag settings:
tyTags.Warriors = 1
tyTags.Winged = 3
tyTags.AddHW = 2
Group.HQ = 0
Group.Fast = 0
Here's my rule, set at the unit level:
var result as number
if (tagis[tyTags.Warriors] + tagis[tyTags.Winged] >= 2) then
if (tagcount[tyTags.AddHW] < 2) then
if (tagis[Group.HQ] + tagis[Group.Fast] = 0) then
result = 0
done
else
result = 1
endif
else
result = 1
endif
else
result = 1
endif
@valid = result
the roster, it is not validating correctly. If I'm following my logic
correctly, because the tyTags.AddHW is 2 it should skip the group
portion and return a result of 1. Or am I misunderstanding the way
the tagcount[] works?
Here's my current tag settings:
tyTags.Warriors = 1
tyTags.Winged = 3
tyTags.AddHW = 2
Group.HQ = 0
Group.Fast = 0
Here's my rule, set at the unit level:
var result as number
if (tagis[tyTags.Warriors] + tagis[tyTags.Winged] >= 2) then
if (tagcount[tyTags.AddHW] < 2) then
if (tagis[Group.HQ] + tagis[Group.Fast] = 0) then
result = 0
done
else
result = 1
endif
else
result = 1
endif
else
result = 1
endif
@valid = result