Background for Skyrim SE
Member of the DbConditionFunctions script
voidfunctionCreateCondition(stringconditionId, intconditionFunction, intcomparison=0, floatvalue=1.0)NativeGlobal

Description

Documentation Comment

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.


Parameters

  1. stringconditionId

  2. intconditionFunction

  3. intcomparison=0

  4. floatvalue=1.0


Examples

Auto-Generated Example

string myString__conditionId
int myInt__conditionFunction
int myInt__comparison
float myFloat__value

DbConditionFunctions.CreateCondition(myString__conditionId, myInt__conditionFunction, myInt__comparison, myFloat__value)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.