Quick Reply
Search this Thread
Forum Resident
Original Poster
#1 Old 23rd Feb 2025 at 1:16 PM
Default Getting the NID of the subject of a memory
I think someone's done this before, but my interaction isn't working, so I'm hoping for some help.

I'm trying to that Person B accepts the interaction if Person A has a specific memory about Person B's sibling (long story). I can find the memory, using prim 33 Manage Inventory set to next token of GUID - but then I need to get the subject of that memory - preferably NID so I can look at their relationship with Person B using prim 1A relationship.

Thanks for any help
Lab Assistant
#2 Old 23rd Feb 2025 at 9:57 PM
Hi! I've done this before in my Confess adopting mod.

To get the NIP of a subject of memory you need only three nodes:
  • [prim 0x0033] Manage Inventory (Set To Next Token Of GUID) - the GUID is the memory. Set the category to"visible memory". Set some index, e.g. Local 0.
  • Once again use [prim 0x0033] Manage Inventory, but this time set it to "Read Token At Index Into Temp". Keep the same index as you used in the previous node.
  • And again [prim 0x0033] Manage Inventory, but select operation "Get Nth Property From Token In Temp". Set property to "Const 0x0136:0x0C ("Subject nID" Value: 0x000D)". The value the property is written into is the NID of memory's subject.
However, that mod is pretty old and I've learnt a little bit more about modding, so I think you can skip the second bullet point by going after [prim 0x0033] Manage Inventory (Set To Next Token Of GUID) directly for [prim 0x0033] Manage Inventory (Get Nth Property From Token At Index), while still keeping the index from the first node.

Let me know if it works!
Scholar
#3 Old 23rd Feb 2025 at 10:21 PM
Two possible pitfalls. In old versions of PJSE operations "Get Nth Property From Token At Index" (0F) and "Set Nth Property From Token At Index" (0E) are swapped. "From Token in Temp" are not swapped. Neighbors imported from a neighborhood template might have an invalid NID as the subject or the NID might be absent (the picture is still determined correctly by the GUID).
Forum Resident
Original Poster
#4 Old 24th Feb 2025 at 1:25 AM
Thank you very much, @Meduza and @jonasn - that's very helpful. I'll have a look at Const 0x0136 and check for the GUID as a backup to the NID (I think I know how to get the NID from the GUID), and I'll try the method Meduza originally suggested using "Read Token At Index Into Temp".
Lab Assistant
#5 Old 24th Feb 2025 at 6:50 PM
Quote: Originally posted by jonasn
Two possible pitfalls. In old versions of PJSE operations "Get Nth Property From Token At Index" (0F) and "Set Nth Property From Token At Index" (0E) are swapped. "From Token in Temp" are not swapped. Neighbors imported from a neighborhood template might have an invalid NID as the subject or the NID might be absent (the picture is still determined correctly by the GUID).

Thanks for the correction! I wasn't aware of that issue.
Back to top