OpenXcom Forum

Modding => Released Mods => The X-Com Files => Topic started by: Bonakva on January 22, 2021, 08:11:44 pm

Title: Damage to inventory
Post by: Bonakva 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 ...
Title: Re: Damage to inventory
Post by: Meridian on January 22, 2021, 08:18:50 pm
Yes, use the `craftInventoryTile` attribute.
Title: Re: Damage to inventory
Post by: Bonakva 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
Title: Re: Damage to inventory
Post by: Solarius Scorch 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).
Title: Re: Damage to inventory
Post by: Empiro 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.
Title: Re: Damage to inventory
Post by: Solarius Scorch 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.
Title: Re: Damage to inventory
Post by: Bonakva 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.