Open Shop
Open a shop for a player
Action opening a shop for a player.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
shop | Ref<ShopDefinitionEntry> | — | Shop definition to open for the player. |
Common TypeWriter fields (criteria, modifiers, triggers)
| Field | Type | Default | Description |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Point shop at a Shop Definition. The shop opens three ticks after the action runs, so it can follow a dialogue or a menu close without clashing with the window that is closing. The shop's own access criteria are checked at that moment, and the player gets criteriaFailMessage if they do not match. No permission is needed to open a shop this way; typewriter.shop.open only protects /tw shop <shop>.