Senior Member
Volunteer Data File Author
Join Date: Apr 2005
Posts: 220
|
Ok, should this work?
Code:
var x as number x = child[unit:grthriL].assign[abili.infi] 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. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
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:
|
|
#2 |
Senior Member
Volunteer Data File Author
Join Date: Apr 2005
Posts: 220
|
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. |
#3 |
|
|