Molang PC Functions
Can also use PokémonStore functions. Type is ObjectValue<PCStore>
.
Name | Description | Usage |
---|---|---|
get_pokemon(box: Int, slot: Int): MoValue
|
Returns an ObjectValue<Pokemon> of the pokemon at the supplied box and slot . Returns 0.0 if there is no Pokémon there.
|
v.pc.get_pokemon(0, 0)
|
resize(newSize: Int, lockNewSize: Boolean?): Double
|
Resizes the PC with the supplied newSize . lockNewSize is false by default. Returns 1.0 .</syntaxhighlight>
|
v.pc.resize(25)
|
get_box_count(): Double
|
Returns the number of boxes as a Double. | v.pc.get_box_count()
|