crmcdonaljr Posted January 31, 2021 Share Posted January 31, 2021 I don't understand how this script snippet is working. I have a mod that is checking for factions using the following: IsInFaction("Immersive Wenches.esp"|0x0001716E) Looking under SSEEdit the faction is 0801716E for "Wenches Faction". I'm not seeing how a "bitwise or" would ever return true for the Wenches Faction. Does the 0 work like a mask that ignores the 8? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted January 31, 2021 Share Posted January 31, 2021 I don't know either. IsInFaction requires a faction to be passed into the akFaction parameter. Somehow, they're using a plugin name with a hex formID that points to the record local to the plugin. But I've never seen that done like this before. The normal method would be using GetFormFromFile. Link to comment Share on other sites More sharing options...
Reneer Posted February 1, 2021 Share Posted February 1, 2021 Yeah, this is definitely new to me as well. Link to comment Share on other sites More sharing options...
Evangela Posted February 1, 2021 Share Posted February 1, 2021 Does that mod require one of those papyrus utility(that isn't SKSE because while it enables bitwise usage, it doesn't do so in this fashion) frameworks? Link to comment Share on other sites More sharing options...
Recommended Posts