top of page

Tag Battle with Partner

8.5

Description Loading...

HMA Discord Link 2.png

Credits:

YeahPotato


How To

1) Before initiating a battle in a script, setflag 0x0908 to mark the next battle as a Tag Battle and setflag 0x0909 if you want two different opponents


2) setvar 0x5011 X, where X = the ID of the trainer data (from data.trainers.stats) to use for your partner in battle. Do the same for 0x5010 to set a second opponent.


3) setvar 0x5012 X, where X = the ID of the backsprite (from graphics.trainers.sprites.back.enter) to use for your partner in battle.


4) Initiate a battle using a command such as single.battle or any other battle command.


NOTE: 0x0908 automatically clears after battle.


NOTE: setflag 0x0909 can be used to set two trainers on the opponent's side of the field. See the CFRU docs for more info.



Happy Hacking!

 


bottom of page