tuxemon.event.conditions.party_size module

class tuxemon.event.conditions.party_size.PartySizeCondition[source]

Bases: EventCondition

Check the party size.

Script usage

is party_size <operator>,<value>
Script parameters:
  • operator – Numeric comparison operator. Accepted values are “less_than”, “less_or_equal”, “greater_than”, “greater_or_equal”, “equals” and “not_equals”.

  • value – The value to compare the party size with.

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

Check the party size.

  • session (Session) – The session object

  • condition (MapCondition) – The map condition object.


Result of the comparison between the party size and the chosen value.

Return type: