BuyMerchant
Buy quantities from the open merchant as a main or secondary action. MerchantNPC restricts the merchant; place junk sales before purchases.
- 值的格式
- table
- 適用範圍
- step
技術說明保留英文原文。欄位名稱與 Lua 範例維持不變。
範例
原始檔範例。請依照你的路線替換 ID 與數值;本網站不會執行 Lua。
BuyMerchant = { { itemID = 4371, quantity = 1 } }已記載的參數
| 已記載的參數 | 行為與詳細資訊 | 值的格式 |
|---|---|---|
itemID | Shown in the source example; this does not establish a required field. | number |
quantity | Shown in the source example; this does not establish a required field. | number |
行為與詳細資訊
Forms shown in the documentation, not an exhaustive runtime schema. Constant runtime types are not inferred.
Action / Progression Options
An action waits for completion; a failed step condition skips the step. Use one main action per step.
Item handling fallback
Cached item names take priority; text or Text supplies fallback advice. Localization keys and literal text are accepted.
Main actions
Use separate SellItems and Repair steps with the same coordinates; only one main action per step.
Selling then buying
Use successive steps with the same coordinates and character restrictions. Put an already-owned-item purchase filter only on the purchase.