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 June 13th, 2006, 05:35 PM
Ok, should this work?
Code:
var x as number
x = child[unit:grthriL].assign[abili.infi]
Because I can't seem to get it to work. Basically, the Unit as a whole has 3 options to choose from, each giving the child unit/s a different set of options that are chosen for the entire Unit. Other independent units added won't get the extra options, just the grthriL unit in this case.

So, I set up a linkset for the three options, placed the above sample scripts in the three options and then added the linkset to the parent unit.

And it's not working.

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,005

Old June 13th, 2006, 10:00 PM
It seems you are using Confrontation terminology here and assuming that I know something about that game. I don't. So you'll need to describe this clearly in standard AB terminology for me to properly understand what you're asking. You talk about the "Unit" (capitalized) and "child unit", plus options that are assigned to one or both of them. But I can't make out what is supposed to do what.

Theoretically, the two lines of script code you have below should work, PROVIDED that everything else is configured correctly AND that the evaluation sequence is correct. All that code does is add a tag to the first child unit possessing the given unique id. If that's what you are trying to accomplish, then it should work fine. However, from your description, I'm not sure if that's what you're trying to accomplish.

So please explain clearly the objective and I'll try to help out. Please do NOT just tell me how you have things currently setup within AB. I also need to know how the GAME MECHANICS work that you are trying to implement. Only then will I be able to offer a solid suggestion of how to actually solve the problem.

Thanks, Rob


At 05:35 PM 6/13/2006, you wrote:

Quote:
Ok, should this work?
Code:
var x as number
x = child[unit:grthriL].assign[abili.infi]


Because I can't seem to get it to work. Basically, the Unit as a whole has 3 options to choose from, each giving the child unit a different set of options that are chosen for the entire Unit.

So, I set up a linkset for the three options, placed the above sample scripts in the three options and then added the linkset to the parent unit.

And it's not working.
rob is offline   #2 Reply With Quote
thebutcher
Senior Member
Volunteer Data File Author
 
Join Date: Apr 2005
Posts: 222

Old June 14th, 2006, 07:32 AM
Heh, sorry.

Ok. The Thallion riders have three Options that give them 2 new abilities each. They can only have one Option and it's the same for all the Models in that Unit. I've structured the abilities in Confrontation as a Tag Group in Army Builder that basically print out the name of the ability on the printout and the roster view and that's it. For example the Vigilante Option will give the models the Instinctive firing(abili.infi) and Scout(abili.scou) ability...

However, in Rag'Narok you can add Commanders and Independents to a Unit. These added Units will not benefit from the additional abilities, just the Thallion riders.

So, in the Rag'Narok file I have a Unit called Thallion Riders that I've added the linkset with the Vigilante, Judge and Executioner Options. That Unit has the Rider Unit and Thallion Leader Unit added as "Cost" Options. Leaders cost 10AP more than the regular troops, +1 boost in two different characteristics and have an additional ability assigned to them (Leadership/0) annnnnd you can have a unit full of leaders or a unit without leaders :roll: . So, I'm trying to have the Thallion Riders Unit assign the two ability Tags to the Rider and the Leader...but not to any other Unit that might be added on.

Simple, n'est pas?

Just wait till I start adding the Army Packs! :shock:

Thanks Rob!
Butcher

Warmachine/Hordes ('Retired' Confrontation and AT-43) Army Builder Author.
Magic the Gathering Card Vault Author.
thebutcher is offline   #3 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 07:18 PM.


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