This page discusses efforts to enhance training mode to add additional functionality.
The following SEQ edit allows you to push left or right on the C-Stick to set the opponent's chakra to 0% or 25% respectively:
game/game00.seq
SeqEdit
Name:
C-Stick Sets Training Foe's Chakra
Offset:
0x10F40
Position:
0x15D20
Old Bytes:
0x04037300000000283F00000000100000
New Bytes:
0x0303000204037300000000283F000000004000000133000000015D540901027C00002224040242000000028C3F0000000000000004037300000000283F000000008000000133000000015D840901027C00002224040242000000028C3F000000000000000304000204037300000000283F00000000100000
New Bytes with branch back:
0x0303000204037300000000283F000000004000000133000000015D540901027C00002224040242000000028C3F0000000000000004037300000000283F000000008000000133000000015D840901027C00002224040242000000028C3F000000000000000304000204037300000000283F000000001000000132000000010F50
Assembly:
push gpr2
i32_andc PRIMARY_CONTROLLER->field_0x28, 0x400000
beqz label0
ptr_mov gpr2, GAME_INFO->field_0x2224
i32_mov *gpr2->field_0x28C, 0x0
label0:
i32_andc PRIMARY_CONTROLLER->field_0x28, 0x800000
beqz label1
ptr_mov gpr2, GAME_INFO->field_0x2224
i32_mov *gpr2->field_0x28C, 0x0
label1:
pop gpr2
i32_andc PRIMARY_CONTROLLER->field_0x28, 0x100000
If we wish to modify the current character, change GAME_INFO->field_0x2224
to
GAME_INFO->field_0x180
.