tuxemon.event.actions.battles_print module

final class tuxemon.event.actions.battles_print.BattlesAction(character=None, result=None)[source]

Bases: EventAction

Print the current value of battle history to the console.

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

Script usage

battles_print
battles_print [<character>,<result>]
Script parameters:

character: Npc slug name (e.g. “npc_maple”). result: One among “won”, “lost” or “draw”

Parameters:
  • character (str | None) –

  • result (str | None) –

character: str | None = None
name: ClassVar[str] = 'battles_print'
result: str | None = None
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