Methods
Encounter:addEnemy(enemy: any, x: any, y: any, : unknown)
Arguments:
enemy: any | |
x: any | |
y: any | |
: unknown |
Returns:
1: EnemyBattler|nil |
Encounter:onMenuSelect(state: any, item: any, can_select: any)
Arguments:
state: any | |
item: any | |
can_select: any |
Fields
Undocumented
Encounter.background: boolean
Whether the default grid background is drawn
Encounter.default_xactions: table|unknown|nil
Whether characters have the X-Action option in their spell menu
Encounter.defeated_enemies: nil
A copy of Battle.defeated_enemies, used to determine how an enemy has been defeated.
Encounter.hide_world: boolean
If enabled, hides the world even if the default background is disabled
Encounter.music: string
The music used for this encounter
Encounter.no_end_message: boolean
Should the battle skip the YOU WON! text?
Encounter.queued_enemy_spawns: table
Table used to spawn enemies when the battle exists, if this encounter is created before
Encounter.text: string
Text that will be displayed when the battle starts