Create a Merchant NPC and an Alchemy Machine
Build a walking merchant (classic shop) and an alchemy station (free craft mode) using the Transform action.
Video Walkthrough
Step-by-step Guide
Create two consumable potions
Create 'Healing Potion' and 'Speed Potion' with category 'Consumable'. The category auto-unlocks the OnConsume entry point.
Healing Potion: ModifyStat(Restore) + ConsumeItem
On Healing Potion, OnConsume → ModifyStat (mode 'Restore', stat 'vitality', value 50) → ConsumeItem. The 'Restore' mode clamps to max — no overheal.
Speed Potion: temporary effect with SetTimer
On Speed Potion, OnConsume → ConsumeItem first (no stack exploit), then ModifyStat(Increase, 'speed', +5) → SetTimer(30s) → ModifyStat(Decrease, 'speed', 5). The boost auto-cancels after 30 seconds.
Create two recipes
On the Recipes page: 'Buy Healing Potion' (input: gold ×10, output: Healing Potion ×1) and 'Speed Elixir' (inputs: Wood ×3 + Mana Crystal ×1, output: Speed Potion ×1).
Merchant: classic mode (allowFreeMode unchecked)
Create item 'Merchant' (category None). OnSpawn fan-out: ChangeBehavior(Walk) + Interact('Trade') → Transform with recipes ['Buy Healing Potion'], title 'Plain Merchant', allowFreeMode UNCHECKED. The player sees a button — clean and simple.
Alchemy Machine: free mode (allowFreeMode checked)
Create item 'Alchemy Machine' (category None, no Humanoid). OnSpawn → Interact('Use') → Transform with recipes ['Speed Elixir'], title 'Alchemy Machine', allowFreeMode CHECKED. The player drags ingredients into a workbench — the engine recognizes the matching recipe.