summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorGriffinR <griffin.richards@comcast.net>2019-12-14 03:58:20 -0500
committerGriffinR <griffin.richards@comcast.net>2019-12-17 20:56:13 -0500
commitddfa0c6298f4c4dcde9b40782bbdf41867bff761 (patch)
tree91f6af03f1d2c0e8b464c865f7fb3e91630f30ad /asm
parent49f1a90534180445d293761e2bdac165b49319a2 (diff)
Document Battle Tower scripts
Diffstat (limited to 'asm')
-rw-r--r--asm/macros/battle_frontier/battle_tower.inc31
1 files changed, 30 insertions, 1 deletions
diff --git a/asm/macros/battle_frontier/battle_tower.inc b/asm/macros/battle_frontier/battle_tower.inc
index d5a02ea21..71e795b1d 100644
--- a/asm/macros/battle_frontier/battle_tower.inc
+++ b/asm/macros/battle_frontier/battle_tower.inc
@@ -53,7 +53,36 @@
special CallBattleTowerFunc
.endm
- @ TODO: Document and add macros for BATTLE_TOWER_FUNC_10 - BATTLE_TOWER_FUNC_14
+ @ Load the parties, gfx, and other data (like Apprentice id) for the multi partner candidates
+ .macro tower_loadpartners
+ setvar VAR_0x8004, BATTLE_TOWER_FUNC_LOAD_PARTNERS
+ special CallBattleTowerFunc
+ .endm
+
+ @ Print message from potential multi partner. msgId is any PARTNER_MSGID_*
+ .macro tower_dopartnermsg msgId:req
+ setvar VAR_0x8004, BATTLE_TOWER_FUNC_PARTNER_MSG
+ setvar VAR_0x8005, \msgId
+ special CallBattleTowerFunc
+ .endm
+
+ @ Receives/loads the opponent data for a link multi challenge. Returns 6 when finished, and finishes immediately if not doing a link multi battle.
+ .macro tower_loadlinkopponents
+ setvar VAR_0x8004, BATTLE_TOWER_FUNC_LOAD_LINK_OPPONENTS
+ special CallBattleTowerFunc
+ .endm
+
+ @ Unknown. Destroys some link task if using wireless link. Wait for link?
+ .macro tower_unklink
+ setvar VAR_0x8004, BATTLE_TOWER_FUNC_13
+ special CallBattleTowerFunc
+ .endm
+
+ @ Set VAR_OBJ_GFX_ID_E to the gfx id of the selected multi partner
+ .macro tower_setpartnergfx
+ setvar VAR_0x8004, BATTLE_TOWER_FUNC_SET_PARTNER_GFX
+ special CallBattleTowerFunc
+ .endm
@ Set the data used for the post-challenge Battle Tower interview
.macro tower_setinterviewdata