SeraphimKensai Posted September 29, 2018 Share Posted September 29, 2018 Hello everyone, I'm playing around with formlists and trying to determine the most effective means of populating a formlist based on Player-NPC Disposition. Ideally, does anyone know of a means to utilize a script to auto-populate 2 formlists, one for hostile NPCs and one for allied/neutral NPCs? I could painstakingly go through the actor list adding various actors to each formlist, but that doesn't do me any good for actors added via mods. Or alternatively would it make sense to try and populate the formlists via factions that the actors belong to instead of filling it with tons of actors? I'm trying to use these formlists to filter which magiceffect is used on either an enemy or not an enemy for an effect at the moment (essentially disabling friendly fire for specific effect). Thanks for any help as usual. Link to comment Share on other sites More sharing options...
foamyesque Posted September 29, 2018 Share Posted September 29, 2018 Have you considered using the condition function IsHostileToActor in the magic effect instead? Link to comment Share on other sites More sharing options...
SeraphimKensai Posted September 29, 2018 Author Share Posted September 29, 2018 Normally I would, but the spell's origin is a miscellaneous items, and not a traditional magic effect, so the purpose for the FormList is to help with targeting. I started looking at the CK's example script for firing spells from an item, and there's not a lot of explanation behind it, so I'm mostly could confused on how that acquires targets as it specifies a Target FormList, but it doesn't really suggest what might actually work in the FormList. Link to comment Share on other sites More sharing options...
Recommended Posts