OpenXcom Forum

Modding => Work In Progress => Topic started by: robotcanine on September 25, 2014, 10:31:50 pm

Title: producedItems
Post by: robotcanine on September 25, 2014, 10:31:50 pm
has anyone tried this?
i was wondering if anyone tried to make 2 manufacture lists to produce the same item.
Title: Re: producedItems
Post by: Falko on September 25, 2014, 10:38:02 pm
tried it and works fine
so making "2 manufacture lists entries" is possible
Title: Re: producedItems
Post by: XOps on September 26, 2014, 03:39:13 am
You can also do this.
Code: [Select]
  - name: STR_HUMAN_PLASMA_PISTOL
    category: STR_WEAPON
    requires:
      - STR_HUMAN_PLASMA_PISTOL
    space: 3
    time: 600
    cost: 56000
    requiredItems:
      STR_ALIEN_ALLOYS: 1
      STR_WEAPON_COMPONENT: 1
    listOrder: 1402

  - name: STR_HUMAN_PLASMA_PISTOL2
    category: STR_WEAPON_REFURBISHED
    requires:
      - STR_ALIEN_PLASMA_PISTOL
    space: 3
    time: 600
    cost: 56000
    requiredItems:
      STR_ALIEN_PLASMA_PISTOL: 1
    producedItems:
      STR_HUMAN_PLASMA_PISTOL: 1
    listOrder: 1465

This produces the same item but has two different entries. One requires Alien Alloys, the other requires a captured alien weapon. With both requiredItems and producedItems allow a modder to basically make a crafting system.