Methods
Battle:commitAction(battler: any, action_type: any, target: any, data: any, extra: any)
Arguments:
battler: any | |
action_type: any | |
target: any | |
data: any | |
extra: any |
Battle:debugPrintOutline(string: any, x: any, y: any, color: any)
Arguments:
string: any | |
x: any | |
y: any | |
color: any |
Battle:endActionAnimation(battler: any, action: any, callback: any)
Arguments:
battler: any | |
action: any | |
callback: any |
Battle:getActionBy(battler: any, ignore_current: any)
Arguments:
battler: any | |
ignore_current: any |
Returns:
1: unknown|nil |
Battle:getSoulLocation(always_origin: any)
Arguments:
always_origin: any |
Returns:
1: number|unknown|nil | |
2: number|unknown|nil |
Battle:getTargetForItem(item: any, default_ally: any, default_enemy: any)
Arguments:
item: any | |
default_ally: any | |
default_enemy: any |
Returns:
1: unknown[]|nil |
Battle:hurt(amount: any, exact: any, target: any)
Arguments:
amount: any | |
exact: any | |
target: any |
Returns:
1: unknown[] |
Battle:powerAct(spell: any, battler: any, user: any, target: any)
Arguments:
spell: any | |
battler: any | |
user: any | |
target: any |
Battle:pushAction(action_type: any, target: any, data: any, character_id: any, extra: any)
Arguments:
action_type: any | |
target: any | |
data: any | |
character_id: any | |
extra: any |
Battle:pushForcedAction(battler: any, action: any, target: any, data: any, extra: any)
Arguments:
battler: any | |
action: any | |
target: any | |
data: any | |
extra: any |
Battle:registerXAction(party: any, name: any, description: any, tp: any)
Arguments:
party: any | |
name: any | |
description: any | |
tp: any |
Battle:setWaves(waves: any, allow_duplicates: any)
Arguments:
waves: any | |
allow_duplicates: any |
Returns:
1: table |
Battle:startActCutscene(group: any, id: any, dont_finish: any)
Arguments:
group: any | |
id: any | |
dont_finish: any |
Returns:
1: Cutscene|nil |
Battle:startCutscene(group: any, id: any, : unknown)
Arguments:
group: any | |
id: any | |
: unknown |
Returns:
1: BattleCutscene |
Fields
Undocumented
Battle.party_beginning_positions: table
Only used in TRANSITION, but whatever
Battle.spare_sound: love.Source|nil
A Source represents audio you can play back.
You can do interesting things with Sources, like set the volume, pitch, and its position relative to the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources.
The Source controls (play/pause/stop) act according to the following state table.
Battle.ui_move: love.Source|nil
A Source represents audio you can play back.
You can do interesting things with Sources, like set the volume, pitch, and its position relative to the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources.
The Source controls (play/pause/stop) act according to the following state table.
Battle.ui_select: love.Source|nil
A Source represents audio you can play back.
You can do interesting things with Sources, like set the volume, pitch, and its position relative to the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources.
The Source controls (play/pause/stop) act according to the following state table.