tuxemon.event.actions.set_money module

final class tuxemon.event.actions.set_money.SetMoneyAction(wallet, amount)[source]

Bases: EventAction

Set the key and value in the money dictionary.

Script usage

set_money <slug>,<amount>
Script parameters:
  • slug – Slug name (e.g. player or NPC, etc.).

  • amount – Amount of money

  • wallet (str) –

  • amount (int) –

amount: int
name: ClassVar[str] = 'set_money'

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:


wallet: str