Senior Member
Volunteer Data File Author
Join Date: Apr 2005
Posts: 220
|
Hey there,
Trying to add a unit automatically if a certain ruleset is selected for an army. When you play the Griffin army you can choose The Temple of the South ruleset. This allows you to purchase (at 5 points a piece) "Treasure" counters. They are available for use by any unit/model in the game so, I was going to automatically add a unit called "Treasure of the Temple" and a 5 point item for the counters. As I was thinking about it I couldn't figure out how to add a unit automatically...is it even possible? Oh, while I'm at it...these 5 point counters, you can have up to 10% of your total army's value in Treasure counters. So, if I use an accrued tag I can do something like this: Code:
var x as number var y as number x = (tagcount[grTags.treasure] * 5) y = (activesize * .1) if (x <= y) then @valid = 1 endif Thanks! Butcher Warmachine/Hordes ('Retired' Confrontation and AT-43) Army Builder Author. Magic the Gathering Card Vault Author. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
Units and items can be automatically added via the Race specification. See the "autounit" and "autoitem" entries for races for additional details.
The technique you are using below looks to be a perfectly sound way of solving the problem. :-) -Rob At 08:33 PM 11/20/2006, you wrote: Quote:
|
|
#2 |
|
|