Game Rule = You can choose a special character to pilot a vehicle but you can only ever pick that special character once. There are multiple special characters to choose from too. The first image below shows the squadron with their units and I've clicked the special character Ben Dixon twice.
I followed the instructions from the How To Guide on "Designing a Rule" as it covers making a General you can only have one of in an army. I've made the ability to add a special character an option and in their eval script I assign the unique tag to that special character.
I then set a rule following the guide to tagcount that tag. The rule is unique and has a Message set.
Well it didn't work. Loading the Debug Tags I could see each unit with the Ben Dixon name also now had the tag for him. So I added debug scripts to both locations and I'm not seeing the ones in the Rule fire off ever. So I set the rule to @valid = 0 so it should have triggered but it never did then either.
What am I doing wrong?
I followed the instructions from the How To Guide on "Designing a Rule" as it covers making a General you can only have one of in an army. I've made the ability to add a special character an option and in their eval script I assign the unique tag to that special character.
Code:
var result as number
result = unit.assign[uedfCharac.benDixon]
I then set a rule following the guide to tagcount that tag. The rule is unique and has a Message set.
Code:
if (tagcount[uedfCharac.benDixon] < 2) then
@valid = 1
endif
Well it didn't work. Loading the Debug Tags I could see each unit with the Ben Dixon name also now had the tag for him. So I added debug scripts to both locations and I'm not seeing the ones in the Rule fire off ever. So I set the rule to @valid = 0 so it should have triggered but it never did then either.
What am I doing wrong?