Molang Battle Functions
Type is ObjectValue<PokemonBattle>
.
battle_id(): String
|
Returns the ID of the battle as a String. | q.battle.battle_id()
|
is_pvn(): Double
|
Returns 1.0 if battle is Player vs. NPC, otherwise returns 0.0 .
|
q.battle.is_pvn()
|
is_pvp(): Double
|
Returns 1.0 if battle is Player vs. Player, otherwise returns 0.0 .
|
q.battle.is_pvp()
|
is_pvw(): Double
|
Returns 1.0 if battle is Player vs. a wild Pokémon, otherwise returns 0.0 .
|
q.battle.is_pve()
|
battle_type(): String
|
Returns the battle format as a String. | q.battle.battle_type()
|
environment(): CHECK TYPE
|
Returns the environment. | q.battle.environment()
|
get_actor(uuid: String): MoValue
|
Returns the struct of the ObjectValue<BattleActor> |
q.battle.get_actor(q.npc.get_id())
|
stop()
|
Stops the battle. | q.battle.stop()
|
actors(): ArrayValue<ObjectValue<BattleActor>>
|
Returns an ArrayValue<ObjectValue<BattleActor>> of all actors in a battle
|
q.battle.actors()
|