The DbMiscFunctions script is a part of Skyrim SE’s Papyrus scripting ecosystem. This script is not present in the vanilla game, but can be found in modded sources like Dylbills Papyrus Functions (Dylbills PE).
For this script, the Papyrus index knows about:
- 269 functions
Inheritance Tree
No indexed scripts extend this script.
Properties
No properties found.
Events
No events found.
Functions
- Found in:
- Dylbills PE
voidfunctionMoveToLocalOffset(ObjectReferenceRefToMove, ObjectReferenceCenterRef, floatAngle, floatDistance, floatafZOffset=0.0, boolabMatchRotation=true)GlobalLike MoveTo, but can specifify local angle / distance offset.
If angle == 0.0, moves object in front of CenterRef by Distance
If angle == 90.0 moves object the right of CenterRef by Distance
If angle == -90, moves object to the left of centerRef by Distance
If angle == 180, moves object behind centerRef by Distance ect.
Example: MoveToLocalOffset(MyRef, Game.GetPlayer(), 90.0, 500.0) moves MyRef 500 units to the right of the player.
No requirements- Found in:
- Dylbills PE
ObjectReferencefunctionPlaceAndMoveToLocalOffset(ObjectReferencePlaceAtMeRef, FormakFormToPlace, intaiCount=1, boolabForcePersist=false, boolabInitiallyDisabled=false, floatAngle=0.0, floatDistance=100.0, floatafZOffset=0.0, boolabMatchRotation=true)GlobalPlaceAtMe but moves placed ref using MoveToLocalOffset function. PlaceAtMeRef is centerRef, new placed ref is RefToMove.
- Found in:
- Dylbills PE
voidfunctionApplyHavokImpulseLocal(ObjectReferenceRef, floatAngle, floatafZ, floatafMagnitude)GlobalApply Havok Impulse from left / right angle + Z direction. No requirements.
Examples:
ApplyHavokImpulseLocal(MyRef, 0, 5, 10) applies havok impulse so the ref flies forward and up
ApplyHavokImpulseLocal(MyRef, 90, -5, 10) applies havok impulse so the ref flies to the right and down- Found in:
- Dylbills PE
Get the full Version Text displayed in the journal menu e.g "1.5.97.0.8 (SKSE64 2.0.20 rel 65)"
The Journal Menu system page must be open for this function to work.
Use RegisterForMenu("Journal Menu") and the OnMenuOpen event to ensure the Journal Menu is open.
Or, if your mod has an MCM, this will work when the MCM Menu is open, so use OnConfigOpen in your MCM script.
requires skse- Found in:
- Dylbills PE
Get the Skyrim Version Text displayed in the journal menu, e.g "1.5.97"
The Journal Menu system page must be open for this function to work.
Use RegisterForMenu("Journal Menu") and the OnMenuOpen event to ensure the Journal Menu is open.
Or, if your mod has an MCM, this will work when the MCM Menu is open, so use OnConfigOpen in your MCM script.
requires skse- Found in:
- Dylbills PE
requires skse
- Found in:
- Dylbills PE
show or hide creation kit markers in Game
If ShowMarkers == true, shows them, otherwise hides them.
If moveToRef == None (default), moves player to either whiterun or markarth fast travel markers.
Must move player to new area after changing bShowMarkers ini so cells reload to display markers.
no requirements- Found in:
- Dylbills PE
Enable all the object refs in akCell that match formTypeFilter.
If formTypeFilter is 0 (default) enable all refs in the cell.
Requires skse.- Found in:
- Dylbills PE
Disable all the object refs in akCell that match formTypeFilter.
If formTypeFilter is 0 (default) disable all refs in the cell.
Requires skse.- Found in:
- Dylbills PE
ObjectReferencefunctionCreateXMarkerRef(boolPersistentRef=false, ObjectReferencePlaceAtMeRef=NONE)Globalcreate new xMarker ObjectReference
if PlaceAtMeRef == none (default) places new marker at the player.
no requirements- Found in:
- Dylbills PE
voidfunctionUnequipAllItems(ActorakActor, boolabPreventEquip=false, boolabSilent=true, floatdelay=0.1)Globalunequip all items on actor with delay in between.
requires skse and po3's papyrus extender- Found in:
- Dylbills PE
voidfunctionRemoveAllItems(ObjectReferenceRef, ObjectReferenceotherContainer=NONE, boolabSilent=true, floatdelay=0.01, boolabNoEquipped=false, boolabNoFavorited=false, boolabNoQuestItem=true)Globalremove all items from ref which must be a container or actor to optional otherContainer
requires skse and papyrus extender and SSE
use Form[] Items = PO3_SKSEFunctions.AddAllInventoryItemsToArray(Ref, abNoEquipped, abNoFavorited, abNoQuestItem) for LE- Found in:
- Dylbills PE
Drop all items from ref, Ref must be a container or actor.
If dropIndividual is true, drops multiple of the same item time individually so they don't stack. If false, items are dropped stacked.
Requires SKSE- Found in:
- Dylbills PE
voidfunctionDropIndividualItems(ObjectReferenceRef, FormItem, intNumOfItems=0, floatdelay=0.01)GlobalDrop the NumofItems from ref individually so they don't stack.
If NumofItems == 0, drops all of the item from ref.
No requirements- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
add shout to player if necessary and unlock all words of power.
requires skse- Found in:
- Dylbills PE
requires skse
- Found in:
- Dylbills PE
check if location or any of it's parents has the keyword
Requires Papyrus Extender && SKSE- Found in:
- Dylbills PE
no requirements.
- Found in:
- Dylbills PE
requires skse. Get name of form. Checks for ObjectReference. return default nullString if not found.
- Found in:
- Dylbills PE
Returns true if the Mod has at least 1 form of type
Requires papyrus extender and skse- Found in:
- Dylbills PE
Like HasKeywordString but returns true if multiple esp's have keyWords with the same name added.
Requires SKSE- Found in:
- Dylbills PE
If AllKeywords == false (default) returns true if the akForm has any keyword in the akList formlist.
If allKeywords == true, only returns true if the akForm has all keywords in the akList.
No requirements- Found in:
- Dylbills PE
If AllKeywords == false (default) returns true if the akForm has any keyword in the akList array.
If allKeywords == true, only returns true if the akForm has all keywords in the akList.
No requirements- Found in:
- Dylbills PE
boolfunctionFormHasKeywordInStorageUtilList(FormakForm, FormObjKey, stringListKeyName, boolAllKeywords=false)GlobalIf AllKeywords == false (default) returns true if the akForm has any keyword in the StorageUtil Form list.
If allKeywords == true, only returns true if the akForm has all keywords in the List.
Requires skse and PapyrusUtil- Found in:
- Dylbills PE
boolfunctionFormHasKeywordInJsonUtilList(FormakForm, stringJsonFilePath, stringListKeyName, boolAllKeywords=false)GlobalIf AllKeywords == false (default) returns true if the akForm has any keyword in the JsonUtil Form list.
If allKeywords == true, only returns true if the akForm has all keywords in the List.
Requires skse and PapyrusUtil- Found in:
- Dylbills PE
Copy keywords from form A onto form B.
Requires skse and papyrus extender- Found in:
- Dylbills PE
boolfunctionIsNumber(stringakString, boolAllowForDecimals=true, boolAllowNegativeNumbers=true)GlobalRequires SKSE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
is the index in string s between the StartKey and EndKey.
Example:
String s = "() (Some String)"
Bool b = DbMiscFunctions.IsStringIndexBetween(s, 4, "(", ")") ;true
Bool bb = DbMiscFunctions.IsStringIndexBetween(s, 2, "(", ")") ;false
Bool bbb = DbMiscFunctions.IsStringIndexBetween(s, 0, "(", ")") ;false
requires skse- Found in:
- Dylbills PE
requires skse. Convert int to hex string.
if result string length is less than minDigits,
adds 0's to the start for positive numbers, or f's to the start for negative numbers.
default is 8 (for form IDs)- Found in:
- Dylbills PE
requires skse
If TreatAsNegative == true, returns hex as negative number.
Example:
ConvertHexToInt("FD4", true) returns -44
ConvertHexToInt("FD4", false) returns 4052
Note that if the hex is 8 digits in length (such as form IDs) and starts with "F" it is always treated as negative natively by papyrus.- Found in:
- Dylbills PE
For convenience. Returns the akForm ID as a hex string.
requires SKSE.- Found in:
- Dylbills PE
like Math.Pow, calculates x to the y power, but uses only integers which is more accurate if not needing floats.
Only works for positive y values.- Found in:
- Dylbills PE
returns floor of the square root of i.
- Found in:
- Dylbills PE
returns absolute value of i.
- Found in:
- Dylbills PE
rounds the float input and returns int
5.4 returns 5
5.5 returns 6- Found in:
- Dylbills PE
rounds the float input and returns float
5.4 returns 5.0
5.5 returns 6.0- Found in:
- Dylbills PE
rounds the float down to the specified decimal places
Example:
RoundDownToDec(1.2345, 2) returns 1.23
RoundDownToDec(4.5678, 3) return 4.567
not 100% accurate, limited by string as float conversion.
Example: RoundDownToDec(100.78945, 2) returns 100.779999999- Found in:
- Dylbills PE
Same as RoundDownToDec but returns string instead of float. In this case RoundDownToDecString(100.78945, 2) returns "100.78"
- Found in:
- Dylbills PE
requires skse
- Found in:
- Dylbills PE
requires SKSE. Splits string by divider and returns as float array.
- Found in:
- Dylbills PE
requires SKSE. Splits string by divider and returns as int array.
- Found in:
- Dylbills PE
Sort========================================================================================
if Direct == true, sorts the passed in akArray directly
if Direct == false, Passed in array is unaffected and returns new array (that is akArray sorted).
if Direct == false requires skse to create the new array.- Found in:
- Dylbills PE
requires skse.
- Found in:
- Dylbills PE
Opposite of StringUtil.Split. Convert string array to single string, elements separated by divider.
If IgnoreDuplicates == true, only adds an element to the string once- Found in:
- Dylbills PE
If IgnoreDuplicates == true, only adds an element to the string once
- Found in:
- Dylbills PE
If IgnoreDuplicates == true, only adds an element to the string once
- Found in:
- Dylbills PE
voidfunctionPrintT(strings1="", strings2="", strings3="", strings4="", strings5="", strings6="", strings7="", strings8="", strings9="", strings10="", strings11="", strings12="", strings13="", strings14="", strings15="", strings16="", strings17="", strings18="", strings19="", strings20="", stringDivider="", intaiSeverity=0)GlobalTrace
No requirements.- Found in:
- Dylbills PE
voidfunctionPrintTU(stringasUserLog="", strings1="", strings2="", strings3="", strings4="", strings5="", strings6="", strings7="", strings8="", strings9="", strings10="", strings11="", strings12="", strings13="", strings14="", strings15="", strings16="", strings17="", strings18="", strings19="", strings20="", stringDivider="", intaiSeverity=0)GlobalTraceUser
No requirements.- Found in:
- Dylbills PE
voidfunctionPrintN(strings1="", strings2="", strings3="", strings4="", strings5="", strings6="", strings7="", strings8="", strings9="", strings10="", strings11="", strings12="", strings13="", strings14="", strings15="", strings16="", strings17="", strings18="", strings19="", strings20="", stringDivider="")GlobalNotification
No requirements.- Found in:
- Dylbills PE
voidfunctionPrintM(strings1="", strings2="", strings3="", strings4="", strings5="", strings6="", strings7="", strings8="", strings9="", strings10="", strings11="", strings12="", strings13="", strings14="", strings15="", strings16="", strings17="", strings18="", strings19="", strings20="", stringDivider="")GlobalMessageBox
No requirements.- Found in:
- Dylbills PE
voidfunctionPrintEvm(strings1="", strings2="", strings3="", strings4="", strings5="", strings6="", strings7="", strings8="", strings9="", strings10="", strings11="", strings12="", strings13="", strings14="", strings15="", strings16="", strings17="", strings18="", strings19="", strings20="", stringDivider="")GlobalExtendedVanillaMenus.MessageBox
requires ExtendedVanillaMenus and skse- Found in:
- Dylbills PE
voidfunctionPrintF(stringFilePath, strings1="", strings2="", strings3="", strings4="", strings5="", strings6="", strings7="", strings8="", strings9="", strings10="", strings11="", strings12="", strings13="", strings14="", strings15="", strings16="", strings17="", strings18="", strings19="", strings20="", stringDivider="")GlobalWriteToFile
requires PapyrusUtil and skse- Found in:
- Dylbills PE
stringfunctionJoinStrings(strings1="", strings2="", strings3="", strings4="", strings5="", strings6="", strings7="", strings8="", strings9="", strings10="", strings11="", strings12="", strings13="", strings14="", strings15="", strings16="", strings17="", strings18="", strings19="", strings20="", stringDivider="")GlobalJoin up to 20 strings into a single string seperated by the Divider
Stops joining at the first empty "" string it finds.
no requirements- Found in:
- Dylbills PE
stringfunctionJoinAllStrings(strings1="", strings2="", strings3="", strings4="", strings5="", strings6="", strings7="", strings8="", strings9="", strings10="", strings11="", strings12="", strings13="", strings14="", strings15="", strings16="", strings17="", strings18="", strings19="", strings20="", stringDivider="")GlobalJoin all 20 strings into a single string seperated by the Divider
no requirements- Found in:
- Dylbills PE
get the current screen resolution.
[0] = X or width
[1] = Y or height
requires skse- Found in:
- Dylbills PE
Get game settings for soul levels
no requirements- Found in:
- Dylbills PE
Get game setting soul level names
no requirements- Found in:
- Dylbills PE
Get the actor soul size. 0 = petty, 1 = lesser, 2 = Common, 3 = Greater, 4 = Grand, 5 = Black (for NPCs)
No requirements- Found in:
- Dylbills PE
Get actor soul size as string.
no requirements- Found in:
- Dylbills PE
the IsEquipped function doesn't work for spells, hence the need for this function.
no requirements- Found in:
- Dylbills PE
requires skse and DbSkseFunctions.psc version 6.7 or greater
- Found in:
- Dylbills PE
Is the akActor an NPC?
no requirements- Found in:
- Dylbills PE
Returns true if akActor is moving.
I've only tested on NPC humanoid actors. Not sure if it works for other types.
No requirements- Found in:
- Dylbills PE
FormfunctionGetRandomFormFromRef(ObjectReferenceRef, int[]TypeArrayFilter=NONE, FormListListFilter=NONE, boolTypeFilterHasType=true, boolakListHasForm=true)GlobalGet random form from Ref's inventory.
If TypeArrayFilter != none, filters for form types in TypeArrayFilter. If TypeFilterHasType == true (default) only allows for types in the TypeArrayFilter. If false, only allows for types NOT in the TypeArrayFilter.
If ListFilter != none, filters for base forms in the ListFilter formlist. If akListHasForm == true (default) only allows for forms in the ListFilter formlist. If false, only allows for forms NOT in the formlist.
Requires SKSE- Found in:
- Dylbills PE
FormfunctionGetRandomFormFromRefA(ObjectReferenceRef, int[]TypeArrayFilter=NONE, Form[]ListFilter=NONE, boolTypeFilterHasType=true, boolakListHasForm=true)GlobalGet random form from Ref's inventory.
If TypeArrayFilter != none, filters for form types in TypeArrayFilter. If TypeFilterHasType == true (default) only allows for types in the TypeArrayFilter. If false, only allows for types NOT in the TypeArrayFilter.
If ListFilter != none, filters for base forms in the ListFilter form array. If akListHasForm == true (default) only allows for forms in the ListFilter form array. If false, only allows for forms NOT in the form array.
Requires SKSE- Found in:
- Dylbills PE
FormfunctionGetRandomFormFromRefS(ObjectReferenceRef, int[]TypeArrayFilter=NONE, FormObjKey=NONE, stringListKeyName="", boolTypeFilterHasType=true, boolakListHasForm=true)GlobalGet random form from Ref's inventory.
If TypeArrayFilter != none, filters for form types in TypeArrayFilter. If TypeFilterHasType == true (default) only allows for types in the TypeArrayFilter. If false, only allows for types NOT in the TypeArrayFilter.
If ListKeyName != none, filters for base forms in the StorageUtil Formlist defined by the ObjKey and ListKeyName. If akListHasForm == true (default) only allows for forms in the StorageUtil Formlist. If false, only allows for forms NOT in the StorageUtil Formlist.
Requires SKSE and PapyrusUtil- Found in:
- Dylbills PE
FormfunctionGetRandomFormFromRefJ(ObjectReferenceRef, int[]TypeArrayFilter=NONE, stringJsonFilePath="", stringListKeyName="", boolTypeFilterHasType=true, boolakListHasForm=true)GlobalGet random form from Ref's inventory.
If TypeArrayFilter != none, filters for form types in TypeArrayFilter. If TypeFilterHasType == true (default) only allows for types in the TypeArrayFilter. If false, only allows for types NOT in the TypeArrayFilter.
If JsonFilePath != none && ListKeyName != none, filters for base forms in the JsonUtil Formlist defined by the JsonFilePath and ListKeyName. If akListHasForm == true (default) only allows for forms in the JsonUtil Formlist. If false, only allows for forms NOT in the JsonUtil Formlist.
Requires SKSE and PapyrusUtil.- Found in:
- Dylbills PE
requires skse. Sort Actors in akArray by their display name.
- Found in:
- Dylbills PE
requires skse. Sort ObjectReferences in akArray by their display name.
- Found in:
- Dylbills PE
requires skse. Sort Forms in akArray by their name.
- Found in:
- Dylbills PE
requires skse, put all actor names of actors in akArray to a string array and return.
- Found in:
- Dylbills PE
requires skse, put all ObjectReference names of ObjectReferences in akArray to a string array and return.
- Found in:
- Dylbills PE
requires skse, put all Form names of Forms in akArray to a string array and return.
- Found in:
- Dylbills PE
requires skse, put all Form names of Forms in akList to a string array and return.
- Found in:
- Dylbills PE
stringfunctionFormNamesInFormListToString(FormListakList, stringdivider="n", stringnullName="ull")Globalrequires skse, put all Form names of Forms in akList to a single string seperated by divider. Default new line.
- Found in:
- Dylbills PE
Requires skse. Add all forms in akList to new form array.
- Found in:
- Dylbills PE
Add all forms in akArray to akList
- Found in:
- Dylbills PE
no requirements
- Found in:
- Dylbills PE
no requirements
- Found in:
- Dylbills PE
no requirements
- Found in:
- Dylbills PE
no requirements
- Found in:
- Dylbills PE
no requirements
- Found in:
- Dylbills PE
no requirements
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
wait while the keyCode is pressed.
If the key is released before the secondsToWait time has elapsed, returns false.
If the secondsToWait time elapses and the keyCode is still pressed, returns true.
Requires skse- Found in:
- Dylbills PE
Like WaitWhileKeyIsPressed but this is an interval wait version.
Wait while the keyCode is pressed.
Returns true if the entire waitCount finishes.
Returns false if the key was released before the waitCount is finished.
The wait interval should be a small value (default is 0.01) for this function to be accurate.
Requires skse- Found in:
- Dylbills PE
requires skse, register for all keys between min and max. Default is 1 to 281, or all keys.
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
voidfunctionRegisterActiveMagicEffectForKeys(ActiveMagicEffectakActiveMagicEffect, intmin=1, intMax=281)Global- Found in:
- Dylbills PE
requires skse
- Found in:
- Dylbills PE
Are all the hotkeys pressed?
If onlyTheseKeys is true, (default), returns true only if all the hotkeys are pressed and no other keys are pressed.
requires skse.- Found in:
- Dylbills PE
Swap==============================================================================
Swap the element at IndexA with the element at IndexB in the akArray
The V functions (V for validate) will first clamp the indexes between 0 and the last available index in the akArray first before swapping.
If you know for sure that the indexes are in bounds, use Swap as it's faster. If you don't know for sure, use SwapV or you might get none entries.- Found in:
- Dylbills PE
validate indexes first.
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
validate indexes first.
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
validate indexes first.
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
validate indexes first.
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
validate indexes first.
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
validate indexes first.
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
validate indexes first.
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
remove all duplicates in Json int / float / string / form lists, leaving only 1 of each element in the list.
If asceding == true (default) removes duplicate entries from the start of the list first,
Else removes duplicates from end of list first. ======================================================================================- Found in:
- Dylbills PE
voidfunctionJsonFloatListRemoveAllDuplicates(stringFileName, stringKeyName, boolAcending=true)Global- Found in:
- Dylbills PE
voidfunctionJsonStringListRemoveAllDuplicates(stringFileName, stringKeyName, boolAcending=true)Global- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
Opposite of String.Split()
Join all elements in Json Int List to a single string seperated by divider. =================================================================================- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
stringfunctionGetFormTypeString(intType, stringsFilePath="ata/interface/DbMiscFunctions/DbFormTypeStrings.txt")Globalrequires skse and papyrusUtil. Get the string for a form type int.
Exampe: FormTypeToString(SomeMiscObj.GetType()) returns "Misc"
can specify another file other than "Data/interface/DbFormTypeStrings.txt" if desired- Found in:
- Dylbills PE
string[]functionGetFormTypeStrings(stringsFilePath="ata/interface/DbMiscFunctions/DbFormTypeStrings.txt", intstartIndex=0, intendIndex=134)requires skse and papyrusUtil.
Get form type strings within a range.- Found in:
- Dylbills PE
stringfunctionGetKeyCodeString(intkeyCode, stringsFilePath="ata/interface/DbMiscFunctions/DbKeyCodeStrings.txt")Globalrequires skse and papyrusUtil. Get the string for keycode.
Exampe: GetKeyCodeString(28) returns "Enter"
can specify another file other than "Data/interface/DbKeyCodeStrings.txt" if desired- Found in:
- Dylbills PE
stringfunctionGetKeyCodeStrings(int[]keys, stringstartBracket="", stringendBracket="", stringdivider="n", boolincludeInts=true)Globalrequires skse
- Found in:
- Dylbills PE
string[]functionGetKeyCodeStringsInRange(intminKey=1, intmaxKey=281, stringstartBracket="", stringendBracket="", boolincludeInts=true)Globalrequires skse
- Found in:
- Dylbills PE
Return mod name string that the FormID comes from. e.g "Skyrim.esm"
assumes FormID is 8 digits long.
Requires skse- Found in:
- Dylbills PE
Return mod name string that the akForm comes from. e.g "Skyrim.esm"
Requires skse- Found in:
- Dylbills PE
get common form types without SKSE =======================================================================
These functions mimic the main Categories in the creation kit.
GetActorFormType corresponds to the Actor category. GetAudioFormType corresponds to the Audo category ect.
Note, can pass in ObjectReference's and it will auto get baseObject and return type.- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
for base item types in player inventory
- Found in:
- Dylbills PE
includes all of the above form types
- Found in:
- Dylbills PE
Same as above but returns strings instead of ints==============================================================================
If TypeStrings == none, returns the ScriptName of type. Can pass in string array to return different strings for translations.- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
for base item types in player inventory
- Found in:
- Dylbills PE
includes all of the above types.
- Found in:
- Dylbills PE
Useful for force closing the inventory menu, or forcing the player to sheathe their weapon.
No requirements- Found in:
- Dylbills PE
add and remove akForm from actor silently.
This is useful for instance after changing an actors speed via akActor.SetAv("SpeedMult", 110)
Or after changing armor model paths, or on the player after changing item names if in the inventory or container menu, will display visually the name change.
No requirements- Found in:
- Dylbills PE
used to update menus while they are open.
Example, changing a map marker property (name, icon or visibility) while the map menu is open- Found in:
- Dylbills PE
requires SKSE and Papyrus Extender
swap all worn equipment between actor A and B.- Found in:
- Dylbills PE
Set all ActorValues to Values on akActor
no requirements- Found in:
- Dylbills PE
Mod all ActorValues with Values on akActor
no requirements- Found in:
- Dylbills PE
return all actor values in ActorValueStrings to float array.
if DArrays == none, requires skse. Can pass in DynamicArrays form to not use skse.- Found in:
- Dylbills PE
string[]functionGetActorValueStrings(ActorakActor, string[]ActorValues, string[]ActorValueStrings=NONE, DynamicArraysDArrays=NONE)Globalsame as GetActorValues but returns for instance "Health = 100.0" in string array instead of float values
if ActorValueStrings == none, uses ActorValues for strings.
can specify ActorValueStrings for translations. Indexes in ActorValues and ActorValuesStrings should match.
if DArrays == none, requires skse. Can pass in DynamicArrays form to not use skse.- Found in:
- Dylbills PE
stringfunctionsGetActorValueStrings(ActorakActor, string[]ActorValues, string[]ActorValueStrings=NONE, stringDivider="|")Globalsame as GetActorValueStrings but puts all values in a single string divided by Divider.
if ActorValueStrings == none, uses ActorValues for strings.
can specify ActorValueStrings for translations. Indexes in ActorValues and ActorValuesStrings should match.
no requirements- Found in:
- Dylbills PE
float[]functionGetBaseActorValues(ActorakActor, string[]ActorValues, DynamicArraysDArrays=NONE)Globalreturn all Base actor values in ActorValueStrings to float array.
if DArrays == none, requires skse. Can pass in DynamicArrays form to not use skse.- Found in:
- Dylbills PE
string[]functionGetBaseActorValueStrings(ActorakActor, string[]ActorValues, string[]ActorValueStrings=NONE, DynamicArraysDArrays=NONE)Globalsame as GetBaseActorValues but returns for instance "Health = 100.0" in string array instead of float values
if ActorValueStrings == none, uses ActorValues for strings.
can specify ActorValueStrings for translations. Indexes in ActorValues and ActorValuesStrings should match.
if DArrays == none, requires skse. Can pass in DynamicArrays form to not use skse.- Found in:
- Dylbills PE
stringfunctionsGetBaseActorValueStrings(ActorakActor, string[]ActorValues, string[]ActorValueStrings=NONE, stringDivider="|")Globalsame as GetBaseActorValueStrings but puts all values in a single string divided by Divider.
if ActorValueStrings == none, uses ActorValues for strings.
can specify ActorValueStrings for translations. Indexes in ActorValues and ActorValuesStrings should match.
no requirements- Found in:
- Dylbills PE
float[]functionGetActorValuesFromFile(ActorakActor, stringfilePath="ata/interface/DbMiscFunctions/DbActorValues.txt")Globalreturn actor values of akActor from actor values in file to float array.
can specify your own file path. Look at the structure of DbActorValues.txt to make another file.
requires skse and papyrusUtil.- Found in:
- Dylbills PE
string[]functionGetActorValueStringsFromFile(ActorakActor, stringfilePath="ata/interface/DbMiscFunctions/DbActorValues.txt")Globalsame as GetActorValuesFromFile but returns for instance "Health = 100.0" in string array instead of float values
can specify your own file path. Look at the structure of DbActorValues.txt to make another file.
requires skse and papyrusUtil.- Found in:
- Dylbills PE
stringfunctionsGetActorValueStringsFromFile(ActorakActor, stringDivider="|", stringfilePath="ata/interface/DbMiscFunctions/DbActorValues.txt")Globalsame as GetActorValueStringsFromFile but puts all the values in a single string seperated by Divider
can specify your own file path. Look at the structure of DbActorValues.txt to make another file.
requires skse and papyrusUtil.- Found in:
- Dylbills PE
float[]functionGetBaseActorValuesFromFile(ActorakActor, stringfilePath="ata/interface/DbMiscFunctions/DbActorValues.txt")Globalreturn all Base actor values in file to float array.
can specify your own file path. Look at the structure of DbActorValues.txt to make another file.
requires skse and papyrusUtil.- Found in:
- Dylbills PE
string[]functionGetBaseActorValueStringsFromFile(ActorakActor, stringfilePath="ata/interface/DbMiscFunctions/DbActorValues.txt")Globalsame as GetBaseActorValuesFromFile but returns for instance "Health = 100.0" in string array instead of float values
can specify your own file path. Look at the structure of DbActorValues.txt to make another file.
requires skse and papyrusUtil.- Found in:
- Dylbills PE
stringfunctionsGetBaseActorValueStringsFromFile(ActorakActor, stringDivider="|", stringfilePath="ata/interface/DbMiscFunctions/DbActorValues.txt")Globalsame as GetBaseActorValueStringsFromFile but puts all the values in a single string seperated by Divider
can specify your own file path. Look at the structure of DbActorValues.txt to make another file.
requires skse and papyrusUtil.- Found in:
- Dylbills PE
Attach the akScript to the Ref.
Mostly for LE as on SE you can use the No Esp mod instead
if ref == none, attachs akScript to the player
requires skse and consoleUtil or DbSkseFunctions.
DbSkseFunctions (included with this mod) only works on SE and AE- Found in:
- Dylbills PE
menuName must match a valid menu name in UI.psc
requires skse- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
stringfunctionGetStringBetweenOuterCharacters(strings, intstartIndex=0, stringleftChar="", stringrightChar="")Globalget the string between leftChar (outer) and rightChar (outer) strings.
leftChar and rightChar should both be a single character string.
For instance:
string sExample = "(A, (B + (C)), D)"
GetStringBetweenOuterCharacters(sExample) ;returns "A, (B + (C)), D"
GetStringBetweenOuterCharacters(sExample, 1) ;returns "B + (C)"
requires skse- Found in:
- Dylbills PE
find the index of the nth instance of string toFind in string s
if nthInstance == -1 (default), finds the last instance in string s
requires skse- Found in:
- Dylbills PE
Finds the last index of String ToFind in string s
Example: FindLastStringIndex("The dog is the coolest dog in the world", "The") returns 30, the last instance of "the"
Requires skse.- Found in:
- Dylbills PE
returns the index of the first character of toFind inside string s
returns -1 if toFind is not part of the string or if startIndex is invalid or if the characters preceding and following ToFind in s are not whitespace
Example
FindWholeWordString("TestString", "String") returns -1
FindWholeWordString("Test String", "String") returns 5- Found in:
- Dylbills PE
returns true if the single character string C is whitespace.
requires skse- Found in:
- Dylbills PE
find next word in string. (Next string of non white space) from startIndex
Examples:
String A = FindNextWordInString("This is some text ") ;A = "This"
String B = FindNextWordInString("This is some text ", 12) ;B = "text"
String C = FindNextWordInString("This is some text ", 9) ;C = "ome"
requires skse- Found in:
- Dylbills PE
same as above but in reverse
if startIndex is -1, startIndex is string length
requires skse- Found in:
- Dylbills PE
requires skse
- Found in:
- Dylbills PE
same as above but in reverse
if startIndex is -1, startIndex is string length
requires skse- Found in:
- Dylbills PE
requires skse
- Found in:
- Dylbills PE
same as above but in reverse
if startIndex is -1, startIndex is string length
requires skse- Found in:
- Dylbills PE
requires skse
- Found in:
- Dylbills PE
same as above but in reverse
if startIndex is -1, startIndex is string length
requires skse- Found in:
- Dylbills PE
requires skse
- Found in:
- Dylbills PE
same as above but in reverse
if startIndex is -1, startIndex is string length
requires skse- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
stringfunctionRemoveWhiteSpaces(strings, boolIncludeSpaces=true, boolIncludeTabs=true, boolIncludeNewLines=true)Globalrequires skse
- Found in:
- Dylbills PE
intfunctionCountWhiteSpaces(strings, boolIncludeSpaces=true, boolIncludeTabs=true, boolIncludeNewLines=true)GlobalRequires skse
- Found in:
- Dylbills PE
Count the number of String ToFind that occures in String s.
If WholeWordsOnly == true, only counts where the string ToFind occures is surrounded by whiteSpace.
requires skse- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
stringfunctionCreateRandomWord(intWordLength, stringletters="cdfghjklmnpqrstvwxyz", stringvowels="eiou", stringpairs="t gr ea ie ei pr qw fr cr tr vr br pl cl ")Global- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
- Found in:
- Dylbills PE
remove all SearchStr instances from TragetStr except for the first instance
requires skse- Found in:
- Dylbills PE
stringfunctionRemoveAllDuplicateStrings(stringTargetStr, stringDivider="|", boolIncludeDividersInResult=true)GlobalRemove All Duplicate strings separated by Divider. Example:
RemoveAllDuplicateStrings("TestString||TestString||Hmmm||TestString|| Test String ||Hmm||TestString") returns "TestString||Hmmm|| Test String ||"
RemoveAllDuplicateStrings("TestString||TestString||Hmmm||TestString|| Test String ||Hmm||TestString", IncludeDividersInResult = false) returns "TestStringHmmm Test String "
requires skse- Found in:
- Dylbills PE
stringfunctionStringReplace(stringTargetStr, stringSearchStr, stringReplaceStr, intCount=0, intStartIndex=0)GlobalReplace instances of the SearchStr with the ReplaceStr in the TargetStr
Default count = 0 which means replace all instances. Otherwise only replace the Count number.
Example:
String MyString = "A Yes, B Yes, C Yes"
String MyStringB = StringReplace(MyString, "Yes", "No")
String MyStringC = StringReplace(MyString, "Yes", "No", 2)
MyStringB == "A No, B No, C No"
MyStringC == "A No, B No, C Yes"
Requires SKSE- Found in:
- Dylbills PE
insert the InsertStr to the TargetStr at the CharPosition and return new string.
if CharPosition == -1, appends the InsertStr to the end of TargetStr- Found in:
- Dylbills PE
Remove a single character in String s at Index
Requires skse- Found in:
- Dylbills PE
Find the last index of the string toFind in string s.
returns -1 if not found.
requires skse- Found in:
- Dylbills PE
Remove Non printable characters from string
Requires skse.- Found in:
- Dylbills PE
Remove Non printable characters from string
Requires skse.- Found in:
- Dylbills PE
Add prefix to string s and return new string
If OnlyIfNotPresent == true (default) only adds the prefix if it's not already present.
Requires skse- Found in:
- Dylbills PE
Same as above but adds to all strings in array
Requires skse- Found in:
- Dylbills PE
Remove prefix from string s, if it exists and return new string, or return s if not present
Requires skse- Found in:
- Dylbills PE
Same as above but removes from all strings in array
Requires skse- Found in:
- Dylbills PE
Add suffix to string s and return new string
If OnlyIfNotPresent == true (default) only adds the suffix if it's not already present.
Requires skse- Found in:
- Dylbills PE
Same as above but adds to all strings in array
Requires skse- Found in:
- Dylbills PE
Remove suffix from string s, if it exists and return new string, or return s if not present
Requires skse- Found in:
- Dylbills PE
Same as above but removes from all strings in array
Requires skse- Found in:
- Dylbills PE
Add prefix to akForm's name
If OnlyIfNotPresent == true (default) only adds the prefix if it's not already present.
Requires skse- Found in:
- Dylbills PE
Same as above but adds to all form names in array
Requires skse- Found in:
- Dylbills PE
Remove prefix from akForm's name if it exists
Requires skse- Found in:
- Dylbills PE
Same as above but removes from all form names in array
Requires skse- Found in:
- Dylbills PE
Add Suffix to akForm's name
If OnlyIfNotPresent == true (default) only adds the Suffix if it's not already present.
Requires skse- Found in:
- Dylbills PE
Same as above but adds to all form names in array
Requires skse- Found in:
- Dylbills PE
Remove Suffix from akForm's name if it exists
Requires skse- Found in:
- Dylbills PE
Same as above but removes from all form names in array
Requires skse- Found in:
- Dylbills PE
Does the string have the Prefix?
Requires skse- Found in:
- Dylbills PE
Does the string have the Suffix?
Requires skse- Found in:
- Dylbills PE
stringfunctionGetStringFromFile(stringStringKey, stringFileContents="", stringFilePath="", stringStartKey="", stringEndKey="", stringDefault="", intStartIndex=0)GlobalGetStringFromFile get custom string from external file or string
finds first string between Startkey and EndKey after StringKey.
similar to localization but no need to worry about nesting strings in a translation file this way.
Example: Let's say you have a file Data/interface/MyStrings.txt that contains:
MyStringA = [My String A]
MyStringB = [My String B]String MyStringB = GetStringFromFile("MyStringB", FilePath = "Data/interface/MyStrings.txt") ;Returns "My String B"
To search a string instead of a file path, you can do this:
String MyStrings
MyStrings = MiscUtil.ReadFromFile("Data/interface/MyStrings.txt")
String MyStringB = GetStringFromFile("MyStringB", MyStrings) ;Returns "My String B"
Note, if using the function this way, don't store MyStrings in the script, outside of events or functions. Storing large strings can cause CTD on game load.
If storing this way, be sure to clear the string by doing: MyStrings = "" after it's finished being used.This method will be better for performance if you need to get a lot of strings from your file, as it won't use MiscUtil.ReadFromFile everytime you use the function.
StringKeys contained in the file must be unique.
If the stringkey wasn't found and the Default is "", it returns the stringKey
Let's say you have:
Some Custom Message = [Some Custome Message]
in the "Data/interface/MyStrings.txt file"You can do:
debug.notification(GetStringFromFile("Some Custom Message", FilePath = "Data/interface/MyStrings.txt"))
And it will still show "Some Custom Message" if something went wrong and it wasn't found in the file
You can specify a default if you want something else to return if the stringKey wasn't found.Requires PapyrusUtil && SKSE
- Found in:
- Dylbills PE
intfunctionGetIntFromFile(stringStringKey, stringFileContents="", stringFilePath="", stringStartKey="", stringEndKey="", intDefault=-1, intStartIndex=0)Globalsame as GetStringFromFile but returns value as int.
- Found in:
- Dylbills PE
floatfunctionGetFloatFromFile(stringStringKey, stringFileContents="", stringFilePath="", stringStartKey="", stringEndKey="", floatDefault=-1, intStartIndex=0)Globalsame as GetStringFromFile but returns value as float.
- Found in:
- Dylbills PE
string[]functionGetAllStringsFromFile(stringFileContents="", stringFilePath="", stringRangeStart="", stringRangeEnd="", stringStartKey="", stringEndKey="", string[]Default=NONE)GlobalSave All strings in the StartKey and Endkey brackets, between the RangeStart and RangeEnd strings from the FileContents or FilePath to a string array.
Example: you have a file Data/interface/MyStrings.txt that contains:
MyStringA = [My String A]
MyStringB = [My String B]String[] MyStrings = GetAllStringsFromFile("Data/interface/MyStrings.txt")
MyStrings[0] will equal "My String A" and MyStrings[1] will equal "My String B"to specify a range to search you can do this:
File contains:
StringsA
MyStringA = [My String A]
MyStringB = [My String B]
StringsAEnd
MyStringC = [My String C]Using String[] MyStrings = GetAllStringsFromFile(FilePath = "Data/interface/MyStrings.txt", "StringsA", "StringsAEnd")
Only My String A and My String B are saved to the array.If RangeStart is "", starts search at the beginning of the file. If RangeEnd is "", stops searching at the end of the file.
requires SKSE and PapyrusUtil
- Found in:
- Dylbills PE
int[]functionGetAllIntsFromFile(stringFileContents="", stringFilePath="", stringRangeStart="", stringRangeEnd="", stringStartKey="", stringEndKey="", int[]Default=NONE)GlobalSame as GetAllStringsFromFile but saves values as ints to int array
requires SKSE and PapyrusUtil- Found in:
- Dylbills PE
float[]functionGetAllFloatsFromFile(stringFileContents="", stringFilePath="", stringRangeStart="", stringRangeEnd="", stringStartKey="", stringEndKey="", float[]Default=NONE)GlobalSame as GetAllStringsFromFile but saves values as floats to float array
requires SKSE and PapyrusUtil- Found in:
- Dylbills PE
boolfunctionPrintStringKeysToFile(stringFilePathToSearch, stringFilePathToPrintTo, stringStartKey="", stringEndKey="", stringFinishedMsg="one Printing")GlobalPrintStringKeysToFile Finds and Prints all GetString / int / floatFromString StringKeys, from FilePathToSearch to FilePathToPrintTo
To speed up the process of making your StringKeys.txt file.
You can write GetStringFromFile() functions in your .psc file, and when you're finished with your script, have this function print the string keys to another .txt file.Example, if in MyScript.psc you have:
Debug.Notification(GetStringFromFile("My Message A"))
Debug.Notification(GetStringFromFile("My Message B"))
Use the function:PrintStringKeysToFile("Data/Scripts/Source/MyScript.psc", "Data/interface/MyStrings.txt")
In the MyStrings.txt file it will write:
"My Message A" = ["My Message A"]
"My Message B" = ["My Message B"]note that the quotes are included. You'll want to get rid of them by pressing ctrl H in your text editor and replace all " with nothing so it looks like:
My Message A = [My Message A]
My Message B = [My Message B]Otherwise the GetStringFromFile functions won't work correctly when reading from your .txt file.
Requires SKSE and PapyrusUtil
- Found in:
- Dylbills PE
voidfunctionPrintContainerItemsToFile(ObjectReferenceakContainer, stringFilePath, stringConfirmMessage="")GlobalPrint all items in a container to the FilePath with the mod they come from included.
Requires SKSE- Found in:
- Dylbills PE
voidfunctionWriteIDsInFormListToFile(FormListakList, stringFilePath, boolIncludeNames=false, boolReplaceIdStartWith0x=true)GlobalWrite form ID's of forms in akList to file. If ReplaceIdStartWith0x == true (default), replaces first two characters of ID with 0x.
Requires skse and PapyrusUtil- Found in:
- Dylbills PE
voidfunctionWriteIDsInFormArrayToFile(Form[]akList, stringFilePath, boolIncludeNames=false, boolReplaceIdStartWith0x=true)GlobalWrite form ID's of forms in akList to file. If ReplaceIdStartWith0x == true (default), replaces first two characters of ID with 0x.
Requires skse and PapyrusUtil- Found in:
- Dylbills PE
voidfunctionWriteIDsInStorageUtilListToFile(FormObjKey, stringListKeyName, stringFilePath, boolIncludeNames=false, boolReplaceIdStartWith0x=true)GlobalWrite form ID's of forms in storageutil formlist to file. If ReplaceIdStartWith0x == true (default), replaces first two characters of ID with 0x.
Requires skse and PapyrusUtil- Found in:
- Dylbills PE
voidfunctionWriteIDsInJsonUtilListToFile(stringJsonFilePath, stringListKeyName, stringFilePath, boolIncludeNames=false, boolReplaceIdStartWith0x=true)GlobalWrite form ID's of forms in JsonUtil formlist to file. If ReplaceIdStartWith0x == true (default), replaces first two characters of ID with 0x.
Requires skse and PapyrusUtil- Found in:
- Dylbills PE
voidfunctionWriteAnimationVariableBoolsToFile(ObjectReferenceakRef, stringOutputFilePath, stringVariablesSourceFilePath="ata/interface/DbMiscFunctions/DbAnimationVariableBools.txt")GlobalWrite bool animation variables of akRef found in DbAnimationVariableBools.txt to OutputFilePath.
Can specify a different VariablesSourceFilePath if desired.
Default variables found in DbAnimationVariableBools.txt are from https://www.creationkit.com/index.php?title=List_of_Animation_Variables
Requires skse and papyrusutil- Found in:
- Dylbills PE
voidfunctionWriteAnimationVariableIntsToFile(ObjectReferenceakRef, stringOutputFilePath, stringVariablesSourceFilePath="ata/interface/DbMiscFunctions/DbAnimationVariableInts.txt")GlobalWrite int animation variables of akRef found in DbAnimationVariableInts.txt to OutputFilePath.
Can specify a different VariablesSourceFilePath if desired.
Default variables found in DbAnimationVariableInts.txt are from https://www.creationkit.com/index.php?title=List_of_Animation_Variables
Requires skse and papyrusutil- Found in:
- Dylbills PE
voidfunctionWriteAnimationVariableFloatsToFile(ObjectReferenceakRef, stringOutputFilePath, stringVariablesSourceFilePath="ata/interface/DbMiscFunctions/DbAnimationVariableFloats.txt")GlobalWrite Float animation variables of akRef found in DbAnimationVariableFloats.txt to OutputFilePath.
Can specify a different VariablesSourceFilePath if desired.
Default variables found in DbAnimationVariableFloats.txt are from https://www.creationkit.com/index.php?title=List_of_Animation_Variables
Requires skse and papyrusutil- Found in:
- Dylbills PE
voidfunctionWriteAllAnimationVariablesToFile(ObjectReferenceakRef, stringOutputFilePath, stringBoolVariablesSourceFilePath="ata/interface/DbMiscFunctions/DbAnimationVariableBools.txt", stringIntVariablesSourceFilePath="ata/interface/DbMiscFunctions/DbAnimationVariableInts.txt", stringFloatVariablesSourceFilePath="ata/interface/DbMiscFunctions/DbAnimationVariableFloats.txt")GlobalRequires skse and papyrusutil
- Found in:
- Dylbills PE
voidfunctionRegisterFormForAnimationEvents(FormakForm, ObjectReferenceakSender, string[]AnimationEvents)Globalregister the akForm to recieve all AnimationEvents from the akSender
no requirements- Found in:
- Dylbills PE
voidfunctionRegisterAliasForAnimationEvents(AliasakAlias, ObjectReferenceakSender, string[]AnimationEvents)Globalregister the akAlias to recieve all AnimationEvents from the akSender
no requirements- Found in:
- Dylbills PE
voidfunctionRegisterActiveMagicEffectForAnimationEvents(ActiveMagicEffectakActiveMagicEffect, ObjectReferenceakSender, string[]AnimationEvents)Globalregister the akActiveMagicEffect to recieve all AnimationEvents from the akSender
no requirements- Found in:
- Dylbills PE
voidfunctionRegisterFormForAnimationEventsFromFile(FormakForm, ObjectReferenceakSender, stringFilePath="ata/interface/DbMiscFunctions/DbAnimationEvents.txt")GlobalRegister the akForm to recieve all Animation Events from akSender found in File specified by FilePath.
Events in the file should be separated by new line.
Requires SKSE and PapyrusUtil- Found in:
- Dylbills PE
voidfunctionRegisterAliasForAnimationEventsFromFile(AliasakAlias, ObjectReferenceakSender, stringFilePath="ata/interface/DbMiscFunctions/DbAnimationEvents.txt")GlobalRegister the akAlias to recieve all Animation Events from akSender found in File specified by FilePath.
Events in the file should be separated by new line.
Requires SKSE and PapyrusUtil- Found in:
- Dylbills PE
voidfunctionRegisterActiveMagicEffectForAnimationEventsFromFile(ActiveMagicEffectakActiveMagicEffect, ObjectReferenceakSender, stringFilePath="ata/interface/DbMiscFunctions/DbAnimationEvents.txt")GlobalRegister the akActiveMagicEffect to recieve all Animation Events from akSender found in File specified by FilePath.
Events in the file should be separated by new line.
Requires SKSE and PapyrusUtil- Found in:
- Dylbills PE
register the akForm for all Menus in string array.
Requires SKSE- Found in:
- Dylbills PE
register the akAlias for all Menus in string array.
Requires SKSE- Found in:
- Dylbills PE
voidfunctionRegisterActiveMagicEffectForMenus(ActiveMagicEffectakActiveMagicEffect, string[]Menus)Globalregister the akActiveMagicEffect for all Menus in string array.
Requires SKSE- Found in:
- Dylbills PE
voidfunctionRegisterFormForMenusFromFile(FormakForm, stringFilePath="ata/interface/DbMiscFunctions/DbMenus.txt")GlobalRegister the akForm for all menus found in File specified by FilePath.
Events in the file should be separated by new line.
Requires SKSE and PapyrusUtil- Found in:
- Dylbills PE
voidfunctionRegisterAliasForMenusFromFile(AliasakAlias, stringFilePath="ata/interface/DbMiscFunctions/DbMenus.txt")GlobalRegister the akAlias for all menus found in File specified by FilePath.
Events in the file should be separated by new line.
Requires SKSE and PapyrusUtil- Found in:
- Dylbills PE
voidfunctionRegisterActiveMagicEffectForMenusFromFile(ActiveMagicEffectakActiveMagicEffect, stringFilePath="ata/interface/DbMiscFunctions/DbMenus.txt")GlobalRegister the ActiveMagicEffect for all menus found in File specified by FilePath.
Events in the file should be separated by new line.
Requires SKSE and PapyrusUtil- Found in:
- Dylbills PE
voidfunctionWriteAllPscDataInFolderToFile(stringSearchFolderPath, stringTargetFilePath, stringDivider="n", stringDoneMessage="one Writing")GlobalWrite all data info to TargetFilePath from all .psc files in SearchFolderPath. Writes ScriptNames, Function Names, Event Names, Function Definitions and Event Definitions.
requires skse and papyrus util.- Found in:
- Dylbills PE
stringfunctionGetPscEventNamesFromFile(stringSourceFilePath, stringDivider="n", intStartIndex=0)Global- Found in:
- Dylbills PE
stringfunctionGetPscFunctionNamesFromFile(stringSourceFilePath, stringDivider="n", intStartIndex=0)Global- Found in:
- Dylbills PE
stringfunctionGetPscDataNamesFromFile(stringSourceFilePath, stringNameType, stringDivider="n", intStartIndex=0)Global- Found in:
- Dylbills PE
stringfunctionGetPscEventDefinitionsFromFile(stringSourceFilePath, stringDivider="n", intStartIndex=0)Global- Found in:
- Dylbills PE
stringfunctionGetPscFunctionDefinitionsFromFile(stringSourceFilePath, stringDivider="n", intStartIndex=0)Global- Found in:
- Dylbills PE
boolfunctionIsIndexInBlockComment(strings, intindex, stringblockCommentStart="/", stringblockCommentEnd=";")Globalis the index in string s between a block comment start and end
requires skse- Found in:
- Dylbills PE
stringfunctionGetPscDataDefinitionsFromFile(stringSourceFilePath, stringNameType, stringDivider="n", intStartIndex=0)Global- Found in:
- Dylbills PE
voidfunctionWriteJsonSaveAndLoadFunctionsToFile(stringSourceFilePath, stringDestinationFilePath="", boolGlobalVariablesToggle=true, boolFloatsToggle=true, boolStringsToggle=true, boolIntsToggle=true, boolBoolsToggle=true, boolGlobalVariableArraysToggle=true, boolFloatArraysToggle=true, boolStringArraysToggle=true, boolIntArraysToggle=true, boolBoolArraysToggle=true, intMessages=0, stringConfirmMessage="one Writing Json Functions", boolUsePropertiesAsDefaults=true)GlobalSearch the SournceFilePath for String / Int / Float / Global variables, if their toggles are enabled, (outside of any events or functions)
and write Json Save and Load functions to DestinationFilePath for said variables.
If DestinationFilePath == "" it will write the functions to the SourceFilePath.
Set Messages int to 0 to display ConfirmMessage notification when finished, set to 1 to display messagebox.
requires skse and PapyrusUtil
