I seem to have come accross a bug which is preventing me from implementing a validation rule.
The tagcountstr["str"] target does not return the same number as tagcount[exp] when passing the equivalent string/expression. The same issue occurs if I use this.entity.overall.tagcountstr["string"] vs this.entity.overall.tagcount[tag]) from a unit-scope validation rule.
I have a very simple Global Script that does the following:
I have added a roster validation rule that does
One would expect the return values to be identical. Unfortunately, this is the output I get from the debug window.
The Debug Roster Accrued Tags windows shows that the DupTracker.0 tag does have a count of 3. The validation I want to implement absolutely has to be done with tagcountstr[] because the tag that needs to be counted is dynamic.
Is there a workaround?
The tagcountstr["str"] target does not return the same number as tagcount[exp] when passing the equivalent string/expression. The same issue occurs if I use this.entity.overall.tagcountstr["string"] vs this.entity.overall.tagcount[tag]) from a unit-scope validation rule.
I have a very simple Global Script that does the following:
Code:
if (tagis[Comp.Special] > 0) then
perform entity.assign[DupTracker.0]
endif
I have added a roster validation rule that does
Code:
debug "tagcount[DupTracker.0]: " & tagcount[DupTracker.0]
debug "tagcountstr[DupTracker.0]: " & tagcountstr["DupTracker.0"]
Code:
********** Start Evaluation Cycle **********
tagcount[DupTracker.0]: 0
tagcountstr[DupTracker.0]: 0
********** Start Evaluation Cycle **********
tagcount[DupTracker.0]: 1
tagcountstr[DupTracker.0]: 1
********** Start Evaluation Cycle **********
tagcount[DupTracker.0]: 2
tagcountstr[DupTracker.0]: 1
********** Start Evaluation Cycle **********
tagcount[DupTracker.0]: 3
tagcountstr[DupTracker.0]: 1
Is there a workaround?
Last edited: