tuxemon.event.conditions.has_sprite module

class tuxemon.event.conditions.has_sprite.HasSpriteCondition[source]

Bases: EventCondition

Check to see if a NPC has a specific sprite.

Script usage

is has_sprite <sprite>
Script parameters:

sprite – Sprite slug (eg. adventurer, heroine, swimmer, etc.)

name: ClassVar[str] = 'has_sprite'
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: