Background for Skyrim SE

The DbConditionFunctions Script

    The DbConditionFunctions 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:

    • 17 functions


    Inheritance Tree

    No indexed scripts extend this script.

    Properties

    No properties found.

      Events

        No events found.

      Functions

      • voidfunctionCreateCondition(stringconditionId, intconditionFunction, intcomparison=0, floatvalue=1.0)NativeGlobal

        create a new condition. ConditionId should be unique, so for example use "modPrefix_conditionName".
        int comparison options are:
        0 = "=="
        1 = "!="
        2 = ">"
        3 = ">="
        4 = "<"
        5 = "<="
        If the condition with the conditionId already exists, this will overwrite the condition with a new one. If overwritten, the params will have to be set again.
        Use the ConditionExists function first to prevent this from happening.
        See below for the available int conditionFunctions.

      • voidfunctionDestroyCondition(stringconditionId)NativeGlobal

        Destroy the condition with the conditionId created with the CreateCondition function.

      • boolfunctionConditionExists(stringconditionId)NativeGlobal

        Does the condition with the conditionId exist?

      • boolfunctionSetConditionParameterForm(stringconditionId, Formparam, intparamIndex=0)NativeGlobal

        Set the nth parameter for the condition with the conditionId to the form param. paramIndex must be between 0 and 2.

      • boolfunctionSetConditionParameterAlias(stringconditionId, Aliasparam, intparamIndex=0)NativeGlobal

        Set the nth parameter for the condition with the conditionId to the Alias param. paramIndex must be between 0 and 2.

      • boolfunctionSetConditionParameterBool(stringconditionId, boolparam, intparamIndex=0)NativeGlobal

        Set the nth parameter for the condition with the conditionId to the Bool param. paramIndex must be between 0 and 2.

      • boolfunctionSetConditionParameterInt(stringconditionId, intparam, intparamIndex=0)NativeGlobal

        Set the nth parameter for the condition with the conditionId to the Int param. paramIndex must be between 0 and 2.

      • boolfunctionSetConditionParameterFloat(stringconditionId, floatparam, intparamIndex=0)NativeGlobal

        Set the nth parameter for the condition with the conditionId to the Float param. paramIndex must be between 0 and 2.

      • boolfunctionSetConditionParameterString(stringconditionId, stringparam, intparamIndex=0)NativeGlobal

        Set the nth parameter for the condition with the conditionId to the String param. paramIndex must be between 0 and 2.

      • boolfunctionSetConditionComparison(stringconditionId, intcomparison)NativeGlobal

        Set the condition with the conditionId's comparison for the conditionId.
        int comparison options are:
        0 = "=="
        1 = "!="
        2 = ">"
        3 = ">="
        4 = "<"
        5 = "<="

      • boolfunctionSetConditionValue(stringconditionId, floatvalue)NativeGlobal

        Set the condition with the conditionId's comparison value.

      • boolfunctionEvaluateCondition(stringconditionId, ObjectReferencetarget=NONE)NativeGlobal

        Run the condition with the conditionId on the optional target and evaluate. Return true if the condition is met.

      • boolfunctionConditionEventExists(stringconditionId, ObjectReferencetarget=NONE)NativeGlobal

        Does the condition event for the condition with the conditionId and target exist?

      • boolfunctionCreateConditionEvent(stringconditionId, ObjectReferencetarget=NONE)NativeGlobal

        Create a condition event for the condition with the conditionId on the optional target.
        Returns false if the event already exists or the condition with the conditionId wasn't found.

      • boolfunctionDestroyConditionEvent(stringconditionId, ObjectReferencetarget=NONE)NativeGlobal

        Destroy the condition event previously created for the condition with the conditionId on the optional target.
        Returns true if the event exists and was destroyed.

      • intfunctionDestroyAllConditionEvents(stringconditionId)NativeGlobal

        Destroy all condition events created with the CreateConditionEvent function for the condition with the conditionId and return the number destroyed.
        Note that using DestroyCondition(string conditionId) will DestroyAllConditionEvents for the conditionId as well.

      • intfunctionCountConditionEvents(stringconditionId)NativeGlobal

        Count how many condition events were created with the CreateConditionEvent function for the condition with the conditionId.

      Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.