> For the complete documentation index, see [llms.txt](https://arckytech.gitbook.io/arckys-poke-mart-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arckytech.gitbook.io/arckys-poke-mart-guide/setting-up-the-events/setting-up-a-mart-event.md).

# Setting up a Mart Event

How to set up the poke mart event.

## Mart Event

The script command didn't change, I've only added the possibility to provide a few extra arguments and because of that the actual script command can become pretty big.

This is for example how you would set it up now inside an event:

```ruby
pbPokemonMart([
  :POKEBALL, :GREATBALL, :ULTRABALL,
  :ESCAPEROPE,
  :REPEL, :SUPERREPEL, :MAXREPEL,
  :GRASSMAIL, :FLAMEMAIL,
  :BUBBLEMAIL, :SPACEMAIL
])
```

<div align="left"><figure><img src="https://1523864583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA8k6OdYm2B0bVeFyJUcK%2Fuploads%2Fh9ZGGbbktSwcY96PNtcc%2FDefault%20Mart%20Event.png?alt=media&amp;token=b5958485-4872-4588-ad82-5bbbcb3e8f2b" alt="" width="337"><figcaption><p>Default Mart Event</p></figcaption></figure></div>

The list of items you want to mart even to have can become really big so you can easily solve this by doing as follow. In the `000_PokeMart_Settings_and_Setup.rb` file you can add this at the bottom (use notepad ++ or any other code editor program to edit this file):

```ruby
def pbSomeMart
  pbPokemonMart([
    :POKEBALL, :GREATBALL, :ULTRABALL,
    :ESCAPEROPE,
    :REPEL, :SUPERREPEL, :MAXREPEL,
    :GRASSMAIL, :FLAMEMAIL,
    :BUBBLEMAIL, :SPACEMAIL
  ])
end
```

Inside the Mart Event you only need to put `pbSomeMart` or whatever you named the method. This way you can have multiple events have the same kind of items and when you edit this method, it'll be updated for all events using this one method. It'll also be a lot more organized and easier to manage.

<div align="left"><figure><img src="https://1523864583-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA8k6OdYm2B0bVeFyJUcK%2Fuploads%2FOZHmmbfemqH5ilQcisqY%2FShorter%20Mart%20Event.png?alt=media&amp;token=0cd7fe6c-c01f-4dcd-8be2-d0faf4347444" alt="" width="337"><figcaption><p>Shorter Mart Event</p></figcaption></figure></div>
