◆Cobblemon Wiki

MoLang

Molang 배틀 Functions

Type is ObjectValue<PokemonBattle>.

battle_id(): String배틀 ID를 문자열로 반환합니다.q.battle.battle_id()
is_pvn(): Double1.0을 반환합니다: 배틀 is 플레이어 vs. NPC, 그렇지 않으면 0.0을 반환합니다.q.battle.is_pvn()
is_pvp(): Double1.0을 반환합니다: 배틀 is 플레이어 vs. 플레이어, 그렇지 않으면 0.0을 반환합니다.q.battle.is_pvp()
is_pvw(): Double1.0을 반환합니다: 배틀 is 플레이어 vs. a 야생 포켓몬, 그렇지 않으면 0.0을 반환합니다.q.battle.is_pve()
battle_type(): String배틀 형식을 문자열로 반환합니다.q.battle.battle_type()
environment(): CHECK TYPE환경을 반환합니다.q.battle.environment()
get_actor(uuid: String): MoValueObjectValue<BattleActor> 구조체가 있으면 반환하고, 없으면 0.0을 반환합니다.q.battle.get_actor(q.npc.get_id())
stop()Stops the 배틀.q.battle.stop()
actors(): ArrayValue<ObjectValue<BattleActor>>배틀의 모든 액터에 대한 ArrayValue<ObjectValue<BattleActor>>를 반환합니다.q.battle.actors()