LostData751 Posted August 12, 2020 Posted August 12, 2020 Hello, I've been using a custom script effect spell I created to remove NPCs from any factions they are on, but it seems it is causing other actors with the same cell to also be removed from factions, I'd like to know if there's something that isn't right or whatever is causing this odd behaviour of the script. EDIT: The issue I'm having happens when I recast said spell on an actor that already had their factions removed. Here is the script. Spoiler scn FactionCheckR ref me ref fac1 ref fac2 ref fac3 ref fac4 ref fac5 Begin ScriptEffectStart set me to GetSelf set fac1 to me.GetNthFaction 0 set fac2 to me.GetNthFaction 1 set fac3 to me.GetNthFaction 2 set fac4 to me.GetNthFaction 3 set fac5 to me.GetNthFaction 4 printC "Original Factions: F1 %n, F2 %n, F3 %n, F4 %n, F5 %n" fac1 fac2 fac3 fac4 fac5 me.SetFactionRank fac1 -1 me.SetFactionRank fac2 -1 me.SetFactionRank fac3 -1 me.SetFactionRank fac4 -1 me.SetFactionRank fac5 -1 End
LostData751 Posted August 13, 2020 Author Posted August 13, 2020 Actually, it seems actors identical to those who had the spell cast on seem to already be in no faction, so if I cast it on a bandit, the next bandit that is the same spawned due to a leveled list, will already be out of the faction, is there a way to have the desired effect only on the targeted actor and is there a way to revert the just now mentioned issue?
mem4ob4 Posted August 15, 2020 Posted August 15, 2020 If you have not already, you might check this entry discussion in the construction set wiki- DiscussionOfSetFactionRank I have not seen OBSE able to get around this issue. Mem
Recommended Posts
Archived
This topic is now archived and is closed to further replies.