tuxemon.event.conditions.money_is module

class tuxemon.event.conditions.money_is.MoneyIsCondition[source]

Bases: EventCondition

Check to see if the player has a certain amount of money (pocket).

Script usage

is money_is <slug>,<operator>,<value>
Script parameters:
  • slug – Slug name (e.g. player or NPC, etc.).

  • operator – Numeric comparison operator. Accepted values are “less_than”, “less_or_equal”, “greater_than”, “greater_or_equal”, “equals” and “not_equals”.

  • amount – Amount of money

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

Check to see if the player has a certain amount of money (pocket).

Parameters:
  • session (Session) – The session object

  • condition (MapCondition) – The map condition object.

Returns:

Whether the player has a certain amount of money.

Return type:

bool