
No error will be raised if you modify these conditions, but the game will reset them back to the appropriate value.
"combat rating" is your current combat rating (based on the strength of all the ships your fleet has disabled). "reputation: " is set to your current reputation with the given government, rounded down to a whole number. ": failed" is set when a mission is failed. ": declined" is set when a mission is declined. ": done" is set when a mission is successfully completed. This is incremented when you accept a mission, and decremented when you complete, or fail it. ": active", where is replaced with the name of any mission. This is incremented whenever a mission is offered to you, and is used by the "repeat" check to make sure a mission is not offered too many times. For example, "reputation: Crime Lords" : offered", where is replaced with the name of any mission. The ?= (maximum) operators allow setting to the minimum or maximum of the existing condition value and the given integer. ?=: The stored value is the greater of itself and the RHS. /=: The stored value is the quotient from the division of the original value by the RHS. *=: The stored value is multiplied by the RHS. -=: The stored value is decremented by the RHS. +=: The stored value is incremented by the RHS. =: The stored value is made equal to the RHS. The mutation operator can be one of the following: For example, if you want a conversation label to be reached if "(has A or (has B and has C)) and (has D)" is true, you would set the branch conditions as such:Īn applied condition results in the creation or modification of the condition, storing the value from the right-hand side (RHS). Within an "or" clause you can have additional "and" clauses and so on, allowing you to check any arbitrary logical combination. If instead you want it to succeed if any of the listed conditions are true, you can use an "or" sub-clause. Using the and and or keywords allows specifying a nested set of testable conditions.Ī testable condition set is satisfied only if every condition listed is true.
The "never" condition always evaluates to false, so it can be used to create a mission that can never succeed. As a special shortcut, you can write has instead of != 0, or not instead of = 0. The comparison operator can be =, !=,, =.
Polygonal collision detection algorithms.
Motion blur rendering using OpenGL shaders. Using frame tweening for smooth animations. Tricks for creating special blending modes.