The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Battle frontier scripting help

Notices
For all updates, view the main page.

Binary ROM Hacking Need 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.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old October 18th, 2020 (11:08 AM).
grazid grazid is offline
 
Join Date: Sep 2020
Posts: 15
I'm trying to enter this code for a battle facility but it says that its missing #define

Code:
setflag FLAG_BATTLE_FACILITY
setvar VAR_BATTLE_FACILITY_POKE_NUM 4
setvar VAR_BATTLE_FACILITY_POKE_LEVEL 50
setvar VAR_BATTLE_FACILITY_BATTLE_TYPE 0
I'm using CFRU
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 19th, 2020 (4:53 AM).
Entaro Ceraphenine's Avatar
Entaro Ceraphenine Entaro Ceraphenine is offline
 
Join Date: Sep 2016
Location: Katones City
Gender: Male
Nature: Quiet
Posts: 48
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.
__________________
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:16 AM.