1#ifndef FIGHTSTG_ACTION_H
2#define FIGHTSTG_ACTION_H
62#if VERSION_EU || VERSION_JP
Counterattack * FIGHTSTG_startCounterattack(s32 side, s32 received, s32 noKnockOutEvent)
Starts SIDE's counterattack (FIGHTSTG_updateCounterattack) to RECEIVED damage; NOKNOCKOUTEVENT keeps ...
ActionEvents * FIGHTSTG_startActionEvents(s32 side)
Starts running the current action's events for SIDE (FIGHTSTG_updateActionEvents)
TechBoost FIGHTSTG_sideBoosts[]
and the ones that boost a stat of all the user's side
s32 FIGHTSTG_clearIds[]
the six event types FIGHTSTG_reviveFighter clears
s32 FIGHTSTG_statusTechArgs[]
the argument of message 9, which the odd techniques show,
void FIGHTSTG_updateEnemyAttack(EnemyAttack *task, BattleChild *children)
An attack on the player's active fighter (FIGHTSTG_startEnemyAttack): state 1 is the enemy's techniqu...
s32 FIGHTSTG_runItemScript(BattleItem *task, BattleChild *children)
An item's script (FIGHTSTG_updateItem): step 0 sets it up and deals the damage (lowerEnemyStat,...
BattleItem * FIGHTSTG_startItem(s32 item)
Starts an item's script (FIGHTSTG_updateItem)
void FIGHTSTG_updateTechAction(TechAction *task, BattleChild *children)
A side's technique or item (FIGHTSTG_startTechAction): state 0 shows its message (announceTech),...
s32 FIGHTSTG_statusTechLines[]
and the message shown when the target has the status
void FIGHTSTG_updateFirstTech(FirstTech *task, BattleChild *children)
A side's first technique (FIGHTSTG_startFirstTech): the partner's skills[0] or the enemy's battle tab...
StatusCure FIGHTSTG_itemCures[4]
what items 0x42-0x45 cure (FIGHTSTG_updateItem, below)
ItemScript FIGHTSTG_itemScripts[]
the items' script settings (FIGHTSTG_runItemScript, above)
TechBoost FIGHTSTG_techBoosts[]
the techniques that boost a stat of a fighter (FIGHTSTG_updateTechAction): the user's,...
void FIGHTSTG_reviveFighter(s32 tech, s32 fighter)
Revives one of the player's fighters at full HP, clearing its status events, and raises its defense b...
void FIGHTSTG_updateCounterattack(Counterattack *task, BattleChild *children)
A counterattack (FIGHTSTG_startCounterattack): the player's from an event of type 8 or the partner's ...
OneHpTurn * FIGHTSTG_startOneHpTurn()
The tasks FIGHTSTG starts for WFIGHTMN and WFIGHTTS.
void FIGHTSTG_updateItem(BattleItem *task, BattleChild *children)
An item used in battle (FIGHTSTG_startItem): its message, FIGHTSTG_runItemScript's script,...
EnemyAttack * FIGHTSTG_startEnemyAttack(s32 kind, s32 noKnockout)
Starts an attack on the player's active fighter (FIGHTSTG_updateEnemyAttack): kind 0 for the enemy's ...
FirstTech * FIGHTSTG_startFirstTech(s32 side)
Starts side's first technique (FIGHTSTG_updateFirstTech)
void FIGHTSTG_updateOneHpTurn(OneHpTurn *task, BattleChild *children)
Shared between the overlay's objects.
void FIGHTSTG_updateActionEvents(ActionEvents *task, BattleChild *children)
Runs the queued battle events: the first flag set in FIGHTSTG_action.effects picks the step,...
u8 FIGHTSTG_statusTechFlags[]
techniques 0xBE-0xC5's four kinds of status (FIGHTSTG_updateTechAction): the flag of each in BattleFi...
TechAction * FIGHTSTG_startTechAction(s32 side, s32 tech)
Starts side's (0 or 0x10) technique or item tech.
FIGHTSTG's shared declarations: the headers it builds on, the ids its tasks register with,...
#define TASK_HEADER(Type)
FIGHTSTG_updateActionEvents's task (FIGHTSTG_startActionEvents)
u8 pad[0x14]
never read or written: createTask allocates 0x74 bytes
FIGHTSTG_updateItem's task: an item used in battle, FIGHTSTG_runItemScript its script.
s32 element
item 0x54's element, 2-8
s32 lines[8]
FIGHTSTG_updateMessage's, 0 ends them.
s32 lowered
item 0x58's: 1 it lowered the enemy's first stat, 2 its second
A counterattack (FIGHTSTG_startCounterattack)
s32 noKnockOutEvent
a knockout doesn't call FIGHTSTG_queueKnockOut
s32 lines[8]
FIGHTSTG_updateMessage's.
s32 pad
never read or written: createTask allocates 0x8C bytes
s32 hit
whether the technique hits (FIGHTSTG_battleFuncs.rollHit)
u8 side
the side that counters, 0 or 0x10
s32 received
the damage it answers, 0 for none
FIGHTSTG_updateEnemyAttack's task (FIGHTSTG_startEnemyAttack): an attack on the player's active fight...
s32 noKnockout
don't knock the fighter out at 0 HP
u8 pad[0xC]
never read or written
s32 resetIdleMotion
the weakness ended: WFIGHTMN_setIdleMotion once the technique starts
s32 asleep
the fighter was asleep
s32 kind
0 the enemy's technique, 1 another attack
s32 lines[4]
FIGHTSTG_updateMessage's.
FIGHTSTG_updateFirstTech's task (FIGHTSTG_startFirstTech): a side's first technique.
u8 side
the side that uses it, 0 or 0x10
s32 asleep
whether the other side's fighter was asleep
s32 lines[8]
FIGHTSTG_updateMessage's.
An item's script settings (FIGHTSTG_itemScripts, ended by -1)
s16 effect
BattleScript's.
FIGHTSTG_startOneHpTurn's task, BATTLE_KIND_FINAL_SECOND's enemy turn: the enemy's second technique (...
s32 lines[8]
FIGHTSTG_updateMessage's, 0 ends them.
What an item cures (FIGHTSTG_itemCures, items 0x42-0x45)
s16 flag
in BattleFighter.flags
s32 item
FIGHTSTG_events.funcs.cureStatus's.
s32 heal
the HP an item heals
s32 lines[8]
FIGHTSTG_updateMessage's.
u8 side
the side that uses it, 0 or 0x10
s32 asleep
whether the other side's fighter was asleep
s32 tech
the technique or item
A technique's boost (FIGHTSTG_techBoosts and FIGHTSTG_sideBoosts, each ended by -1)
s16 amount
times the technique's effectPower, below 0 for the other side
A turn's or a counterattack's one child, and what WFIGHTMN's battle menu waits for (NULL when it is d...