BuyOutOfStock

How to use and define BuyOutOfStock speeches.


The BuyOutOfStock determines what the NPC will say when the player is trying to choose an Item that is out of stock.


Just like with IntroText, you can define multiple entries, and the script will randomly choose one each time.

Attention
Unlike IntroText, Buyoutofstock does not support Time and Day variations — this is intentionally kept simpler.

To define the BuyOutOfStock, use this structure:

1
BuyOutOfStock: [
2
"We're really sorry, this item is currently out of stock. Come back {2}!",
3
"We're sorry but we don't have any {1} left. Come back {2}!",
4
"Come back {2} when we have more {1}."
5
]

Placeholder Reference

  • {1} = Chosen Item's name (plural) — e.g., "Potions"
  • {2} = Time remaining until the Stock will be resetted — e.g., "tomorrow".
Image 0 not found
BuyOutOfStock Example 1
Image 1 not found
BuyOutOfStock Example 2
Image 2 not found
BuyOutOfStock Example 3