tuxemon.event.actions.npc_run module

final class tuxemon.event.actions.npc_run.NpcRun(npc_slug)[source]

Bases: EventAction

Set the NPC movement speed to the global run speed.

Script usage

npc_run <npc_slug>
Script parameters:

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


npc_slug (str) –

name: ClassVar[str] = 'npc_run'
npc_slug: str

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: