Jump to content

[LE] AI Package Functions


AbelsSkyrim

Recommended Posts

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

  • 2 weeks later...

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

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_Functions

This 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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...