Skip to content

Releases: fireundubh/LibFire

LibFire

23 May 08:45
Compare
Choose a tag to compare

Compiled with CommonLibSSE-NG 3.2.3 to support Skyrim SE and AE from a single binary

Removed functions:

; Returns armor items equipped in each slot in `argArmorSlots` (can be empty), and each weapon equipped in either hand
; when `abLeftWeapon` or `abRightWeapon` are True (Note: Return values are in array order and can be None)
Form[] Function GetWornEquipmentInSlots(Actor akActor, Int[] argArmorSlots, Bool abWeaponL, Bool abWeaponR) Global Native

This function was strangely nonfunctional. May restore later. A version of this function was implemented in LibTurtleClub specifically for Master of Disguise.

LibFire

08 Jun 22:11
Compare
Choose a tag to compare

Fixed issue where new perk functions did not work correctly on player reference

Affected functions:

  • ActorFindAnyPerk
  • ActorHasPerkRank
  • GetActorPerkRank
  • GetActorPerks

LibFire

02 Jun 05:30
Compare
Choose a tag to compare

Added new functions:

; Returns the index of the first keyword in `argKeywords` assigned to `akActor` - if not found, -1 is returned
Int Function ActorFindAnyKeyword(Actor akActor, Keyword[] argKeywords) Global Native

; Returns the index of the first perk in `argPerks` assigned to `akActor` - if not found, -1 is returned
Int Function ActorFindAnyPerk(Actor akActor, Perk[] argPerks) Global Native

; Returns whether `akActor` has `akPerk` and its rank is `aiRank` - if match not found, `False` is returned
Bool Function ActorHasPerkRank(Actor akActor, Perk akPerk, Int aiRank) Global Native

; Returns the current rank of `akPerk` assigned to `akActor` - if perk not assigned, -1 is returned
Int Function GetActorPerkRank(Actor akActor, Perk akPerk) Global Native

; Returns an array of perks assigned to `akActor`
Perk[] Function GetActorPerks(Actor akActor) Global Native

Removed functions:

; Returns whether `asText` contains `asSubText` case-sensitively
Bool Function ContainsStr(String asText, String asSubText) Global Native

All string comparisons in Papyrus are case-insensitive, so ContainsText is all you need. If you need case sensitivity, don't use strings directly.

LibFire

27 May 19:53
Compare
Choose a tag to compare

Fixes:

  • Fixed issue where Archery actor value did not convert to "Marksman" string
  • Fixed issue where Speech actor value did not convert to "Speechcraft" string

These fixes impact the following functions:

  • GetPermanentActorValue
  • GetRaceSkillBonus

LibFire

27 May 08:34
Compare
Choose a tag to compare

Added new functions:

; Returns the permanent value of `asActorValue` for `akActor`
Float Function GetPermanentActorValue(ObjectReference akActor, String asActorValue) Global Native

; Returns the skill boost value of `asActorValue` for `akRace`
Int Function GetRaceSkillBonus(Race akRace, String asActorValue) Global Native

; Returns names of boosted actor values for `akRace`
String[] Function GetRaceSkills(Race akRace) Global Native

; Returns the base male height for `akRace`
Float Function GetRaceMaleHeight(Race akRace) Global Native

; Returns the base female height for `akRace`
Float Function GetRaceFemaleHeight(Race akRace) Global Native

; Returns the base male weight for `akRace`
Float Function GetRaceMaleWeight(Race akRace) Global Native

; Returns the base female weight for `akRace`
Float Function GetRaceFemaleWeight(Race akRace) Global Native

; Returns the starting health for `akRace`
Float Function GetRaceStartingHealth(Race akRace) Global Native

; Returns the starting magicka for `akRace`
Float Function GetRaceStartingMagicka(Race akRace) Global Native

; Returns the starting stamina for `akRace`
Float Function GetRaceStartingStamina(Race akRace) Global Native

; Returns the base carry weight for `akRace`
Float Function GetRaceCarryWeight(Race akRace) Global Native

; Returns the base mass for `akRace`
Float Function GetRaceMass(Race akRace) Global Native

; Returns the base health regen for `akRace`
Float Function GetRaceHealthRegen(Race akRace) Global Native

; Returns the base magicka regen for `akRace`
Float Function GetRaceMagickaRegen(Race akRace) Global Native

; Returns the base stamina regen for `akRace`
Float Function GetRaceStaminaRegen(Race akRace) Global Native

; Returns the base unarmed damage for `akRace`
Float Function GetRaceUnarmedDamage(Race akRace) Global Native

; Returns the base unarmed reach for `akRace`
Float Function GetRaceUnarmedReach(Race akRace) Global Native

Removed function:

; Attempts to affix full name of `akMessage` to display name for `akRef`, and returns whether operation was successful
;   If `abPrepend` is True, the message name will be prepended. If False, the name will be appended.
;   If `abForce` is True, display names set by quest aliases will be overridden.
Bool Function TryAffixDisplayName(ObjectReference akRef, Message akMessage, Bool abPrepend, Bool abForce) Global Native

LibFire

21 May 19:53
Compare
Choose a tag to compare

Added new functions:

; Replaces `{}` tokens in `asFormat` with `argValues` (supports up to 9 values)
;   Note: Arrays exceeding the maximum number of values will be truncated.
;   Syntax: https://fmt.dev/latest/syntax.html
String Function FormatFloat(String asFormat, Float[] argValues) Global Native

; Replaces `{}` tokens in `asFormat` with `argValues` (supports up to 9 values)
;   Note: Arrays exceeding the maximum number of values will be truncated.
;   Syntax: https://fmt.dev/latest/syntax.html
String Function FormatInt(String asFormat, Int[] argValues) Global Native

; Replaces `{}` tokens in `asFormat` with `argValues` (supports up to 9 values)
;   Note: Arrays exceeding the maximum number of values will be truncated.
;   Syntax: https://fmt.dev/latest/syntax.html
String Function FormatString(String asFormat, String[] argValues) Global Native

; Returns highest minimum skill level for `akSpell` (does not account for conditions, like level-based perks)
Int Function GetHighestMinSkillLevelForSpell(Spell akSpell) Global Native

LibFire

19 May 04:04
Compare
Choose a tag to compare

Added new functions:

; Returns books in loaded cells within `afRadius` of `akOrigin`
ObjectReference[] Function FindNearbyBooks(ObjectReference akOrigin, Float afRadius) Global Native

; Attempts to affix full name of `akMessage` to display name for `akRef`, and returns whether operation was successful
;   If `abPrepend` is True, the message name will be prepended. If False, the name will be appended.
;   If `abForce` is True, display names set by quest aliases will be overridden.
Bool Function TryAffixDisplayName(ObjectReference akRef, Message akMessage, Bool abPrepend, Bool abForce) Global Native

LibFire

17 May 21:08
Compare
Choose a tag to compare

Added new functions:

; Returns actors in loaded cells within `afRadius` of `akOrigin`
Actor[] Function FindNearbyActors(ObjectReference akOrigin, Float afRadius) Global Native

; Returns commanded actors in loaded cells within `afRadius` of `akOrigin` who are controlled by `akOrigin`
Actor[] Function FindNearbyCommandedActors(ObjectReference akOrigin, Float afRadius) Global Native

; Returns teammates and player-controlled commanded/summoned actors in loaded cells within `afRadius` of player
Actor[] Function FindNearbyFollowers(Float afRadius) Global Native

; Returns summoned actors in loaded cells within `afRadius` of `akOrigin`
Actor[] Function FindNearbySummons(ObjectReference akOrigin, Float afRadius) Global Native

; Returns teammates in loaded cells within `afRadius` of player
Actor[] Function FindNearbyTeammates(Float afRadius) Global Native

LibFire

15 May 21:59
Compare
Choose a tag to compare

Added new function:

; Returns the ammo currently equipped by `akActor`
Ammo Function GetEquippedAmmo(Actor akActor) Global Native

LibFire

15 May 21:27
Compare
Choose a tag to compare

Added new function:

; Returns an array of commanded actors for `akActor` or `None`
Actor[] Function GetCommandedActors(Actor akActor) Global Native