Money Step

Modifies the player’s spirit stones (money).

Interface

interface ChangeMoneyStep {
  kind: 'money';
  condition?: string;
  amount: string;
}

Properties

kind - Always 'money'

amount - String expression for amount to add/remove. Use negative values to remove money.

condition (optional) - Flag expression that must evaluate to true for the step to execute.

Examples

Add Money

{
  kind: 'money',
  amount: '500'
}

Remove Money

{
  kind: 'money',
  amount: '-200'
}

Variable Amount

{
  kind: 'money',
  amount: 'realm * 100'
}