tuxemon.event.conditions.npc_at module

class tuxemon.event.conditions.npc_at.NPCAtCondition[source]

Bases: EventCondition

Check to see if a character is at the condition position on the map.

Script usage

is npc_at <character>
Script parameters:

character – Either “player” or npc slug name (e.g. “npc_maple”).

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

Check to see if a character is at the condition position on the map.

Parameters:
  • session (Session) – The session object

  • condition (MapCondition) – The map condition object.

Returns:

Whether the chosen character is in the condition position.

Return type:

bool