Jump to content

jple

Premium Member
  • Posts

    6
  • Joined

  • Last visited

Nexus Mods Profile

About jple

Profile Fields

  • Country
    None

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

jple's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • One Month Later
  • One Year In
  • Week One Done

Recent Badges

0

Reputation

  1. That feature was unfortunately removed in Windows 10. You can still check the compression with image viewers like IrfanView, XnView MP etc. Some tools were released by Nvidia as well.
  2. So I finally figured it out! Thanks a lot for the help dylbill. Here's a complete solution on how to check if an item was stolen during bartering/adding to a container: Prepare a custom cell (no owner npc/faction) with a helper container inside it. Create a quest with a ReferenceAlias that references the merchant's/fence's trade chest. Add a script to the ReferenceAlias Auto-Fill all properties and pick the reference for the helper container in the custom cell.
  3. Just tested it and it works perfectly when adding an item to the fence's container from the player's inventory. However when bartering with the fence all items get tagged as stolen. Might be because through bartering the ownership of the item changes to the ActorBase of the fence. Tried changing the ownership of the container to None, that didn't change anything. Well, it's starting to seem like something like this will only be possible with an SKSE plugin. Might have to look up how to make one or abandon this feature.
  4. Thanks for the tip, had no idea that function exists. It works perfectly when I add a stolen item to the inventory or drop the item in the world. Unfortunately it doesn't work for items added to containers or items removed from the inventory during bartering, so it seems like you were right with the fact that items lose their reference on entering a container. Here's what I tried: I'll see if I can think of another solution in the meantime. EDIT: So I recalled that the OnStoryRemoveFromPlayer quest event exists and has an ObjectReference parameter. I'll see if that ObjectReference is persistent. EDIT2: So I tested that with the quest event then with an alias script which finds the matching reference from the event and takes the ItemRef data, and both work only when dropping the item, not when it's moved to a container. Too bad.
  5. Hey folks. New here, working on a mod that overhauls crime gameplay and the Thieves Guild. I'm looking for a way to track and save to a global variable the total value of stolen goods sold to fences (or to other vendors with the perk that allows to sell stolen goods to normal merchants). The first thing I tried is to look for the way it was done in Oblivion. The Thieves Guild in Oblivion has a TGStolenGoods quest that tracks this exact value and sets the quest's stages according to that value in the quest's script: The GetAmountSoldStolen function tracks the total value of stolen goods sold and it works as intended in Oblivion. I've found that this exact function still exists in Skyrim under the same name and is a condition function, so you can't execute it in Papyrus, you can only use it via conditions in the CK or the game's console. What I planned to do was to use ConsoleUtil (adds Papyrus functions that allow to execute console commands and read the output to a string) to get the desired value. Unfortunately, the function never seems to be modified by selling stolen items, it always stays at 0 value. I figured that the function that modifies the value just never gets called by the engine, so to use that was off the table. Next thing I tried was adding a script to a ReferenceAlias of the fence's merchant chest. In short the script listens for the OnItemAdded event and checks if the item is stolen using GetActorOwner (owner is not the player and is not None). Unfortunately I quickly realized that the owner is None most of the time (figured that the ObjectReference of the item is probably non-persistent). So here's what I ended up with at the end: This allows me to only track the value of any item(s) sold to a specific fence, regardless of the stolen tag. At this point honestly I don't mind if i just track the amount of stolen items sold, but I have no idea if that's possible either. I'd appreciate any help.
×
×
  • Create New...