◆Cobblemon Wiki

MoLang

Molang 포켓몬 Functions

타입은 ObjectValue<Pokemon>입니다.

NameDescriptionUsage
id(): String포켓몬의 UUID를 문자열로 반환합니다.v.pokemon.id()
level(): Double포켓몬의 레벨을 Double로 반환합니다.v.pokemon.level()
max_hp(): Double포켓몬의 최대 HP를 Double로 반환합니다.v.pokemon.hp()
current_hp(): Double포켓몬의 현재 HP를 Double로 반환합니다.v.pokemon.current_hp()
friendship(): Double포켓몬의 친밀도를 Double로 반환합니다.v.pokemon.friendship()
evs(): QueryStruct포켓몬의 모든 노력치를 QueryStruct로 반환합니다.v.pokemon.evs()
ivs(): QueryStuct포켓몬의 모든 개체값을 QueryStruct로 반환합니다.v.pokemon.ivs()
is_wild(): Double1.0을 반환합니다: the 포켓몬 is 야생, 그렇지 않으면 0.0을 반환합니다.v.pokemon.is_wild()
is_shiny(): Double1.0을 반환합니다: the 포켓몬 is shiny, 그렇지 않으면 0.0을 반환합니다.v.pokemon.is_shiny()
species(): ObjectValue<Species>포켓몬 종의 ObjectValue<종>을 반환합니다.v.pokemon.species()
form(): String폼을 문자열로 반환합니다.v.pokemon.form()
weight: Double포켓몬의 몸무게를 Double로 반환합니다.v.pokemon.weight()
matches(properties: String): Double1.0을 반환합니다: the 포켓몬 matches the properties 문자열, 그렇지 않으면 0.0을 반환합니다.v.pokemon.matches('gender=male')
apply(properties: String): DoubleApplies the properties to the 포켓몬. 1.0을 반환합니다.v.pokemon.apply('gender=male')
owner(): MoValue포켓몬의 주인을 ObjectValue<Player>로 반환하며, 주인이 없으면 0.0을 반환합니다.v.pokemon.owner()