@@ -5,9 +5,18 @@ Papyrus extensions by fireundubh
55## Actor Functions
66
77``` papyrus
8+ ; Returns the index of the first keyword in `argKeywords` assigned to `akActor` - if not found, -1 is returned
9+ Int Function ActorFindAnyKeyword(Actor akActor, Keyword[] argKeywords) Global Native
10+
11+ ; Returns the index of the first perk in `argPerks` assigned to `akActor` - if not found, -1 is returned
12+ Int Function ActorFindAnyPerk(Actor akActor, Perk[] argPerks) Global Native
13+
814; Returns whether `akActor` has any keyword in `akKeywords`
915Bool Function ActorHasAnyKeyword(Actor akActor, FormList akKeywords) Global Native
1016
17+ ; Returns whether `akActor` has `akPerk` and its rank is `aiRank` - if match not found, `False` is returned
18+ Bool Function ActorHasPerkRank(Actor akActor, Perk akPerk, Int aiRank) Global Native
19+
1120; Returns whether `akActor` is commanded by `akOtherActor`
1221Bool Function ActorIsCommandedBy(Actor akActor, Actor akOtherActor) Global Native
1322
@@ -26,6 +35,12 @@ Bool Function ActorIsInFaction(Actor akActor, Faction akFaction) Global Native
2635; Returns whether `akActor` is a summoned actor
2736Bool Function ActorIsSummoned(Actor akActor) Global Native
2837
38+ ; Returns the current rank of `akPerk` assigned to `akActor` - if perk not assigned, -1 is returned
39+ Int Function GetActorPerkRank(Actor akActor, Perk akPerk) Global Native
40+
41+ ; Returns an array of perks assigned to `akActor`
42+ Perk[] Function GetActorPerks(Actor akActor) Global Native
43+
2944; Returns an array of commanded actors for `akActor` or `None`
3045Actor[] Function GetCommandedActors(Actor akActor) Global Native
3146
@@ -140,10 +155,7 @@ Float Function GetRaceUnarmedReach(Race akRace) Global Native
140155## String Functions
141156
142157``` papyrus
143- ; Returns whether `asText` contains `asSubText` case-sensitively
144- Bool Function ContainsStr(String asText, String asSubText) Global Native
145-
146- ; Returns whether `asText` contains `asSubText` case-insensitively
158+ ; Returns whether `asText` contains `asSubText` (all Papyrus string comparisons are case-insensitive)
147159Bool Function ContainsText(String asText, String asSubText) Global Native
148160
149161; Replaces `{}` tokens in `asFormat` with `argValues` (supports up to 9 values)
0 commit comments