Difference between revisions of "Operator Element"

1 byte added ,  12:10, 21 December 2023
no edit summary
imported>Kyoma
Line 1: Line 1:
== Overview ==
== Overview ==
Operator Elements are a subgroup of the elements in the [[:Category: Oblivion XML|Oblivion XML]] schema, always found as children of [[Property Element]]s.  They are used to create mathematical formulas, which the game engine evaluates in real time to get the property value.
Operator Elements are a subgroup of the elements in the [[:Category: Oblivion XML|Oblivion XML]] schema, always found as children of [[Property Element]]s.  They are used to create mathematical formulas, which the game engine evaluates in real time to get the property value.
 
Y
There is pretty much an Operator Element for every basic mathematical operator - at least every operator that takes two operands. The first operand is always the current value of the property (i.e. the value after evaluation of the previous operator, or the value from the previous update for the first operator).  If the operator contains a literal number or string, that is used as the second operand.  For example:
There is pretty much an Operator Element for every basic mathematical operator - at least every operator that takes two operands. The first operand is always the current value of the property (i.e. the value after evaluation of the previous operator, or the value from the previous update for the first operator).  If the operator contains a literal number or string, that is used as the second operand.  For example:
  <image>
  <image>
Anonymous user