Stock Items for Items

How to use the StockItems setting for regular Items.


The Stock Items is a new setting introduced in v1.6.0. It allows you to manage Items for several stores more easily and reuse a same stock of Item across several Mart or Shelf events.



Example 1

Setting Setup

1
StockItems = {
2
:normalStore => [
3
:POKEBALL, :GREATBALL, :ULTRABALL,
4
:POTION, :SUPERPOTION, :HYPERPOTION, :MAXPOTION,
5
:FULLRESTORE, :REVIVE,
6
:REPEL, :SUPERREPEL, :MAXREPEL,
7
:ANTIDOTE, :BURNHEAL, :ICEHEAL, :AWAKENING, :PARALYZEHEAL, :FULLHEAL
8
]
9
}
  • :normalStore — The name of the stock.
    • An Array of Items for this stock.

Usage in a Mart event

To use it in your Mart or Shelf event, you type the name of the stock but as a string instead of a hash.

1
def pbSomeMart
2
pbPokemonMart("normalStore", speech: "ProSeller", discount: 29, useCat: true, billEnd: true)
3
end

Example 2

Setting Setup

1
StockItems = {
2
:limitStore => ["daily",
3
[:POKEBALL, 10, 18], [:GREATBALL, 12, 16], [:ULTRABALL, 8, 15],
4
:POTION, :SUPERPOTION, :HYPERPOTION, :MAXPOTION,
5
[:FULLRESTORE, 20, 25], :REVIVE,
6
:REPEL, [:SUPERREPEL, 20], :MAXREPEL
7
]
8
}
  • :limitStore — The name of the stock.
    • An Array of Items for this stock. But this time they include Item Limits as well.

Usage in a Mart event

1
def pbSomeShelf
2
pbShelfMart("limitStore", speech: "ShelfOne", discount: 29)
3
end