Skip to main content

Open Shop

Open a shop for a player

Action opening a shop for a player.

Fields

FieldTypeDefaultDescription
shopRef<ShopDefinitionEntry>—Shop definition to open for the player.
Common TypeWriter fields (criteria, modifiers, triggers)
FieldTypeDefaultDescription
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<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>.