tuxemon.event.conditions.to_talk module

class tuxemon.event.conditions.to_talk.ToTalkCondition[source]

Bases: EventCondition

Check if we are attempting to talk to an npc.

Script usage

is to_talk <character>
Script parameters:

character – Npc slug name (e.g. “npc_maple”).

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

Check if we are attempting to talk to an npc.

Parameters:
  • session (Session) – The session object

  • condition (MapCondition) – The map condition object.

Returns:

Whether the player attempts to talk with the npc.

Return type:

bool