- 53
- Posts
- 9
- Years
- Seen Aug 25, 2023
https://www.pokecommunity.com/posts/9963746/
I went to this post but did not help me much. Below is the error when I try to make it.
undefined reference to `VAR_PALLET_TOWN_STATE'
I am new to scripting on the GBA but I have scripted and can competently script on the GBC and the scripting language is similar between both of them. However I do not not get the issue is.
#define VAR_DAILY_BP 0x40F1
#define VAR_WALLY_CALL_STEP_COUNTER 0x40F2
#define VAR_SCOTT_FORTREE_CALL_STEP_COUNTER 0x40F3
#define VAR_ROXANNE_CALL_STEP_COUNTER 0x40F4
#define VAR_SCOTT_BF_CALL_STEP_COUNTER 0x40F5
#define VAR_RIVAL_RAYQUAZA_CALL_STEP_COUNTER 0x40F6
#define VAR_PALLET_TOWN_STATE 0x40F7
Is where the Pallet variant is is in my vars.h so I have no idea what is going on. I am trying to set up a trigger that stops the player from leaving the town without a Pokémon when the VAR_PALLET_TOWN_STATE variable is 0.
I went to this post but did not help me much. Below is the error when I try to make it.
undefined reference to `VAR_PALLET_TOWN_STATE'
I am new to scripting on the GBA but I have scripted and can competently script on the GBC and the scripting language is similar between both of them. However I do not not get the issue is.
#define VAR_DAILY_BP 0x40F1
#define VAR_WALLY_CALL_STEP_COUNTER 0x40F2
#define VAR_SCOTT_FORTREE_CALL_STEP_COUNTER 0x40F3
#define VAR_ROXANNE_CALL_STEP_COUNTER 0x40F4
#define VAR_SCOTT_BF_CALL_STEP_COUNTER 0x40F5
#define VAR_RIVAL_RAYQUAZA_CALL_STEP_COUNTER 0x40F6
#define VAR_PALLET_TOWN_STATE 0x40F7
Is where the Pallet variant is is in my vars.h so I have no idea what is going on. I am trying to set up a trigger that stops the player from leaving the town without a Pokémon when the VAR_PALLET_TOWN_STATE variable is 0.