Jump to content

Home

Locking an item in


Darth_Enix

Recommended Posts

Lando: Enix is asking how does he make it so an item a person is carrying is not removable for K1 in the same way Mandalores armour is not removeable from Mandalore in K2.

 

Enix: I haven't looked at Mandalores utc file so can't help you there sorry but I think a few others have been able to make his armour removable so they could point out what they changed from the original files.

Link to comment
Share on other sites

Lando: Enix is asking how does he make it so an item a person is carrying is not removable for K1 in the same way Mandalores armour is not removeable from Mandalore in K2.

 

Enix: I haven't looked at Mandalores utc file so can't help you there sorry but I think a few others have been able to make his armour removable so they could point out what they changed from the original files.

 

Isn't that what the "dropable" flag is for on inventory items; to prevent an item from being removed?

Link to comment
Share on other sites

Isn't that what the "dropable" flag is for on inventory items; to prevent an item from being removed?

 

No, it just prevents the item from being dropped as loot when the creature dies, it does not prevent unequipping the item.

 

Preventing an equipment slot from being changed by the player is done in the appearance.2da file on a per appearancetype basis by setting bitflags in the equipslotslocked column.

 

Add together the numbers between the paranthesises below for the slots you wish to lock and put the resulting sum in that column, where:

 

Head (1)

Body (2)

Unknown (4)

Hands (8)

Right Weapon (16)

Left Weapon (32)

Unknown (64)

Left forearm (128)

Right forearm (256)

Implant (512)

Belt (1024)

 

Remember that this will only prevent the item from being unequipped/equipped on the inventory screen. A script calling ActionUnequipItem() will still remove it, and using ActionEquipItem() will put an item in that slot anyway.

 

I think that feature is something they added in TSL though, so my guess would be that no, it's not possible to do in KotOR1.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...