tuxemon.event.actions.teleport_faint module

final class tuxemon.event.actions.teleport_faint.TeleportFaintAction[source]

Bases: EventAction

Teleport the player to the point in the teleport_faint variable.

Usually used to teleport to the last visited Tuxcenter, as when all monsters in the party faint.

Script usage

teleport_faint
name: ClassVar[str] = 'teleport_faint'
session: Session
start()[source]

Called only once, when the action is started.

For all actions, you will need to override this method.

For actions that only need to run one frame you can simply put all the code here. If the action will need to run over several frames, you can init your action here, then override the update method.

Return type:

None