Author Topic: producedItems  (Read 2362 times)

Offline robotcanine

  • Squaddie
  • *
  • Posts: 1
    • View Profile
producedItems
« 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.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: producedItems
« Reply #1 on: September 25, 2014, 10:38:02 pm »
tried it and works fine
so making "2 manufacture lists entries" is possible

Offline XOps

  • Colonel
  • ****
  • Posts: 193
  • Guy who drowns first
    • View Profile
Re: producedItems
« Reply #2 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.