Jump to content

Home

possible? - equiping one item blocks another


cry_of_paine

Recommended Posts

I wonder if it's possible to equip one item, that will block either another item or another type of item (preferably the latter). For instance, I want to have an item like an armband, which will prevent you from equiping any other type of item. Sort of a trade off - a very powerful item, but you can't use anything else.

 

I know in TSL you can set an option in the 2da (like with Mandalore's armor), so is there a way of firing a script when an item is equiped that would set that value on an equipment spot?

Link to comment
Share on other sites

I wonder if it's possible to equip one item, that will block either another item or another type of item (preferably the latter).

(snip)

I know in TSL you can set an option in the 2da (like with Mandalore's armor), so is there a way of firing a script when an item is equiped that would set that value on an equipment spot?

 

Essentially no. The only way I can think of to do this would involve a lot of extra work and is a pretty ugly workaround.

 

You'd essentially have to make a copy of all player appearance lines in appearance.2da and modify the equipslotslocked for these new duplicate lines to block out all other equipment slots.

 

Then you'd need to modify the party AI scripts to check if your item is equipped and the character uses one of the old appearance types. If so, unequip all other items with ActionUnequipItem() and use ChangeObjectAppearance() to switch the character to the duplicate appearance type with the locked equip slots.

 

Then the script needs to check if the player has one of the new appearance types but not the item equipped. If so, switch back to the old appearance type to unlock all the equip slots again.

 

This is a really ugly workaround though, and would only work for players who use one of the standard game appearance types. I may be forgetting or overlooking something, but I don't think there is another way to achieve what you are after. A lot more trouble than it's worth if you ask me. :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...