Thread: Automatic units
View Single Post
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old December 7th, 2006, 08:12 PM
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:
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

It seems to be working fine...figured I'd just check [img]./modules/mdforum/images/smiles/icon_wink.gif[/img]

Thanks!
Butcher
rob is offline   #2 Reply With Quote