Bruce
Active member
Hello everyone,
I am seeing different methods to set it up from go_bys, and I always have questions about them in my mind.
I do know they all work, but it's best for me to learn the right way at the beginning rather than copy and paste the code.
Therefore, I have 4 methods below, can someone please help me understand which method is the right way?
Method 1:
in updated.c
Method 2:
in updated.c
constants.h
Since I have other defined variables inside constants.h already. Wouldn't this method be better?
Method 3:
in updated.c
constants.h
MenuConstants.c
Method 4:
in updated.c
I am sorry for the noob questions and thank you for your help,
god bless you all!
I am seeing different methods to set it up from go_bys, and I always have questions about them in my mind.
I do know they all work, but it's best for me to learn the right way at the beginning rather than copy and paste the code.
Therefore, I have 4 methods below, can someone please help me understand which method is the right way?
Method 1:
in updated.c
Code:
#define TITLE_TEXT 1 //1
#define CURSORSPR1 2 //2
#define CURSORSPR2 3 //3
#define CURSORSPR3 4 //4
Method 2:
in updated.c
Code:
#include "data/scripts/common/constants.c"
Code:
#define TITLE_TEXT 1 //1
#define CURSORSPR1 2 //2
#define CURSORSPR2 3 //3
#define CURSORSPR3 4 //4
#define A_ATKUP openborconstant("ANI_ATTACKUP")
#define A_ATKBACK openborconstant("ANI_ATTACKBACKWARD")
#define A_BLOCK openborconstant("ANI_BLOCK")
#define A_BLOCKP openborconstant("ANI_BLOCKPAIN")
#define A_BLOCKP2 openborconstant("ANI_BLOCKPAIN2")
Method 3:
in updated.c
Code:
#include "data/scripts/common/constants.c"
Code:
#include "data/scripts/common/MenuConstants.c"
#define A_ATKUP openborconstant("ANI_ATTACKUP")
#define A_ATKBACK openborconstant("ANI_ATTACKBACKWARD")
#define A_BLOCK openborconstant("ANI_BLOCK")
#define A_BLOCKP openborconstant("ANI_BLOCKPAIN")
#define A_BLOCKP2 openborconstant("ANI_BLOCKPAIN2")
Code:
#define TITLE_TEXT 1 //1
#define CURSORSPR1 2 //2
#define CURSORSPR2 3 //3
#define CURSORSPR3 4 //4
Method 4:
in updated.c
Code:
#include "data/scripts/common/MenuConstants.c"
I am sorry for the noob questions and thank you for your help,
god bless you all!