Background for Fallout 4

The StringUtil Script

    The StringUtil script is a part of Fallout 4’s Papyrus scripting ecosystem. This script is not present in the vanilla game, but can be found in modded sources like Baka Framework (Baka).

    For this script, the Papyrus index knows about:

    • 12 functions


    Inheritance Tree

    No indexed scripts extend this script.

    Structs

    The Papyrus Index is still under construction. Structs have not been implemented yet.

      Properties

      No properties found.

        Events

          No events found.

        Functions

        • intfunctionGetLength(stringasString)NativeGlobal

          Returns the length of the given string

        • stringfunctionGetNthCharacter(stringasString, intaiIndex)NativeGlobal

          Returns the character at the passed index of the given string

        • boolfunctionIsLetter(stringasChar)NativeGlobal

          Returns true if the given character is a letter, if more than a character is passed, only the first character is checked

        • boolfunctionIsDigit(stringasChar)NativeGlobal

          Returns true if the given character is a digit, if more than a character is passed, only the first character is checked

        • boolfunctionIsPunctuation(stringasChar)NativeGlobal

          Returns true if the given character is punctuation, if more than a character is passed, only the first character is checked

        • boolfunctionIsPrintable(stringasChar)NativeGlobal

          Returns true if the given character is "printable", if more than a character is passed, only the first character is checked

        • intfunctionAsInt(stringasChar)NativeGlobal

          Returns the ACSII character code of the given char, if more than a character is passed, only the first character is returned

        • stringfunctionAsChar(intaiChar)NativeGlobal

          Returns the string representation of the given ASCII character code

        • intfunctionFind(stringasString, stringasToFind, intaiStartIndex=0)NativeGlobal

          Returns index of the start of the string to find in the passed string, start index determines what character of the passed string the search starts at

        • stringfunctionSubstring(stringasString, intaiStartIndex, intaiLength=0)NativeGlobal

          Returns a portion of the passed string beginning from the passed index, if length is 0, the rest of the string is returned

        • string[]functionStringToArray(stringasString, stringasDelim="")NativeGlobal

          Returns a string as an array of characters, a delimiter can optionally be passed to only split the string at certain characters

        • stringfunctionArrayToString(string[]aaString, stringasDelim="")NativeGlobal

          Returns a array of strings as a single string, a delimiter can optionally be passed to be inserted between the strings

        Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.