Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   Army Builder (http://forums.wolflair.com/forumdisplay.php?f=16)
-   -   Child option assignment (http://forums.wolflair.com/showthread.php?t=6288)

thebutcher June 13th, 2006 04:35 PM

Child option assignment
 
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

rob June 13th, 2006 09:00 PM

Child option assignment
 
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.

thebutcher June 14th, 2006 06: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


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

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