Need help,VP Flag missing from Turn2

Moderator: rbodleyscott

Post Reply
locustmustdie
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 117
Joined: Fri Mar 05, 2021 11:33 am

Need help,VP Flag missing from Turn2

Post by locustmustdie »

Normal at Startup
Missing from 2nd Turn
startup.jpg
startup.jpg (506.51 KiB) Viewed 773 times
missingvpflag.jpg
missingvpflag.jpg (521.95 KiB) Viewed 773 times

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
}

}
But when go to the tile of missing VP,the flag reappeared,can't figure out why?
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28273
Joined: Sun Dec 04, 2005 6:25 pm

Re: Need help,VP Flag missing from Turn2

Post by rbodleyscott »

Trigger.bsf only reserves 8 marker indices for VP markers. If you have more than that, they will disappear when the number of projectiles on the map exceeds 50, and the marker indices are re-used.
Richard Bodley Scott

Image
locustmustdie
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 117
Joined: Fri Mar 05, 2021 11:33 am

Re: Need help,VP Flag missing from Turn2

Post by locustmustdie »

Thanks,Richard!
Post Reply

Return to “Field of Glory II: Medieval - Scenario Design”