tuxemon.event.conditions.variable_is module
- class tuxemon.event.conditions.variable_is.VariableIsCondition[source]
Bases:
EventCondition
Check an operation over a variable.
Script usage
is variable_is <value1>,<operation>,<value2>
- Script parameters:
value1 – Either a variable or a number.
operation – One of “==”, “!=”, “>”, “>=”, “<” or “<=”.
value2 – Either a variable or a number.
- name: ClassVar[str] = 'variable_is'
- test(session, condition)[source]
Check an operation over a variable.
- Parameters:
session (Session) – The session object
condition (MapCondition) – The map condition object.
- Returns:
Result of the operation over the variable.
- Return type:
bool