tuxemon.event.actions.remove_monster module

final class tuxemon.event.actions.remove_monster.RemoveMonsterAction(instance_id, trainer_slug=None)[source]

Bases: EventAction

Remove a monster from the given trainer’s party if the monster is there.

Monster is determined by instance_id, which must be passed in a game variable.

Script usage

remove_monster <instance_id>[,trainer_slug]
Script parameters:
  • instance_id – Id of the monster.

  • trainer_slug – Slug of the trainer. If no trainer slug is passed it defaults to the current player.

  • instance_id (str) –

  • trainer_slug (str | None) –

instance_id: str
name: ClassVar[str] = 'remove_monster'

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:


trainer_slug: str | None = None