Dale said:How to Implement:
Step 1: Add the new code to the DLL and compile.
Step 2: Modify the #define value in CvDefines.h to true or false (true turns on the mod) and re-compile.
Step 3: Add the new xml flags to the schema in CIV4UnitSchema.xml
Dale,
Sorry for this... I *know* I must be overlooking something, but what do I change here in step #2 above? I want to disable Stack Attacks... here is the code from CvDefines.h:
Code:
// Dale: #defines for all mods START
#define DCMStackAttack GC.getGameINLINE().isOption(GAMEOPTION_DCM_STACK) // Dale - Stack Attack: turn this concept on
#define DCMFieldBombard GC.getGameINLINE().isOption(GAMEOPTION_DCM_BOMBARD) // Dale - Field Bombard: turn this concept on
#define DCMMissiles GC.getGameINLINE().isOption(GAMEOPTION_DCM_MISSILES) // Dale - Missiles: turn this concept on
#define DCMMad GC.getGameINLINE().isOption(GAMEOPTION_DCM_MAD) // Dale - MAD: turn this concept on
#define DCMMadMsgs GC.getGameINLINE().isOption(GAMEOPTION_DCM_MAD) // Dale - MAD: turn on messages for MAD
// Dale: #defines for all mods END
Where do I put true/false at?