Project

General

Profile

Bug #3609

Items confiscated to evidence chest have their owner changed

Added by Hla Mas 12 months ago. Updated 24 days ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Game Mechanics
Target version:
Start date:
11/01/2016
% Done:

0%

Reproducibility:
Always
Operating system:
Other
Severity:
Normal

Description

Items confiscated to evidence chests in OpenMW 0.40 have their "stolen" tags decremented, which may cause unpredictable vendor behaviour.

To reproduce:

Console> tfh
Steal X items of the same ID that belong to vendor Foo
(crime has been reported or not = no difference)
Get caught by guard for any crime
Pay gold/Go to Jail
locate evidence chest
open it

The confiscated item will have its "X stolen from Foo" removed
If you steal the item at this point it will just have "X stolen from imperial legion"
However, you can now sell the item to a vendor who was the original owner

Other cases:

Steal 2 items of the same ID = 1 from Bar, 1 from Foo
(the stolen tags seem to be ordered alphabetically)

Get caught with 1 item on you and go open evidence chest
The stolen item will have "1 stolen from Foo"
The first tag has been removed when the item was placed in the chest

Steal 2 items of the same ID = 2 from Foo

Get caught with 2 items on you and go open evidence chest
The item will have no "stolen" tags

The system seems to decrement the "stolen" tags on item IDs.
It subtracts "stolen" tags based on the number of items of the same ID which have been confiscated
It removes the "stolen from" tag from the item ID, if the counter on the tag reaches 0

Problem:

If a player steals a bunch of items and gets caught, they may be inclined to visit the local evidence chest to get the stuff back.

1. Selling some of the stuff back to their original owner may work peacefully, as the "X stolen from ..." tag has gone from X to 0, and disappeared entirely from the item.

2. Multiple item copies that were stolen from a single owner, or a single copy stolen from multiple owners, may trigger a hostile response upon sellback. It all depends on how many of the stolen items have been confiscated.

Exploit:

Advance in the Imperial Legion:

high enough to loot the evidence chest legally
without getting "stolen from imperial legion" tags
repeatedly get caught and loot the items
reset any "stolen" tags on all items down to 0
sell everything back to their original owners.

The original game preserved "owner" tags on the items (seems similar to "stolen from" tags in OpenMW), even when they were confiscated to evidence chests.

History

#1 Updated by Alexei Dobrohotov about 1 month ago

  • Category set to Game Mechanics

#2 Updated by scrawl . about 1 month ago

  • Subject changed from Items confiscated to evidence chest have "stolen from" decremented / removed to Items confiscated to evidence chest have their owner changed
  • Status changed from New to Confirmed

Problem is here - items added to a container implicitely change their owner to that of the container. A more sane behavior might be to only set the owner if the item previously had no owner, just need to be careful we're not breaking anything else.

#3 Updated by Alexei Dobrohotov 24 days ago

  • Target version set to openmw-1.0
  • Operating system changed from Linux to Other

Also available in: Atom PDF