tuxemon.event.actions.get_party_monsters module

final class tuxemon.event.actions.get_party_monsters.GetPartyMonsterAction(npc_slug=None)[source]

Bases: EventAction

Saves all the iids (party) in variables.

Script usage

get_party_monster [npc_slug]
Script parameters:

npc_slug – npc slug name (e.g. “npc_maple”) - default “player”


npc_slug (str | None) –

name: ClassVar[str] = 'get_party_monster'
npc_slug: str | None = None

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: