Mart Event Setup
How to set up a Mart event.
Mart Event
The script command hasn't changed — but as of v1.4.0, you can now provide extra arguments, which means the full command can get quite large.
Here's how a basic setup would look inside an event:
1
pbPokemonMart([
2
:POKEBALL, :GREATBALL, :ULTRABALL,
3
:ESCAPEROPE,
4
:REPEL, :SUPERREPEL, :MAXREPEL,
5
:GRASSMAIL, :FLAMEMAIL,
6
:BUBBLEMAIL, :SPACEMAIL
7
])

If your list of items gets too long, there's a much cleaner way to organize it using a helper method.
HintYou can define a method in the
000_PokeMarket_Settings_and_Setup.rbfile to clean up your event commands.
For example, at the bottom of that file, add:
1
def pbSomeMart
2
pbPokemonMart([
3
:POKEBALL, :GREATBALL, :ULTRABALL,
4
:ESCAPEROPE,
5
:REPEL, :SUPERREPEL, :MAXREPEL,
6
:GRASSMAIL, :FLAMEMAIL,
7
:BUBBLEMAIL, :SPACEMAIL
8
])
9
end
Now inside your event, you only need to call:
1
pbSomeMart
HintUsing methods like this helps you:
- Reuse item lists across multiple events
- Quickly update all associated events by changing just one method
- Keep your event clean and easier to manage
