Missing from 2nd Turn
Code: Select all
FUNCTION PreBattleSetup()
{
int mode;
// Set multiplier for unit strength reporting. 100 is 100% - i.e. units are vanilla strength.
// If you set this at 50, units will be around half the size specified in the TotalMen column in the Squads file.
SetUniversalVar("StrengthMultiplier", 30);
// Needs to be set if scenario uses deadline (turn limit) - note that side 0's first turn is turn 0, side 1's first turn is turn 1, side 0's second turn is turn 2 and so on.
// If it is set at 0, or not set at all, the scenario will have no turn limit.
SetUniversalVar("ScenarioDeadline", 48);
// Customise units for scenarios
CustomiseUnits();
SetGlobal("vp1", 0);
SetGlobal("vp2", 0);
SetGlobal("vp3", 0);
SetGlobal("vp4", 0);
SetGlobal("vp5", 0);
SetGlobal("vp6", 1);
SetGlobal("vp7", 1);
SetGlobal("vp8", 1);
SetGlobal("vp9", 1);
SetGlobal("vp10", 1);
SetGlobal("vp11", 1);
SetGlobal("vp12", 1);
mode = GetDiffMode();
// Reassign teams - Only use if using AI_Masterplan() for AI orders - see above.
// AI_ReassignTeams(1);
FUNCTION Tick(side)
{
CheckVP(-1, GetGlobal("vp1"), 43, 36); //Gate Renard
CheckVP(-2, GetGlobal("vp2"), 40, 40); //Gate Bannier
CheckVP(-3, GetGlobal("vp3"), 37, 32); //Gate Bridge
CheckVP(-4, GetGlobal("vp4"), 28, 36); //Gate Burgundy
CheckVP(-5, GetGlobal("vp5"), 33, 40); //Gate Paris
CheckVP(-6, GetGlobal("vp6"), 37, 27); //Tourelles
CheckVP(-7, GetGlobal("vp7"), 37, 20); //Augustins
CheckVP(-8, GetGlobal("vp8"), 52, 39); //Boissée
CheckVP(-9, GetGlobal("vp9"), 50, 42); //Pierre
CheckVP(-10, GetGlobal("vp10"), 47, 45); //Pressoir-Ars
CheckVP(-11, GetGlobal("vp11"), 44, 47); //Pouair
CheckVP(-12, GetGlobal("vp12"), 54, 35); //St.Laurent
}
}