Binary ROM HackingNeed a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.
Are you using XSE to write this? If yes, then you need to make some small changes because XSE doesn't know what "FLAG_BATTLE_FACILITY", "VAR_BATTLE_FACILITY_POKE_NUM", etc are. So, you have to make XSE identify these using '#define'.
Try using one of these two solutions:
Solution 1: Put these lines on the top of your script below #dynamic 0xOffset and before any main script begins.
#define FLAG_BATTLE_FACILITY 0x930
#define VAR_BATTLE_FACILITY_POKE_NUM 0x5015
#define VAR_BATTLE_FACILITY_POKE_LEVEL 0x5016
#define VAR_BATTLE_FACILITY_BATTLE_TYPE 0x5017
Make sure to change the underlined parts to the variables that you used in CFRU's config.h for the Battle Tower Options.
Solution 2: Replace the parts in your post with these lines:
setflag 0x930
setvar 0x5015 4
setvar 0x5016 50
setvar 0x5017 0
Once again, make sure to change the underlined parts with the variables from config.h
If you are using PKSV, the solution should be same. Although, I have never used it before.