tuxemon.event.actions.print module

final class tuxemon.event.actions.print.PrintAction(variable=None)[source]

Bases: EventAction

Print the current value of a game variable to the console.

If no variable is specified, print out values of all game variables.

Script usage

print <variable>
Script parameters:

variable: Optional, prints out the value of this variable.


variable (str | None) –

name: ClassVar[str] = 'print'

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:


variable: str | None = None