tuxemon.event.actions.npc_walk module

final class tuxemon.event.actions.npc_walk.NpcWalk(npc_slug)[source]

Bases: EventAction

Set the NPC movement speed to the global walk speed.

Script usage

npc_walk <npc_slug>
Script parameters:

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

Parameters:

npc_slug (str) –

name: ClassVar[str] = 'npc_walk'
npc_slug: str
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