tuxemon.event.conditions.has_tech module

class tuxemon.event.conditions.has_tech.HasTechCondition[source]

Bases: EventCondition

Check to see if the player has a technique in his party.

Script usage

is has_tech <technique>
Script parameters:

technique – Technique slug name (e.g. “bullet”).

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

Check to see if the player has a technique in his party.

Parameters:
  • session (Session) – The session object

  • condition (MapCondition) – The map condition object.

Returns:

Whether the player has a technique in his party.

Return type:

bool