Stock Items for Species

How to use the StockItems setting for Species


The Stock Items settings can also be used for Species events. The Usage in the event is the same as for the Mart and Shelf events but for defining a Species, there are a lot of parameters that you can apply.


Simple Version

1
StockItems = {
2
:pokemonStore => [
3
{
4
name: :BULBASAUR,
5
price: 9500,
6
level: 15
7
},
8
{
9
name: :CHARMANDER,
10
price: 9500,
11
level: 15
12
},
13
{
14
name: :SQUIRTLE,
15
price: 9500,
16
level: 15
17
}
18
]
19
}

There is only 1 required parameter for each species:

  • name: — The ID of the species The others are all optional
  • price — The price for the species
  • level — The level the species is sold as.


Extended Version

Like mentioned in the Simple Version, all the parameters in the Extended Version are optional, this is only the craziest setup for a Species that you can go with.

1
StockItems = {
2
:pokemonStore => [
3
{
4
name: :GROWLITHE, # :GROWLITHE for Kantonian Growlithe, :GROWLITHE_1 for Hisuian Growlithe
5
price: 11000, # price of the species
6
level: 25, # level of the species
7
description: "A cute Dog that can be dangerous too...", # description to show in the Mart UI.
8
ability: 1, # ability of the species
9
nickname: "Doggo", # nickname of the species
10
gender: 0, # male or 0, female or 1, genderless = 2
11
item: :MASTERBALL, # held item
12
pokeball: :CHERISHBALL, # pokemon species is caught in
13
nature: :RELAXED, # nature of the species
14
form: 0, # form of the species (if you provide this, make sure the name parameter matches)
15
obtain: { # obtain details
16
level: 15, # level when it was obtained
17
map: 24, # map it was obtained on
18
method: 2, # 0 = met, 1 = egg received, 2 = traded and 4 = fateful encounter
19
text: "Bought from a shady seller in Cedolan City...", # replaces obtain map with text.
20
},
21
owner: {
22
id: 14458, # "random" or specify a number
23
name: "Maurice", # owner name
24
gender: 0, # 0 (male), 1 (female), 2 (mixed), 3 (unknown)
25
language: 2, # 0 (unkown), 1 (japanese), 2 (english, default), 3 (french), 4 (italian), 5 (german), 7 (spanish), 8 (korean)
26
},
27
ivs: { # modify species ivs
28
HP: 15,
29
ATTACK: 25,
30
DEFENCE: 25,
31
SPECIAL_ATTACK: 15,
32
SPECIAL_DEFENCE: 25,
33
SPEED: 31
34
},
35
evs: { # modiy species evs
36
HP: 20,
37
ATTACK: 110,
38
DEFENCE: 40,
39
SPECIAL_ATTACK: 120,
40
SPECIAL_DEFENCE: 40,
41
SPEED: 140
42
},
43
shiny: 8, # = 1/8, true or false by default
44
supershiny: false, # same as shiny, set a chance, true or false by default
45
moves: [ # set the moves for the species, adding more than 4 will make the first one get replaced by the 5th.
46
:FIREBLAST,
47
:FLAMETHROWER,
48
:EXTREMESPEED,
49
:OUTRAGE,
50
:TACKLE
51
].sample(4), # use .sample(4) to have a random selection of 4 moves if you added more than 4 moves
52
cannotstore: false, # species cannot be stored in the pc
53
cannottrade: false, # species cannot be traded
54
cannotrelease: false, # species cannot be released
55
happiness: "walking", # events are possible too: walking, levelup, groom, evberry, vitamin, wing, machine, battleitem, faint, faintbad, powder, energyroot, revivalherb
56
pokerus: 16, # a number between 1 and 15 or 0 for random.
57
status: :SLEEP # set the status of the species
58
}
59
]
60
}