BuyItem

How to use and define various BuyItem speeches.


Table of Contents


BuyItem

The BuyItem determines what the NPC says when the player has confirmed the chosen amount of the item (only 1) they want to buy.


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

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

To define the BuyItem, use this structure:

Placeholder Reference

  • {1} = Chosen Item's amount (always 1) — e.g., "1"
  • {2} = Chosen Item's name (singular) — e.g., "Poké Ball"
  • {3} = Final Item price (after discount/overcharge if any) — e.g., $200
Image not found
BuyItem 1
Image not found
BuyItem 2

BuyItemMult

The BuyItemMult determines what the NPC says when the player has confirmed the chosen amount of the item (2 or more) they want to buy.


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

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

To define the BuyItemMult, use this structure:

Placeholder Reference

  • {1} = Chosen Item's amount (more than 1) — e.g., "2"
  • {2} = Chosen Item's name (plural) — e.g., "Great Balls"
  • {3} = Final Item price (after discount/overcharge if any) — e.g., "$1200"
Image not found
BuyItemMult

BuyItemImportant

The BuyItemImportant determines what the NPC says when the player has confirmed amount of the important item (always 1) they want to buy.


See the Essentials Wiki's Items page for more information.


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

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

To define the BuyItemImportant, use this structure:

Placeholder Reference

  • {1} = Chosen (important) Item's name (singular) — e.g., "Escape Rope"
  • {2} = Total price chosen (important) Item's name (after discount/overcharge if any) — e.g., "$500"
Image not found
BuyItemImportant

Once you've bought an Important Item, it'll no longer show in the Item's list.

Image not found
BuyItemImportant Out of Stock