• 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

ABCreator - Adding children increases parent option cost

brentil

Member
In Robotech RPG Tactics you can have a Squadron with a series of upgrades that apply to every model in the squadron.

  • Valkyrie Squadron
    • Built-In Upgrade Options
      1. Long-Range Missiles - 20
      2. Gravity Bomb - 10
      3. SDF-1 Lasers - 5

However when you add more models to the squadron they inherit the inclusion of these upgrades but because you're adding more models those costs go up.

  • Valkyrie Squadron
    • Built-In Upgrade Options
      1. Long-Range Missiles - 20 (should be 25 now)
      2. Gravity Bomb - 10 (should be 13 now)
      3. SDF-1 Lasers - 5 (should be 6 now)
    • Add VF-1S Veritech
      • Built-In Upgrades cost increase
        1. Long-Range Missiles - 5
        2. Gravity Bomb - 3
        3. SDF-1 Lasers - 1

So adding the VF-1S above will force it to include any Built-In Upgrades previously selected along with making the cost of that upgrade more.

I tried doing this through an Eval script in the Option for the VF-1S but that gave me an error about editing a non-sibling. I was checking if the parent had it enabled and then attempted to enable it in the child unit.

I tried doing it in the pre/postlink scripts of the Unit but discovered you can't set the option.selectable from there only read it.

Suggestions?
 
One way you could manage this is through having the options on the "container" unit as usual then on the child units (the VF-1S) with the same options on set up as:

(Using the long range missile as an example with unit id of longRM)
Nature: auto
Mirror: longRM (the option id)
Contingent on: longRM (the option id)

These will automatically be added if the parent has the options selected, that should take care of it for you
 
That worked and was so simple/elegant compared to what I was trying to do. Thank you so much!

There's so much to learn with this that even after having read information about those fields I had no idea to link them together. I wish there were more examples to understand the usage more.
 
It is one of the drawbacks with AB - it can do so much that sometimes you don't realise what the combination of the options and scripting can give you
 
Back
Top