×
Fallout Wiki
Icon vaulttec.png  Fallout Mods - Independent Fallout Wiki  Icon vaulttec.png

Lighthouse Papyrus Extender - String

String Functions[edit]

HexToInt[edit]

  • Converts a hex string to an integer
int Function HexToInt(string hexString) global native

IntToBin[edit]

  • Converts an integer to binary, with the optional abAddPrefix parameter to prefix 0b to the output
    • aiBinWidth allows to choose how many leading zeros are present, but is capped at 32 i.e. 111111111111111111111111111111111111
string Function IntToBin(int aiNumToConvert, int aiBinWidth, bool abAddPrefix) global native

IntToHex[edit]

  • Converts an integer to hex, with the optional abAddPrefix parameter to prefix 0x to the output
    • aiHexWidth allows to choose how many leading zeros are present, but is capped at 8 i.e. FFFFFFFF
string Function IntToHex(int aiNumToConvert, int aiHexWidth, bool abAddPrefix) global native

StringToInt[edit]

  • Extracts integers from a string e.g. 123abc456 will be returned as 123
int Function StringToInt(string asIntString) global native


Index
Index
ActiveEffect
GetDuration
GetElapsedTime
GetMagnitude
Actor
AreHostileActorsInRange
ExitCover
GetActiveEffects
GetActorFactionsFromList
GetActorsByVerticalDistance
GetActorsInRange
GetActorsTargetingActor
GetArmorFormOnBipedSlot
GetClosestActorWithKeyword
GetCombatStyle
GetCommandedActors
GetEncumbranceRate
GetEquippedWeight
GetHighActorsByRace
GetHighActorsHostileToActor
GetHighActorsInCombat
GetHighDeadActors
GetKnockState
GetLifeState
GetOffersServices
GetRunningPackage
GetTimeDead
GetTimeOfDeath
GetVendorContainerRef
GetVendorFaction
GetWeaponAmmoCapacity
GetWeaponAmmoCount
GetWeaponAmmoType
GetWeaponMagCount
HasActiveMagicEffect
HasFactionFromList
IsCrippled
IsFleeing
IsFollowing
IsFollowingActor
IsInKillMove
IsJumping
IsKeywordOnWeapon
IsPathing
IsPathingComplete
IsPathValid
IsQuadruped
IsStaggered
IsTakingHealthDamage
IsTakingRadDamage
IsTresspassing
IsUnderwater
RemoveActorFromArray
ResetInventory
SetActorAttackingDisabled
SetDoNotShowOnStealthMeter
SetWeaponAmmoCount
StowWeapon
ActorBase
GetActorBaseCombatStyle
GetDeathItem
GetFactions
GetPerkCount
GetRelationships
HasAutoCalcStats
HasPCLevelMult
SetDeathItem
ActorValue
GetFormBaseValue
Ammo
GetAmmoDamage
GetAmmoProjectile
SetAmmoDamage
SetAmmoProjectile
Armor
GetArmorHealth
Array
CreateArrayActor
CreateArrayBool
CreateArrayCOBJ
CreateArrayFloat
CreateArrayForm
CreateArrayInt
CreateArrayRef
CreateArrayString
ResizeArrayActor
ResizeArrayBool
ResizeArrayCOBJ
ResizeArrayFloat
ResizeArrayForm
ResizeArrayInt
ResizeArrayRef
ResizeArrayString
SortArrayFloat
SortArrayInt
SortArrayString
Book
GetCurrentHolotape
IsHolotapePlaying
PauseHolotape
PlayHolotape
SetPerkToAdd
Cell
GetCanWaitInCell
IsExterior
CombatStyle
SetCombatStyleValue
SetFormCombatStyle
Debug
CrashTheGame
DoNothing
GetGameDirectory
GetLighthouseVersion
GetSystemTime
Faction
GetFactionVendorContainerRef
Form
ClearRecordFlag
GetFormEditorID
GetFormType
IsDynamicForm
IsFormInMod
IsRecordFlagSet
SetRecordFlag
Game
GetActorsByProcessingLevel
Hazard
ClearHazardFlag
GetHazardArt
GetHazardIMOD
GetHazardIMODRadius
GetHazardIPDS
GetHazardLifetime
GetHazardLight
GetHazardLimit
GetHazardRadius
GetHazardSound
GetHazardSpell
GetHazardTargetInterval
IsHazardFlagSet
SetHazardArt
SetHazardIMOD
SetHazardIMODRadius
SetHazardIPDS
SetHazardLifetime
SetHazardLight
SetHazardLimit
SetHazardRadius
SetHazardSound
SetHazardSpell
SetHazardTargetInterval
Keyword
FindClosestReferenceWithKeyword
IsKeywordInNPCForm
RemoveKeywordFromArray
LeveledList
GetChanceNoneGlobal
GetLeveledListChanceNone
GetLeveledListObjects
GetUseAll
RemoveScriptAddedLeveledObjects
SetChanceNoneGlobal
SetLeveledListChanceNone
Location
GetChildLocations
Math
BinomialCoefficient
BinomialDistribution
BinomialDistributionCumulative
GaussianDistribution
LogAddExp
PoissonDistribution
PoissonCumulativeProbability
ObjectReference
AddItem32
FilterRefArrayByKeywords
GetAnimationLength
GetAnimationTime
GetClosestActorFromRef
GetDoorDestination
GetInventoryItemsAsArray
GetWeightInContainer
IsContainerFlagSet
IsInWater
SetDoorDestination
SetHealthPercent
PlayerCharacter
GetAllMapMarkers
GetFollowerCount
IsInGodMode
IsImmortal
IsPipboyLightOn
IsThirdPersonModelShown
TogglePipBoyLight
Projectile
GetProjectileDataValue
SetProjectileDataValue
String
HexToInt
IntToBin
IntToHex
StringToInt
VATS
GetVATSCriticalCharge
SetVATSCriticalCharge
SetVATSCriticalCount
Weather
GetPrecipitationType
GetWeatherFogData
SetWeatherFogData