Author Topic: [MULTI-MOD INTEGRATION] Research -> new setting "addDependencies"  (Read 2520 times)

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
It is a wish, or an idea to dig in...

Currently integrating some mods together, I think it coud be nice to have a new setting "addDependencies" at our disposition

Aim is to be able to keep two mods independent one from the other without having to make too many changes

Assuming that we have a global research node that contains already lot of dependencies
Code: [Select]
research:
  - name: STR_MYRESEARCH
    dependencies:
    - STR_MYDEPENDENCY01
    - ...
    - STR_MYDEPENDENCY15

Suppose now I created two new research nodes, that have to be included, if and only if exists, as dependencies of MYRESEARCH

It could be easy to declare

(1st Mod)
Code: [Select]
research:
  - name: STR_MYNEWRESEARCH1
  ...
  - name: STR_MYRESEARCH
    addDependencies:
    - STR_MYNEWRESEARCH1
(2nd Mod)
Code: [Select]
research:
  - name: STR_MYNEWRESEARCH2
  ...
  - name: STR_MYRESEARCH
    addDependencies:
    - STR_MYNEWRESEARCH2

EDIT :
Same idea for addUnlocks, addGetOneFree
And regarding "Manufacture" & "Ufopaedia" : addRequires

« Last Edit: June 11, 2014, 04:07:08 am by Aldorn »