Total Army Point Cost Question
First, I am assuming that since the value is displayed, the total army/roster point cost is a roster statistic internally calculated by AB. If so, what is the syntax for accessing the total point cost of an army/roster?
If my assumption is incorrect, then what is the proper way to reference a Stat Calc/Stat Id in a Rule script? -DH |
The roster size cam be accessed in the rule scripts with two expressions:
roster.activesize for the currently used points roster.usersize for the user set number of points |
Thanks dude!
|
If I have a situation where only one third of my force can be units of tag Spec.Third, then how do I work get army builder to keep track of the total points cost of all these units, so I can then compare it to the roster.usersize tag in a validation rule?
|
create a statcalc that totals up the points value of any unit that has the relevant tag, then reference the statcalc within the rule by using:
statcalc[id] where id is the unique id of the statcalc The statcalc maybe along the lines of: test expression: spec.Third tally expression: @value = @value + cost[total] |
OK Thanks. Will try that once I've had a good nights sleep!
|
Thanks for that! Works like a charm!
|
Quote:
In the debug viewer, I cans see roster.size is set to the user size but if a user sets unlimited, that's not that useful for me! |
this still applies but bear in mind the warning in the AB kit manual:
Quote:
It may be worth trying to have a specific tag for this unit and then put a script in the Global Script section under Roster Done that checks for the tagged unit and then checks roster.activesize and if the criteria meet then the tag is changed - the only problem though is if the change of tag under this criteria is supposed to change other costs/function this may not trigger |
All times are GMT -8. The time now is 01:17 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.