AbelsSkyrim Posted October 14, 2018 Share Posted October 14, 2018 Hi fellow modders. Fairly new to SKYRIM modding, but veteran from other games. I'm trying to work without SKSE (for now) and was attempting to get a specific function out of the vanilla AI packages.I want certain NPCs to loot valuable items from corpses they notice. I'm trying to use a dead body override, based on the acquire package, and believe this is the best way. I've set it up to search the corpse that triggered the interrupt, for items based on a link referenced keyword. But this would mean serious incompatibility, and eons going through the item list applying the keyword to the items I want the script to loot, and even if using a FormList helps with compatibility, that would also mean tedious work.I was reading through the list of procedures, and even item conditions, to hopefully find some way for the acquire package to use "take item if value(in gold) => X". But I found nothing obvious. Basically, I would want to command the acquire script to take any items off a dead body that are greater than SOME GOLD VALUE (or something similar). I just haven't been around all the functions enough to know if/where one exists, and thought I'd come here to ask if anyone knew before I spend the next few days creating form lists and sifting through all the items. Or perhaps I'm doing this inefficiently, and you know a better method! Any help appreciated, thanks! Link to comment Share on other sites More sharing options...
Shivzz0119 Posted October 21, 2018 Share Posted October 21, 2018 I'm not quite sure, but would you consider using a script that tests whether the dead NPC has items more valuable than x amount of gold, then if true, the NPC takes it? That's what first came to my mind Link to comment Share on other sites More sharing options...
AbelsSkyrim Posted October 30, 2018 Author Share Posted October 30, 2018 I wouldn't mind writing scripts at all. Just don't know what the vanilla scripts are capable of. SKSE works great and all, and I'm 100% sure the extended capabilities of it would fulfill my needs, but if you mess something up, or use too many new scripts you have serious runtime problems, lag, get CTDs, etc. I'd rather find a way to make this mod without adding to the possibility of that stuff, and was hoping someone could kind of just point me in the right direction for that. Like I said, I don't even know where to look for functions like getgoldvalue or object identities. Eventually I'll find it/learn it, I was just hoping somebody could save me a little time by giving me some advice where to start, and if need be some good hints for some key functions I'd have to use in a script. Link to comment Share on other sites More sharing options...
foamyesque Posted October 30, 2018 Share Posted October 30, 2018 There are two reference pages on the CK Wiki I never, ever close: https://www.creationkit.com/index.php?title=Category:Script_Objects This page lists every vanilla (and most SKSE) script object, in a tree structure. Click on any particular one to drill down into the specifics. Functions from further up the tree are inherited, so that, for example, the ObjectReference script object has access to all of the Form script object's functions (because all ObjectReferences are Forms).https://www.creationkit.com/index.php?title=Category:Condition_FunctionsThis page lists every condition function Skyrim has. Condition functions are used in things like spells, quests, dialogue, and so on. In most cases they have a Papyrus equivalent, but not always; there are things you can do with condition functions you can't do with ordinary scripting. Link to comment Share on other sites More sharing options...
AbelsSkyrim Posted October 30, 2018 Author Share Posted October 30, 2018 PogChamp. I have seen the list of condition functions, which clicking the confusing ones gives no description lol. But the object map is quite useful, exactly where I want to start, thank you. Link to comment Share on other sites More sharing options...
Recommended Posts