tuxemon.event.conditions.once module

class tuxemon.event.conditions.once.OnceCondition[source]

Bases: EventCondition

Checks the date saved in the variables with today’s date.

Script usage

is once <timeframe>,<variable>
Script parameters:
  • timeframe – nr of days the event stays “blocked” (eg. 1, 7, etc.)

  • variable – Variable where the date is stored.

name: ClassVar[str] = 'once'
test(session, condition)[source]

Return True if the condition is satisfied, or False if not.

  • session (Session) – Object containing the session information.

  • condition (MapCondition) – Condition defined in the map.


Value of the condition.

Return type: