• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Leader/Follower stat dependence coding problem

Teldaril

New member
I have an issue in creating a datafile that's been bothering me for a while. I'll lay out the situation as best I can and see if anyone can offer a solution.

There is a leader ship that can carry a number of escort ships. Both the leader ship and the escort ships have a Leadership stat. The leadership of the leader ship is variable, and is set based on the selection count of an option, or by the selection of an admiral type character.

The leadership option (shLdr) uses the eval script:
unit.basestat[Ldr] = unit.option[shLdr].selection

Or the admiral unit sets the stat with the postlink script:
parent.basestat[Ldr] = unit.basestat[Ldr]

Now the tricky part is that the escort ships base their leadership stat on the stat of the leader unit, but form a separate squadron (squad). Also, if two of the leader type ships are squadron, then their follower escorts can squadron together.

I've tried using both the Leader/Follower mechanism and the attachment mechanism, but neither seems to work fully. I can get the attachment mechanism to set the leadership stat of the escort unit at the time of the attachment, but it doesn't update if the leadership stat is adjusted on the leader unit or the admiral type unit is added to the leader ship. And I simply could not figure out a way for the AB Leader/Follower mechanism to set the stat at all on the escort unit.

Any ideas, suggestions or questions?
 
Are the leader.tag* (tagis, tagcount, etc.) targets even working? I cannot get Unitstat calc scripts and even rules scripts to acknowledge the presence of a tag on the escort unit's assigned leader.
 
Back
Top