Difference between revisions of "Talk:IsOffLimits - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
(added notes for DJC to tidy up later)
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
DavidJCobb in Nexus Mod Author discord #coding-papyrus channel 19:12 GMT-6, Apr 9 2022:
[https://discord.com/channels/232168805038686208/714549835143053441/962505201468710912 DavidJCobb in Nexus Mod Author discord #coding-papyrus channel 19:12 GMT-6, Apr 9 2022]:
 
@Cecell if IsOffLimits is true for a ref, then its activation verb will be overwritten with "Steal" (most cases, including horses) or "Steal from" (containers)
@Cecell if IsOffLimits is true for a ref, then its activation verb will be overwritten with "Steal" (most cases, including horses) or "Steal from" (containers)



Latest revision as of 22:04, 9 April 2022

DavidJCobb in Nexus Mod Author discord #coding-papyrus channel 19:12 GMT-6, Apr 9 2022:

@Cecell if IsOffLimits is true for a ref, then its activation verb will be overwritten with "Steal" (most cases, including horses) or "Steal from" (containers)

notably, it doesn't seem to apply to pickpocketing, which uses a separate check (looks like it's based on whether the NPC you're crouch-aiming at is a teammate)

the function's actual behavior varies. i only skimmed it, but:

doors: check if the player is an effective owner; runs some other odd checks, maybe against the other side of the door furniture: always false if it's not a bed; if it's a bed, check if the player is an effective owner actors, but only while the player is sneaking: identical to the default case default case: check if the player is an effective owner

i only skimmed the effective owner check as well, but it basically checks whether an actor has direct or indirect ownership over a ref. for example, if the ref's owner is a faction, it checks whether the actor is in the same faction and has a high enough faction rank. the IsOffLimits is also passed to the UI but UI code is kinda tangled and i don't have time to dive in right now. maybe it colors the text red, but i thought the game uses tags embedded in the strings for that. ¯\_(ツ)_/¯ the important thing is that it exists in service to the UI, to let you know if doing a thing (or at least some specific things) would be a crime gotta head off my PC for now but @ me a reminder or something and i can tidy these notes up for the UESPCK wiki