Jump to content

Photo

AI Package Functions

package actor ai value procedure

  • Please log in to reply
4 replies to this topic

#1
AbelsSkyrim

AbelsSkyrim

    Journeyman

  • Members
  • Pip
  • 20 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!



#2
Shivzz0119

Shivzz0119

    Journeyman

  • Members
  • Pip
  • 40 posts

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



#3
AbelsSkyrim

AbelsSkyrim

    Journeyman

  • Members
  • Pip
  • 20 posts

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.



#4
foamyesque

foamyesque

    Old hand

  • Members
  • PipPipPip
  • 830 posts

There are two reference pages on the CK Wiki I never, ever close:

 

https://www.creation...: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.creation...ition_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.



#5
AbelsSkyrim

AbelsSkyrim

    Journeyman

  • Members
  • Pip
  • 20 posts

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.







Also tagged with one or more of these keywords: package, actor, ai, value, procedure

Page loaded in: 1.087 seconds