aliens

Author Topic: Damage to inventory  (Read 1960 times)

Offline Bonakva

  • Colonel
  • ****
  • Posts: 187
    • View Profile
Damage to inventory
« on: January 22, 2021, 08:11:44 pm »
Tell me, can you edit the place where things appear in the ship? I want them to be located deeper in the ship, and not at the very exit
There are times when a bad grenade destroys my things ...

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Damage to inventory
« Reply #1 on: January 22, 2021, 08:18:50 pm »
Yes, use the `craftInventoryTile` attribute.

Offline Bonakva

  • Colonel
  • ****
  • Posts: 187
    • View Profile
Re: Damage to inventory
« Reply #2 on: January 23, 2021, 09:49:13 am »
If it's not difficult, you can explain with the example of a DRAGONFLY

I was looking for this attribute in crafts_XCOMFILES.rul file
But it is present in a small number of planes, I do not understand where and how to edit
« Last Edit: January 23, 2021, 09:51:12 am by Bonakva »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Damage to inventory
« Reply #3 on: January 23, 2021, 12:24:41 pm »
It's rather simple:

Code: [Select]
    craftInventoryTile: [9, 8, 1]

The three numbers describe map coordinates (X, Y and Z).

Offline Empiro

  • Captain
  • ***
  • Posts: 81
    • View Profile
Re: Damage to inventory
« Reply #4 on: January 23, 2021, 01:10:15 pm »
It'd be really nice if there could be some form of protection from explosions for stuff in that tile. It'd represent a weapons locker -- I'd like to think that X-Com agents don't just keep all their stuff in one big pile on the floor.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Damage to inventory
« Reply #5 on: January 23, 2021, 01:41:59 pm »
It'd be really nice if there could be some form of protection from explosions for stuff in that tile. It'd represent a weapons locker -- I'd like to think that X-Com agents don't just keep all their stuff in one big pile on the floor.

Agreed, but I'm not sure how it'd work.

Offline Bonakva

  • Colonel
  • ****
  • Posts: 187
    • View Profile
Re: Damage to inventory
« Reply #6 on: January 23, 2021, 02:13:46 pm »
I don't know how realizable it is in the code.
I see it this way. Place all things somewhere under the map, in a cell that is underground.
The place from which you can pick up things is highlighted, just like cells with moving up and down.
It's just not clear how to implement the selection of things from such a cell. It's like a portal...

It's rather simple:

Code: [Select]
    craftInventoryTile: [9, 8, 1]

The three numbers describe map coordinates (X, Y and Z).
I understand it. I don't understand another
DRAGONFLY doesn't have such an attribute, so I'm not sure how to edit it.