Difference between revisions of "GetCurrentAIPackage"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Egocarib
(Created page with " Category:Condition Functions")
 
imported>DavidJCobb
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Identifies an actor's current AI package, and returns the number representing that package's type.


Package numbers below are taken from the SKSE source code and from community reverse-engineering efforts in general. There is some overlap between package types and [[:Category:Procedures|procedure]] types, given that procedures have only recently been made configurable; some package types exist just to execute a basic procedure.
{| class="wikitable"
|+ Package/procedure types
|-
! Number !! Type
|-
| -1 || Returned for any invalid type number, and for valid type numbers above 31.
|-
| 0 || Find
|-
| 1 || Follow
|-
| 2 || [[Escort (Procedure)|Escort]]
|-
| 3 || [[Eat (Procedure)|Eat]]
|-
| 4 || [[Sleep (Procedure)|Sleep]]
|-
| 5 || [[Wander (Procedure)|Wander]]
|-
| 6 || [[Travel (Procedure)|Travel]]
|-
| 7 || Accompany
|-
| 8 || Use Item At
|-
| 9 || Ambush
|-
| 10 || Flee (not combat)
|-
| 11 || [[UseMagic (Procedure)|UseMagic]]
|-
| 12 || [[Sandbox (Procedure)|Sandbox]]
|-
| 13 || [[Patrol (Procedure)|Patrol]]
|-
| 14 || [[Guard (Procedure)|Guard]]
|-
| 15 || Dialogue
|-
| 16 || [[UseWeapon (Procedure)|UseWeapon]]
|-
| 17 || Find2
|-
| 18 || Package
|-
| 19 || Package Template
|-
| 20 || [[Activate (Procedure)|Activate]]
|-
| 21 || Alarm
|-
| 22 || Flee
|-
| 23 || Trespass
|-
| 24 || Spectator
|-
| 25 || React to Dead.
|-
| 26 || Get Up From Chair
|-
| 27 || Do Nothing
|-
| 28 || In-Game Dialogue
|-
| 29 || Surface
|-
| 30 || Search for Attacker
|-
| 31 || Avoid Player
|}
== Notes ==
* To check for package types 37 and 38, use [[GetVampireFeed]] and [[GetCannibal]], respectively.


[[Category:Condition Functions]]
[[Category:Condition Functions]]

Latest revision as of 20:35, 6 March 2019

Identifies an actor's current AI package, and returns the number representing that package's type.

Package numbers below are taken from the SKSE source code and from community reverse-engineering efforts in general. There is some overlap between package types and procedure types, given that procedures have only recently been made configurable; some package types exist just to execute a basic procedure.

Package/procedure types
Number Type
-1 Returned for any invalid type number, and for valid type numbers above 31.
0 Find
1 Follow
2 Escort
3 Eat
4 Sleep
5 Wander
6 Travel
7 Accompany
8 Use Item At
9 Ambush
10 Flee (not combat)
11 UseMagic
12 Sandbox
13 Patrol
14 Guard
15 Dialogue
16 UseWeapon
17 Find2
18 Package
19 Package Template
20 Activate
21 Alarm
22 Flee
23 Trespass
24 Spectator
25 React to Dead.
26 Get Up From Chair
27 Do Nothing
28 In-Game Dialogue
29 Surface
30 Search for Attacker
31 Avoid Player

Notes[edit | edit source]