Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder

Notices

Reply
 
Thread Tools Display Modes
thebutcher
Senior Member
Volunteer Data File Author
 
Join Date: Apr 2005
Posts: 222

Old November 20th, 2006, 07:33 PM
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 :wink:

Thanks!
Butcher

Warmachine/Hordes ('Retired' Confrontation and AT-43) Army Builder Author.
Magic the Gathering Card Vault Author.
thebutcher is offline   #1 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,003

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
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:09 PM.


Powered by vBulletin® - Copyright ©2000 - 2019, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.