Molang PokémonEntity Functions

Revision as of 22:41, 19 April 2025 by JPAKx4 (talk | contribs) (Added Molang PokemonEntity Functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Can also use entity and pokémon functions. Type is ObjectValue<PokemonEntity>.

Name Description Usage
in_battle(): Double
Returns 1.0 if the Pokémon is in battle, otherwise returns 0.0.
v.pokemonEntity.in_battle()
is_moving(): Double
Returns 1.0 if the Pokémon is moving otherwise returns 0.0.
v.pokemonEntity.is_moving()
is_flying(): Double
Returns 1.0 if the Pokémon is in flying, otherwise returns 0.0.
v.pokemonEntity.is_flying()
has_aspect(aspect: String): Double
Returns 1.0 if the Pokémon has the aspect, otherwise returns 0.0.
v.pokemonEntity.has_aspect('alolan')
is_pokemon(): Double
Returns 1.0.
v.pokemonEntity.is_pokemon()