Author Topic: Resources for building  (Read 3209 times)

Offline Biggieboy

  • Colonel
  • ****
  • Posts: 220
    • View Profile
Resources for building
« on: April 17, 2018, 01:59:57 pm »
Is it posible for resources for buliding?

Example UFO powersource for Large general store or Large Living room building

Thank you!

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: Resources for building
« Reply #1 on: April 17, 2018, 02:04:44 pm »
Yes, in OXCE.

Offline Biggieboy

  • Colonel
  • ****
  • Posts: 220
    • View Profile
Re: Resources for building
« Reply #2 on: April 17, 2018, 02:06:18 pm »
Yes.

Great!

How is it possible? Can you show me example code?

Thank you!

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: Resources for building
« Reply #3 on: April 17, 2018, 02:07:29 pm »
Copypaste from documentation:

Code: [Select]
facilities:
  - type: STR_SOME_FACILITY
    buildCostItems:
      STR_ITEM:
        build: 10           #how many items of type `STR_ITEM` are require to build.
        refund: 6           #how many items are returned when facility is dismantled.
    provideBaseFunc: [ A ]  #List of custom IDs that this bulding provide for base.
    requiresBaseFunc: [ ]   #List of custom IDs that are require to build this building in base.
    forbidenBaseFunc: [ B ] #List of custom IDs that are forbiden by this building.
    trainingRooms: 0        #Number of solder that can be train in that building, require langue strings.
    refundValue: 0          #how much mony is returned when facility is dismantled.

Offline Biggieboy

  • Colonel
  • ****
  • Posts: 220
    • View Profile
Re: Resources for building
« Reply #4 on: April 17, 2018, 02:55:42 pm »
Copypaste from documentation:

Code: [Select]
facilities:
  - type: STR_SOME_FACILITY
    buildCostItems:
      STR_ITEM:
        build: 10           #how many items of type `STR_ITEM` are require to build.
        refund: 6           #how many items are returned when facility is dismantled.
    provideBaseFunc: [ A ]  #List of custom IDs that this bulding provide for base.
    requiresBaseFunc: [ ]   #List of custom IDs that are require to build this building in base.
    forbidenBaseFunc: [ B ] #List of custom IDs that are forbiden by this building.
    trainingRooms: 0        #Number of solder that can be train in that building, require langue strings.
    refundValue: 0          #how much mony is returned when facility is dismantled.

Great, thank you, its working!