OpenXcom Forum

Modding => Help => Topic started by: Docent on November 24, 2019, 07:44:24 pm

Title: Research (mod+submod)
Post by: Docent on November 24, 2019, 07:44:24 pm
The question is simple: if in mod resarch.rul the code is:
  - name: STR_ETHEREAL_LEADER
    unlocks:
      - STR_U1
      - STR_U2
    getOneFree:
      - STR_F1
      - STR_F2
and I do in submod like this:
  - name: STR_ETHEREAL_LEADER
    getOneFree:
      - STR_F3
then in the end the game should read this as:
  - name: STR_ETHEREAL_LEADER
    unlocks:
      - STR_U1
      - STR_U2
    getOneFree:
      - STR_F1
      - STR_F2
      - STR_F3
???????
I thought it worked like that, everything else worked like that, but for some reason it didn't.
Yes or no answer will be enough for me.

EDIT: I changed my mind if the answer is no, then I would like a more extended answer :)
Title: Re: Research (mod+submod)
Post by: Meridian on November 24, 2019, 08:23:37 pm
No.

All attributes that you mod get replaced (not mixed, merged or anyhow else combined):
- if a value was 24 and you change it to 42... only 42 remains
- if a value was [1,2,3,4] and you change it to [5,6,7]... only [5,6,7] remains (not [1,2,3,4,5,6,7])

...everything else worked like that, but for some reason it didn't.

Actually, quite the opposite, nothing works like that (with maybe 1 or 2 exceptions which I won't even mention to not confuse you).
Title: Re: Research (mod+submod)
Post by: Docent on November 25, 2019, 10:59:00 am
 :o
Thanks...