I've written a rule to make sure that the named characters in the game I'm working on are not duplicated.
Unit-Level scope, test expression: Notes.Character, script:
if (this.overall.tagunique[unitid.?] = this.overall.tagcount[Notes.Character]) then
@valid = 1
endif
This works as expected, but the problem is that if it does have an error, every character model shows the error. I'd rather not have the same error show up many times in the error list (I can understand it showing up twice - for each of the duplicates).
Is there a better way to write a rule for uniqueness? The majority of units in this game are characters, so I don't want to write a rule for every unit.
Unit-Level scope, test expression: Notes.Character, script:
if (this.overall.tagunique[unitid.?] = this.overall.tagcount[Notes.Character]) then
@valid = 1
endif
This works as expected, but the problem is that if it does have an error, every character model shows the error. I'd rather not have the same error show up many times in the error list (I can understand it showing up twice - for each of the duplicates).
Is there a better way to write a rule for uniqueness? The majority of units in this game are characters, so I don't want to write a rule for every unit.