Min(arg1, arg2, ...) |
Return the argument with the lower value |
Max(arg1, arg2, ...) |
Return the argument with the higher value |
Clamp(value, min, max) |
Return Min(Max(value, min), max) |
Clamp01(value) |
Return Clamp(value, 0, 1) |
Sqrt(value) |
Square root function |
Round(value) |
Returns value rounded to the nearest integer |
Floor(value) |
Returns value rounded to the lowest integer |
Ceil(value) |
Returns value rounded to the highest integer |
Log(number, base) |
Return the logarithm of number in the given base |
Logn(number) |
Return the natural logarithm of number (base e) |
Exp(number) |
Return the Exponential of number. |
$(ContextKey) |
Return the object assotiated to ContextKey in the interpreter context |
Registry(RegistryPath) |
Return the value stored in game registry at path RegistryPath |
Format(expression, arg1, arg2, ...) |
Format the string expression with arguments |
Path(Object, @Path) |
Return true if the path @Path is verified from Object |
Property(Object, [@Path], PropertyName, [Silent]) |
Return the property value located at @Path from Object (@Path argument is optionnal). This function throw an error if the property is not found unless if the optionnal argument silent is set to true. In that case the returned value is 0. |
Descriptor(Object, [@Path], DescriptorType) |
Return the descriptor name of type DescriptorType located at @Path from Object (@Path argument is optionnal) |
SumProperty(Object, @Path, PropertyName) |
Return the sum of property value located at @Path from Object. |
MaxProperty(Object, @Path, PropertyName) |
Return the maximum property value located at @Path from Object. |
MinProperty(Object, @Path, PropertyName) |
Return the minimum property value located at @Path from Object. |
Count(Object, @Path) |
Count the number of simulation object that verify the path @Path from Object |
Count(Object, @Path, PropertyName, operator, value) |
Count the number of simulation object that verify the path @Path and the condition (Propery operator value) from Object. For example "Count(Army, @'ClassGarrisonFleet/ClassShip', Level, gt, 4)" count the ship with a level greater than 4. |