Page 1 of 1

Question about Immediate Victory triggers and debugging

Posted: Tue Nov 24, 2026 5:46 pm
by Sweavenger
Hi

I'm trying to implement an immediate Axis victory condition in a custom DC: Ardennes Offensive scenario.

My current approach is:Variants Table checks ownership of several objective hexes using hexowner$x,y.Variables (a, b, c, d, e) are set based on ownership.
A combined variable (vict) is calculated.
Logic Table sets VictoryEnabled = Yes in VR Basic Lib when vict > 7.

Example:
IF hexowner$20,16=0
SET e=5
(Four more hexes checked)

IF turn>0
SET vict=a+b+c+d+e

and

IF vict>7
VR Basic Lib
VictoryEnabled
Yes

Have no idea if this is the right way to try and solve it??

When all objective hexes are Axis-controlled, no immediate victory occurs.

A few questions:
Is hexowner$x,y the correct way to test current hex ownership in a Variants Table?
What values does hexowner$ return for Axis (Turn=0) and Allies (Turn=1)
Is VictoryEnabled in VR Basic Lib the correct LibVar to trigger an immediate victory?
Should custom variables such as a, b, c, d, e, and vict be visible in Debug Mode, or do they need to be declared as Flags/LibVars first?

A lot questions from a “do it yourself” newbie modder. :D

Thanks!