Trigger: Transaction failed

TriggerNo. 9132

Synopsis

Transactions are all or nothing: if one fails it is fully undone, the player keeps what they offered and nothing is charged. This box tells you about that failure, for example when chests or funds are missing. Select the contract and use it to explain to the player what happened.

Step by step

Detect a transaction without chests

Boxes you need

  1. TriggerTrigger: Transaction failed
  2. TriggerTrigger: Say something
  3. EffectEffect: Start transaction
  4. EffectEffect: Show message
  1. Configure a payment contract 9303 for a specific payment of 5 gold. Save the element and contract.
  2. Stack A: “Says something” 9111 = “try” and “Start transaction” 9217, Normal mode. Leave the Chests selection empty and select the contract under Contracts, secondary selection.
  3. Stack B: this box selecting that contract, with “Show message” 9185, “Failed”, to the triggering user. Save and say “try”.

Result: “Failed” appears and no payment is charged.

Settings

Settings window of “Trigger: Transaction failed”
This box's window in the game (Spanish client).

Notes

  • The contract must be selected: omitting the contract as well tests a different error.
  • If a transaction fails halfway (for example, the chest ran out of space), it's fully undone: the player keeps what they offered, gets nothing, the chests stay the same and Trigger: Transaction failed fires.

Related

Used in these recipes